Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ./wargamesmy2010_bin100: file format elf32-i386
- Disassembly of section .text:
- 08048390 <.text>:
- 8048390: 31 ed xor %ebp,%ebp
- 8048392: 5e pop %esi
- 8048393: 89 e1 mov %esp,%ecx
- 8048395: 83 e4 f0 and $0xfffffff0,%esp
- 8048398: 50 push %eax
- 8048399: 54 push %esp
- 804839a: 52 push %edx
- 804839b: 68 40 85 04 08 push $0x8048540
- 80483a0: 68 e0 84 04 08 push $0x80484e0
- 80483a5: 51 push %ecx
- 80483a6: 56 push %esi
- 80483a7: 68 44 84 04 08 push $0x8048444
- 80483ac: e8 9b ff ff ff call 804834c <__libc_start_main@plt>
- 80483b1: f4 hlt
- 80483b2: 90 nop
- 80483b3: 90 nop
- 80483b4: 90 nop
- 80483b5: 90 nop
- 80483b6: 90 nop
- 80483b7: 90 nop
- 80483b8: 90 nop
- 80483b9: 90 nop
- 80483ba: 90 nop
- 80483bb: 90 nop
- 80483bc: 90 nop
- 80483bd: 90 nop
- 80483be: 90 nop
- 80483bf: 90 nop
- 80483c0: 55 push %ebp
- 80483c1: 89 e5 mov %esp,%ebp
- 80483c3: 53 push %ebx
- 80483c4: 83 ec 04 sub $0x4,%esp
- 80483c7: 80 3d 08 b2 04 08 00 cmpb $0x0,0x804b208
- 80483ce: 75 3f jne 804840f <rand@plt+0x93>
- 80483d0: a1 0c b2 04 08 mov 0x804b20c,%eax
- 80483d5: bb 20 af 04 08 mov $0x804af20,%ebx
- 80483da: 81 eb 1c af 04 08 sub $0x804af1c,%ebx
- 80483e0: c1 fb 02 sar $0x2,%ebx
- 80483e3: 83 eb 01 sub $0x1,%ebx
- 80483e6: 39 d8 cmp %ebx,%eax
- 80483e8: 73 1e jae 8048408 <rand@plt+0x8c>
- 80483ea: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
- 80483f0: 83 c0 01 add $0x1,%eax
- 80483f3: a3 0c b2 04 08 mov %eax,0x804b20c
- 80483f8: ff 14 85 1c af 04 08 call *0x804af1c(,%eax,4)
- 80483ff: a1 0c b2 04 08 mov 0x804b20c,%eax
- 8048404: 39 d8 cmp %ebx,%eax
- 8048406: 72 e8 jb 80483f0 <rand@plt+0x74>
- 8048408: c6 05 08 b2 04 08 01 movb $0x1,0x804b208
- 804840f: 83 c4 04 add $0x4,%esp
- 8048412: 5b pop %ebx
- 8048413: 5d pop %ebp
- 8048414: c3 ret
- 8048415: 8d 74 26 00 lea 0x0(%esi,%eiz,1),%esi
- 8048419: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
- 8048420: 55 push %ebp
- 8048421: 89 e5 mov %esp,%ebp
- 8048423: 83 ec 18 sub $0x18,%esp
- 8048426: a1 24 af 04 08 mov 0x804af24,%eax
- 804842b: 85 c0 test %eax,%eax
- 804842d: 74 12 je 8048441 <rand@plt+0xc5>
- 804842f: b8 00 00 00 00 mov $0x0,%eax
- 8048434: 85 c0 test %eax,%eax
- 8048436: 74 09 je 8048441 <rand@plt+0xc5>
- 8048438: c7 04 24 24 af 04 08 movl $0x804af24,(%esp)
- 804843f: ff d0 call *%eax
- 8048441: c9 leave
- 8048442: c3 ret
- 8048443: 90 nop
- 8048444: 55 push %ebp
- 8048445: 89 e5 mov %esp,%ebp
- 8048447: 83 e4 f0 and $0xfffffff0,%esp
- 804844a: 83 ec 20 sub $0x20,%esp
- 804844d: c7 44 24 18 00 00 00 movl $0x0,0x18(%esp)
- 8048454: 00
- 8048455: c7 04 24 00 00 00 00 movl $0x0,(%esp)
- 804845c: e8 0b ff ff ff call 804836c <time@plt>
- 8048461: 89 04 24 mov %eax,(%esp)
- 8048464: e8 c3 fe ff ff call 804832c <srand@plt>
- 8048469: c7 44 24 18 39 00 00 movl $0x39,0x18(%esp)
- 8048470: 00
- 8048471: e8 06 ff ff ff call 804837c <rand@plt>
- 8048476: 89 c2 mov %eax,%edx
- 8048478: c1 fa 1f sar $0x1f,%edx
- 804847b: f7 7c 24 18 idivl 0x18(%esp)
- 804847f: 89 54 24 14 mov %edx,0x14(%esp)
- 8048483: c7 44 24 1c 00 00 00 movl $0x0,0x1c(%esp)
- 804848a: 00
- 804848b: eb 41 jmp 80484ce <rand@plt+0x152>
- 804848d: 8b 44 24 1c mov 0x1c(%esp),%eax
- 8048491: 8b 04 c5 40 b0 04 08 mov 0x804b040(,%eax,8),%eax
- 8048498: 3b 44 24 14 cmp 0x14(%esp),%eax
- 804849c: 75 2b jne 80484c9 <rand@plt+0x14d>
- 804849e: 8b 44 24 1c mov 0x1c(%esp),%eax
- 80484a2: 8b 0c c5 44 b0 04 08 mov 0x804b044(,%eax,8),%ecx
- 80484a9: 8b 44 24 1c mov 0x1c(%esp),%eax
- 80484ad: 8b 14 c5 40 b0 04 08 mov 0x804b040(,%eax,8),%edx
- 80484b4: b8 94 9e 04 08 mov $0x8049e94,%eax
- 80484b9: 89 4c 24 08 mov %ecx,0x8(%esp)
- 80484bd: 89 54 24 04 mov %edx,0x4(%esp)
- 80484c1: 89 04 24 mov %eax,(%esp)
- 80484c4: e8 93 fe ff ff call 804835c <printf@plt>
- 80484c9: 83 44 24 1c 01 addl $0x1,0x1c(%esp)
- 80484ce: 8b 44 24 1c mov 0x1c(%esp),%eax
- 80484d2: 3b 44 24 18 cmp 0x18(%esp),%eax
- 80484d6: 7c b5 jl 804848d <rand@plt+0x111>
- 80484d8: b8 00 00 00 00 mov $0x0,%eax
- 80484dd: c9 leave
- 80484de: c3 ret
- 80484df: 90 nop
- 80484e0: 55 push %ebp
- 80484e1: 89 e5 mov %esp,%ebp
- 80484e3: 57 push %edi
- 80484e4: 56 push %esi
- 80484e5: 53 push %ebx
- 80484e6: e8 5a 00 00 00 call 8048545 <rand@plt+0x1c9>
- 80484eb: 81 c3 09 2b 00 00 add $0x2b09,%ebx
- 80484f1: 83 ec 1c sub $0x1c,%esp
- 80484f4: e8 f3 fd ff ff call 80482ec <srand@plt-0x40>
- 80484f9: 8d bb 20 ff ff ff lea -0xe0(%ebx),%edi
- 80484ff: 8d 83 20 ff ff ff lea -0xe0(%ebx),%eax
- 8048505: 29 c7 sub %eax,%edi
- 8048507: c1 ff 02 sar $0x2,%edi
- 804850a: 85 ff test %edi,%edi
- 804850c: 74 24 je 8048532 <rand@plt+0x1b6>
- 804850e: 31 f6 xor %esi,%esi
- 8048510: 8b 45 10 mov 0x10(%ebp),%eax
- 8048513: 89 44 24 08 mov %eax,0x8(%esp)
- 8048517: 8b 45 0c mov 0xc(%ebp),%eax
- 804851a: 89 44 24 04 mov %eax,0x4(%esp)
- 804851e: 8b 45 08 mov 0x8(%ebp),%eax
- 8048521: 89 04 24 mov %eax,(%esp)
- 8048524: ff 94 b3 20 ff ff ff call *-0xe0(%ebx,%esi,4)
- 804852b: 83 c6 01 add $0x1,%esi
- 804852e: 39 fe cmp %edi,%esi
- 8048530: 72 de jb 8048510 <rand@plt+0x194>
- 8048532: 83 c4 1c add $0x1c,%esp
- 8048535: 5b pop %ebx
- 8048536: 5e pop %esi
- 8048537: 5f pop %edi
- 8048538: 5d pop %ebp
- 8048539: c3 ret
- 804853a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
- 8048540: 55 push %ebp
- 8048541: 89 e5 mov %esp,%ebp
- 8048543: 5d pop %ebp
- 8048544: c3 ret
- 8048545: 8b 1c 24 mov (%esp),%ebx
- 8048548: c3 ret
- 8048549: 90 nop
- 804854a: 90 nop
- 804854b: 90 nop
- 804854c: 90 nop
- 804854d: 90 nop
- 804854e: 90 nop
- 804854f: 90 nop
- 8048550: 55 push %ebp
- 8048551: 89 e5 mov %esp,%ebp
- 8048553: 53 push %ebx
- 8048554: 83 ec 04 sub $0x4,%esp
- 8048557: a1 14 af 04 08 mov 0x804af14,%eax
- 804855c: 83 f8 ff cmp $0xffffffff,%eax
- 804855f: 74 13 je 8048574 <rand@plt+0x1f8>
- 8048561: bb 14 af 04 08 mov $0x804af14,%ebx
- 8048566: 66 90 xchg %ax,%ax
- 8048568: 83 eb 04 sub $0x4,%ebx
- 804856b: ff d0 call *%eax
- 804856d: 8b 03 mov (%ebx),%eax
- 804856f: 83 f8 ff cmp $0xffffffff,%eax
- 8048572: 75 f4 jne 8048568 <rand@plt+0x1ec>
- 8048574: 83 c4 04 add $0x4,%esp
- 8048577: 5b pop %ebx
- 8048578: 5d pop %ebp
- 8048579: c3 ret
- 804857a: 90 nop
- 804857b: 90 nop
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement