zoukankan      html  css  js  c++  java
  • PE格式详细讲解1 系统篇01|解密系列

    PE格式详细讲解1 - 系统篇01

     

    让编程改变世界

    Change the world by program


     

    由于时间关系,这里只整理出必要的课件内容,详细请下载具体课件和详细讲解视频。

      [codesyntax lang="asm"]
    (注:最左边是文件头的偏移量。) 
    IMAGE_DOS_HEADER STRUCT 
    { 
    +0h	WORD	e_magic 	   //	Magic DOS signature MZ(4Dh 5Ah)     DOS可执行文件标记 
    +2h  	WORD 	e_cblp	   //	Bytes on last page of file 			  
    +4h	WORD 	e_cp 	   //	Pages in file 					
    +6h	WORD 	e_crlc 	   //	Relocations 					
    +8h	WORD 	e_cparhdr   //	Size of header in paragraphs 		
    +0ah	WORD 	e_minalloc   //	Minimun extra paragraphs needs 		
    +0ch	WORD 	e_maxalloc  //	Maximun extra paragraphs needs 	
    +0eh	WORD 	e_ss            //	intial(relative)SS value        DOS代码的初始化堆栈SS 
    +10h	WORD 	e_sp 	    //	intial SP value                       DOS代码的初始化堆栈指针SP 
    +12h	WORD 	e_csum 	    //	Checksum 
    +14h	WORD 	e_ip 	    // intial IP value 		              DOS代码的初始化指令入口[指针IP] 
    +16h	WORD 	e_cs 	    //	intial(relative)CS value         DOS代码的初始堆栈入口 
    +18h	WORD 	e_lfarlc 	    //	File Address of relocation table 
    +1ah	WORD 	e_ovno         // Overlay number 
    +1ch	WORD 	e_res[4] 	     // Reserved words 
    +24h	WORD 	e_oemid 	     // OEM identifier(for e_oeminfo) 
    +26h	WORD    e_oeminfo   // OEM information;e_oemid specific  
    +29h	WORD 	e_res2[10]   // Reserved words 
    +3ch	DWORD   e_lfanew     //  Offset to start of PE header      指向PE文件头 
    } IMAGE_DOS_HEADER ENDS
    [/codesyntax] [buy] 获得所有教学视频、课件、源代码等资源打包 [/buy] [Downlink href='http://kuai.xunlei.com/d/LKRKWCJRJGQI']视频下载[/Downlink]
  • 相关阅读:
    HDU 2844 Coins(多重背包)
    HDU 4540 威威猫系列故事——打地鼠(DP)
    Codeforces Round #236 (Div. 2)
    FZU 2140 Forever 0.5
    HDU 1171 Big Event in HDU(DP)
    HDU 1160 FatMouse's Speed(DP)
    ZOJ 3490 String Successor
    ZOJ 3609 Modular Inverse
    ZOJ 3603 Draw Something Cheat
    ZOJ 3705 Applications
  • 原文地址:https://www.cnblogs.com/LoveFishC/p/3847055.html
Copyright © 2011-2022 走看看