#x86-64 assembly language extracting secret codes
1 messages · Page 1 of 1 (latest)
snippet of the assembly code:
0x000000000040076a <+120>: callq 0x400540 __isoc99_scanf@plt
0x000000000040076f <+125>: lea -0x20(%rbp),%rax
0x0000000000400773 <+129>: mov %rax,%rdi
0x0000000000400776 <+132>: callq 0x400510 strlen@plt
0x000000000040077b <+137>: mov %eax,%edx
0x000000000040077d <+139>: lea -0x20(%rbp),%rax
0x0000000000400781 <+143>: mov %edx,%esi
0x0000000000400783 <+145>: mov %rax,%rdi
0x0000000000400786 <+148>: callq 0x400698 <calculateValue>
0x000000000040078b <+153>: mov %eax,-0x8(%rbp)
0x000000000040078e <+156>: mov -0x8(%rbp),%eax
0x0000000000400791 <+159>: cmp -0xc(%rbp),%eax -I THINK here is where the secret code is contained but I don't know how to extract it
0x0000000000400794 <+162>: je 0x4007ba <main+200>
0x0000000000400796 <+164>: jmp 0x4007a9 <main+183>
0x0000000000400798 <+166>: mov $0x40089d,%edi
0x000000000040079d <+171>: callq 0x400500 puts@plt
0x00000000004007a2 <+176>: mov $0x1,%eax
0x00000000004007a7 <+181>: jmp 0x4007c4 <main+210>
0x00000000004007a9 <+183>: mov $0x4008d0,%edi
0x00000000004007ae <+188>: callq 0x400500 puts@plt
0x00000000004007b3 <+193>: mov $0x2,%eax
0x00000000004007b8 <+198>: jmp 0x4007c4 <main+210>
0x00000000004007ba <+200>: callq 0x4006da <endGame>
0x00000000004007bf <+205>: mov $0x0,%eax
0x00000000004007c4 <+210>: leaveq
0x00000000004007c5 <+211>: retq