作者投稿和查稿 主编审稿 专家审稿 编委审稿 远程编辑

计算机工程 ›› 2010, Vol. 36 ›› Issue (16): 47-48. doi: 10.3969/j.issn.1000-3428.2010.16.017

• 软件技术与数据库 • 上一篇    下一篇

PE可执行程序中Main函数的定位技术

付 文,赵荣彩,庞建民,张一弛   

  1. (解放军信息工程大学信息工程学院,郑州 450002)
  • 出版日期:2010-08-20 发布日期:2010-08-17
  • 作者简介:付 文(1980-),女,博士研究生,主研方向:逆向分析,信息安全;赵荣彩、庞建民,教授、博士生导师;张一弛,博士研究生
  • 基金资助:

    国家“863”计划基金资助项目(2006AA01Z408, 2009AA01 Z434);河南省重大科技攻关计划基金资助项目(092101210500, 092101210501)

Technique on Locating Main Function from Portable Executables

FU Wen, ZHAO Rong-cai, PANG Jian-min, ZHANG Yi-chi   

  1. (Institute of Information Engineering, PLA Information Engineering University, Zhengzhou 450002)
  • Online:2010-08-20 Published:2010-08-17

摘要:

针对二进制代码分析中由于无符号表信息造成的难以定位主函数main()的问题,提出一种面向PE可执行程序的main函数定位方法。通过分析PE程序从入口点处开始的执行过程从而提炼相关模板,采用模板匹配的方法定位程序中主函数main()的地址。实验结果表明,该方法能够有效实现不同编译环境下PE可执行程序的main()函数定位,有助于提高二进制代码分析工具的分析能力。

关键词: 二进制代码分析, 符号表, PE可执行程序, 模板匹配

Abstract:

Locating main function from binary code is not an easy task when there is no symbol table in it. Aiming at this problem, this paper presents a novel approach for Portable Executables(PE). It analyzes the execution process of a PE from the entry point to abstract some patterns for locating. Instruction pattern matching is used to locate the address of function main() from a PE file. Experimental result shows that the approach based on pattern matching is favorable and effective on locating function main() from portable executables in different platform. It can improve the analyzing ability of binary code analysis tools.

Key words: binary code analysis, symbol table, Portable Executables(PE), pattern matching

中图分类号: