Demo entry 6327701

ASM

   

Submitted by anonymous on Nov 24, 2016 at 16:16
Language: C++. Code size: 2.3 kB.

--- d:\visual studio 2015\projects\project7\project7\源.cpp ---------------------
     1: #include<cstdio>
     2: int main(int arcg, char *argv[])
     3: {
00B31000 55                   push        ebp  
00B31001 8B EC                mov         ebp,esp  
00B31003 81 EC 5C 01 00 00    sub         esp,15Ch  
00B31009 53                   push        ebx  
00B3100A 56                   push        esi  
00B3100B 57                   push        edi  
00B3100C 8D BD A4 FE FF FF    lea         edi,[ebp-15Ch]  
00B31012 B9 57 00 00 00       mov         ecx,57h  
00B31017 B8 CC CC CC CC       mov         eax,0CCCCCCCCh  
00B3101C F3 AB                rep stos    dword ptr es:[edi]  
     4: 	int a0=0;
00B3101E C7 45 F8 00 00 00 00 mov         dword ptr [a0],0  
     5: 	unsigned int a1=0;
00B31025 C7 45 EC 00 00 00 00 mov         dword ptr [a1],0  
     6: 	signed int a2=0;
00B3102C C7 45 E0 00 00 00 00 mov         dword ptr [a2],0  
     7: 	short int a3=0;
00B31033 33 C0                xor         eax,eax  
00B31035 66 89 45 D4          mov         word ptr [a3],ax  
     8: 	unsigned short int a4=0;
00B31039 33 C0                xor         eax,eax  
00B3103B 66 89 45 C8          mov         word ptr [a4],ax  
     9: 	signed short int a5=0;
00B3103F 33 C0                xor         eax,eax  
00B31041 66 89 45 BC          mov         word ptr [a5],ax  
    10: 	long int a6=0;
00B31045 C7 45 B0 00 00 00 00 mov         dword ptr [a6],0  
    11: 	unsigned long int a7=0;
00B3104C C7 45 A4 00 00 00 00 mov         dword ptr [a7],0  
    12: 	signed long int a8=0;
00B31053 C7 45 98 00 00 00 00 mov         dword ptr [a8],0  
    13: 	long long int a9=0;
00B3105A 0F 57 C0             xorps       xmm0,xmm0  
00B3105D 66 0F 13 45 88       movlpd      qword ptr [a9],xmm0  
    14: 	unsigned long long int a10=0;
00B31062 0F 57 C0             xorps       xmm0,xmm0  
00B31065 66 0F 13 85 78 FF FF FF movlpd      qword ptr [a10],xmm0  
    15: 	signed long long int a11=0;
00B3106D 0F 57 C0             xorps       xmm0,xmm0  
00B31070 66 0F 13 85 68 FF FF FF movlpd      qword ptr [a11],xmm0  
    16: 	return 0;
00B31078 33 C0                xor         eax,eax  
    17: }
00B3107A 5F                   pop         edi  

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).