Skip to content

Instantly share code, notes, and snippets.

@creationix
Created March 8, 2012 17:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save creationix/099c39c1abe3288e67b1 to your computer and use it in GitHub Desktop.
Save creationix/099c39c1abe3288e67b1 to your computer and use it in GitHub Desktop.
Dump of assembler code from 0x403000 to 0x403100:
0x00403000: dec %esp
0x00403001: mov %edi,%edx
0x00403003: push %ebp
0x00403004: push %ebx
0x00403005: inc %ecx
0x00403006: push %ebx
0x00403007: inc %ecx
0x00403008: push %esp
0x00403009: inc %ecx
0x0040300a: push %ebp
0x0040300b: inc %ecx
0x0040300c: push %esi
0x0040300d: inc %ecx
0x0040300e: push %edi
0x0040300f: dec %ecx
0x00403010: mov $0x80a5058,%ebx
0x00403015: add %al,(%eax)
0x00403017: add %al,(%eax)
0x00403019: dec %ebp
0x0040301a: mov 0x0(%ebx),%ebx
0x00403020: inc %ecx
0x00403021: push %ebx
0x00403022: push $0xfeedbeef
0x00403027: dec %esp
0x00403028: mov %esi,%ebx
0x0040302a: dec %ecx
0x0040302b: shr $0x1,%ebx
0x0040302e: dec %eax
0x0040302f: mov %edx,%ebx
0x00403031: dec %ecx
0x00403032: test $0x1,%bl
0x00403035: je 0x403040
0x0040303b: push $0x0
0x00403040: jmp 0x403057
0x00403045: dec %eax
=> 0x00403046: mov 0x0(%ebx),%eax
0x0040304c: push %eax
0x0040304d: dec %ecx
0x0040304e: dec %ebx
0x00403050: dec %eax
0x00403051: add $0x8,%ebx
0x00403057: dec %ecx
0x00403058: cmp $0x0,%ebx
0x0040305e: jne 0x403045
0x00403064: dec %esp
0x00403065: mov %ecx,%ebx
0x00403067: dec %ecx
0x00403068: mov %eax,%edi
0x0040306a: dec %eax
0x0040306b: xor %ebp,%ebp
0x0040306d: dec %eax
0x0040306e: xor %eax,%eax
0x00403070: dec %eax
0x00403071: xor %ebx,%ebx
0x00403073: dec %eax
0x00403074: xor %ecx,%ecx
0x00403076: dec %eax
0x00403077: xor %edx,%edx
0x00403079: dec %ebp
0x0040307a: xor %eax,%eax
0x0040307c: dec %ebp
0x0040307d: xor %ecx,%ecx
0x0040307f: dec %ebp
0x00403080: xor %esp,%esp
0x00403082: dec %ebp
0x00403083: xor %ebp,%ebp
0x00403085: dec %ebp
0x00403086: xor %esi,%esi
0x00403088: dec %ebp
0x00403089: xor %edi,%edi
0x0040308b: dec %ecx
0x0040308c: call *%ebx
0x0040308e: nop
0x0040308f: dec %eax
0x00403090: shr $0x1,%esi
0x00403093: dec %eax
0x00403094: test $0x1,%dh
0x00403097: je 0x4030a0
0x0040309d: dec %eax
0x0040309e: inc %esi
0x004030a0: dec %eax
0x004030a1: shl $0x3,%esi
0x004030a4: dec %eax
0x004030a5: add %esi,%esp
0x004030a7: dec %eax
0x004030a8: xor %esi,%esi
0x004030aa: dec %eax
0x004030ab: add $0x10,%esp
0x004030b1: inc %ecx
0x004030b2: pop %edi
0x004030b3: inc %ecx
0x004030b4: pop %esi
0x004030b5: inc %ecx
0x004030b6: pop %ebp
0x004030b7: inc %ecx
0x004030b8: pop %esp
0x004030b9: inc %ecx
0x004030ba: pop %ebx
0x004030bb: pop %ebx
0x004030bc: pop %ebp
0x004030bd: ret
0x004030be: int3
0x004030bf: int3
0x004030c0: push %ebp
0x004030c1: dec %eax
0x004030c2: mov %esp,%ebp
0x004030c4: push $0x0
0x004030c9: push %ebx
0x004030ca: dec %ecx
0x004030cb: mov $0x80a500c,%ebx
0x004030d0: add %al,(%eax)
0x004030d2: add %al,(%eax)
0x004030d4: dec %ebp
0x004030d5: mov 0x0(%ebx),%ebx
0x004030db: dec %ecx
0x004030dc: mov 0x0(%ebx),%eax
0x004030e2: dec %eax
0x004030e3: mov 0x18(%ebp),%ebx
0x004030e9: dec %eax
0x004030ea: shr $0x1,%ebx
0x004030ed: dec %eax
0x004030ee: add %eax,%ebx
0x004030f0: jb 0x40313e
0x004030f6: dec %ecx
0x004030f7: mov $0x80a5010,%ebx
0x004030fc: add %al,(%eax)
0x004030fe: add %al,(%eax)
Program received signal SIGSEGV, Segmentation fault.
0x00403046 in ?? ()
(gdb) bt
#0 0x00403046 in ?? ()
#1 0x04d175bf in ?? ()
#2 0x0a50e008 in ?? ()
#3 0xde8a6c08 in ?? ()
#4 0xde8008b7 in ?? ()
#5 0x000000b7 in ?? ()
#6 0x00000000 in ?? ()
(gdb)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment