Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- TestMethode:
- 010211E0 jmp TestMethode (10215C0h)
- ;int TestMethode( int a, int b, const char *d ) {
- 010215C0 push ebp
- 010215C1 mov ebp,esp
- 010215C3 sub esp,0C0h
- 010215C9 push ebx
- 010215CA push esi
- 010215CB push edi
- 010215CC lea edi,[ebp-0C0h]
- 010215D2 mov ecx,30h
- 010215D7 mov eax,0CCCCCCCCh
- 010215DC rep stos dword ptr es:[edi]
- ;return a;
- 010215DE mov eax,dword ptr [a]
- ;}
- 010215E1 pop edi
- 010215E2 pop esi
- 010215E3 pop ebx
- 010215E4 mov esp,ebp
- 010215E6 pop ebp
- 010215E7 ret
- ;const char *a = "omg!";
- 0102397E mov dword ptr [a],offset string "omg!" (1025898h)
- ;int r = TestMethode( 10, 0x19, a );
- 01023985 mov eax,dword ptr [a]
- 01023988 push eax
- 01023989 push 19h
- 0102398B push 0Ah
- 0102398D call TestMethode (10211E0h)
- 01023992 add esp,0Ch
- 01023995 mov dword ptr [r],eax
Advertisement
Add Comment
Please, Sign In to add comment