Research on Type Analysis in Decompilation for ARM Architecture

Author
ZhouLiNa
Advisor
YinQing
School
PLA Information Engineering University
Major
Applied Computer Technology
Classification
TP368.1 Microprocessor
Degree
Master's thesis
Year
2010
Downloads
19
Citations
1

Request the full text

Abstract

The embedded systems with ARM micro processor core are widely used in pivotal electronic equipments of defense, communications, etc. It’s important to analyze the structure and function of its code by using the technology of reverse engineering. One of the key steps in code decompilation is type analysis.In this thesis, based on analyzing the semantic information of ARM assembly instructions, the extraction rules of type feature which have been combined with the definition of type variable are summed up; In view of the characteristics of intermediate language(IL),the method of generating type attributes of the IL statements is designed, the different operators in the expression of the IL statements are highlighted, and the type attributes are added to the IL which is primitive and unincorporated type information; By using the type attributes of the IL, the way of propagation which is based on bidirectional data flow analysis is proposed, so that the problem of obtaining more accurate type information is solved; The reconstruction methods of array and structure type are designed. The course of design is related to the analysis of the relationship between memory access expressions; The implementation of a prototype of type analysis in decompilation for ARM is also mentioned in this thesis.The correctness of the type analysis methods of the basic and complex type is validated by testing abundant instances. According to the results, the discussion of the type analysis in this thesis is comprehensive, implemented easily, and with better practicality and expandability.

Table of contents

List of Tables 6-7 List of Figures 7-8 summary 8-9 ABSTRACT 9-10 The first chapter 10-16 1.1 Background and significance 10-11 1.2 research status analysis 11-15 1.3 15 1.4 papers structural arrangements 15-16 ARM decompile system architecture 16-24 2.1 binary parsing nbsp intermediate language translation; 16-17 2.2 17-21 2.2.1 the grammatical structure of the intermediate language 17-20 2.2.2 assembler instruction semantic dictionary 20-21 2.2.3 SSA form of intermediate representation 21 2.3 optimized data flow analysis based intermediate language 21-23 2.4 type analysis 23 2.5 Chapter Summary the analysis 23-24 Chapter Three basic types 24-39 3.1 type variables defined 24 -25 3.2 ARM instruction type features extracted 25-31 3.2.1 types of information sources 25-26 3.2.2 type characteristics extraction rules nbsp are; 26-29 3.2.3 ARM instruction type characteristic pattern library 29-31 3.3 based on the type of constrained derivation 31-36 3.3.1 Type The derivation constraint satisfaction problems the 31-32 3.3.2 middle statement type constraints 32-33 3.3.3 type inference rules 33-36 < br /> 3.4 type properties generated 36-38 3.5 Chapter Summary 38-39 Chapter spread based on the type of bi-directional data flow analysis 39-50 4.1 basic concepts the 4.2 type spread 39-40 bidirectional data flow analysis framework 40-43 4.3 data flow equations 43-44 4.4 type propagation algorithm 44-48 4.5 instance and results analysis the 48-49 4.6 Chapter Summary 49-50 first analysis of five chapters composite type 50-60 5.1 standard C language in the storage characteristics of the composite type 50-51 5.2 Addressing expression analysis 51-54 5.2.1 intermediate language addressing forms of expressions the equivalence relation 5.2.2 Addressing expression 51-52 52-53 5.2 .3 array aggregation relationship 53-54 5.3 composite data type reconstruction instance analysis 54-58 5.3.1 Constant the subscript reference array instance 54 - 56 5.3.2 variable subscript refers to the array instance the 56-58 5.4 composite type analysis ambiguity 58-59 5.5 Chapter Summary 59-60 Chapter VI prototype design tool 60-65 6.1 prototype tool frame design 60 6.2 basic types analysis module 60-62 6.3 the composite type analysis module 62-63 6.4 results show 63-64 6.5 Chapter Summary 64-65 Conclusion 65-66 Ref. 66-69 the Appendix A type properties of addition and subtraction main derivation rules 69-70 <br / > Author resume studying for a master's degree completed during the main work 70-71 Acknowledgements 71

Related dissertations

  1. Research on Technologies of Control Flow Reconstruction and Control Structure Recovery in Decompilation
  2. Research on Data Type Reconstruction in Decompilation
    HeDong ·PLA Information Engineering University ·2012 ·Master's thesis
  3. Research of Key Technologies on Decompilation
    ChenKaiMing ·Hefei University of Technology ·2004 ·Doctoral dissertation
  4. Research on Statement Recovery and Algorithm Recognition in Code Reverse Analysis
    FangXia ·PLA Information Engineering University ·2009 ·Master's thesis
  5. Analysis of Hardware Fault Propagation in Programs and Research on Fault-tolerance Techniques
  6. Improvement of Bovine SNCT Efficiency with Tetraploid Complementation
    LvZuo ·Gansu Agricultural University ·2013 ·Master's thesis
  7. The Research of Soft Plc Technology Based on Cortex-M3
  8. Research on Technologies of User Access Behavior Check Based on Web Data Stream Analysis
    WeiHao ·PLA Information Engineering University ·2013 ·Master's thesis
  9. Research on Detecting Buffer Overflow in Binary Code
    YuXu ·Nanjing University ·2012 ·Master's thesis
  10. Research on Key Technologies of Malicious Code Binary Program Behavior Analysis
  11. Research on Control Flow Reconstruction of Multi-source Decompilation
    LiDan ·PLA Information Engineering University ·2013 ·Master's thesis
  12. Abnormalities of the intermediate language code based on the mix design and Implementation
  13. The Research and Implementation of Path Sensitive Methods Summary in DTS
  14. An Integration of Several Data Flow Analysis Techniques for Program Verification
    XingYuChen ·Nanjing University ·2013 ·Master's thesis
  15. Research on Software Debugging Techniques Based on the Combination of Machine Learning and Program Analysis
    ZhangCheng ·Shanghai Jiaotong University ·2013 ·Doctoral dissertation
  16. Research on Technology of Buffer Overflow Discovery Based on Hex-Rays
  17. Malware Implementation and Detection on Android
  18. Research on Cultural Anomie’s Impact on Suicides in Rural China
    ZhangZuo ·Shandong University ·2013 ·Master's thesis
  19. From the Freezing Point to the Boiling Point
    ZhangLiJie ·Henan University ·2013 ·Master's thesis
  20. Research workers image in the novels of the new period
    CaoYueJie ·Nanjing Normal University ·2011 ·Master's thesis