Question
Hello, I need help with this phase 4 of deactivating a bomb. So far I know that the scanf function that gets called needs my
Hello, I need help with this phase 4 of deactivating a bomb. So far I know that the scanf function that gets called needs my input to be of type %d %d. I also know that my func4 that gets called is a recursive function. I believe it is doing some type of binary search thing but am getting lost in func4. The last thing I've gleaned is that it is checking to see if my %eax is equal to 0x15. So I'm imagining 21 is a number I'm shooting for. Any help would be really appreciated so I can get back on track.
below is a snapshot of the disassembly for this phase:
and below is the disassembly of func4 that is being called in phase_4
Any help would be appreciated. Thanks.
LU) I JUS lea guri net abo the ugh gur Dump of assembler code for function phase 4: Ox0000000000401015 : sub $0x18,%rsp 33 P Ox0000000000401019 : 0x8(%rsp),%rcx Ox000000000040101e : lea Oxc (%rsp),%rdx Ox0000000000401023 : mov $0x4027cd , %esi Ox0000000000401028 : mov $ 0x0,%eax be Ox000000000040102 d : callq 0x400c30 <_isoc99_sscanf> 24d Ox0000000000401032 : cmp $0x2,%eax Ox0000000000401035 : jne 0x40103eStep 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