Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

This is Binary Bomb Phase_3 I need to know what goes in %b %c %d. mov mov mov mov mov (gdb) disas phase_3 Dump of

This is Binary Bomb Phase_3

I need to know what goes in %b %c %d.

image text in transcribed

mov mov mov mov mov (gdb) disas phase_3 Dump of assembler code for function phase 3: Ox0000000000400fb1 : sub $0x18, %rsp Ox0000000000400fb5 : %fs: 0x28, frax Ox0000000000400fbe : mov Erax, 0x8 (&rsp) Ox0000000000400fc3 : xor Seax, %eax Ox0000000000400fc5 : lea Ox4 (&rsp), %rcx Ox0000000000400fca : mov frsp, &rdx Ox0000000000400fcd : mov $0x40298d, Sesi Ox0000000000400fd2 : callq 0x400c40 Ox0000000000400fd7 : cmp $0x1, Seax Ox0000000000400fda : jg 0x400fel Ox0000000000400fdc : callq 0x401692 Ox0000000000400 fel : cmpl $0x7, (%rsp) Ox0000000000400fe5 : ja Ox401022 Ox0000000000400fe7 : (frsp), feax Ox0000000000400fea : jmpa *0x402600 (, frax, 8) Ox0000000000400ffl : $0x97, Seax Ox0000000000400ff6 : jmp Ox401033 Ox0000000000400ff8 : $Oxe0, Seax Ox0000000000400ffd : jmp Ox401033 Ox0000000000400fff : $0x340, %eax 0x0000000000401004 : jmp 0x401033 0x0000000000401006 : mov $0xle7, feax 0x000000000040100b : jmp 0x401033 0x000000000040100d : $0x164, feax 0x0000000000401012 : jmp 0x401033 0x0000000000401014 : mov $0x147, &eax 0x0000000000401019 : jmp 0x401033 0x000000000040101b : mov $0xlde, feax 0x0000000000401020 : jmp 0x401033 Ox0000000000401022 : callq 0x401692 Ox0000000000401027 : mov $0x0, Seax Ox000000000040102c : jmp 0x401033 Ox000000000040102e : $0x240, %eax Ox0000000000401033 : cmp Ox4 (&rsp), feax Ox0000000000401037 : je 0x40103e Ox0000000000401039 : callq 0x401692 Ox000000000040103e : mov Ox8 (frsp), frax Ox0000000000401043 : xor %fs: 0x28, frax Ox000000000040104c : je 0x401053 Ox000000000040104e : calla Ox400b90 <_stack_chk_fail> Ox0000000000401053 : add $0x18, &rsp Ox0000000000401057 : reta End of assembler dump. mov mov mov mov mov mov mov (gdb) disas phase_3 Dump of assembler code for function phase 3: Ox0000000000400fb1 : sub $0x18, %rsp Ox0000000000400fb5 : %fs: 0x28, frax Ox0000000000400fbe : mov Erax, 0x8 (&rsp) Ox0000000000400fc3 : xor Seax, %eax Ox0000000000400fc5 : lea Ox4 (&rsp), %rcx Ox0000000000400fca : mov frsp, &rdx Ox0000000000400fcd : mov $0x40298d, Sesi Ox0000000000400fd2 : callq 0x400c40 Ox0000000000400fd7 : cmp $0x1, Seax Ox0000000000400fda : jg 0x400fel Ox0000000000400fdc : callq 0x401692 Ox0000000000400 fel : cmpl $0x7, (%rsp) Ox0000000000400fe5 : ja Ox401022 Ox0000000000400fe7 : (frsp), feax Ox0000000000400fea : jmpa *0x402600 (, frax, 8) Ox0000000000400ffl : $0x97, Seax Ox0000000000400ff6 : jmp Ox401033 Ox0000000000400ff8 : $Oxe0, Seax Ox0000000000400ffd : jmp Ox401033 Ox0000000000400fff : $0x340, %eax 0x0000000000401004 : jmp 0x401033 0x0000000000401006 : mov $0xle7, feax 0x000000000040100b : jmp 0x401033 0x000000000040100d : $0x164, feax 0x0000000000401012 : jmp 0x401033 0x0000000000401014 : mov $0x147, &eax 0x0000000000401019 : jmp 0x401033 0x000000000040101b : mov $0xlde, feax 0x0000000000401020 : jmp 0x401033 Ox0000000000401022 : callq 0x401692 Ox0000000000401027 : mov $0x0, Seax Ox000000000040102c : jmp 0x401033 Ox000000000040102e : $0x240, %eax Ox0000000000401033 : cmp Ox4 (&rsp), feax Ox0000000000401037 : je 0x40103e Ox0000000000401039 : callq 0x401692 Ox000000000040103e : mov Ox8 (frsp), frax Ox0000000000401043 : xor %fs: 0x28, frax Ox000000000040104c : je 0x401053 Ox000000000040104e : calla Ox400b90 <_stack_chk_fail> Ox0000000000401053 : add $0x18, &rsp Ox0000000000401057 : reta End of assembler dump. mov mov

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions