Skip to content

Instantly share code, notes, and snippets.

@elektret elektret/keygen.c
Last active Dec 30, 2015

Embed
What would you like to do?
/* COPYRIGHT (C) 1986 Gary S. Brown
* COPYRIGHT (C) 2000 TEAM DVT
*/
#include <stdio.h>
#include <string.h>
#include <stdint.h>
static char output[1024];
static uint32_t crc32_tab[] = {
0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f,
0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,
0x09b64c2b, 0x7eb17cbd, 0xe7b82d07, 0x90bf1d91, 0x1db71064, 0x6ab020f2,
0xf3b97148, 0x84be41de, 0x1adad47d, 0x6ddde4eb, 0xf4d4b551, 0x83d385c7,
0x136c9856, 0x646ba8c0, 0xfd62f97a, 0x8a65c9ec, 0x14015c4f, 0x63066cd9,
0xfa0f3d63, 0x8d080df5, 0x3b6e20c8, 0x4c69105e, 0xd56041e4, 0xa2677172,
0x3c03e4d1, 0x4b04d447, 0xd20d85fd, 0xa50ab56b, 0x35b5a8fa, 0x42b2986c,
0xdbbbc9d6, 0xacbcf940, 0x32d86ce3, 0x45df5c75, 0xdcd60dcf, 0xabd13d59,
0x26d930ac, 0x51de003a, 0xc8d75180, 0xbfd06116, 0x21b4f4b5, 0x56b3c423,
0xcfba9599, 0xb8bda50f, 0x2802b89e, 0x5f058808, 0xc60cd9b2, 0xb10be924,
0x2f6f7c87, 0x58684c11, 0xc1611dab, 0xb6662d3d, 0x76dc4190, 0x01db7106,
0x98d220bc, 0xefd5102a, 0x71b18589, 0x06b6b51f, 0x9fbfe4a5, 0xe8b8d433,
0x7807c9a2, 0x0f00f934, 0x9609a88e, 0xe10e9818, 0x7f6a0dbb, 0x086d3d2d,
0x91646c97, 0xe6635c01, 0x6b6b51f4, 0x1c6c6162, 0x856530d8, 0xf262004e,
0x6c0695ed, 0x1b01a57b, 0x8208f4c1, 0xf50fc457, 0x65b0d9c6, 0x12b7e950,
0x8bbeb8ea, 0xfcb9887c, 0x62dd1ddf, 0x15da2d49, 0x8cd37cf3, 0xfbd44c65,
0x4db26158, 0x3ab551ce, 0xa3bc0074, 0xd4bb30e2, 0x4adfa541, 0x3dd895d7,
0xa4d1c46d, 0xd3d6f4fb, 0x4369e96a, 0x346ed9fc, 0xad678846, 0xda60b8d0,
0x44042d73, 0x33031de5, 0xaa0a4c5f, 0xdd0d7cc9, 0x5005713c, 0x270241aa,
0xbe0b1010, 0xc90c2086, 0x5768b525, 0x206f85b3, 0xb966d409, 0xce61e49f,
0x5edef90e, 0x29d9c998, 0xb0d09822, 0xc7d7a8b4, 0x59b33d17, 0x2eb40d81,
0xb7bd5c3b, 0xc0ba6cad, 0xedb88320, 0x9abfb3b6, 0x03b6e20c, 0x74b1d29a,
0xead54739, 0x9dd277af, 0x04db2615, 0x73dc1683, 0xe3630b12, 0x94643b84,
0x0d6d6a3e, 0x7a6a5aa8, 0xe40ecf0b, 0x9309ff9d, 0x0a00ae27, 0x7d079eb1,
0xf00f9344, 0x8708a3d2, 0x1e01f268, 0x6906c2fe, 0xf762575d, 0x806567cb,
0x196c3671, 0x6e6b06e7, 0xfed41b76, 0x89d32be0, 0x10da7a5a, 0x67dd4acc,
0xf9b9df6f, 0x8ebeeff9, 0x17b7be43, 0x60b08ed5, 0xd6d6a3e8, 0xa1d1937e,
0x38d8c2c4, 0x4fdff252, 0xd1bb67f1, 0xa6bc5767, 0x3fb506dd, 0x48b2364b,
0xd80d2bda, 0xaf0a1b4c, 0x36034af6, 0x41047a60, 0xdf60efc3, 0xa867df55,
0x316e8eef, 0x4669be79, 0xcb61b38c, 0xbc66831a, 0x256fd2a0, 0x5268e236,
0xcc0c7795, 0xbb0b4703, 0x220216b9, 0x5505262f, 0xc5ba3bbe, 0xb2bd0b28,
0x2bb45a92, 0x5cb36a04, 0xc2d7ffa7, 0xb5d0cf31, 0x2cd99e8b, 0x5bdeae1d,
0x9b64c2b0, 0xec63f226, 0x756aa39c, 0x026d930a, 0x9c0906a9, 0xeb0e363f,
0x72076785, 0x05005713, 0x95bf4a82, 0xe2b87a14, 0x7bb12bae, 0x0cb61b38,
0x92d28e9b, 0xe5d5be0d, 0x7cdcefb7, 0x0bdbdf21, 0x86d3d2d4, 0xf1d4e242,
0x68ddb3f8, 0x1fda836e, 0x81be16cd, 0xf6b9265b, 0x6fb077e1, 0x18b74777,
0x88085ae6, 0xff0f6a70, 0x66063bca, 0x11010b5c, 0x8f659eff, 0xf862ae69,
0x616bffd3, 0x166ccf45, 0xa00ae278, 0xd70dd2ee, 0x4e048354, 0x3903b3c2,
0xa7672661, 0xd06016f7, 0x4969474d, 0x3e6e77db, 0xaed16a4a, 0xd9d65adc,
0x40df0b66, 0x37d83bf0, 0xa9bcae53, 0xdebb9ec5, 0x47b2cf7f, 0x30b5ffe9,
0xbdbdf21c, 0xcabac28a, 0x53b39330, 0x24b4a3a6, 0xbad03605, 0xcdd70693,
0x54de5729, 0x23d967bf, 0xb3667a2e, 0xc4614ab8, 0x5d681b02, 0x2a6f2b94,
0xb40bbe37, 0xc30c8ea1, 0x5a05df1b, 0x2d02ef8d
};
/*
* ...............................................
* 32 bit | VAR0 | bp | ret | ARG0 | ARG1 | ARG2 |
* ...............................................
* ^ ^ ^
* 0x08 0x0c 0x10
*/
static uint32_t
crc32(uint32_t crc, const char *buf, size_t size)
{
const uint8_t *p;
p = buf;
crc = crc ^ ~0U;
while (size--)
crc = crc32_tab[(crc ^ *p++) & 0xFF] ^ (crc >> 8);
return crc ^ ~0U;
}
/*
* .............................................
* VAR3 | VAR2 | VAR1 | VAR0 | bp | ret | ARG0 |
* .............................................
* ^ ^ ^ ^
* 0x04 0x08 0x0c 0x08
*/
static char *
get_serial(const char *name)
{
uint32_t ret = 0;
snprintf(output, sizeof(output), "StudioEnterprise%s12182039", name);
ret = crc32(0, output, strlen(output));
snprintf(output, sizeof(output), "%X12182039", ret);
return output;
}
int
main(int argc, char **argv)
{
char name[512];
printf("Name: ");
fgets(name, sizeof(name), stdin);
name[strlen(name)-1] = 0x0;
printf("Serial: %s\n", get_serial(name));
return 0;
}
/*
* objdump -D keygen | grep '<.*>:'
* objdump -Dj .text keygen
* objdump -sj .rodata keygen
*
* keygen: file format elf32-i386
*
*
* Disassembly of section .text:
*
* 08048410 <_start>:
* 8048410: 31 ed xor %ebp,%ebp
* 8048412: 5e pop %esi
* 8048413: 89 e1 mov %esp,%ecx
* 8048415: 83 e4 f0 and $0xfffffff0,%esp
* 8048418: 50 push %eax
* 8048419: 54 push %esp
* 804841a: 52 push %edx
* 804841b: 68 50 88 04 08 push $0x8048850
* 8048420: 68 f0 87 04 08 push $0x80487f0
* 8048425: 51 push %ecx
* 8048426: 56 push %esi
* 8048427: 68 cc 86 04 08 push $0x80486cc
* 804842c: e8 ab ff ff ff call 80483dc <__libc_start_main@plt>
* 8048431: f4 hlt
* 8048432: 90 nop
* 8048433: 90 nop
*
* 08048434 <call_gmon_start>:
* 8048434: 55 push %ebp
* 8048435: 89 e5 mov %esp,%ebp
* 8048437: 53 push %ebx
* 8048438: e8 00 00 00 00 call 804843d <call_gmon_start+0x9>
* 804843d: 5b pop %ebx
* 804843e: 81 c3 1b 0d 00 00 add $0xd1b,%ebx
* 8048444: 50 push %eax
* 8048445: 8b 83 24 00 00 00 mov 0x24(%ebx),%eax
* 804844b: 85 c0 test %eax,%eax
* 804844d: 74 02 je 8048451 <call_gmon_start+0x1d>
* 804844f: ff d0 call *%eax
* 8048451: 8b 5d fc mov -0x4(%ebp),%ebx
* 8048454: c9 leave
* 8048455: c3 ret
* 8048456: 90 nop
* 8048457: 90 nop
* 8048458: 90 nop
* 8048459: 90 nop
* 804845a: 90 nop
* 804845b: 90 nop
* 804845c: 90 nop
* 804845d: 90 nop
* 804845e: 90 nop
* 804845f: 90 nop
*
* 08048460 <__do_global_dtors_aux>:
* 8048460: 55 push %ebp
* 8048461: 89 e5 mov %esp,%ebp
* 8048463: 83 ec 08 sub $0x8,%esp
* 8048466: 80 3d 80 91 04 08 00 cmpb $0x0,0x8049180
* 804846d: 75 2d jne 804849c <__do_global_dtors_aux+0x3c>
* 804846f: a1 08 90 04 08 mov 0x8049008,%eax
* 8048474: 8b 10 mov (%eax),%edx
* 8048476: 85 d2 test %edx,%edx
* 8048478: 74 1b je 8048495 <__do_global_dtors_aux+0x35>
* 804847a: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
* 8048480: 83 c0 04 add $0x4,%eax
* 8048483: a3 08 90 04 08 mov %eax,0x8049008
* 8048488: ff d2 call *%edx
* 804848a: a1 08 90 04 08 mov 0x8049008,%eax
* 804848f: 8b 10 mov (%eax),%edx
* 8048491: 85 d2 test %edx,%edx
* 8048493: 75 eb jne 8048480 <__do_global_dtors_aux+0x20>
* 8048495: c6 05 80 91 04 08 01 movb $0x1,0x8049180
* 804849c: c9 leave
* 804849d: c3 ret
* 804849e: 89 f6 mov %esi,%esi
*
* 080484a0 <frame_dummy>:
* 80484a0: 55 push %ebp
* 80484a1: 89 e5 mov %esp,%ebp
* 80484a3: 83 ec 08 sub $0x8,%esp
* 80484a6: a1 54 91 04 08 mov 0x8049154,%eax
* 80484ab: 85 c0 test %eax,%eax
* 80484ad: 74 21 je 80484d0 <frame_dummy+0x30>
* 80484af: b8 00 00 00 00 mov $0x0,%eax
* 80484b4: 85 c0 test %eax,%eax
* 80484b6: 74 18 je 80484d0 <frame_dummy+0x30>
* 80484b8: c7 04 24 54 91 04 08 movl $0x8049154,(%esp)
* 80484bf: e8 3c 7b fb f7 call 0 <_init-0x8048384>
* 80484c4: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
* 80484ca: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
* 80484d0: 89 ec mov %ebp,%esp
* 80484d2: 5d pop %ebp
* 80484d3: c3 ret
*
* 080484d4 <_Z5crc32mPhj>:
* 80484d4: 55 push %ebp
* 80484d5: 89 e5 mov %esp,%ebp
* 80484d7: 83 ec 04 sub $0x4,%esp
* 80484da: 83 7d 0c 00 cmpl $0x0,0xc(%ebp)
* 80484de: 75 0c jne 80484ec <_Z5crc32mPhj+0x18>
* 80484e0: c7 45 fc 00 00 00 00 movl $0x0,-0x4(%ebp)
* 80484e7: e9 5b 01 00 00 jmp 8048647 <_Z5crc32mPhj+0x173>
* 80484ec: f7 55 08 notl 0x8(%ebp)
* 80484ef: 83 7d 10 07 cmpl $0x7,0x10(%ebp)
* 80484f3: 77 05 ja 80484fa <_Z5crc32mPhj+0x26>
* 80484f5: e9 13 01 00 00 jmp 804860d <_Z5crc32mPhj+0x139>
* 80484fa: 8b 45 0c mov 0xc(%ebp),%eax
* 80484fd: 0f b6 00 movzbl (%eax),%eax
* 8048500: 33 45 08 xor 0x8(%ebp),%eax
* 8048503: 0f b6 d0 movzbl %al,%edx
* 8048506: 8b 45 08 mov 0x8(%ebp),%eax
* 8048509: c1 e8 08 shr $0x8,%eax
* 804850c: 33 04 95 a0 8b 04 08 xor 0x8048ba0(,%edx,4),%eax
* 8048513: 89 45 08 mov %eax,0x8(%ebp)
* 8048516: 8d 45 0c lea 0xc(%ebp),%eax
* 8048519: ff 00 incl (%eax)
* 804851b: 8b 45 0c mov 0xc(%ebp),%eax
* 804851e: 0f b6 00 movzbl (%eax),%eax
* 8048521: 33 45 08 xor 0x8(%ebp),%eax
* 8048524: 0f b6 d0 movzbl %al,%edx
* 8048527: 8b 45 08 mov 0x8(%ebp),%eax
* 804852a: c1 e8 08 shr $0x8,%eax
* 804852d: 33 04 95 a0 8b 04 08 xor 0x8048ba0(,%edx,4),%eax
* 8048534: 89 45 08 mov %eax,0x8(%ebp)
* 8048537: 8d 45 0c lea 0xc(%ebp),%eax
* 804853a: ff 00 incl (%eax)
* 804853c: 8b 45 0c mov 0xc(%ebp),%eax
* 804853f: 0f b6 00 movzbl (%eax),%eax
* 8048542: 33 45 08 xor 0x8(%ebp),%eax
* 8048545: 0f b6 d0 movzbl %al,%edx
* 8048548: 8b 45 08 mov 0x8(%ebp),%eax
* 804854b: c1 e8 08 shr $0x8,%eax
* 804854e: 33 04 95 a0 8b 04 08 xor 0x8048ba0(,%edx,4),%eax
* 8048555: 89 45 08 mov %eax,0x8(%ebp)
* 8048558: 8d 45 0c lea 0xc(%ebp),%eax
* 804855b: ff 00 incl (%eax)
* 804855d: 8b 45 0c mov 0xc(%ebp),%eax
* 8048560: 0f b6 00 movzbl (%eax),%eax
* 8048563: 33 45 08 xor 0x8(%ebp),%eax
* 8048566: 0f b6 d0 movzbl %al,%edx
* 8048569: 8b 45 08 mov 0x8(%ebp),%eax
* 804856c: c1 e8 08 shr $0x8,%eax
* 804856f: 33 04 95 a0 8b 04 08 xor 0x8048ba0(,%edx,4),%eax
* 8048576: 89 45 08 mov %eax,0x8(%ebp)
* 8048579: 8d 45 0c lea 0xc(%ebp),%eax
* 804857c: ff 00 incl (%eax)
* 804857e: 8b 45 0c mov 0xc(%ebp),%eax
* 8048581: 0f b6 00 movzbl (%eax),%eax
* 8048584: 33 45 08 xor 0x8(%ebp),%eax
* 8048587: 0f b6 d0 movzbl %al,%edx
* 804858a: 8b 45 08 mov 0x8(%ebp),%eax
* 804858d: c1 e8 08 shr $0x8,%eax
* 8048590: 33 04 95 a0 8b 04 08 xor 0x8048ba0(,%edx,4),%eax
* 8048597: 89 45 08 mov %eax,0x8(%ebp)
* 804859a: 8d 45 0c lea 0xc(%ebp),%eax
* 804859d: ff 00 incl (%eax)
* 804859f: 8b 45 0c mov 0xc(%ebp),%eax
* 80485a2: 0f b6 00 movzbl (%eax),%eax
* 80485a5: 33 45 08 xor 0x8(%ebp),%eax
* 80485a8: 0f b6 d0 movzbl %al,%edx
* 80485ab: 8b 45 08 mov 0x8(%ebp),%eax
* 80485ae: c1 e8 08 shr $0x8,%eax
* 80485b1: 33 04 95 a0 8b 04 08 xor 0x8048ba0(,%edx,4),%eax
* 80485b8: 89 45 08 mov %eax,0x8(%ebp)
* 80485bb: 8d 45 0c lea 0xc(%ebp),%eax
* 80485be: ff 00 incl (%eax)
* 80485c0: 8b 45 0c mov 0xc(%ebp),%eax
* 80485c3: 0f b6 00 movzbl (%eax),%eax
* 80485c6: 33 45 08 xor 0x8(%ebp),%eax
* 80485c9: 0f b6 d0 movzbl %al,%edx
* 80485cc: 8b 45 08 mov 0x8(%ebp),%eax
* 80485cf: c1 e8 08 shr $0x8,%eax
* 80485d2: 33 04 95 a0 8b 04 08 xor 0x8048ba0(,%edx,4),%eax
* 80485d9: 89 45 08 mov %eax,0x8(%ebp)
* 80485dc: 8d 45 0c lea 0xc(%ebp),%eax
* 80485df: ff 00 incl (%eax)
* 80485e1: 8b 45 0c mov 0xc(%ebp),%eax
* 80485e4: 0f b6 00 movzbl (%eax),%eax
* 80485e7: 33 45 08 xor 0x8(%ebp),%eax
* 80485ea: 0f b6 d0 movzbl %al,%edx
* 80485ed: 8b 45 08 mov 0x8(%ebp),%eax
* 80485f0: c1 e8 08 shr $0x8,%eax
* 80485f3: 33 04 95 a0 8b 04 08 xor 0x8048ba0(,%edx,4),%eax
* 80485fa: 89 45 08 mov %eax,0x8(%ebp)
* 80485fd: 8d 45 0c lea 0xc(%ebp),%eax
* 8048600: ff 00 incl (%eax)
* 8048602: 8d 45 10 lea 0x10(%ebp),%eax
* 8048605: 83 28 08 subl $0x8,(%eax)
* 8048608: e9 e2 fe ff ff jmp 80484ef <_Z5crc32mPhj+0x1b>
* 804860d: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
* 8048611: 74 2c je 804863f <_Z5crc32mPhj+0x16b>
* 8048613: 8b 45 0c mov 0xc(%ebp),%eax
* 8048616: 0f b6 00 movzbl (%eax),%eax
* 8048619: 33 45 08 xor 0x8(%ebp),%eax
* 804861c: 0f b6 d0 movzbl %al,%edx
* 804861f: 8b 45 08 mov 0x8(%ebp),%eax
* 8048622: c1 e8 08 shr $0x8,%eax
* 8048625: 33 04 95 a0 8b 04 08 xor 0x8048ba0(,%edx,4),%eax
* 804862c: 89 45 08 mov %eax,0x8(%ebp)
* 804862f: 8d 45 0c lea 0xc(%ebp),%eax
* 8048632: ff 00 incl (%eax)
* 8048634: 8d 45 10 lea 0x10(%ebp),%eax
* 8048637: ff 08 decl (%eax)
* 8048639: 83 7d 10 00 cmpl $0x0,0x10(%ebp)
* 804863d: 75 d4 jne 8048613 <_Z5crc32mPhj+0x13f>
* 804863f: 8b 45 08 mov 0x8(%ebp),%eax
* 8048642: f7 d0 not %eax
* 8048644: 89 45 fc mov %eax,-0x4(%ebp)
* 8048647: 8b 45 fc mov -0x4(%ebp),%eax
* 804864a: c9 leave
* 804864b: c3 ret
*
* 0804864c <_Z9getserialPc>:
* 804864c: 55 push %ebp
* 804864d: 89 e5 mov %esp,%ebp
* 804864f: 83 ec 18 sub $0x18,%esp
* 8048652: 8b 45 08 mov 0x8(%ebp),%eax
* 8048655: 80 38 00 cmpb $0x0,(%eax)
* 8048658: 75 09 jne 8048663 <_Z9getserialPc+0x17>
* 804865a: c7 45 f8 20 89 04 08 movl $0x8048920,-0x8(%ebp)
* 8048661: eb 64 jmp 80486c7 <_Z9getserialPc+0x7b>
* 8048663: 8b 45 08 mov 0x8(%ebp),%eax
* 8048666: 89 44 24 08 mov %eax,0x8(%esp)
* 804866a: c7 44 24 04 2e 89 04 movl $0x804892e,0x4(%esp)
* 8048671: 08
* 8048672: c7 04 24 a0 91 04 08 movl $0x80491a0,(%esp)
* 8048679: e8 7e fd ff ff call 80483fc <sprintf@plt>
* 804867e: c7 04 24 a0 91 04 08 movl $0x80491a0,(%esp)
* 8048685: e8 32 fd ff ff call 80483bc <strlen@plt>
* 804868a: 89 44 24 08 mov %eax,0x8(%esp)
* 804868e: c7 44 24 04 a0 91 04 movl $0x80491a0,0x4(%esp)
* 8048695: 08
* 8048696: c7 04 24 00 00 00 00 movl $0x0,(%esp)
* 804869d: e8 32 fe ff ff call 80484d4 <_Z5crc32mPhj>
* 80486a2: 89 45 fc mov %eax,-0x4(%ebp)
* 80486a5: 8b 45 fc mov -0x4(%ebp),%eax
* 80486a8: 89 44 24 08 mov %eax,0x8(%esp)
* 80486ac: c7 44 24 04 49 89 04 movl $0x8048949,0x4(%esp)
* 80486b3: 08
* 80486b4: c7 04 24 a0 91 04 08 movl $0x80491a0,(%esp)
* 80486bb: e8 3c fd ff ff call 80483fc <sprintf@plt>
* 80486c0: c7 45 f8 a0 91 04 08 movl $0x80491a0,-0x8(%ebp)
* 80486c7: 8b 45 f8 mov -0x8(%ebp),%eax
* 80486ca: c9 leave
* 80486cb: c3 ret
*
* 080486cc <main>:
* 80486cc: 55 push %ebp
* 80486cd: 89 e5 mov %esp,%ebp
* 80486cf: 81 ec 18 04 00 00 sub $0x418,%esp
* 80486d5: 83 e4 f0 and $0xfffffff0,%esp
* 80486d8: b8 00 00 00 00 mov $0x0,%eax
* 80486dd: 29 c4 sub %eax,%esp
* 80486df: c7 04 24 60 89 04 08 movl $0x8048960,(%esp)
* 80486e6: e8 01 fd ff ff call 80483ec <printf@plt>
* 80486eb: c7 04 24 a0 89 04 08 movl $0x80489a0,(%esp)
* 80486f2: e8 f5 fc ff ff call 80483ec <printf@plt>
* 80486f7: c7 04 24 e0 89 04 08 movl $0x80489e0,(%esp)
* 80486fe: e8 e9 fc ff ff call 80483ec <printf@plt>
* 8048703: c7 04 24 20 8a 04 08 movl $0x8048a20,(%esp)
* 804870a: e8 dd fc ff ff call 80483ec <printf@plt>
* 804870f: c7 04 24 60 8a 04 08 movl $0x8048a60,(%esp)
* 8048716: e8 d1 fc ff ff call 80483ec <printf@plt>
* 804871b: c7 04 24 a0 8a 04 08 movl $0x8048aa0,(%esp)
* 8048722: e8 c5 fc ff ff call 80483ec <printf@plt>
* 8048727: c7 04 24 e0 8a 04 08 movl $0x8048ae0,(%esp)
* 804872e: e8 b9 fc ff ff call 80483ec <printf@plt>
* 8048733: c7 04 24 20 8b 04 08 movl $0x8048b20,(%esp)
* 804873a: e8 ad fc ff ff call 80483ec <printf@plt>
* 804873f: c7 04 24 55 8b 04 08 movl $0x8048b55,(%esp)
* 8048746: e8 a1 fc ff ff call 80483ec <printf@plt>
* 804874b: 8d 85 f8 fb ff ff lea -0x408(%ebp),%eax
* 8048751: 89 04 24 mov %eax,(%esp)
* 8048754: e8 53 fc ff ff call 80483ac <gets@plt>
* 8048759: 8d 85 f8 fb ff ff lea -0x408(%ebp),%eax
* 804875f: 89 04 24 mov %eax,(%esp)
* 8048762: e8 55 fc ff ff call 80483bc <strlen@plt>
* 8048767: 80 bc 28 f7 fb ff ff cmpb $0xd,-0x409(%eax,%ebp,1)
* 804876e: 0d
* 804876f: 74 1a je 804878b <main+0xbf>
* 8048771: 8d 85 f8 fb ff ff lea -0x408(%ebp),%eax
* 8048777: 89 04 24 mov %eax,(%esp)
* 804877a: e8 3d fc ff ff call 80483bc <strlen@plt>
* 804877f: 80 bc 28 f7 fb ff ff cmpb $0xa,-0x409(%eax,%ebp,1)
* 8048786: 0a
* 8048787: 74 02 je 804878b <main+0xbf>
* 8048789: eb 18 jmp 80487a3 <main+0xd7>
* 804878b: 8d 85 f8 fb ff ff lea -0x408(%ebp),%eax
* 8048791: 89 04 24 mov %eax,(%esp)
* 8048794: e8 23 fc ff ff call 80483bc <strlen@plt>
* 8048799: c6 84 28 f7 fb ff ff movb $0x0,-0x409(%eax,%ebp,1)
* 80487a0: 00
* 80487a1: eb b6 jmp 8048759 <main+0x8d>
* 80487a3: 8d 85 f8 fb ff ff lea -0x408(%ebp),%eax
* 80487a9: 89 04 24 mov %eax,(%esp)
* 80487ac: e8 9b fe ff ff call 804864c <_Z9getserialPc>
* 80487b1: 89 44 24 04 mov %eax,0x4(%esp)
* 80487b5: c7 04 24 5e 8b 04 08 movl $0x8048b5e,(%esp)
* 80487bc: e8 2b fc ff ff call 80483ec <printf@plt>
* 80487c1: c7 04 24 6c 8b 04 08 movl $0x8048b6c,(%esp)
* 80487c8: e8 1f fc ff ff call 80483ec <printf@plt>
* 80487cd: 8d 85 f8 fb ff ff lea -0x408(%ebp),%eax
* 80487d3: 89 04 24 mov %eax,(%esp)
* 80487d6: e8 d1 fb ff ff call 80483ac <gets@plt>
* 80487db: b8 01 00 00 00 mov $0x1,%eax
* 80487e0: c9 leave
* 80487e1: c3 ret
* 80487e2: 90 nop
* 80487e3: 90 nop
* 80487e4: 90 nop
* 80487e5: 90 nop
* 80487e6: 90 nop
* 80487e7: 90 nop
* 80487e8: 90 nop
* 80487e9: 90 nop
* 80487ea: 90 nop
* 80487eb: 90 nop
* 80487ec: 90 nop
* 80487ed: 90 nop
* 80487ee: 90 nop
* 80487ef: 90 nop
*
* 080487f0 <__libc_csu_init>:
* 80487f0: 55 push %ebp
* 80487f1: 89 e5 mov %esp,%ebp
* 80487f3: 57 push %edi
* 80487f4: 56 push %esi
* 80487f5: 31 f6 xor %esi,%esi
* 80487f7: 53 push %ebx
* 80487f8: 83 ec 0c sub $0xc,%esp
* 80487fb: e8 a0 00 00 00 call 80488a0 <__i686.get_pc_thunk.bx>
* 8048800: 81 c3 58 09 00 00 add $0x958,%ebx
* 8048806: e8 79 fb ff ff call 8048384 <_init>
* 804880b: 8d 93 a8 fe ff ff lea -0x158(%ebx),%edx
* 8048811: 8d 83 a8 fe ff ff lea -0x158(%ebx),%eax
* 8048817: 29 c2 sub %eax,%edx
* 8048819: c1 fa 02 sar $0x2,%edx
* 804881c: 39 d6 cmp %edx,%esi
* 804881e: 73 1c jae 804883c <__libc_csu_init+0x4c>
* 8048820: 89 d7 mov %edx,%edi
* 8048822: 8d b4 26 00 00 00 00 lea 0x0(%esi,%eiz,1),%esi
* 8048829: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
* 8048830: ff 94 b3 a8 fe ff ff call *-0x158(%ebx,%esi,4)
* 8048837: 46 inc %esi
* 8048838: 39 fe cmp %edi,%esi
* 804883a: 72 f4 jb 8048830 <__libc_csu_init+0x40>
* 804883c: 83 c4 0c add $0xc,%esp
* 804883f: 5b pop %ebx
* 8048840: 5e pop %esi
* 8048841: 5f pop %edi
* 8048842: 5d pop %ebp
* 8048843: c3 ret
* 8048844: 8d b6 00 00 00 00 lea 0x0(%esi),%esi
* 804884a: 8d bf 00 00 00 00 lea 0x0(%edi),%edi
*
* 08048850 <__libc_csu_fini>:
* 8048850: 55 push %ebp
* 8048851: 89 e5 mov %esp,%ebp
* 8048853: 83 ec 08 sub $0x8,%esp
* 8048856: 89 1c 24 mov %ebx,(%esp)
* 8048859: e8 42 00 00 00 call 80488a0 <__i686.get_pc_thunk.bx>
* 804885e: 81 c3 fa 08 00 00 add $0x8fa,%ebx
* 8048864: 89 74 24 04 mov %esi,0x4(%esp)
* 8048868: 8d 83 a8 fe ff ff lea -0x158(%ebx),%eax
* 804886e: 8d 93 a8 fe ff ff lea -0x158(%ebx),%edx
* 8048874: 29 d0 sub %edx,%eax
* 8048876: c1 f8 02 sar $0x2,%eax
* 8048879: 85 c0 test %eax,%eax
* 804887b: 8d 70 ff lea -0x1(%eax),%esi
* 804887e: 75 10 jne 8048890 <__libc_csu_fini+0x40>
* 8048880: e8 5b 00 00 00 call 80488e0 <_fini>
* 8048885: 8b 1c 24 mov (%esp),%ebx
* 8048888: 8b 74 24 04 mov 0x4(%esp),%esi
* 804888c: 89 ec mov %ebp,%esp
* 804888e: 5d pop %ebp
* 804888f: c3 ret
* 8048890: ff 94 b3 a8 fe ff ff call *-0x158(%ebx,%esi,4)
* 8048897: 89 f0 mov %esi,%eax
* 8048899: 4e dec %esi
* 804889a: 85 c0 test %eax,%eax
* 804889c: 75 f2 jne 8048890 <__libc_csu_fini+0x40>
* 804889e: eb e0 jmp 8048880 <__libc_csu_fini+0x30>
*
* 080488a0 <__i686.get_pc_thunk.bx>:
* 80488a0: 8b 1c 24 mov (%esp),%ebx
* 80488a3: c3 ret
* 80488a4: 90 nop
* 80488a5: 90 nop
* 80488a6: 90 nop
* 80488a7: 90 nop
* 80488a8: 90 nop
* 80488a9: 90 nop
* 80488aa: 90 nop
* 80488ab: 90 nop
* 80488ac: 90 nop
* 80488ad: 90 nop
* 80488ae: 90 nop
* 80488af: 90 nop
*
* 080488b0 <__do_global_ctors_aux>:
* 80488b0: 55 push %ebp
* 80488b1: 89 e5 mov %esp,%ebp
* 80488b3: 53 push %ebx
* 80488b4: 83 ec 04 sub $0x4,%esp
* 80488b7: bb 44 91 04 08 mov $0x8049144,%ebx
* 80488bc: a1 44 91 04 08 mov 0x8049144,%eax
* 80488c1: 83 f8 ff cmp $0xffffffff,%eax
* 80488c4: 74 16 je 80488dc <__do_global_ctors_aux+0x2c>
* 80488c6: 8d 76 00 lea 0x0(%esi),%esi
* 80488c9: 8d bc 27 00 00 00 00 lea 0x0(%edi,%eiz,1),%edi
* 80488d0: 83 eb 04 sub $0x4,%ebx
* 80488d3: ff d0 call *%eax
* 80488d5: 8b 03 mov (%ebx),%eax
* 80488d7: 83 f8 ff cmp $0xffffffff,%eax
* 80488da: 75 f4 jne 80488d0 <__do_global_ctors_aux+0x20>
* 80488dc: 58 pop %eax
* 80488dd: 5b pop %ebx
* 80488de: 5d pop %ebp
* 80488df: c3 ret
*
*
* keygen: file format elf32-i386
*
* Contents of section .rodata:
* 8048900 03000000 01000200 00000000 00000000 ................
* 8048910 00000000 00000000 00000000 00000000 ................
* 8048920 4e4f204e 414d4520 47495645 4e005374 NO NAME GIVEN.St
* 8048930 7564696f 456e7465 72707269 73652573 udioEnterprise%s
* 8048940 31323138 32303339 00255831 32313832 12182039.%X12182
* 8048950 30333900 00000000 00000000 00000000 039.............
* 8048960 20202020 20202020 20202020 20202020
* 8048970 20202020 20202020 20202020 20202020
* 8048980 205f5f5f 5f5f2020 20202e20 20202b0a _____ . +.
* 8048990 00000000 00000000 00000000 00000000 ................
* 80489a0 20202020 20202020 205f5f5f 5f5f2020 _____
* 80489b0 20202020 20202020 20202020 20202020
* 80489c0 205c2020 207c2020 20203a20 2c600a00 \ | : ,`..
* 80489d0 00000000 00000000 00000000 00000000 ................
* 80489e0 205f5f5f 5f5f5f5f 5f5c2020 20207c5f ________\ |_
* 80489f0 5f5f5f5f 5f5f5f5f 5f5f5f5f 5f5f5f5f ________________
* 8048a00 5f5f2020 207c5f5f 5f5f6c5f 5f5f5f20 __ |____l____
* 8048a10 5f0a0000 00000000 00000000 00000000 _...............
* 8048a20 2f202020 202e2020 20202020 20207c20 / . |
* 8048a30 20202020 20207c20 20202020 202f5f5f | /__
* 8048a40 5f20205c 5f7c5f5f 5f5f2f5f 5f5f0a00 _ \_|____/___..
* 8048a50 00000000 00000000 00000000 00000000 ................
* 8048a60 5f5f5f5f 5f5f5f5f 5f5f5f5c 5f7c5c20 ___________\_|\
* 8048a70 20202020 2f602020 2020202f 2020202f /` / /
* 8048a80 20202020 7c202020 2020202f 7921720a | /y!r.
* 8048a90 00000000 00000000 00000000 00000000 ................
* 8048aa0 2d2d2d2d 2d2d2d2d 2d2d2d2d 2d2d6060 --------------``
* 8048ab0 2d2d2d2d 5c5f5f5f 5f5f2f20 20202f5c ----\_____/ /\
* 8048ac0 5f5f5f5f 5f5f5f5f 5f5f2f20 2d2d2d2d __________/ ----
* 8048ad0 2d2d0a00 00000000 00000000 00000000 --..............
* 8048ae0 5f5f5f5f 5c202020 20202020 20202020 ____\
* 8048af0 607e7e7e 7e2d2d2d 2d2f2020 2020602d `~~~~----/ `-
* 8048b00 2d2d2d2d 2d2d2d2d 2d602020 202f5f5f ---------` /__
* 8048b10 5f5f0a00 00000000 00000000 00000000 __..............
* 8048b20 5c5f5f5f 5f5f2f28 20205a65 6e642053 \_____/( Zend S
* 8048b30 74756469 6f204b65 7967656e 20627920 tudio Keygen by
* 8048b40 5445414d 20445654 20202029 5c5f5f5f TEAM DVT )\___
* 8048b50 5f2f0a0a 0020204e 616d653a 20002020 _/... Name: .
* 8048b60 53657269 616c3a20 25730a00 0a486974 Serial: %s...Hit
* 8048b70 20656e74 65722074 6f206578 69742e0a enter to exit..
* 8048b80 00000000 00000000 00000000 00000000 ................
* 8048b90 00000000 00000000 00000000 00000000 ................
* 8048ba0 00000000 96300777 2c610eee ba510999 .....0.w,a...Q..
* 8048bb0 19c46d07 8ff46a70 35a563e9 a395649e ..m...jp5.c...d.
* 8048bc0 3288db0e a4b8dc79 1ee9d5e0 88d9d297 2......y........
* 8048bd0 2b4cb609 bd7cb17e 072db8e7 911dbf90 +L...|.~.-......
* 8048be0 6410b71d f220b06a 4871b9f3 de41be84 d.... .jHq...A..
* 8048bf0 7dd4da1a ebe4dd6d 51b5d4f4 c785d383 }......mQ.......
* 8048c00 56986c13 c0a86b64 7af962fd ecc9658a V.l...kdz.b...e.
* 8048c10 4f5c0114 d96c0663 633d0ffa f50d088d O\...l.cc=......
* 8048c20 c8206e3b 5e10694c e44160d5 727167a2 . n;^.iL.A`.rqg.
* 8048c30 d1e4033c 47d4044b fd850dd2 6bb50aa5 ...<G..K....k...
* 8048c40 faa8b535 6c98b242 d6c9bbdb 40f9bcac ...5l..B....@...
* 8048c50 e36cd832 755cdf45 cf0dd6dc 593dd1ab .l.2u\.E....Y=..
* 8048c60 ac30d926 3a00de51 8051d7c8 1661d0bf .0.&:..Q.Q...a..
* 8048c70 b5f4b421 23c4b356 9995bacf 0fa5bdb8 ...!#..V........
* 8048c80 9eb80228 0888055f b2d90cc6 24e90bb1 ...(..._....$...
* 8048c90 877c6f2f 114c6858 ab1d61c1 3d2d66b6 .|o/.LhX..a.=-f.
* 8048ca0 9041dc76 0671db01 bc20d298 2a10d5ef .A.v.q... ..*...
* 8048cb0 8985b171 1fb5b606 a5e4bf9f 33d4b8e8 ...q........3...
* 8048cc0 a2c90778 34f9000f 8ea80996 18980ee1 ...x4...........
* 8048cd0 bb0d6a7f 2d3d6d08 976c6491 015c63e6 ..j.-=m..ld..\c.
* 8048ce0 f4516b6b 62616c1c d8306585 4e0062f2 .Qkkbal..0e.N.b.
* 8048cf0 ed95066c 7ba5011b c1f40882 57c40ff5 ...l{.......W...
* 8048d00 c6d9b065 50e9b712 eab8be8b 7c88b9fc ...eP.......|...
* 8048d10 df1ddd62 492dda15 f37cd38c 654cd4fb ...bI-...|..eL..
* 8048d20 5861b24d ce51b53a 7400bca3 e230bbd4 Xa.M.Q.:t....0..
* 8048d30 41a5df4a d795d83d 6dc4d1a4 fbf4d6d3 A..J...=m.......
* 8048d40 6ae96943 fcd96e34 468867ad d0b860da j.iC..n4F.g...`.
* 8048d50 732d0444 e51d0333 5f4c0aaa c97c0ddd s-.D...3_L...|..
* 8048d60 3c710550 aa410227 10100bbe 86200cc9 <q.P.A.'..... ..
* 8048d70 25b56857 b3856f20 09d466b9 9fe461ce %.hW..o ..f...a.
* 8048d80 0ef9de5e 98c9d929 2298d0b0 b4a8d7c7 ...^...)".......
* 8048d90 173db359 810db42e 3b5cbdb7 ad6cbac0 .=.Y....;\...l..
* 8048da0 2083b8ed b6b3bf9a 0ce2b603 9ad2b174 ..............t
* 8048db0 3947d5ea af77d29d 1526db04 8316dc73 9G...w...&.....s
* 8048dc0 120b63e3 843b6494 3e6a6d0d a85a6a7a ..c..;d.>jm..Zjz
* 8048dd0 0bcf0ee4 9dff0993 27ae000a b19e077d ........'......}
* 8048de0 44930ff0 d2a30887 68f2011e fec20669 D.......h......i
* 8048df0 5d5762f7 cb676580 71366c19 e7066b6e ]Wb..ge.q6l...kn
* 8048e00 761bd4fe e02bd389 5a7ada10 cc4add67 v....+..Zz...J.g
* 8048e10 6fdfb9f9 f9efbe8e 43beb717 d58eb060 o.......C......`
* 8048e20 e8a3d6d6 7e93d1a1 c4c2d838 52f2df4f ....~......8R..O
* 8048e30 f167bbd1 6757bca6 dd06b53f 4b36b248 .g..gW.....?K6.H
* 8048e40 da2b0dd8 4c1b0aaf f64a0336 607a0441 .+..L....J.6`z.A
* 8048e50 c3ef60df 55df67a8 ef8e6e31 79be6946 ..`.U.g...n1y.iF
* 8048e60 8cb361cb 1a8366bc a0d26f25 36e26852 ..a...f...o%6.hR
* 8048e70 95770ccc 03470bbb b9160222 2f260555 .w...G....."/&.U
* 8048e80 be3bbac5 280bbdb2 925ab42b 046ab35c .;..(....Z.+.j.\
* 8048e90 a7ffd7c2 31cfd0b5 8b9ed92c 1daede5b ....1......,...[
* 8048ea0 b0c2649b 26f263ec 9ca36a75 0a936d02 ..d.&.c...ju..m.
* 8048eb0 a906099c 3f360eeb 85670772 13570005 ....?6...g.r.W..
* 8048ec0 824abf95 147ab8e2 ae2bb17b 381bb60c .J...z...+.{8...
* 8048ed0 9b8ed292 0dbed5e5 b7efdc7c 21dfdb0b ...........|!...
* 8048ee0 d4d2d386 42e2d4f1 f8b3dd68 6e83da1f ....B......hn...
* 8048ef0 cd16be81 5b26b9f6 e177b06f 7747b718 ....[&...w.owG..
* 8048f00 e65a0888 706a0fff ca3b0666 5c0b0111 .Z..pj...;.f\...
* 8048f10 ff9e658f 69ae62f8 d3ff6b61 45cf6c16 ..e.i.b...kaE.l.
* 8048f20 78e20aa0 eed20dd7 5483044e c2b30339 x.......T..N...9
* 8048f30 612667a7 f71660d0 4d476949 db776e3e a&g...`.MGiI.wn>
* 8048f40 4a6ad1ae dc5ad6d9 660bdf40 f03bd837 Jj...Z..f..@.;.7
* 8048f50 53aebca9 c59ebbde 7fcfb247 e9ffb530 S..........G...0
* 8048f60 1cf2bdbd 8ac2baca 3093b353 a6a3b424 ........0..S...$
* 8048f70 0536d0ba 9306d7cd 2957de54 bf67d923 .6......)W.T.g.#
* 8048f80 2e7a66b3 b84a61c4 021b685d 942b6f2a .zf..Ja...h].+o*
* 8048f90 37be0bb4 a18e0cc3 1bdf055a 8def022d 7..........Z...-
*/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.