Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Dump of assembler code for function main:
- 0x0000555555554b56 <+0>: push rbp
- 0x0000555555554b57 <+1>: mov rbp,rsp
- => 0x0000555555554b5a <+4>: sub rsp,0x40
- 0x0000555555554b5e <+8>: mov rax,QWORD PTR fs:0x28
- 0x0000555555554b67 <+17>: mov QWORD PTR [rbp-0x8],rax
- 0x0000555555554b6b <+21>: xor eax,eax
- 0x0000555555554b6d <+23>: mov rax,QWORD PTR [rip+0x20149c] # 0x555555756010 <stdout@@GLIBC_2.2.5>
- 0x0000555555554b74 <+30>: mov ecx,0x0
- 0x0000555555554b79 <+35>: mov edx,0x2
- 0x0000555555554b7e <+40>: mov esi,0x0
- 0x0000555555554b83 <+45>: mov rdi,rax
- 0x0000555555554b86 <+48>: call 0x555555554798 <setvbuf@plt>
- 0x0000555555554b8b <+53>: mov rax,QWORD PTR [rip+0x20148e] # 0x555555756020 <stdin@@GLIBC_2.2.5>
- 0x0000555555554b92 <+60>: mov ecx,0x0
- 0x0000555555554b97 <+65>: mov edx,0x2
- 0x0000555555554b9c <+70>: mov esi,0x0
- 0x0000555555554ba1 <+75>: mov rdi,rax
- 0x0000555555554ba4 <+78>: call 0x555555554798 <setvbuf@plt>
- 0x0000555555554ba9 <+83>: mov edi,0x1e
- 0x0000555555554bae <+88>: call 0x555555554790 <alarm@plt>
- ---Type <return> to continue, or q <return> to quit---
- 0x0000555555554bb3 <+93>: lea rdi,[rip+0x17e] # 0x555555554d38
- 0x0000555555554bba <+100>: call 0x555555554778 <puts@plt>
- 0x0000555555554bbf <+105>: lea rdi,[rip+0x1a0] # 0x555555554d66
- 0x0000555555554bc6 <+112>: call 0x555555554778 <puts@plt>
- 0x0000555555554bcb <+117>: mov QWORD PTR [rbp-0x20],0x0
- 0x0000555555554bd3 <+125>: mov QWORD PTR [rbp-0x18],0x0
- 0x0000555555554bdb <+133>: mov BYTE PTR [rbp-0x20],0x1
- 0x0000555555554bdf <+137>: lea rax,[rbp-0x20]
- 0x0000555555554be3 <+141>: mov QWORD PTR [rbp-0x30],rax
- 0x0000555555554be7 <+145>: mov DWORD PTR [rbp-0x28],0x1
- 0x0000555555554bee <+152>: lea rax,[rbp-0x34]
- 0x0000555555554bf2 <+156>: mov rsi,rax
- 0x0000555555554bf5 <+159>: lea rdi,[rip+0x16b] # 0x555555554d67
- 0x0000555555554bfc <+166>: mov eax,0x0
- 0x0000555555554c01 <+171>: call 0x5555555547a0 <__isoc99_scanf@plt>
- 0x0000555555554c06 <+176>: cmp eax,0x1
- 0x0000555555554c09 <+179>: je 0x555555554c15 <main+191>
- 0x0000555555554c0b <+181>: mov eax,0x0
- 0x0000555555554c10 <+186>: call 0x555555554b35 <bye>
- 0x0000555555554c15 <+191>: mov eax,DWORD PTR [rbp-0x34]
- 0x0000555555554c18 <+194>: cmp eax,0xff
- 0x0000555555554c1d <+199>: jbe 0x555555554c35 <main+223>
- 0x0000555555554c1f <+201>: lea rdi,[rip+0x14a] # 0x555555554d70
- ---Type <return> to continue, or q <return> to quit---
- 0x0000555555554c26 <+208>: call 0x555555554778 <puts@plt>
- 0x0000555555554c2b <+213>: mov eax,0x0
- 0x0000555555554c30 <+218>: call 0x555555554b35 <bye>
- 0x0000555555554c35 <+223>: mov eax,DWORD PTR [rbp-0x34]
- 0x0000555555554c38 <+226>: mov BYTE PTR [rbp-0x35],al
- 0x0000555555554c3b <+229>: cmp BYTE PTR [rbp-0x35],0x0
- 0x0000555555554c3f <+233>: jne 0x555555554c52 <main+252>
- 0x0000555555554c41 <+235>: lea rax,[rbp-0x30]
- 0x0000555555554c45 <+239>: mov rdi,rax
- 0x0000555555554c48 <+242>: call 0x555555554a52 <print>
- 0x0000555555554c4d <+247>: jmp 0x555555554bbf <main+105>
- 0x0000555555554c52 <+252>: movzx eax,BYTE PTR [rbp-0x35]
- 0x0000555555554c56 <+256>: and eax,0x1
- 0x0000555555554c59 <+259>: test al,al
- 0x0000555555554c5b <+261>: jne 0x555555554c7f <main+297>
- 0x0000555555554c5d <+263>: lea rdi,[rip+0x13c] # 0x555555554da0
- 0x0000555555554c64 <+270>: call 0x555555554778 <puts@plt>
- 0x0000555555554c69 <+275>: mov eax,0xffffffff
- 0x0000555555554c6e <+280>: mov rcx,QWORD PTR [rbp-0x8]
- 0x0000555555554c72 <+284>: xor rcx,QWORD PTR fs:0x28
- 0x0000555555554c7b <+293>: je 0x555555554c9b <main+325>
- 0x0000555555554c7d <+295>: jmp 0x555555554c96 <main+320>
- 0x0000555555554c7f <+297>: movzx edx,BYTE PTR [rbp-0x35]
- ---Type <return> to continue, or q <return> to quit---
- 0x0000555555554c83 <+301>: lea rax,[rbp-0x30]
- 0x0000555555554c87 <+305>: mov esi,edx
- 0x0000555555554c89 <+307>: mov rdi,rax
- 0x0000555555554c8c <+310>: call 0x555555554944 <multiply>
- 0x0000555555554c91 <+315>: jmp 0x555555554bee <main+152>
- 0x0000555555554c96 <+320>: call 0x555555554780 <__stack_chk_fail@plt>
- 0x0000555555554c9b <+325>: leave
- 0x0000555555554c9c <+326>: ret
- End of assembler dump.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement