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

计算机工程 ›› 2012, Vol. 38 ›› Issue (19): 30-33.

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

基于规则的数据类型重构技术研究

尹 青1,何 东1,李 娜2,何红旗1   

  1. (1. 国家数字交换系统工程技术研究中心,郑州 450002;2. 中国矿业大学银川学院,银川 750011)
  • 收稿日期:2011-11-29 出版日期:2012-10-05 发布日期:2012-09-29
  • 作者简介:尹 青(1967-),女,副教授,主研方向:软件逆向工程;何 东,硕士研究生;李 娜,助教、硕士;何红旗,副教授
  • 基金资助:
    国家“863”计划基金资助项目(2007AA01Z483);河南省科技攻关计划基金资助项目(092101210503)

Research of Rule-based Data Type Reconstruction Technology

YIN Qing 1, HE Dong 1, LI Na 2, HE Hong-qi 1   

  1. (1. National Digital Switching System Engineering & Technological R&D Center, Zhengzhou 450002, China; 2. Yinchuan College, China University of Mining and Technology, Yinchuan 750011, China)
  • Received:2011-11-29 Online:2012-10-05 Published:2012-09-29

摘要: 为恢复变量的数据类型信息并提高反编译的质量,提出一种基于规则的数据类型重构方法。采用静态和动态相结合的分析方式,将可执行代码转化为中间语言,在优化中间语言的基础上为每条指令制定约束规则,并给出相应的求解算法,从而推导出变量的数据类型信息。实验结果表明,该方法能对简单数据变量类型和复杂数据变量类型进行恢复,具有较高的准确性。

关键词: 反编译, 类型重构, 类型约束, 中间语言, 类型格

Abstract: In order to recover types of variables and improve the quality of decompilation, this paper proposes a rule-based data type reconstruction technology method. It translates the executable into intermediate language with dynamic and static analysis, generates corresponding constrain for each instruction, gives out solving algorithm, and infers the real type of corresponding variable. Experimental results show that this method can recover simple data variable type and complex data variable type, and it has a high practicability.

Key words: decompilation, type reconstruction, type constraint, intermediate language, type lattice

中图分类号: