Advertisement
Guest User

Untitled

a guest
Nov 7th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
GDB 2.54 KB | None | 0 0
  1. Dump of assembler code for function main:
  2.    0x080489db <+0>: lea    0x4(%esp),%ecx
  3.    0x080489df <+4>: and    $0xfffffff0,%esp
  4.    0x080489e2 <+7>: pushl  -0x4(%ecx)
  5.    0x080489e5 <+10>:    push   %ebp
  6.    0x080489e6 <+11>:    mov    %esp,%ebp
  7.    0x080489e8 <+13>:    push   %ebx
  8.    0x080489e9 <+14>:    push   %ecx
  9.    0x080489ea <+15>:    mov    (%ecx),%eax
  10.    0x080489ec <+17>:    mov    0x4(%ecx),%ebx
  11.    0x080489ef <+20>:    cmp    $0x1,%eax
  12.    0x080489f2 <+23>:    jne    0x8048a00 <main+37>
  13.    0x080489f4 <+25>:    mov    0x804d7e0,%eax
  14.    0x080489f9 <+30>:    mov    %eax,0x804d7f0
  15.    0x080489fe <+35>:    jmp    0x8048a5b <main+128>
  16.    0x08048a00 <+37>:    cmp    $0x2,%eax
  17.    0x08048a03 <+40>:    jne    0x8048a3e <main+99>
  18.    0x08048a05 <+42>:    sub    $0x8,%esp
  19.    0x08048a08 <+45>:    push   $0x8049fe0
  20.    0x08048a0d <+50>:    pushl  0x4(%ebx)
  21.    0x08048a10 <+53>:    call   0x8048820 <fopen@plt>
  22.    0x08048a15 <+58>:    mov    %eax,0x804d7f0
  23.    0x08048a1a <+63>:    add    $0x10,%esp
  24.    0x08048a1d <+66>:    test   %eax,%eax
  25.    0x08048a1f <+68>:    jne    0x8048a5b <main+128>
  26.    0x08048a21 <+70>:    pushl  0x4(%ebx)
  27.    0x08048a24 <+73>:    pushl  (%ebx)
  28.    0x08048a26 <+75>:    push   $0x8049fe2
  29.    0x08048a2b <+80>:    push   $0x1
  30.    0x08048a2d <+82>:    call   0x8048840 <__printf_chk@plt>
  31.    0x08048a32 <+87>:    movl   $0x8,(%esp)
  32.    0x08048a39 <+94>:    call   0x80487e0 <exit@plt>
  33.    0x08048a3e <+99>:    sub    $0x4,%esp
  34.    0x08048a41 <+102>:   pushl  (%ebx)
  35.    0x08048a43 <+104>:   push   $0x8049fff
  36.    0x08048a48 <+109>:   push   $0x1
  37.    0x08048a4a <+111>:   call   0x8048840 <__printf_chk@plt>
  38.    0x08048a4f <+116>:   movl   $0x8,(%esp)
  39.    0x08048a56 <+123>:   call   0x80487e0 <exit@plt>
  40.    0x08048a5b <+128>:   call   0x8049031 <initialize_bomb>
  41.    0x08048a60 <+133>:   sub    $0xc,%esp
  42.    0x08048a63 <+136>:   push   $0x804a01c
  43.    0x08048a68 <+141>:   call   0x80487c0 <puts@plt>
  44.    0x08048a6d <+146>:   movl   $0x804a05c,(%esp)
  45.    0x08048a74 <+153>:   call   0x80487c0 <puts@plt>
  46.    0x08048a79 <+158>:   call   0x8049288 <read_line>
  47.    0x08048a7e <+163>:   mov    %eax,(%esp)
  48.    0x08048a81 <+166>:   call   0x8048b3f <phase_1>
  49.    0x08048a86 <+171>:   call   0x8049387 <phase_defused>
  50.    0x08048a8b <+176>:   movl   $0x804a090,(%esp)
  51.    0x08048a92 <+183>:   call   0x80487c0 <puts@plt>
  52.    0x08048a97 <+188>:   call   0x8049288 <read_line>
  53.    0x08048a9c <+193>:   mov    %eax,(%esp)
  54.    0x08048a9f <+196>:   call   0x8048b60 <phase_2>
  55.    0x08048aa4 <+201>:   call   0x8049387 <phase_defused>
  56.    0x08048aa9 <+206>:   movl   $0x804a0d4,(%esp)
  57.    0x08048ab0 <+213>:   call   0x80487c0 <puts@plt>
  58. ---Type <return> to continue, or q <return> to quit---q
  59. Quit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement