Advertisement
Guest User

Untitled

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