当前位置:网站首页>Introduction to reverse debugging PE structure input table output table 05/07
Introduction to reverse debugging PE structure input table output table 05/07
2022-07-01 12:52:00 【51CTO】
Input table
Input function , Indicates that it is called by a program, but its code is not in the program code , And in the dll The function in . For these functions , The executable file on the disk just keeps the relevant function information , Such as function name ,dll File name, etc. . Before the program runs , The program does not save the address of these functions in memory . When the program runs ,windows The loader will put the relevant dll Load memory , And connect the instruction of the input function with the address of the function in memory . Input table ( The import table ) It is used to save the information of these functions .
Structure
typedef struct _IMAGE_IMPORT_DESCRIPTOR {
_ANONYMOUS_UNION union { //00h
DWORD Characteristics;
DWORD OriginalFirstThunk;
} DUMMYUNIONNAME;
DWORD TimeDateStamp; //04h
DWORD ForwarderChain; //08h
DWORD Name; //0Ch
DWORD FirstThunk; //10h
} IMAGE_IMPORT_DESCRIPTOR,*PIMAGE_IMPORT_DESCRIPTOR;
- 1.
- 2.
- 3.
- 4.
- 5.
- 6.
- 7.
- 8.
- 9.
- 10.

The functions of the two structures are the same , All for the convenience of finding DLL Function of .

IMT Is the location of the file on the disk
IAT Is the location pointed to by the file after it is loaded into memory
We use Stud_PE To view the

Program hello Its function is to pop up a dialog box
Therefore, we judge that MessagesBox

Use this tool to open a copy of the program

In the head of the file , You can view the information of the input table

We turn on “ stay 16 View file header tree in hexadecimal editor ”

Let's check the directory of data

You can see the location of the input table in the file
There are two arrays , Two functions , the reason being that 8 Bytes

stay 282acH in
Let's use OD Conduct case analysis

We are going to have a hello file

The function of this program is to pop up a dialog box .

We use OD Software debugging program

stay call Problem found in function

Found out MessageBoxA
F7 Get into

Found at the highland site messageBoxtimeoutA

Then we can know , The previous paragraph is all about this function .
Export table

The structure of the exported table is relatively simple .
边栏推荐
- Redis exploration: cache breakdown, cache avalanche, cache penetration
- 有人碰到过这种情况吗,oracle logminer 同步的时候,clob字段的值丢失
- flinkcdc要实时抽取oracle,对oracle要配置什么东西?
- Mysql间隙锁
- 运行Powershell脚本提示“因为在此系统上禁止运行脚本”解决办法
- Ikvm of toolbox Net project new progress
- Simple Fibonacci (recursive)
- 我选的热门专业,四年后成了“天坑”
- Based on the open source stream batch integrated data synchronization engine Chunjun data restore DDL parsing module actual combat sharing
- 基于开源流批一体数据同步引擎 ChunJun 数据还原 —DDL 解析模块的实战分享
猜你喜欢

Circular linked list--
![leetcode:241. Design priority for operation expression [DFS + Eval]](/img/d0/8dedeba7ecedccd25e0e3e96ff3362.png)
leetcode:241. Design priority for operation expression [DFS + Eval]

用.Net Core接入微信公众号开发

Mobile note application

Detailed explanation of OSPF LSA of routing Foundation

CS5268优势替代AG9321MCQ Typec多合一扩展坞方案
![[today in history] July 1: the father of time sharing system was born; Alipay launched barcode payment; The first TV advertisement in the world](/img/41/76687ea13e1722654b235f2cfa66ce.png)
[today in history] July 1: the father of time sharing system was born; Alipay launched barcode payment; The first TV advertisement in the world

79. 单词搜索【dfs + 回溯visit + 遍历起点】
![[brain opening] west tide and going to the world series](/img/b2/444af296e170d19629800b3d4c50fa.jpg)
[brain opening] west tide and going to the world series

redis探索之缓存一致性
随机推荐
Mobile note application
Report on the "14th five year plan" and investment strategy recommendations for China's industrial robot industry 2022 ~ 2028
redis探索之缓存击穿、缓存雪崩、缓存穿透
下半年还有很多事要做
Will it affect the original MySQL database to read the data of a MySQL table in full by flick MySQL CDC
Redis explores cache consistency
Jenkins+webhooks-多分支参数化构建-
SSO and JWT good article sorting
79. Word search [DFS + backtracking visit + traversal starting point]
Tencent security released the white paper on BOT Management | interpreting BOT attacks and exploring ways to protect
PG基础篇--逻辑结构管理(触发器)
基因检测,如何帮助患者对抗疾病?
華為面試題: 招聘
79. 单词搜索【dfs + 回溯visit + 遍历起点】
Teach you to complete the actual battle of image classification hand in hand -- Image Recognition Based on convolutional neural network
leetcode:226. 翻转二叉树【dfs翻转】
Circular linked list--
《MATLAB 神经网络43个案例分析》:第40章 动态神经网络时间序列预测研究——基于MATLAB的NARX实现
快速整明白Redis中的压缩列表到底是个啥
Router.use() requires a middleware function but got a Object