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
Im 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.
:
f: cmp $xedi
a: ja d
a: mov edi,edi
a: jmpq xrdi,
ad: mov $xeax
b: retq
b: mov $xeax
b: retq
b: mov $xeax
be: retq
bf: mov $xeax
c: retq
c: mov $xeax
ca: retq
cb: mov $xeax
d: retq
d: sub $xrsp
d: callq ce
da: mov $xeax
df: add $xrsp
e: retq
e: mov $xeeax
e: retq
:
f: sub $xrsp
f: mov rdxrcx
f: mov rsi,rdx
fb: mov $xesi
f: mov $xeax
f: callq isocsscanf@plt
fa: cmp $xeax
fd: jne fa
ff: add $xrsp
fa: retq
fa: callq ce
:
ea: push rbx
eb: sub $xrsp
ef: movl $xxcrsp
f: movl $xxrsp
ff: lea xrsprdx
: lea xcrsprsi
: callq f
e: mov xrspeax
: cmp eax,xcrsp
: je
: mov xcrspedi
c: callq f
: mov eax,ebx
: mov xrspedi
: callq f
c: cmp eax,ebx
e: jne d
: add $xrsp
: pop rbx
: retq
: callq ce
b: jmp
d: callq ce
: jmp
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
