Advertisement
Guest User

Untitled

a guest
Sep 8th, 2019
2,514
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Dump of assembler code for function main:
  2.    0x0000000000401156 <+0>: push   rbp
  3.    0x0000000000401157 <+1>: mov    rbp,rsp
  4.    0x000000000040115a <+4>: sub    rsp,0x10
  5.    0x000000000040115e <+8>: call   0x401060 <rand@plt>
  6.    0x0000000000401163 <+13>:    movsxd rdx,eax
  7.    0x0000000000401166 <+16>:    imul   rdx,rdx,0x45e7b273
  8.    0x000000000040116d <+23>:    shr    rdx,0x20
  9.    0x0000000000401171 <+27>:    mov    ecx,edx
  10.    0x0000000000401173 <+29>:    sar    ecx,0xd
  11.    0x0000000000401176 <+32>:    cdq    
  12.    0x0000000000401177 <+33>:    sub    ecx,edx
  13.    0x0000000000401179 <+35>:    mov    edx,ecx
  14.    0x000000000040117b <+37>:    mov    DWORD PTR [rbp-0x4],edx
  15.    0x000000000040117e <+40>:    mov    edx,DWORD PTR [rbp-0x4]
  16.    0x0000000000401181 <+43>:    imul   edx,edx,0x7530
  17.    0x0000000000401187 <+49>:    sub    eax,edx
  18.    0x0000000000401189 <+51>:    mov    DWORD PTR [rbp-0x4],eax
  19.    0x000000000040118c <+54>:    mov    edi,0x402010
  20.    0x0000000000401191 <+59>:    mov    eax,0x0
  21.    0x0000000000401196 <+64>:    call   0x401040 <printf@plt>
  22.    0x000000000040119b <+69>:    lea    rax,[rbp-0x8]
  23.    0x000000000040119f <+73>:    mov    rsi,rax
  24.    0x00000000004011a2 <+76>:    mov    edi,0x402020
  25.    0x00000000004011a7 <+81>:    mov    eax,0x0
  26.    0x00000000004011ac <+86>:    call   0x401050 <__isoc99_scanf@plt>
  27.    0x00000000004011b1 <+91>:    mov    eax,DWORD PTR [rbp-0x8]
  28.    0x00000000004011b4 <+94>:    cmp    DWORD PTR [rbp-0x4],eax
  29.    0x00000000004011b7 <+97>:    jne    0x4011c5 <main+111>
  30.    0x00000000004011b9 <+99>:    mov    edi,0x402023
  31.    0x00000000004011be <+104>:   call   0x401030 <puts@plt>
  32.    0x00000000004011c3 <+109>:   jmp    0x4011d4 <main+126>
  33.    0x00000000004011c5 <+111>:   mov    edi,0x402030
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement