Question
Need help with Binary Bomb phase4 Dump of assembler code for function phase_4: => 0x000000000040101e : sub $0x18,%rsp 0x0000000000401022 : lea 0xc(%rsp),%rcx 0x0000000000401027 : lea
Need help with Binary Bomb phase4
Dump of assembler code for function phase_4: => 0x000000000040101e <+0>: sub $0x18,%rsp 0x0000000000401022 <+4>: lea 0xc(%rsp),%rcx 0x0000000000401027 <+9>: lea 0x8(%rsp),%rdx 0x000000000040102c <+14>: mov $0x40279d,%esi 0x0000000000401031 <+19>: mov $0x0,%eax 0x0000000000401036 <+24>: callq 0x400c30 <__isoc99_sscanf@plt> 0x000000000040103b <+29>: cmp $0x2,%eax 0x000000000040103e <+32>: jne 0x40104c 0x0000000000401040 <+34>: mov 0xc(%rsp),%eax 0x0000000000401044 <+38>: sub $0x2,%eax eax=2 0x0000000000401047 <+41>: cmp $0x2,%eax 0x000000000040104a <+44>: jbe 0x401051 0x000000000040104c <+46>: callq 0x401544 0x0000000000401051 <+51>: mov 0xc(%rsp),%esi 0x0000000000401055 <+55>: mov $0x8,%edi edi=8 0x000000000040105a <+60>: callq 0x400fe6 0x000000000040105f <+65>: cmp 0x8(%rsp),%eax 0x0000000000401063 <+69>: je 0x40106a 0x0000000000401065 <+71>: callq 0x401544 0x000000000040106a <+76>: add $0x18,%rsp 0x000000000040106e <+80>: retq
func4
0x0000000000400fe6 <+0>: push %r12 0x0000000000400fe8 <+2>: push %rbp 0x0000000000400fe9 <+3>: push %rbx 0x0000000000400fea <+4>: mov %edi,%ebx 0x0000000000400fec <+6>: test %edi,%edi 0x0000000000400fee <+8>: jle 0x401014 0x0000000000400ff0 <+10>: mov %esi,%ebp 0x0000000000400ff2 <+12>: mov %esi,%eax 0x0000000000400ff4 <+14>: cmp $0x1,%edi 0x0000000000400ff7 <+17>: je 0x401019 0x0000000000400ff9 <+19>: lea -0x1(%rdi),%edi 0x0000000000400ffc <+22>: callq 0x400fe6 0x0000000000401001 <+27>: lea (%rax,%rbp,1),%r12d 0x0000000000401005 <+31>: lea -0x2(%rbx),%edi 0x0000000000401008 <+34>: mov %ebp,%esi 0x000000000040100a <+36>: callq 0x400fe6 0x000000000040100f <+41>: add %r12d,%eax 0x0000000000401012 <+44>: jmp 0x401019 0x0000000000401014 <+46>: mov $0x0,%eax 0x0000000000401019 <+51>: pop %rbx 0x000000000040101a <+52>: pop %rbp 0x000000000040101b <+53>: pop %r12 ---Type to continue, or q to quit--- 0x000000000040101d <+55>: retq
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started