现在的位置: 首页 > 综合 > 正文

变量定义的反汇编

2012年11月21日 ⁄ 综合 ⁄ 共 786字 ⁄ 字号 评论关闭

 

0041134A  int         3  
0041134B  int         3  
0041134C  int         3  
0041134D  int         3  
0041134E  int         3  
0041134F  int         3  
--- e:\programing\反汇编\main functon\main functon\main functiong.cpp -------------
#include <stdio.h>

int main()
{
00411350  push        ebp  		//压入ebp    
00411351  mov         ebp,esp  	//保存esp,esp是堆栈指针,ebp是基址指针    
00411353  sub         esp,0CCh  	//为当前程序留出一定的存储空间  

//压栈  
00411359  push        ebx  
0041135A  push        esi  
0041135B  push        edi  

//得到该函数留出的临时存储区的首地址   
0041135C  lea         edi,[ebp-0CCh]  
//in DEBUG Model variables are initialized to be 0xcc   
00411362  mov         ecx,33h  
00411367  mov         eax,0CCCCCCCCh  

//重复在es:[edi]存入30个 0CCCCCCCCh   stos 是字符串存储指令
0041136C  rep stos    dword ptr es:[edi]  
	int  a ;
	a = 10;
0041136E  mov         dword ptr [a],0Ah  

	return 0;
00411375  xor         eax,eax  
}

//从堆栈中弹出
00411377  pop         edi  
00411378  pop         esi  
00411379  pop         ebx  
0041137A  mov         esp,ebp  
0041137C  pop         ebp  
0041137D  ret  
--- 无源文件 -----------------------------------------------------------------------
0041137E  int         3  
0041137F  int         3  

 

抱歉!评论已关闭.