Guest User

Untitled

a guest
Aug 19th, 2018
206
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Dump of assembler code for function phase_6:
  2.    0x08048bb7 <+0>: push   %ebp
  3.    0x08048bb8 <+1>: mov    %esp,%ebp
  4.    0x08048bba <+3>: push   %edi
  5.    0x08048bbb <+4>: push   %esi
  6.    0x08048bbc <+5>: push   %ebx
  7. => 0x08048bbd <+6>: sub    $0x5c,%esp
  8.    0x08048bc0 <+9>: lea    -0x30(%ebp),%eax
  9.    0x08048bc3 <+12>:    mov    %eax,0x4(%esp)
  10.    0x08048bc7 <+16>:    mov    0x8(%ebp),%eax
  11.    0x08048bca <+19>:    mov    %eax,(%esp)
  12.    0x08048bcd <+22>:    call   0x80493fc <read_six_numbers>
  13.    0x08048bd2 <+27>:    mov    $0x0,%esi
  14.    0x08048bd7 <+32>:    lea    -0x30(%ebp),%edi
  15.    0x08048bda <+35>:    mov    (%edi,%esi,4),%eax
  16.    0x08048bdd <+38>:    sub    $0x1,%eax
  17.    0x08048be0 <+41>:    cmp    $0x5,%eax
  18.    0x08048be3 <+44>:    jbe    0x8048bea <phase_6+51>
  19.    0x08048be5 <+46>:    call   0x80493a2 <explode_bomb>
  20.    0x08048bea <+51>:    add    $0x1,%esi
  21.    0x08048bed <+54>:    cmp    $0x6,%esi
  22.    0x08048bf0 <+57>:    je     0x8048c14 <phase_6+93>
  23.    0x08048bf2 <+59>:    lea    (%edi,%esi,4),%ebx
  24.    0x08048bf5 <+62>:    mov    %esi,-0x4c(%ebp)
  25.    0x08048bf8 <+65>:    mov    -0x4(%edi,%esi,4),%eax
  26.    0x08048bfc <+69>:    cmp    (%ebx),%eax
  27.    0x08048bfe <+71>:    jne    0x8048c05 <phase_6+78>
  28.    0x08048c00 <+73>:    call   0x80493a2 <explode_bomb>
  29.    0x08048c05 <+78>:    addl   $0x1,-0x4c(%ebp)
  30.    0x08048c09 <+82>:    add    $0x4,%ebx
  31.    0x08048c0c <+85>:    cmpl   $0x5,-0x4c(%ebp)
  32.    0x08048c10 <+89>:    jle    0x8048bf8 <phase_6+65>
  33.    0x08048c12 <+91>:    jmp    0x8048bda <phase_6+35>
  34.    0x08048c14 <+93>:    mov    $0x0,%ebx
  35.    0x08048c19 <+98>:    lea    -0x30(%ebp),%edi
  36.    0x08048c1c <+101>:   jmp    0x8048c34 <phase_6+125>
  37.    0x08048c1e <+103>:   mov    0x8(%edx),%edx
  38.    0x08048c21 <+106>:   add    $0x1,%eax
  39.    0x08048c24 <+109>:   cmp    %ecx,%eax
  40.    0x08048c26 <+111>:   jne    0x8048c1e <phase_6+103>
  41.    0x08048c28 <+113>:   mov    %edx,-0x48(%ebp,%esi,4)
  42.    0x08048c2c <+117>:   add    $0x1,%ebx
  43.    0x08048c2f <+120>:   cmp    $0x6,%ebx
  44.    0x08048c32 <+123>:   je     0x8048c4a <phase_6+147>
  45.    0x08048c34 <+125>:   mov    %ebx,%esi
  46.    0x08048c36 <+127>:   mov    (%edi,%ebx,4),%ecx
  47.    0x08048c39 <+130>:   mov    $0x1,%eax
  48.    0x08048c3e <+135>:   mov    $0x804b4dc,%edx
  49.    0x08048c43 <+140>:   cmp    $0x1,%ecx
  50.    0x08048c46 <+143>:   jg     0x8048c1e <phase_6+103>
  51.    0x08048c48 <+145>:   jmp    0x8048c28 <phase_6+113>
  52.    0x08048c4a <+147>:   mov    -0x48(%ebp),%ebx
  53.    0x08048c4d <+150>:   mov    -0x44(%ebp),%eax
  54.    0x08048c50 <+153>:   mov    %eax,0x8(%ebx)
  55.    0x08048c53 <+156>:   mov    -0x40(%ebp),%edx
  56.    0x08048c56 <+159>:   mov    %edx,0x8(%eax)
  57.    0x08048c59 <+162>:   mov    -0x3c(%ebp),%eax
  58.    0x08048c5c <+165>:   mov    %eax,0x8(%edx)
  59.    0x08048c5f <+168>:   mov    -0x38(%ebp),%edx
  60.    0x08048c62 <+171>:   mov    %edx,0x8(%eax)
  61.    0x08048c65 <+174>:   mov    -0x34(%ebp),%eax
  62.    0x08048c68 <+177>:   mov    %eax,0x8(%edx)
  63.    0x08048c6b <+180>:   movl   $0x0,0x8(%eax)
  64.    0x08048c72 <+187>:   mov    $0x0,%esi
  65.    0x08048c77 <+192>:   mov    0x8(%ebx),%eax
  66.    0x08048c7a <+195>:   mov    (%ebx),%edx
  67.    0x08048c7c <+197>:   cmp    (%eax),%edx
  68.    0x08048c7e <+199>:   jge    0x8048c85 <phase_6+206>
  69.    0x08048c80 <+201>:   call   0x80493a2 <explode_bomb>
  70.    0x08048c85 <+206>:   mov    0x8(%ebx),%ebx
  71.    0x08048c88 <+209>:   add    $0x1,%esi
  72.    0x08048c8b <+212>:   cmp    $0x5,%esi
  73.    0x08048c8e <+215>:   jne    0x8048c77 <phase_6+192>
  74.    0x08048c90 <+217>:   add    $0x5c,%esp
  75.    0x08048c93 <+220>:   pop    %ebx
  76.    0x08048c94 <+221>:   pop    %esi
  77.    0x08048c95 <+222>:   pop    %edi
  78.    0x08048c96 <+223>:   pop    %ebp
  79.    0x08048c97 <+224>:   ret    
  80. End of assembler dump.
Add Comment
Please, Sign In to add comment