亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關(guān)于我們
? 蟲蟲下載站

?? pe-tut1.html

?? 在DOS下編程因為實模式的限制
?? HTML
字號:
<html>
<head>
<title>Iczelion's PE Tutorial 1: Overview of PE File Format</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>

<body bgcolor="#000066" text="#FFFFFF" link="#FFFFCC" vlink="#FFCCCC" alink="#CCFFCC">
<h1 align="center"><font face="Arial, Helvetica, sans-serif" color="#FFFFCC">Tutorial 
  1: Overview of PE file format</font></h1>
<p><font face="MS Sans Serif" size="-1">This is the complete rewrite of the old 
  PE tutorial no1 which I considered the worst tutorial I have ever written. So 
  I decided to replace it with this new one.</font></p>
<p><font face="MS Sans Serif" size="-1">PE stands for Portable Executable. It's 
  the native file format of Win32. Its specification is derived somewhat from 
  the Unix Coff (common object file format). The meaning of &quot;portable executable&quot; 
  is that the file format is universal across win32 platform: the PE loader of 
  every win32 platform recognizes and uses this file format even when Windows 
  is running on CPU platforms other than Intel. It doesn't mean your PE executables 
  would be able to port to other CPU platforms without change. Every win32 executable 
  (except VxDs and 16-bit Dlls) uses PE file format. Even NT's kernel mode drivers 
  use PE file format. Thus studying the PE file format gives you valuable insights 
  into the structure of Windows.</font></p>
<p><font face="MS Sans Serif" size="-1">Let's jump into the general outline of 
  PE file format without further ado.</font></p>
<table border="1" cellspacing="2" cellpadding="2" align="center">
  <tr bgcolor="#0033CC"> 
    <td> 
      <div align="center"><b><font face="MS Sans Serif" size="-1">DOS MZ header</font></b></div>
    </td>
  </tr>
  <tr bgcolor="#990000"> 
    <td height="28"> 
      <div align="center"><b><font face="MS Sans Serif" size="-1">DOS stub</font></b></div>
    </td>
  </tr>
  <tr bgcolor="#006600"> 
    <td height="36"> 
      <div align="center"><b><font face="MS Sans Serif" size="-1">PE header</font></b></div>
    </td>
  </tr>
  <tr bgcolor="#333399"> 
    <td> 
      <div align="center"><b><font face="MS Sans Serif" size="-1">Section table</font></b></div>
    </td>
  </tr>
  <tr bgcolor="#660066"> 
    <td height="52"> 
      <div align="center"><b><font face="MS Sans Serif" size="-1">Section 1</font></b></div>
    </td>
  </tr>
  <tr bgcolor="#660066"> 
    <td height="55"> 
      <div align="center"><b><font face="MS Sans Serif" size="-1">Section 2</font></b></div>
    </td>
  </tr>
  <tr bgcolor="#660066"> 
    <td height="53"> 
      <div align="center"><b><font face="MS Sans Serif" size="-1">Section ...</font></b></div>
    </td>
  </tr>
  <tr bgcolor="#660066"> 
    <td height="50"> 
      <div align="center"><b><font face="MS Sans Serif" size="-1">Section n</font></b></div>
    </td>
  </tr>
</table>
<p><font face="MS Sans Serif" size="-1">The above picture is the general layout 
  of a PE file. All PE files (even 32-bit DLLs) must start with a simple DOS MZ 
  header. We usually aren't interested in this structure much. It's provided in 
  the case when the program is run from DOS, so DOS can recognize it as a valid 
  executable and can thus run the DOS stub which is stored next to the MZ header. 
  The DOS stub is actually a valid EXE that is executed in case the operating 
  system doesn't know about PE file format. It can simply display a string like 
  &quot;This program requires Windows&quot; or it can be a full-blown DOS program 
  depending on the intent of the programmer. We are also not very interested in 
  DOS stub: it's usually provided by the assembler/compiler. In most case, it 
  simply uses int 21h, service 9 to print a string saying &quot;This program cannot 
  run in DOS mode&quot;. </font></p>
<p><font face="MS Sans Serif" size="-1">After the DOS stub comes<font color="#FFFFCC"><b> 
  the PE header</b></font>. The PE header is a general term for the PE-related 
  structure named<font color="#FFFFCC"><b> IMAGE_NT_HEADERS</b></font>. This structure 
  contains many essential fields that are used by the PE loader. We will be quite 
  familiar with it as you know more about PE file format. In the case the program 
  is executed in the operating system that knows about PE file format, the PE 
  loader can find the starting offset of the PE header from the DOS MZ header. 
  Thus it can skip the DOS stub and go directly to the PE header which is the 
  real file header. </font></p>
<p><font face="MS Sans Serif" size="-1">The real content of the PE file is divided 
  into blocks called <font color="#FFFFCC"><b>sections</b></font>. A section is 
  nothing more than a block of data with common attributes such as code/data, 
  read/write etc. You can think of a PE file as a logical disk. The PE header 
  is the boot sector and the sections are files in the disk. The files can have 
  different attributes such as read-only, system, hidden, archive and so on.<font color="#66FF00"><b> 
  I want to make it clear from this point onwards that the grouping of data into 
  a section is done on the common attribute basis: not on logical basis.</b></font> 
  It doesn't matter how the code/data are used , if the data/code in the PE file 
  have the same attribute, they can be lumped together in a section. You should 
  not think of a section as &quot;data&quot;, &quot;code&quot; or some other logical 
  concepts: sections can contain both code and data provided that they have the 
  same attribute. If you have a block of data that you want to be read-only, you 
  can put that data in the section that is marked as read-only. When the PE loader 
  maps the sections into memory, it examines the attributes of the sections and 
  gives the memory block occupied by the sections the indicated attributes.</font></p>
<p><font face="MS Sans Serif" size="-1">If we view the PE file format as a logical 
  disk, the PE header as the boot sector and the sections as files, we still don't 
  have enough information to find out where the files reside on the disk, ie. 
  we haven't discussed the directory equivalent of the PE file format. Immediately 
  following the PE header is <font color="#FFFFCC"> <b>the section table </b></font>which 
  is an array of structures. Each structure contains the information about each 
  section in the PE file such as its attribute, the file offset, virtual offset. 
  If there are 5 sections in the PE file, there will be exactly 5 members in this 
  structure array. We can then view the section table as the root directory of 
  the logical disk. Each member of the array is equvalent to the each directory 
  entry in the root directory.</font></p>
<p><font face="MS Sans Serif" size="-1">That's all about the physical layout of 
  the PE file format. I'll summarize the major steps in loading a PE file into 
  memory below:</font></p>
<ol>
  <li><font face="MS Sans Serif" size="-1">When the PE file is run, the PE loader 
    examines the DOS MZ header for the offset of the PE header. If found, it skips 
    to the PE header.</font></li>
  <li><font face="MS Sans Serif" size="-1">The PE loader checks if the PE header 
    is valid. If so, it goes to the end of the PE header.</font></li>
  <li><font face="MS Sans Serif" size="-1">Immediately following the PE header 
    is the section table. The PE header reads information about the sections and 
    maps those sections into memory using file mapping. It also gives each section 
    the attributes as specified in the section table.</font></li>
  <li><font face="MS Sans Serif" size="-1">After the PE file is mapped into memory, 
    the PE loader concerns itself with the logical parts of the PE file, such 
    as the import table.</font></li>
</ol>
<p><font face="MS Sans Serif" size="-1">The above steps are oversimplification 
  and are based on my own observation. There may be some inaccuracies but it should 
  give you the clear picture of the process.</font></p>
<p><font face="MS Sans Serif" size="-1">You should download <b><a href="files/pe1.zip" style="text-decoration:none">LUEVELSMEYER's 
  description about PE file format.</a></b> It's very detailed and you should 
  keep it as a reference.</font></p>
<hr>
<p align="center"><b><font face="MS Sans Serif" size="-1">[<a href="http://win32asm.cjb.net">Iczelion's 
  Win32 Assembly Homepage</a>]</font></b></p>
<p>&nbsp; </p>
</body>
</html>

?? 快捷鍵說明

復(fù)制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
国产精品美女一区二区三区| 奇米精品一区二区三区四区 | 911精品国产一区二区在线| 日韩区在线观看| 一区二区三区免费| 国产精品小仙女| 欧美一区二区三区在线观看| 亚洲人成精品久久久久| 国产精品一级黄| 在线综合亚洲欧美在线视频| 一区二区三区四区在线播放| 高清日韩电视剧大全免费| 欧美一区二区三区爱爱| 亚洲国产精品自拍| 色成年激情久久综合| 国产亚洲欧美日韩日本| 麻豆精品在线看| 欧美日韩在线三级| 伊人开心综合网| 99re成人在线| 欧美—级在线免费片| 久久69国产一区二区蜜臀| 欧美日韩国产一级| 亚洲午夜久久久久中文字幕久| 99久久国产综合色|国产精品| 国产色综合一区| 国产激情偷乱视频一区二区三区| 精品噜噜噜噜久久久久久久久试看| 午夜国产不卡在线观看视频| 欧美日韩免费观看一区二区三区| 国产乱子伦一区二区三区国色天香| 欧美色窝79yyyycom| 亚洲精品伦理在线| 日本道免费精品一区二区三区| 亚洲免费在线看| 欧美亚洲一区三区| 亚洲成a人v欧美综合天堂| 欧美日韩在线一区二区| 亚洲电影一级片| 欧美日韩国产成人在线91| 亚洲高清免费观看高清完整版在线观看| 在线看日韩精品电影| 亚洲主播在线观看| 91麻豆精品国产91久久久久| 日韩精品一二三| 日韩你懂的在线播放| 激情深爱一区二区| 中文乱码免费一区二区| 99re免费视频精品全部| 亚洲自拍偷拍九九九| 欧美一区二区黄| 国产精品系列在线观看| 亚洲欧洲www| 欧美区视频在线观看| 免费人成在线不卡| 国产亚洲精品aa| 91香蕉视频mp4| 日韩中文字幕麻豆| 久久久久久**毛片大全| 91猫先生在线| 裸体在线国模精品偷拍| 国产精品麻豆网站| 欧美裸体一区二区三区| 欧美一级欧美三级在线观看| 老司机一区二区| 国产欧美日韩在线视频| 色88888久久久久久影院按摩| 天天综合色天天| 国产农村妇女毛片精品久久麻豆 | 亚洲成人精品影院| 久久天堂av综合合色蜜桃网| 99久久精品免费观看| 青青草97国产精品免费观看 | 亚洲日本免费电影| 喷水一区二区三区| 全国精品久久少妇| 精品久久国产字幕高潮| av电影在线观看一区| 水蜜桃久久夜色精品一区的特点| 欧美国产精品劲爆| 欧美日韩成人一区二区| 成人av在线一区二区三区| 亚洲国产一区二区三区青草影视| 久久香蕉国产线看观看99| 欧美日韩精品欧美日韩精品 | 中文字幕中文在线不卡住| 欧美人与禽zozo性伦| 91丨九色丨黑人外教| 国产九色sp调教91| 日本亚洲电影天堂| 亚洲欧美日韩国产综合| 国产区在线观看成人精品| 日韩一区二区三| 日本高清视频一区二区| 成人h精品动漫一区二区三区| 免费欧美日韩国产三级电影| 亚洲最新视频在线观看| 中文字幕制服丝袜一区二区三区 | 国产精品网站导航| 精品免费国产二区三区| 91麻豆精品国产91久久久久| 色综合咪咪久久| 99精品视频在线观看| 高清不卡一二三区| 国产精品原创巨作av| 美女被吸乳得到大胸91| 日韩电影免费在线| 日韩精品欧美精品| 日韩av电影免费观看高清完整版 | 热久久久久久久| 亚洲国产精品久久不卡毛片 | 久久精品在线免费观看| 精品国产制服丝袜高跟| 欧美一级搡bbbb搡bbbb| 91精品在线免费观看| 欧美日韩一卡二卡| 精品视频一区二区三区免费| 欧美最猛性xxxxx直播| 色婷婷av一区二区三区gif| 色综合久久中文综合久久97| 成人av资源下载| 色综合久久久久综合| 成人app在线| 色婷婷综合久久久久中文一区二区 | 久久网站最新地址| 久久色成人在线| 欧美国产日韩一二三区| 成人欧美一区二区三区| 亚洲女厕所小便bbb| 亚洲激情男女视频| 亚洲国产精品久久久男人的天堂| 日日嗨av一区二区三区四区| 在线欧美一区二区| 欧美日韩在线播| 日韩免费观看高清完整版在线观看| 精品日本一线二线三线不卡| 国产午夜亚洲精品理论片色戒| 国产精品久久久久影院老司 | www.久久久久久久久| 91看片淫黄大片一级| 欧美精品在线观看播放| 精品国产一区二区亚洲人成毛片| 久久综合色婷婷| 日韩毛片一二三区| 日精品一区二区三区| 国产精品一区二区免费不卡| 91看片淫黄大片一级在线观看| 欧美日韩精品三区| 久久久久久97三级| 午夜视频在线观看一区二区| 久久精工是国产品牌吗| 粉嫩欧美一区二区三区高清影视| 一本久道中文字幕精品亚洲嫩| 91精品国产综合久久精品app| 国产日韩欧美综合在线| 亚洲成人中文在线| 国产精品一区二区免费不卡| 在线观看一区二区精品视频| 亚洲精品一区二区三区香蕉| 亚洲欧美激情插| 91精品国产综合久久久久久| 久久久综合视频| 亚洲午夜电影在线| 风间由美性色一区二区三区| 欧洲一区二区av| 欧美mv日韩mv亚洲| 亚洲综合免费观看高清在线观看| 狠狠色狠狠色合久久伊人| 在线视频国产一区| 久久亚洲精品小早川怜子| 亚洲成人在线免费| 99视频有精品| 中文字幕av免费专区久久| 日韩黄色一级片| 欧洲中文字幕精品| 国产日韩精品一区二区浪潮av| 亚洲图片自拍偷拍| 91美女视频网站| 国产欧美日本一区二区三区| 麻豆久久久久久久| 欧美精品在线一区二区三区| 一区二区中文字幕在线| 国产乱国产乱300精品| 91精品国产欧美日韩| 亚洲国产精品一区二区久久恐怖片| 成人福利视频网站| 国产亚洲一本大道中文在线| 日本色综合中文字幕| 精品视频一区二区三区免费| 伊人夜夜躁av伊人久久| 91女人视频在线观看| 中文字幕一区二区视频| 国产馆精品极品| 久久精品欧美一区二区三区不卡| 精品在线观看免费| www久久精品| 国产一区二区中文字幕| 国产亚洲一区二区三区四区| 国产又黄又大久久| 欧美国产综合色视频|