Question
0x000000000040108b : push %rbx 0x000000000040108c : mov %rdi,%rbx 0x000000000040108f : callq 0x4012df 0x0000000000401094 : cmp $0x6,%eax 0x0000000000401097 : je 0x40109e 0x0000000000401099 : callq 0x401564 0x000000000040109e
0x000000000040108b <+0>: push %rbx 0x000000000040108c <+1>: mov %rdi,%rbx 0x000000000040108f <+4>: callq 0x4012df 0x0000000000401094 <+9>: cmp $0x6,%eax 0x0000000000401097 <+12>: je 0x40109e 0x0000000000401099 <+14>: callq 0x401564 0x000000000040109e <+19>: mov %rbx,%rax 0x00000000004010a1 <+22>: lea 0x6(%rbx),%rdi 0x00000000004010a5 <+26>: mov $0x0,%ecx 0x00000000004010aa <+31>: movzbl (%rax),%edx 0x00000000004010ad <+34>: and $0xf,%edx 0x00000000004010b0 <+37>: add 0x4025c0(,%rdx,4),%ecx 0x00000000004010b7 <+44>: add $0x1,%rax 0x00000000004010bb <+48>: cmp %rdi,%rax 0x00000000004010be <+51>: jne 0x4010aa 0x00000000004010c0 <+53>: cmp $0x30,%ecx 0x00000000004010c3 <+56>: je 0x4010ca 0x00000000004010c5 <+58>: callq 0x401564 0x00000000004010ca <+63>: pop %rbx 0x00000000004010cb <+64>: retq
This is the assembly code from bomb lab phase5.
The answer should be a six digit number or characters that follow ascii rules. And the sum is 0x30
The goal is to prevent the funtion to call 0x401564
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