#include <stdio.h>
int main(void)
{
0007F0D0 55 push ebp
0007F0D1 8B EC mov ebp,esp
0007F0D3 81 EC 74 02 00 00 sub esp,274h
0007F0D9 53 push ebx
0007F0DA 56 push esi
0007F0DB 57 push edi
0007F0DC 8D BD 8C FD FF FF lea edi,[ebp-274h]
0007F0E2 B9 9D 00 00 00 mov ecx,9Dh
0007F0E7 B8 CC CC CC CC mov eax,0CCCCCCCCh
0007F0EC F3 AB rep stos dword ptr es:[edi]
0007F0EE A1 00 70 13 00 mov eax,dword ptr [__security_cookie (0137000h)]
0007F0F3 33 C5 xor eax,ebp
0007F0F5 89 45 FC mov dword ptr [ebp-4],eax
int a = 100;
0007F0F8 C7 45 F4 64 00 00 00 mov dword ptr [a],64h
int *p = &a;
0007F0FF 8D 45 F4 lea eax,[a]
0007F102 89 45 E8 mov dword ptr [p],eax
int arr[100];
arr[0] = 10;
0007F105 B8 04 00 00 00 mov eax,4
0007F10A 6B C8 00 imul ecx,eax,0
0007F10D C7 84 0D 50 FE FF FF 0A 00 00 00 mov dword ptr arr[ecx],0Ah
p = arr;
0007F118 8D 85 50 FE FF FF lea eax,[arr]
0007F11E 89 45 E8 mov dword ptr [p],eax
return 0;
0007F121 33 C0 xor eax,eax
}
0007F123 52 push edx
0007F124 8B CD mov ecx,ebp
0007F126 50 push eax
0007F127 8D 15 48 F1 07 00 lea edx,ds:[7F148h]
0007F12D E8 0F C2 FF FF call @_RTC_CheckStackVars@8 (07B341h)
0007F132 58 pop eax
0007F133 5A pop edx
0007F134 5F pop edi
0007F135 5E pop esi
0007F136 5B pop ebx
0007F137 8B 4D FC mov ecx,dword ptr [ebp-4]
0007F13A 33 CD xor ecx,ebp
0007F13C E8 EB C2 FF FF call @__security_check_cookie@4 (07B42Ch)
0007F141 8B E5 mov esp,ebp
0007F143 5D pop ebp
0007F144 C3 ret
#include <stdio.h>
int main(void)
{
0007F0D0 55 push ebp
0007F0D1 8B EC mov ebp,esp
0007F0D3 81 EC 74 02 00 00 sub esp,274h
0007F0D9 53 push ebx
0007F0DA 56 push esi
0007F0DB 57 push edi
0007F0DC 8D BD 8C FD FF FF lea edi,[ebp+FFFFFD8Ch]
0007F0E2 B9 9D 00 00 00 mov ecx,9Dh
0007F0E7 B8 CC CC CC CC mov eax,0CCCCCCCCh
0007F0EC F3 AB rep stos dword ptr es:[edi]
0007F0EE A1 00 70 13 00 mov eax,dword ptr ds:[00137000h]
0007F0F3 33 C5 xor eax,ebp
0007F0F5 89 45 FC mov dword ptr [ebp-4],eax
int a = 100;
0007F0F8 C7 45 F4 64 00 00 00 mov dword ptr [ebp-0Ch],64h
int *p = &a;
0007F0FF 8D 45 F4 lea eax,[ebp-0Ch]
0007F102 89 45 E8 mov dword ptr [ebp-18h],eax
int arr[100];
arr[0] = 10;
0007F105 B8 04 00 00 00 mov eax,4
0007F10A 6B C8 00 imul ecx,eax,0
0007F10D C7 84 0D 50 FE FF FF 0A 00 00 00 mov dword ptr [ebp+ecx+FFFFFE50h],0Ah
p = arr;
0007F118 8D 85 50 FE FF FF lea eax,[ebp+FFFFFE50h]
0007F11E 89 45 E8 mov dword ptr [ebp-18h],eax
return 0;
0007F121 33 C0 xor eax,eax
}
0007F123 52 push edx
0007F124 8B CD mov ecx,ebp
0007F126 50 push eax
0007F127 8D 15 48 F1 07 00 lea edx,ds:[0007F148h]
0007F12D E8 0F C2 FF FF call 0007B341
0007F132 58 pop eax
0007F133 5A pop edx
0007F134 5F pop edi
0007F135 5E pop esi
0007F136 5B pop ebx
0007F137 8B 4D FC mov ecx,dword ptr [ebp-4]
0007F13A 33 CD xor ecx,ebp
0007F13C E8 EB C2 FF FF call 0007B42C
0007F141 8B E5 mov esp,ebp
0007F143 5D pop ebp
0007F144 C3 ret
|