Software packers technical research
- Author
- YaoWeiGuang
- Advisor
- ChenWenYu
- School
- University of Electronic Science and Technology
- Major
- Software Engineering
- Classification
- TP311.52 Software Development
- Degree
- Master's thesis
- Year
- 2011
- Downloads
- 120
- Citations
- 0
Abstract
With the development of computer, its application has been deep into all aspects of our social lives. Along with the function of computer growing much stronger, the structure getting more complicated, the cost for developing software has been getting higher and higher. However, to duplicate the software nearly cost nothing, if the software developed by the researcher was taken by other people in illegal way, it will be a great loss to the software researchers and the investors. Therefore, to protect the legal rights of the software developer and maintain the healthy development of software industry, it is necessary to have software protection.Software protection can be realized by laws and by technologies. The law way mainly rely on the improvement of social legislation . This article will focus on how to protect software by using the packer technology. Packer is one important trend in research on software protection. Packer is to compress or encrypt the program which need to be protected, so that it can effectively prevent decompilation or illegal modification.This thesis focus on the packer for the exe file in Windows environment. The reason is because Windows system is the most popular operating system currently, to guarantee the safety for the shared software in Windows system appears more important. Based on that , this article attached great importance to analyze the structure of PE file in Windows , and introduced the packer software ,unpacker software, unpacking method and some important reverse analysis. In view of the feature of existing unpacker technology, this article did research on the reverse analysis theory such as junk code, code confusion, encrypt and compress, virtual machine and so on.The last part of this thesis works over the realization of the packers. In the aspect of the design and realization of packers, it emphasizes the construction of dynamic import tables and virtual machines. This software adopts a dynamic construction way to access the import tables. It not only points out the mechanism and process of building the dynamic import tables, but also explains its advantages and significance. This software makes use of the technology of virtual machines. It introduces the components of virtual machines, and it studies the theory and mechanism of using the virtual machines in packers. Furthermore, the virtual CPU environment, P-code, compiler, and interpreter are the main points of study in this article. The advantages and important significance of using virtual machines in the packers was also explained in this paper.
Table of contents
Summary 4-5
ABSTRACT 5-11
first chapter 11-16
1.1 Research significance 11-12 < br /> 1.2 Software Protection Research 12-14
1.2.1 serial number software protection mechanism 12-13
the 1.2.2 time limit protection mechanisms 13
1.2.3 Key File protection mechanisms 13
1.2.4 functional limitations protection mechanisms 13-14
1.2.5 packers protection mechanism 14
1.3 papers 14-15
1.4 papers structures 15-16
PE file structure 16-29
2.1 PE file format Overview 16-17 the
overall 2.2 PE file structure 17-18
2.3 PE file format Detailed 18-28
2.3.1 DOS MZ Header and DOS the Stub 18
2.3.2 PE Header 18-20
2.3.3 Section Table (block table) 20-21
2.3.4 Sections (block) 21-22 22-26, 2.3.5 Import the Table input table
2.3. 6 base relocations 26-28
2.4 Chapter Summary 28-29
Chapter Packers and shelling 29-40
3.1 Shell's role 29-30
3.2 shell species 30-34
3.2.1 compression shell 30-32
3.2.2 protection shell the 32-34
3.3 tools shelling the manual shelling nbsp 34-35
3.4; 35-39
3.4.1 shell type analysis 35-36
3.4.2 to determine the entry point the 36-38
3.4.2.1 span command finding entry points 37
3.4.2.2 according to The the stack balance principle finding entry point 37
finding entry point 3.4.2.3 compiled language characteristics 37-38
3.4.2.4 Find the entry point memory breakpoints are found; 38
3.4.3 crawl memory image file 38
3.4.4 rebuild input table 38-39
3.5 Chapter Summary 39-40 < br /> Chapter reverse engineering and realization the 40-56
of 4.1 commonly Reverse analysis tools introduced 40-45
4.1.1 OllyDbg to debugger 41-42
4.1.2 SoftICE debugger on 42-43
4.1.3 W32DASM, 43
4.1.4 IDA Pro 43-45
4.2 The principle of anti-debugging techniques to achieve 45-48
4.2.1 principle and implementation of anti-SoftICE debugging 45-46
4.2.2 Anti-OllyDbg to debug The Principle and Implementation the 46-47
4.2.3 TLS-based anti-debugging principles 47-48
4.3 principles of anti-analysis techniques to achieve the 48 - 54
4.3.1 spend Directive Principle and Implementation the 4.3.2 code obfuscation principles 48-49
49-50
4.3.3 encryption, compression block principle 50-51
4.3.4 virtual machine protection principle the SMC 51
4.3.5 Principle and Implementation 51-52 <br / > 4.3.6 SHE principle and achieve the 52-53 4.3.7 camouflage technology
Principle and Implementation 53-54
4.4 the anti-DUMP technology research 54 -55
4.5 Chapter Summary 55-56
Chapter shell design with 56-78
5.1 overall design 56-59
5.1.1 programming language choice 56
5.1.2 compression algorithm selection 56-57
5.1.3 software system architecture nbsp the; 57 -59
5.2 shell design the 59-68
5.2.1 PE file reads the 59-61
5.2.2 block compression 61-63
5.2.3 special data processing 63-64
5.2.4 input table build 64-68
5.3 virtual machine protection principle achieve 68-72
5.3.1 virtual CPU environment the 69-70
5.3.2 directive 70
5.3.3 compiler. 70-71
5.3.4 interpreter. 71-72
5.4 shell. added 72-73
5.5 interface design 73 - 74
5.6 packers software reliability test 74-77
5.7 Chapter Summary 77-78
Chapter VI Conclusion 78-80 < br /> 6.1 summarizes 78
6.2 innovation of this paper 78-79
the 6.3 future research work show and hope 79-80
Acknowledgements 80-81
Reference 81-83
research during the school 83-84
Related dissertations
- The Application of VM-based Packing Technology to E-banking Software
- Research on Software Protection Based on Improved Virtual Machine Technology
- Research and Design on Software Protection System Based on Virtual Machine
- RISC - based software protection virtual machine technology research
- Research and Application of Software Diversity Based on Virtual Machine
- Software protection technology research and analysis and implementation
- Research on Performance Monitoring Technique of Cluster Management of the Virtual System
- Research on Attacks and Prevention Technology Based on ARP and PPPoE
- Based on I/O Performance of Virtual Machine Resource Scheduling Algorithm Research
- The virtual system self-healing analysis model research and Application
- Research and Implemention of Software Copyright Protection
- A Data Persistence System for Virtual Ma-chines in Cloud Environment
- A Comprehensive Checkpoint Mechanism for Virtual Disk Image
- Overcommitting Memory by Initiative Share from KVM Guests
- Research on Techniques of Bandwidth Controlling of Virtual Machine in Data Center
- Research of Optimizing Virtual Machine Checkpoint
- Research on the Optimization Mechanisms for Hot Standby Based on Remus
- Research on Live Migration of Virtual Machine across the Datacenter
- The Research of Dynamic Double-Level Layers VM Scheduler Strategies
- The Mechanical Property Analysis of the High Temperature and High Pressure Well Completion Packer