The Research Of C++Decompile And Its Application

Author
XingRui
Advisor
ZhengTao
School
Nanjing University
Major
Computer Science and Technology
Classification
TP311.11 Programming method
Degree
Master's thesis
Year
2012
Downloads
100
Citations
0

Request the full text

Abstract

With the extensive application of computer technology in various fields, especially the rapid development of the software development technology, infer the data structure, architecture and programming information of software by disassemble method, has become the focus of software reverseengineers and technicians. Software Reverse Engineering is based on the system of executable programs, analysis the corresponding source code, system architecture and related design principles and thought of algorithms document. It has great research value, to avoid duplication of effort and improve software productivity and quality.There are many reseraches on Software reverse engineering, but it still belongs to a not yet fully developed area, and there is no unified standards, methods or process to do it, it is necessary to in-depth study. There are many mature decompilation tools In the field of decompile for Java, based on NET C#and PB language, but due to the complexity of C and C++language, there is no corresponding tool. There only exists some phased software reverse engineering tools. Only Using these tools is not able to systematically to complete the overall process of reverse engineering.This paper studies the theory and methods of reverse engineering, combined with MSTS Microsoft Train Simulator, by analyzing the MSTS memory data distribution, and configuration files, etc., proposes methods of getting system architecture and data in memory, and gets some design ideas in the MSTS and algorithmic thinking, and found MSTS software in some of the loopholes and inadequacies.While practicing the proposed methods of reverse engineering, this paper analyzes a test program written by Visual Studio and gets the basic decompilation method of C++language, then anaylses MSTS and gets the data and control method which is used to drive in MSTS, and finishes a driver assistance system, which can let the computer driving the train automatically.

Table of contents

Summary 5-6 Abstract 6-10 LIST 10-11 table directory 11-12 Chapter 1 Introduction 12-17 1.1 background 12-13 1.2 Research Status . 13-15 1.2.1 reverse Engineering Development history Category 13 1.2.2 reverse engineering 13-14 1.2.3 decompile research status 14-15 1.3 of this paper is mainly work organizational structure 15 1.4 article 15-17 the second chapter describes and analyzes the techniques and tools 17-25 2.1 legitimate reverse engineering discourse method 17 2.2 reading memory data 17-18 2.3 disassembler 18 2.4 structure Introduction 18-19 2.5 calling convention Profile 19-20 2.5.1 cdecl calling convention 19 2.5.2 stdcall calling convention 19 2.5.3 x86 fastcall calling convention 19-20 2.5.4 C calling convention 20 2.6 Microsoft Visual C implementation mechanism virtual function analysis 20 -23 2.7 Cheat Engine introduces 23-24 2.7.1 Find the value change memory process 23 2.7.2 pointer search 23 -24 2.7.3 tracking modify the memory read instruction 24 2.8 FileMon introduced 24-25 Chapter III method to get the system architecture and application 25-33 3.1 MSTS About 25 3.2 design information by analyzing the file for ways 25-29 3.2.1 TDB file structure of the overall structure analysis 25-26 3.2.2 MSTS abstract description of the tracks describe 26-27 3.2.3 rail connection mode 27 3.2.4 Trltem information 27-29 3.2.5 TrVectorNode brief introduction 29 3.3 document workflow processing methods to obtain by monitoring file system 29 - 30 3.4 to obtain design information through domain knowledge to understand the method 30-31 3.5 understand the method of memory by reading the file structure of the module 31-33 fourth methods and Applications chapter for memory data 33-47 4.1 Find static RAM data through the memory search method 33 4.2 presumed reasonable method to obtain the data structure 33-36 4.2.1 MSTS in double- linked list representation 34 4.2.2 MSTS doubly linked list structure 34 4.2.3 double traverse MSTS list approach 34-36 pointer search through data looking for dynamic memory allocation method 4.3 36-37 4.4 method speculate relevant information through the existing data methods 37-38 4.5 combines structural analysis system memory 38-42 4.5.1 TrVectorNode memory distribution 38-39 4.5.2 TrJunctionNode distributed memory 39-40 4.5.3 to get the next SVectorNode way 40-41 get all the way on the path SVectorNode 4.5.4 41-42 <br / > 4.6 through disassemble , decompile acquisition method requires information 42-47 4.6.1 way to get information in front of lights 42 4.6.2 to get in front of the speed limit signs Implementation of information 42-44 4.6.3 obtain a temporary speed limit of the method 44-47 Chapter achieve MSTS aids 47-57 5.1 MSTS control methods 47-48 5.1.1 analog buttons law 47-48 5.1.2 memory overwrite method 48 <br / > 5.2 locomotive control algorithm 48-51 5.3 autopilot system running interface Fig 51-52 5.4 improved running monitor 52-53 obtaining 5.5 train tracks curve and slope 53-57 Chapter VI summary and Outlook 57-59 6.1 summarizes 57 <br / > 6.2 further work prospects 57-59 References 59-61 Thanks 61-62 involved in the project 62-64

Related dissertations

  1. The Research of Embedded Motion Controller Based on the DSP
    HeXiaoPing ·Chang'an University ·2009 ·Master's thesis