Question: this binary lab phase 5 , please give me solution to defuse the bomb Dump of assembler code for function phase _ 5 : 0

this binary lab phase 5, please give me solution to defuse the bomb
Dump of assembler code for function phase_5:
0x000000000040106b <+0>: push %rbx
0x000000000040106c <+1>: sub $0x10,%rsp
0x0000000000401070<+5>: mov %rdi,%rbx
0x0000000000401073<+8>: callq 0x4012ce
0x0000000000401078<+13>: cmp $0x6,%eax
0x000000000040107b <+16>: jne 0x4010bc
0x000000000040107d <+18>: mov $0x0,%eax
0x0000000000401082<+23>: movzbl (%rbx,%rax,1),%edx
0x0000000000401086<+27>: and $0xf,%edx
0x0000000000401089<+30>: movzbl 0x4024d0(%rdx),%edx
0x0000000000401090<+37>: mov %dl,0x9(%rsp,%rax,1)
0x0000000000401094<+41>: add $0x1,%rax
0x0000000000401098<+45>: cmp $0x6,%rax
0x000000000040109c <+49>: jne 0x401082
0x000000000040109e <+51>: movb $0x0,0xf(%rsp)
0x00000000004010a3<+56>: mov $0x40247e,%esi
0x00000000004010a8<+61>: lea 0x9(%rsp),%rdi
0x00000000004010ad <+66>: callq 0x4012eb
0x00000000004010b2<+71>: test %eax,%eax
0x00000000004010b4<+73>: jne 0x4010c3
0x00000000004010b6<+75>: add $0x10,%rsp
0x00000000004010ba <+79>: pop %rbx
0x00000000004010bb <+80>: retq
0x00000000004010bc <+81>: callq 0x401512
0x00000000004010c1<+86>: jmp 0x40107d
0x00000000004010c3<+88>: callq 0x401512
0x00000000004010c8<+93>: jmp 0x4010b6
End of assembler dump.
(gdb) disas string_length
Dump of assembler code for function string_length:
0x00000000004012ce <+0>: cmpb $0x0,(%rdi)
0x00000000004012d1<+3>: je 0x4012e5
0x00000000004012d3<+5>: mov $0x0,%eax
0x00000000004012d8<+10>: add $0x1,%rdi
0x00000000004012dc <+14>: add $0x1,%eax
0x00000000004012df <+17>: cmpb $0x0,(%rdi)
0x00000000004012e2<+20>: jne 0x4012d8
0x00000000004012e4<+22>: retq
0x00000000004012e5<+23>: mov $0x0,%eax
0x00000000004012ea <+28>: retq
End of assembler dump.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!