当前位置:网站首页>Import address table analysis (calculated according to the library file name: number of imported functions, function serial number and function name)
Import address table analysis (calculated according to the library file name: number of imported functions, function serial number and function name)
2022-04-23 15:45:00 【Hardworking666】
List of articles
Import address table (Import Address Table,IAT) Used to record what programs are using DLL Which functions in .
Import name table (Import Name Table,INT)
One 、 Find the file name and RVAsec and RAWsec


Through analysis PE head , Available notepad.exe The range of each section head of the is shown in table 4-12 Shown . And analyze the table 4-13.


Two 、 analysis INT and IAT, Get the number of imported functions
Further analysis below notepad.exe Of documents INT and IAT.
With KERNEL32.dll For example , The DLL Corresponding INT Array and IAT Array in PE Medium RAW The offsets are 6B58H and 48CH.
PE The offset range of the file 6B58H~6C3FH Space preservation of INT, among IMAGE_THUNK_DATA32 The number of structures is 57.
here :57=14 That's ok ×4+1, This is Number of imported functions
PE The offset range of the file 48CH~573H Space preservation of IAT, among IMAGE_THUNK_DATA32 The number of structures is also 57.
INT and IAT The contents are shown in the figure 4-4(a) Sum graph 4-4(b) Shown .


3、 ... and 、 Function sequence number 、 The name of the function
Then analyze INT First of all (00008024H) The point is IMAGE_IMPORT_BY_NAME The content of the structure ,
The content is in PE The offset of the file 8024H-1000H+ 400H=7424H Location .
notes : Here is 8024, the reason being that 2480 Small end storage . Can pass LordPE Work out .

The content of this structure is shown in Figure 4-5 Shown .
among Hint Field Serial number value by 013EH, And the imported function Name The field is analyzed by the hexadecimal editor as "GetCurrentThreadId”.
It can also be analyzed in a similar way KERNEL32.dl1 All of them are notepad.exe Of the imported function Serial number and Function name .
First function serial number ( The small end ):013E
First function name :GetCurrentThreadId


Function sequence number 、 The function name can be through HXD Right click to select the range and then enter the offset obtain :

版权声明
本文为[Hardworking666]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204231531417833.html
边栏推荐
猜你喜欢

Pgpool II 4.3 Chinese Manual - introductory tutorial

【开源工具分享】单片机调试助手(示波/改值/日志) - LinkScope

Application of Bloom filter in 100 million flow e-commerce system

What if the server is poisoned? How does the server prevent virus intrusion?

JVM-第2章-类加载子系统(Class Loader Subsystem)

幂等性的处理

建设星际计算网络的愿景

WPS brand was upgraded to focus on China. The other two domestic software were banned from going abroad with a low profile

MySQL Cluster Mode and application scenario

大厂技术实现 | 行业解决方案系列教程
随机推荐
Go language, array, pointer, structure
How did the computer reinstall the system? The display has no signal
Common types of automated testing framework ▏ automated testing is handed over to software evaluation institutions
编译,连接 -- 笔记
Explanation of redis database (IV) master-slave replication, sentinel and cluster
一刷313-剑指 Offer 06. 从尾到头打印链表(e)
Application of Bloom filter in 100 million flow e-commerce system
Go语言条件,循环,函数
What if the server is poisoned? How does the server prevent virus intrusion?
布隆过滤器在亿级流量电商系统的应用
PHP PDO ODBC loads files from one folder into the blob column of MySQL database and downloads the blob column to another folder
字符串排序
Connect PHP to MSSQL via PDO ODBC
Why disable foreign key constraints
PHP classes and objects
C language --- string + memory function
The El tree implementation only displays a certain level of check boxes and selects radio
Upgrade MySQL 5.1 to 5.66
Connect PHP to MySQL via PDO ODBC
PHP PDO ODBC将一个文件夹的文件装载到MySQL数据库BLOB列,并将BLOB列下载到另一个文件夹