Research on Decompilation of AS Based on SWF

Author
HeHongLiang
Advisor
WeiZhiHua
School
Wuhan University of Technology
Major
Applied Computer Technology
Classification
TP314 Compiler,interpreter
Degree
Master's thesis
Year
2009
Downloads
88
Citations
0

Request the full text

Abstract

Today there are many excellent software with the development of computer science and technology.These software products have accumulated a lot of good developers’ design ideas and experience.We must analyse the software source program in order to understand and learn ideas and principles within software;and we should obtain various parameters of the software.If we want to develop software compatible with the software,we should get the software source codes.However,in order to gain advantage in the market competition,software developers generally will not be open source codes.Therefore,decompiling on software has become a frequently used method to development and technical personnel.With general application of computer software,decompilation becomes important research field in software reverse engineering.Many practical sites show its significance,such as migration of software programs,security analysis of business software,cryptanalysis, and reuse of software.Decompilation is the process which translates source programs writted by machine-code level language into corresponding advanced language program writted by compiler level language.Decompiler is looked as a software tool,whose function is equivalent to the reverse process of compiler.It is an important component of the software reverse engineering.SWF is a special format of Macromedia’s animation design software—Flash.It is a animation file format which support vector and bitmap graphics,which has the characteristics such as not having the scaling distortion,no small size document and so on.It uses streaming media technology,you can play it while downloading.Nowadays it has been widely used in web design,animation production and other fields.It is composed by the header and the body.In order to interactive better user with interface,we introduced action script language ActionScript(short for AS) to Flash.ActionScript is the Flash scripting language.It is similar to JavaScript which is an object-oriented programming language.This article describe the compilation based on AS. The main contents of the thesis are following:(1) Discussed the main technology on compilation,including analysis of data flow,analysis of control flow, identification of library functions,and so on;(2)Described some main patterns of decompilation.We selected a decompilation pattern based on pattern recognition which is suitable for our system.Syntax analyis,grammar analyis,syntactic analysis, semantic analysis,generation of intermediate code,generation of control flow graph. (3)Introduce the running environment of decompiling system—Decompiler.Translate text file into binary file,and comply successfully compilation from binary file to source file by using the idea of pattern matching.The main contribution of the thesis is the following,designed and finished the decompilation system on ActionScript based on SWF,which can meet the need of customers,and fulfill the recovery of AS stored in SWF,and supply basic research to the butter development of future decompliation.

Table of contents

Chinese Abstract 4-5 Abstract 5-9 Chapter 1 Introduction 9-12 topic 1.1 Background 9-10 120 research 10 1.3 paper structure 10-12 Chapter 2 decompilation 12-24 2.1 data flow analysis 12-16 2.1.1 Data flow analysis stage 12-14 2.1.2 data flow analysis, 14-16 2.2 control flow analysis 16-21 2.2.1 high-level language control structures 16-17 2.2.2 The control flow analysis of the basic principles of 17-18 2.2.3 interval theory 18-20 2.2.4 Statute of the control flow graph structured algorithm 20-21 2.2.5 can not be the Statute of the control flow graph structure algorithm 21 2.3 library function recognition 21-24 2.3.1 signature generation 21-22 2.3.2 library function prototypes generated 22-24 Chapter 3 technical analysis of anti-compilation system Decompiler 24-38 3.1 decompilation mode 24-25 3.2 parsing 25-29 3.2.1 finite state automata 25-26 3.2.2 parser 26-27 3.2.3 code and data separation 27-29 3.3 Semantic Analysis 29-31 3.3.1 function 29-30 3.3.2 simple type conversion 30-31 3.4 intermediate code generation 31-34 3.4.1 of low-level intermediate code 32-33 3.4.2 intermediate code 33-34 3.5 control flow graph generation 34-38 3.5.1 the basic concepts 34-37 3.5.2 Implementation and Optimization 37-38 Chapter 4, anti-compilation system Decompiler achieve 38-52 4.1 operating environment 38-41 4.1.1 binary format 38 4.1.2 function runs when the stack structure 38-39 4.1.3 data type 39-41 4.1.4 SWF and AS introduction 41 4.2 text files into binary files 41-43 4.3 binary file restore source files 43-51 4.3.1 The main design idea 43-46 4.3.2 decompile each class 46-51 4.4 Summary 51-52 Chapter 5 Summary and outlook 52-53 5.1 in this article summarize 52 5.2 Looking 52-53 thank 53-54 References 54-57 Appendix for master degree studies published during the academic 57

Related dissertations

  1. Research on Technology of Buffer Overflow Discovery Based on Hex-Rays
  2. Research on China’s Sovereign Wealth Fund
    WangLi ·Tianjin University of Commerce ·2013 ·Master's thesis
  3. Design and Implementation of Trojan Detection System Based on Network Transmission Content
    WangYanYan ·Northeastern University ·2011 ·Master's thesis
  4. The Research and Implementation of Distributed Intrusion Detection System Based on Libnids
    XuPingJun ·Central South University ·2012 ·Master's thesis
  5. Researches on Non-exact Deep Packet Inspection
    WangHaiQiang ·Harbin Institute of Technology ·2013 ·Master's thesis
  6. The Research of Multi-pattern Matching Algorithms Based on Bit-split Method
  7. Research on Structured Information Extraction Based on Pattern Matching
    YangChunLei ·Hefei University of Technology ·2013 ·Master's thesis
  8. Pattern Matching with Variable Wildcards
    LiuYingLing ·Hefei University of Technology ·2014 ·Doctoral dissertation
  9. Approximate String Matching under Different Models
    ZhaoHua ·Huazhong University of Science and Technology ·2013 ·Doctoral dissertation
  10. Improvement and Implementation of Iris Recognition Algorithm
  11. The Research on Time Series Analysis Techniques
    VO THI THANH VAN ·Hunan University ·2013 ·Doctoral dissertation
  12. An Empirical Study on Quantitative Investment Strategies Based on Data Mining
    LiHuiLan ·Zhejiang University ·2014 ·Master's thesis
  13. Design and Implementation of Mobile Internet Content Security Audit System
    JinZuoLei ·Beijing Jiaotong University ·2014 ·Master's thesis
  14. Hybrid Carrier Communication System Resistance against Multi-path Fading and Narrowband Interference
    LiTao ·Harbin Institute of Technology ·2012 ·Master's thesis
  15. Research on Signal Processing Technology for Represent Polymer Compounding State
    HanZuo ·University of North ·2014 ·Master's thesis
  16. Research on the Immunogenetic Mechanism and Risk Prediction for Ankylosing Spondylitis Onset
    GaoJie ·Second Military Medical University ·2013 ·Master's thesis
  17. Analysis of PPARGC1B, RUNX3, TBKBP1, JARID1A, JMY and PTGER4Polymorphisms in Chinese Han Patients with Ankylosing Spondylitis:a Case-Control Study
    LianZiJian ·Nankai University ·2013 ·Doctoral dissertation
  18. Removal of Arsenic and Organic Pollutants from High Salt Wastewater Using Fenton Oxidation and Precipitation with Lime and Ferric Salt
    YangJia ·Hunan University ·2013 ·Master's thesis
  19. The Research on Removal of Trichloroethylene, Hexavalent Chromium and Arsenic in the Environment by Nanoscale Iron Particle
  20. Research on the Distribution of as in Coal-fired Product and the Precipitation Regularity of as during Coal Combustion
    LiuZuo ·Liaoning Technical University ·2013 ·Master's thesis