Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #pragma check_stack(off)
- void main() {
- char buff[500];
- sprintf_s(buff, sizeof(buff), "%d", 309230923);
- return 0;
- }
- #pragma check_stack()
- quicktest!main:
- 000b1040 55 push ebp
- 000b1041 8bec mov ebp,esp
- 000b1043 81ecf8010000 sub esp,1F8h
- 000b1049 a104300b00 mov eax,dword ptr [quicktest!__security_cookie (000b3004)]
- 000b104e 33c5 xor eax,ebp
- 000b1050 8945fc mov dword ptr [ebp-4],eax
- 000b1053 684b7d6e12 push 126E7D4Bh
- 000b1058 68f8200b00 push offset quicktest!`string' (000b20f8)
- 000b105d 8d8508feffff lea eax,[ebp-1F8h]
- 000b1063 68f4010000 push 1F4h
- 000b1068 50 push eax
- 000b1069 e8a2ffffff call quicktest!sprintf_s (000b1010)
- 000b106e 8b4dfc mov ecx,dword ptr [ebp-4]
- 000b1071 83c410 add esp,10h
- 000b1074 33cd xor ecx,ebp
- 000b1076 33c0 xor eax,eax
- 000b1078 e804000000 call quicktest!__security_check_cookie (000b1081)
- 000b107d 8be5 mov esp,ebp
- 000b107f 5d pop ebp
- 000b1080 c3 ret
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement