Question: I ' m working on a binary puzzle and analyzing the disassembled code for three functions. The challenge involves providing two numbers that successfully pass

I'm working on a binary puzzle and analyzing the disassembled code for three functions. The challenge involves providing two numbers that successfully pass through the comparison checks without triggering the explosion.
:
40149f: cmp $0x7,%edi
4014a2: ja 4014d1
4014a4: mov %edi,%edi
4014a6: jmpq *0x403180(,%rdi,8)
4014ad: mov $0x189,%eax
4014b2: retq
4014b3: mov $0x302,%eax
4014b8: retq
4014b9: mov $0x221,%eax
4014be: retq
4014bf: mov $0x376,%eax
4014c4: retq
4014c5: mov $0x333,%eax
4014ca: retq
4014cb: mov $0x247,%eax
4014d0: retq
4014d1: sub $0x8,%rsp
4014d5: callq 401c8e
4014da: mov $0x0,%eax
4014df: add $0x8,%rsp
4014e3: retq
4014e4: mov $0x25e,%eax
4014e9: retq
:
401f81: sub $0x8,%rsp
401f85: mov %rdx,%rcx
401f88: mov %rsi,%rdx
401f8b: mov $0x403979,%esi
401f90: mov $0x0,%eax
401f95: callq 401180<__isoc99_sscanf@plt>
401f9a: cmp $0x2,%eax
401f9d: jne 401fa4
401f9f: add $0x8,%rsp
401fa3: retq
401fa4: callq 401c8e
:
4014ea: push %rbx
4014eb: sub $0x10,%rsp
4014ef: movl $0x0,0xc(%rsp)
4014f7: movl $0x0,0x8(%rsp)
4014ff: lea 0x8(%rsp),%rdx
401504: lea 0xc(%rsp),%rsi
401509: callq 401f81
40150e: mov 0x8(%rsp),%eax
401512: cmp %eax,0xc(%rsp)
401516: je 401536
401518: mov 0xc(%rsp),%edi
40151c: callq 40149f
401521: mov %eax,%ebx
401523: mov 0x8(%rsp),%edi
401527: callq 40149f
40152c: cmp %eax,%ebx
40152e: jne 40153d
401530: add $0x10,%rsp
401534: pop %rbx
401535: retq
401536: callq 401c8e
40153b: jmp 401518
40153d: callq 401c8e
401542: jmp 401530

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 Programming Questions!