Advertisement
johnburn

Untitled

Jul 1st, 2011
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. ./wargamesmy2010_bin100:     file format elf32-i386
  3.  
  4.  
  5. Disassembly of section .text:
  6.  
  7. 08048390 <.text>:
  8.  8048390:   31 ed                   xor    %ebp,%ebp
  9.  8048392:   5e                      pop    %esi
  10.  8048393:   89 e1                   mov    %esp,%ecx
  11.  8048395:   83 e4 f0                and    $0xfffffff0,%esp
  12.  8048398:   50                      push   %eax
  13.  8048399:   54                      push   %esp
  14.  804839a:   52                      push   %edx
  15.  804839b:   68 40 85 04 08          push   $0x8048540
  16.  80483a0:   68 e0 84 04 08          push   $0x80484e0
  17.  80483a5:   51                      push   %ecx
  18.  80483a6:   56                      push   %esi
  19.  80483a7:   68 44 84 04 08          push   $0x8048444
  20.  80483ac:   e8 9b ff ff ff          call   804834c <__libc_start_main@plt>
  21.  80483b1:   f4                      hlt    
  22.  80483b2:   90                      nop
  23.  80483b3:   90                      nop
  24.  80483b4:   90                      nop
  25.  80483b5:   90                      nop
  26.  80483b6:   90                      nop
  27.  80483b7:   90                      nop
  28.  80483b8:   90                      nop
  29.  80483b9:   90                      nop
  30.  80483ba:   90                      nop
  31.  80483bb:   90                      nop
  32.  80483bc:   90                      nop
  33.  80483bd:   90                      nop
  34.  80483be:   90                      nop
  35.  80483bf:   90                      nop
  36.  80483c0:   55                      push   %ebp
  37.  80483c1:   89 e5                   mov    %esp,%ebp
  38.  80483c3:   53                      push   %ebx
  39.  80483c4:   83 ec 04                sub    $0x4,%esp
  40.  80483c7:   80 3d 08 b2 04 08 00    cmpb   $0x0,0x804b208
  41.  80483ce:   75 3f                   jne    804840f <rand@plt+0x93>
  42.  80483d0:   a1 0c b2 04 08          mov    0x804b20c,%eax
  43.  80483d5:   bb 20 af 04 08          mov    $0x804af20,%ebx
  44.  80483da:   81 eb 1c af 04 08       sub    $0x804af1c,%ebx
  45.  80483e0:   c1 fb 02                sar    $0x2,%ebx
  46.  80483e3:   83 eb 01                sub    $0x1,%ebx
  47.  80483e6:   39 d8                   cmp    %ebx,%eax
  48.  80483e8:   73 1e                   jae    8048408 <rand@plt+0x8c>
  49.  80483ea:   8d b6 00 00 00 00       lea    0x0(%esi),%esi
  50.  80483f0:   83 c0 01                add    $0x1,%eax
  51.  80483f3:   a3 0c b2 04 08          mov    %eax,0x804b20c
  52.  80483f8:   ff 14 85 1c af 04 08    call   *0x804af1c(,%eax,4)
  53.  80483ff:   a1 0c b2 04 08          mov    0x804b20c,%eax
  54.  8048404:   39 d8                   cmp    %ebx,%eax
  55.  8048406:   72 e8                   jb     80483f0 <rand@plt+0x74>
  56.  8048408:   c6 05 08 b2 04 08 01    movb   $0x1,0x804b208
  57.  804840f:   83 c4 04                add    $0x4,%esp
  58.  8048412:   5b                      pop    %ebx
  59.  8048413:   5d                      pop    %ebp
  60.  8048414:   c3                      ret    
  61.  8048415:   8d 74 26 00             lea    0x0(%esi,%eiz,1),%esi
  62.  8048419:   8d bc 27 00 00 00 00    lea    0x0(%edi,%eiz,1),%edi
  63.  8048420:   55                      push   %ebp
  64.  8048421:   89 e5                   mov    %esp,%ebp
  65.  8048423:   83 ec 18                sub    $0x18,%esp
  66.  8048426:   a1 24 af 04 08          mov    0x804af24,%eax
  67.  804842b:   85 c0                   test   %eax,%eax
  68.  804842d:   74 12                   je     8048441 <rand@plt+0xc5>
  69.  804842f:   b8 00 00 00 00          mov    $0x0,%eax
  70.  8048434:   85 c0                   test   %eax,%eax
  71.  8048436:   74 09                   je     8048441 <rand@plt+0xc5>
  72.  8048438:   c7 04 24 24 af 04 08    movl   $0x804af24,(%esp)
  73.  804843f:   ff d0                   call   *%eax
  74.  8048441:   c9                      leave  
  75.  8048442:   c3                      ret    
  76.  8048443:   90                      nop
  77.  8048444:   55                      push   %ebp
  78.  8048445:   89 e5                   mov    %esp,%ebp
  79.  8048447:   83 e4 f0                and    $0xfffffff0,%esp
  80.  804844a:   83 ec 20                sub    $0x20,%esp
  81.  804844d:   c7 44 24 18 00 00 00    movl   $0x0,0x18(%esp)
  82.  8048454:   00
  83.  8048455:   c7 04 24 00 00 00 00    movl   $0x0,(%esp)
  84.  804845c:   e8 0b ff ff ff          call   804836c <time@plt>
  85.  8048461:   89 04 24                mov    %eax,(%esp)
  86.  8048464:   e8 c3 fe ff ff          call   804832c <srand@plt>
  87.  8048469:   c7 44 24 18 39 00 00    movl   $0x39,0x18(%esp)
  88.  8048470:   00
  89.  8048471:   e8 06 ff ff ff          call   804837c <rand@plt>
  90.  8048476:   89 c2                   mov    %eax,%edx
  91.  8048478:   c1 fa 1f                sar    $0x1f,%edx
  92.  804847b:   f7 7c 24 18             idivl  0x18(%esp)
  93.  804847f:   89 54 24 14             mov    %edx,0x14(%esp)
  94.  8048483:   c7 44 24 1c 00 00 00    movl   $0x0,0x1c(%esp)
  95.  804848a:   00
  96.  804848b:   eb 41                   jmp    80484ce <rand@plt+0x152>
  97.  804848d:   8b 44 24 1c             mov    0x1c(%esp),%eax
  98.  8048491:   8b 04 c5 40 b0 04 08    mov    0x804b040(,%eax,8),%eax
  99.  8048498:   3b 44 24 14             cmp    0x14(%esp),%eax
  100.  804849c:   75 2b                   jne    80484c9 <rand@plt+0x14d>
  101.  804849e:   8b 44 24 1c             mov    0x1c(%esp),%eax
  102.  80484a2:   8b 0c c5 44 b0 04 08    mov    0x804b044(,%eax,8),%ecx
  103.  80484a9:   8b 44 24 1c             mov    0x1c(%esp),%eax
  104.  80484ad:   8b 14 c5 40 b0 04 08    mov    0x804b040(,%eax,8),%edx
  105.  80484b4:   b8 94 9e 04 08          mov    $0x8049e94,%eax
  106.  80484b9:   89 4c 24 08             mov    %ecx,0x8(%esp)
  107.  80484bd:   89 54 24 04             mov    %edx,0x4(%esp)
  108.  80484c1:   89 04 24                mov    %eax,(%esp)
  109.  80484c4:   e8 93 fe ff ff          call   804835c <printf@plt>
  110.  80484c9:   83 44 24 1c 01          addl   $0x1,0x1c(%esp)
  111.  80484ce:   8b 44 24 1c             mov    0x1c(%esp),%eax
  112.  80484d2:   3b 44 24 18             cmp    0x18(%esp),%eax
  113.  80484d6:   7c b5                   jl     804848d <rand@plt+0x111>
  114.  80484d8:   b8 00 00 00 00          mov    $0x0,%eax
  115.  80484dd:   c9                      leave  
  116.  80484de:   c3                      ret    
  117.  80484df:   90                      nop
  118.  80484e0:   55                      push   %ebp
  119.  80484e1:   89 e5                   mov    %esp,%ebp
  120.  80484e3:   57                      push   %edi
  121.  80484e4:   56                      push   %esi
  122.  80484e5:   53                      push   %ebx
  123.  80484e6:   e8 5a 00 00 00          call   8048545 <rand@plt+0x1c9>
  124.  80484eb:   81 c3 09 2b 00 00       add    $0x2b09,%ebx
  125.  80484f1:   83 ec 1c                sub    $0x1c,%esp
  126.  80484f4:   e8 f3 fd ff ff          call   80482ec <srand@plt-0x40>
  127.  80484f9:   8d bb 20 ff ff ff       lea    -0xe0(%ebx),%edi
  128.  80484ff:   8d 83 20 ff ff ff       lea    -0xe0(%ebx),%eax
  129.  8048505:   29 c7                   sub    %eax,%edi
  130.  8048507:   c1 ff 02                sar    $0x2,%edi
  131.  804850a:   85 ff                   test   %edi,%edi
  132.  804850c:   74 24                   je     8048532 <rand@plt+0x1b6>
  133.  804850e:   31 f6                   xor    %esi,%esi
  134.  8048510:   8b 45 10                mov    0x10(%ebp),%eax
  135.  8048513:   89 44 24 08             mov    %eax,0x8(%esp)
  136.  8048517:   8b 45 0c                mov    0xc(%ebp),%eax
  137.  804851a:   89 44 24 04             mov    %eax,0x4(%esp)
  138.  804851e:   8b 45 08                mov    0x8(%ebp),%eax
  139.  8048521:   89 04 24                mov    %eax,(%esp)
  140.  8048524:   ff 94 b3 20 ff ff ff    call   *-0xe0(%ebx,%esi,4)
  141.  804852b:   83 c6 01                add    $0x1,%esi
  142.  804852e:   39 fe                   cmp    %edi,%esi
  143.  8048530:   72 de                   jb     8048510 <rand@plt+0x194>
  144.  8048532:   83 c4 1c                add    $0x1c,%esp
  145.  8048535:   5b                      pop    %ebx
  146.  8048536:   5e                      pop    %esi
  147.  8048537:   5f                      pop    %edi
  148.  8048538:   5d                      pop    %ebp
  149.  8048539:   c3                      ret    
  150.  804853a:   8d b6 00 00 00 00       lea    0x0(%esi),%esi
  151.  8048540:   55                      push   %ebp
  152.  8048541:   89 e5                   mov    %esp,%ebp
  153.  8048543:   5d                      pop    %ebp
  154.  8048544:   c3                      ret    
  155.  8048545:   8b 1c 24                mov    (%esp),%ebx
  156.  8048548:   c3                      ret    
  157.  8048549:   90                      nop
  158.  804854a:   90                      nop
  159.  804854b:   90                      nop
  160.  804854c:   90                      nop
  161.  804854d:   90                      nop
  162.  804854e:   90                      nop
  163.  804854f:   90                      nop
  164.  8048550:   55                      push   %ebp
  165.  8048551:   89 e5                   mov    %esp,%ebp
  166.  8048553:   53                      push   %ebx
  167.  8048554:   83 ec 04                sub    $0x4,%esp
  168.  8048557:   a1 14 af 04 08          mov    0x804af14,%eax
  169.  804855c:   83 f8 ff                cmp    $0xffffffff,%eax
  170.  804855f:   74 13                   je     8048574 <rand@plt+0x1f8>
  171.  8048561:   bb 14 af 04 08          mov    $0x804af14,%ebx
  172.  8048566:   66 90                   xchg   %ax,%ax
  173.  8048568:   83 eb 04                sub    $0x4,%ebx
  174.  804856b:   ff d0                   call   *%eax
  175.  804856d:   8b 03                   mov    (%ebx),%eax
  176.  804856f:   83 f8 ff                cmp    $0xffffffff,%eax
  177.  8048572:   75 f4                   jne    8048568 <rand@plt+0x1ec>
  178.  8048574:   83 c4 04                add    $0x4,%esp
  179.  8048577:   5b                      pop    %ebx
  180.  8048578:   5d                      pop    %ebp
  181.  8048579:   c3                      ret    
  182.  804857a:   90                      nop
  183.  804857b:   90                      nop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement