Unlock instant, AI-driven research and patent intelligence for your innovation.

Instruction recovery method and system for binary file, electronic equipment and storage medium

A binary file and recovery method technology, which is applied in the field of electronic equipment and storage media, systems, and binary file instruction recovery methods, can solve problems such as increasing processing overhead, inaccurate recovery instruction semantics, and affecting the correctness of executable files. To achieve the effect of ensuring correctness

Pending Publication Date: 2022-06-24
INST OF INFORMATION ENG CAS
View PDF0 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

However, its method of constructing input to achieve full coverage of executable files does not guarantee complete coverage
Additionally, dynamic execution also executes duplicate code, which also increases processing overhead in rewrites
[0015] In short, the existing technical means cannot accurately restore all instruction semantics in the binary file, which will affect the correctness of the rewritten executable file

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Instruction recovery method and system for binary file, electronic equipment and storage medium
  • Instruction recovery method and system for binary file, electronic equipment and storage medium
  • Instruction recovery method and system for binary file, electronic equipment and storage medium

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0046] In order to make the objectives, technical solutions and advantages of the present invention clearer, the technical solutions in the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention. , not all examples. Based on the embodiments of the present invention, all other embodiments obtained by those of ordinary skill in the art without creative efforts shall fall within the protection scope of the present invention.

[0047] The following describes the instruction recovery method for binary files provided by the embodiments of the present application in detail through specific embodiments and application scenarios with reference to the accompanying drawings.

[0048] figure 1 A schematic flowchart of an instruction recovery method for a binary file provided by the present invention, figure 2 The principle diagram of the instruc...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses an instruction recovery method and system for a binary file, electronic equipment and a storage medium. The method comprises the following steps: acquiring an address of a suspected function entry through a data space of the binary file; traversing the program path according to the program control flow path, for a non-traversed part in the program, selecting a next address adjacent to the control flow transfer instruction to continue traversing, and analyzing a first instruction in combination with a predetermined strategy; taking a range between a next address adjacent to the control flow transfer instruction and the address of the first instruction as a function gap, and determining an address of a suspected function entry falling into the function gap as a legal initial address; and disassembling from the legal initial address, and taking the recovered instruction address and the instruction of which the function gap range can be aligned as a recovered second instruction. The correctness of the recognized instruction semantics is ensured, the efficiency of processing the binary file can be improved, and the full-path coverage of the binary file is ensured.

Description

technical field [0001] The present invention relates to the technical field of disassembly, and in particular, to a method, system, electronic device and storage medium for recovering instructions of binary files. Background technique [0002] In the case where the program source code is missing, the binary rewriting technology upgrades the compiled binary file to a higher-level programming language such as assembly language, intermediate representation language (IR), and performs secondary optimization, patching or Security hardening (including binary hardening, profiling, instrumentation, and adding security policies), and the technology of recompiling into binary executables. [0003] The BINCFI technology first uses linear scanning to decode all text segments. For the instructions that have identified errors, find the nearest jump instructions, and take these jump instructions as the end point, and recursively traverse from the starting position of the last decoding. De...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
IPC IPC(8): G06F8/74
CPCG06F8/74
Inventor 陈李维田力楠杨焰琦史岗孟丹
Owner INST OF INFORMATION ENG CAS