当前位置:网站首页>导入地址表分析(根据库文件名求出:导入函数数量、函数序号、函数名称)
导入地址表分析(根据库文件名求出:导入函数数量、函数序号、函数名称)
2022-04-23 15:31:00 【Hardworking666】
导入地址表(Import Address Table,IAT)用来记录程序正在使用哪些DLL中的哪些函数。
导入名称表(Import Name Table,INT)
一、找出库文件名和RVAsec和RAWsec
通过分析PE头,可得notepad.exe的各节区头范围如表4-12所示。并分析出表4-13。
二、分析INT和IAT,得出导入函数数量
下面进一步分析notepad.exe文件的INT和IAT。
以 KERNEL32.dll
为例,该DLL对应的 INT 数组和 IAT 数组在PE中的RAW偏移量分别为6B58H和48CH。
PE文件的偏移量区间6B58H~6C3FH
的空间保存INT,其中IMAGE_THUNK_DATA32结构的个数为57。
这里:57=14行×4+1,这个就是导入函数数量
PE文件的偏移量区间48CH~573H
的空间保存IAT,其中IMAGE_THUNK_DATA32结构的个数也为57。
INT和IAT的内容分别如图4-4(a)和图4-4(b)所示。
三、函数序号、函数名称
接着分析INT的第一项(00008024H)所指向的IMAGE_IMPORT_BY_NAME结构的内容,
该内容在PE文件的偏移量8024H-1000H+ 400H=7424H位置。
注:这里是8024,因为是2480的小端存储方式。可以通过LordPE算出。
该结构的内容如图4-5所示。
其中Hint字段的序号值为013EH,而被导入函数的Name字段经十六进制编辑器分析出为"GetCurrentThreadId”。
也可以用类似的方法分析出KERNEL32.dl1中所有被notepad.exe导入的函数的序号和函数名。
第一函数序列号(小端):013E
第一函数名:GetCurrentThreadId
函数序号、函数名称可以通过HXD右键选择范围再输入偏移量得出:
版权声明
本文为[Hardworking666]所创,转载请带上原文链接,感谢
https://blog.csdn.net/Hardworking666/article/details/124309121
边栏推荐
- Reptile exercises (1)
- 网站建设与管理的基本概念
- What is CNAs certification? What are the software evaluation centers recognized by CNAs?
- Openstack command operation
- 控制结构(一)
- Sword finger offer (1) -- for Huawei
- adobe illustrator 菜單中英文對照
- Summary of interfaces for JDBC and servlet to write CRUD
- What are the mobile app software testing tools? Sharing of third-party software evaluation
- Special analysis of China's digital technology in 2022
猜你喜欢
Design of digital temperature monitoring and alarm system based on DS18B20 single chip microcomputer [LCD1602 display + Proteus simulation + C program + paper + key setting, etc.]
regular expression
Functions (Part I)
Detailed explanation of redirection and request forwarding
木木一路走好呀
KNN, kmeans and GMM
网站建设与管理的基本概念
Analysis of common storage types and FTP active and passive modes
Detailed explanation of MySQL connection query
Knn,Kmeans和GMM
随机推荐
A series of problems about the best time to buy and sell stocks
Application of skiplist in leveldb
T2 icloud calendar cannot be synchronized
Do keyword search, duplicate keyword search, or do not match
Detailed explanation of kubernetes (XI) -- label and label selector
Sorting and replying to questions related to transformer
Mysql连接查询详解
C language super complete learning route (collection allows you to avoid detours)
码住收藏▏软件测试报告模板范文来了
T2 iCloud日历无法同步
深度学习调参的技巧
今日睡眠质量记录76分
Connect PHP to MSSQL via PDO ODBC
X509 certificate cer format to PEM format
PHP 的运算符
cadence SPB17.4 - Active Class and Subclass
Have you really learned the operation of sequence table?
SSH connects to the remote host through the springboard machine
Baidu written test 2022.4.12 + programming topic: simple integer problem
php函数