Instruction set static disassembling method based on characteristics of DSP processor

A processor and disassembly technology, applied in the field of hardware security, to achieve the effect of ensuring efficiency and accuracy, and improving correctness

CN111399852AActive Publication Date: 2020-07-10UNIV OF ELECTRONICS SCI & TECH OF CHINA
4 Cites 0 Cited by

Patent Information

Authority / Receiving Office
CN · China
Current Assignee / Owner
Publication Date
2020-07-10

Smart Images

  • Figure 1
    Figure 1
  • Figure 2
    Figure 2
  • Figure 3
    Figure 3
Patent Text Reader

Abstract

The invention discloses an instruction set static disassembling method based on DSP processor characteristics. The instruction set static disassembling method comprises the following steps: S1, establishing a data file format analysis library and a binary mapping assembling database; S2, reading binary data to obtain original binary data; S3, processing the original binary data according to the data file format analysis library to obtain binary code data belonging to the program segment; S4, disassembling the binary code data by adopting a static disassembling method to obtain a correspondingassembling instruction; S5, adding branch identifiers to the assembly instructions, and completing the static disassembly of the DSP. According to the method, binary codes running on a DSP processor platform are disassembled, and assembly-level codes are obtained. In order to adapt to the characteristics of the DSP, the disassembling process is improved and adapted; meanwhile, in order to improvethe correctness of disassembling, assembling detection is added, so the disassembling efficiency and accuracy are ensured.
Need to check novelty before this filing date? Find Prior Art

Description

technical field

[0001] The invention belongs to the technical field of hardware safety, and in particular relates to a static disassembly method of an instruction set based on the characteristics of a DSP processor. Background technique

[0002] Disassembly technology plays an important role in the current security field. The current disassembly algorithm includes a linear scan disassembly algorithm and a marching recursive disassembly algorithm.

[0003] The linear scanning algorithm first sets the analysis start address and analysis end address according to the code entry point and the size of the code segment, and then disassembles from the set analysis start address, and then analyzes the code segment according to the restrictions on the start position and end address. scan all content. The linear scanning algorithm does not use control flow information to guide the progress of the disassembly engine during the scanning process, and disassembles each instruction encoun...

Examples

Embodiment Construction

[0050] Embodiments of the present invention will be further described below in conjunction with the accompanying drawings.

[0051] Such as figure 1 As shown, the present invention provides a kind of instruction set static disassembly method based on DSP processor characteristics, comprises the following steps:

[0052] S1: Establish a data file format analysis library and a binary mapping assembly database;

[0053] S2: Based on the data file format analysis library and the binary mapping assembly database, read the binary data stored in the non-volatile memory outside the DSP processor chip to obtain the original binary data;

[0054] S3: According to the data file format analysis library, the original binary data is processed to obtain the binary code data belonging to the program segment;

[0055] S4: assemble the database according to the binary mapping, and disassemble the binary code data by using the static disassembly method to obtain the corresponding assembly inst...