Advertisement
Combreal

level01a-01

Aug 8th, 2020 (edited)
2,190
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. level01a@wargame:/tmp/wg01a$ objdump -D -M intel bin01a|grep '<main>:' -A 30
  2. 08048557 <main>:
  3.  8048557:       55                      push   ebp
  4.  8048558:       89 e5                   mov    ebp,esp
  5.  804855a:       83 e4 f0                and    esp,0xfffffff0
  6.  804855d:       83 ec 10                sub    esp,0x10
  7.  8048560:       83 7d 08 02             cmp    DWORD PTR [ebp+0x8],0x2
  8.  8048564:       74 1c                   je     8048582 <main+0x2b>
  9.  8048566:       8b 45 0c                mov    eax,DWORD PTR [ebp+0xc]
  10.  8048569:       8b 00                   mov    eax,DWORD PTR [eax]
  11.  804856b:       89 44 24 04             mov    DWORD PTR [esp+0x4],eax
  12.  804856f:       c7 04 24 80 86 04 08    mov    DWORD PTR [esp],0x8048680
  13.  8048576:       e8 25 fe ff ff          call   80483a0 <printf@plt>
  14.  804857b:       b8 01 00 00 00          mov    eax,0x1
  15.  8048580:       eb 6b                   jmp    80485ed <main+0x96>
  16.  8048582:       8b 45 0c                mov    eax,DWORD PTR [ebp+0xc]
  17.  8048585:       83 c0 04                add    eax,0x4
  18.  8048588:       8b 00                   mov    eax,DWORD PTR [eax]
  19.  804858a:       89 04 24                mov    DWORD PTR [esp],eax
  20.  804858d:       e8 5a ff ff ff          call   80484ec <check>
  21.  8048592:       83 f8 01                cmp    eax,0x1
  22.  8048595:       75 32                   jne    80485c9 <main+0x72>
  23.  8048597:       c7 04 24 96 86 04 08    mov    DWORD PTR [esp],0x8048696
  24.  804859e:       e8 1d fe ff ff          call   80483c0 <puts@plt>
  25.  80485a3:       c7 04 24 b4 86 04 08    mov    DWORD PTR [esp],0x80486b4
  26.  80485aa:       e8 11 fe ff ff          call   80483c0 <puts@plt>
  27.  80485af:       c7 04 24 db 86 04 08    mov    DWORD PTR [esp],0x80486db
  28.  80485b6:       e8 05 fe ff ff          call   80483c0 <puts@plt>
  29.  80485bb:       c7 04 24 f8 86 04 08    mov    DWORD PTR [esp],0x80486f8
  30.  80485c2:       e8 09 fe ff ff          call   80483d0 <system@plt>
  31.  80485c7:       eb 24                   jmp    80485ed <main+0x96>
  32.  80485c9:       c7 04 24 96 86 04 08    mov    DWORD PTR [esp],0x8048696
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement