1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39
| pwndbg> disassemble main Dump of assembler code for function main: 0x000000000040050a <+0>: push rbp 0x000000000040050b <+1>: mov rbp,rsp 0x000000000040050e <+4>: push 0x58 0x0000000000400510 <+6>: push 0x4d 0x0000000000400512 <+8>: mov r9d,0x42 0x0000000000400518 <+14>: mov r8d,0x37 0x000000000040051e <+20>: mov ecx,0x2c 0x0000000000400523 <+25>: mov edx,0x21 0x0000000000400528 <+30>: mov esi,0x16 0x000000000040052d <+35>: mov edi,0xb 0x0000000000400532 <+40>: call 0x4004d6 <func> 0x0000000000400537 <+45>: add rsp,0x10 0x000000000040053b <+49>: leave 0x000000000040053c <+50>: ret End of assembler dump. pwndbg> disassemble func Dump of assembler code for function func: 0x00000000004004d6 <+0>: push rbp 0x00000000004004d7 <+1>: mov rbp,rsp 0x00000000004004da <+4>: mov DWORD PTR [rbp-0x14],edi 0x00000000004004dd <+7>: mov DWORD PTR [rbp-0x18],esi 0x00000000004004e0 <+10>: mov DWORD PTR [rbp-0x1c],edx 0x00000000004004e3 <+13>: mov DWORD PTR [rbp-0x20],ecx 0x00000000004004e6 <+16>: mov DWORD PTR [rbp-0x24],r8d 0x00000000004004ea <+20>: mov DWORD PTR [rbp-0x28],r9d 0x00000000004004ee <+24>: mov eax,DWORD PTR [rbp-0x14] 0x00000000004004f1 <+27>: add eax,0x1 0x00000000004004f4 <+30>: mov DWORD PTR [rbp-0x8],eax 0x00000000004004f7 <+33>: mov eax,DWORD PTR [rbp+0x18] 0x00000000004004fa <+36>: add eax,0x8 0x00000000004004fd <+39>: mov DWORD PTR [rbp-0x4],eax 0x0000000000400500 <+42>: mov edx,DWORD PTR [rbp-0x8] 0x0000000000400503 <+45>: mov eax,DWORD PTR [rbp-0x4] 0x0000000000400506 <+48>: add eax,edx 0x0000000000400508 <+50>: pop rbp 0x0000000000400509 <+51>: ret
|