Supercharge Your Innovation With Domain-Expert AI Agents!

Instruction recombining method and device

A technology of instruction reorganization and instruction, applied in the field of information security, to achieve good protection and increase the difficulty of cracking

Active Publication Date: 2017-07-14
BEIJING SENSESHIELD TECH
View PDF6 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] The present invention provides an instruction recombination method and device to solve the problem that the garbled instructions generated by the traditional method do not have a good protection effect on the program

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 recombining method and device
  • Instruction recombining method and device
  • Instruction recombining method and device

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0041] figure 1 It is a flow chart of an instruction reorganization method in Embodiment 1 of the present invention. This embodiment is applicable to the automatic generation of flower instructions. The method can be executed by an instruction reorganization device, which can be implemented by software and / or hardware way to achieve.

[0042] A computing device system in the prior art includes: a user interface layer, an application layer, an operating system kernel layer, a hardware mapping layer, and a hardware layer.

[0043] Among them, the user interface layer is the interface between the user and the device, through which the user interacts with the device (that is, other layers of the device, such as the application layer. The application layer refers to the application software layer. The operating system kernel layer is a software-based Generally speaking, the logic layer is composed of software data and software code. Compared with the interface layer and applicatio...

Embodiment 2

[0067] figure 2 It is a flowchart of an instruction reorganization method in Embodiment 2 of the present invention. On the basis of Embodiment 1, this embodiment performs a second equivalent deformation operation on the second reorganization instruction, as shown in figure 2 As shown, the method includes:

[0068] S210. Extract at least one effective instruction from the initial instruction;

[0069] Wherein, the effective instruction can also be stored in the instruction linked list, so before obtaining the effective instruction, it is necessary to determine the head node of the instruction linked list where the effective instruction is located, and then obtain the effective instruction according to the head node of the instruction linked list.

[0070] S220. Perform equivalent deformation on the effective instruction to obtain a first equivalent instruction;

[0071] S230. Replace the effective instruction with the first equivalent instruction to obtain a first reorganiz...

Embodiment 3

[0099] image 3 It is a flow chart of a preferred implementation of an instruction reorganization method in the third embodiment of the present invention, and this embodiment is a preferred example based on the above-mentioned embodiments.

[0100] Specific methods include:

[0101] Read a valid instruction from the instruction stream;

[0102] Perform equivalent transformation on effective instructions to obtain at least one equivalent instruction;

[0103] Determine whether the equivalent transformation operation is over;

[0104] If not, randomly read a valid instruction from the instruction stream and perform an equivalent transformation operation;

[0105] If so, traverse the waste instruction list, and obtain a waste instruction from the waste instruction list;

[0106] Randomly read a pending instruction from equivalent instructions, and add a waste instruction to the instruction, the pending instruction can be a valid instruction or a waste instruction; further pre...

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 recombining method and device. The instruction recombining method comprises extracting at least one effective instruction from initial instructions; carrying out equivalent deformation on the effective instruction to obtain a first equivalent instruction; replacing the effective instruction by the first equivalent instruction to obtain a first recombination instruction; and adding at least one junk instruction to the first recombination instruction to obtain a second recombination instruction. According to the invention, the problem that the junk instruction generated in a conventional method does not protect the program well is solved, furthermore a relatively-complex instruction fragment can be generated, on the premise that the normal operation efficiency of the program is not influenced, the declassification difficulty is increased, and the program can be protected better.

Description

technical field [0001] Embodiments of the present invention relate to the field of information security, and in particular, to a method and device for instruction recombination. Background technique [0002] Garbled instructions are one of the effective means to fight against disassembly. Adding garbled instructions to normal code can destroy the process of static disassembly and cause errors in the results of disassembly. Wrong disassembly results will cause a large increase in the analysis work of the cracker, making it impossible for the cracker to understand the structure and algorithm of the program, and it is difficult to crack the program, so as to achieve the purpose of virus or software protection. [0003] In the process of traditional waste instruction generation, the designer will first find a register that is free for assembly, and then add waste instructions to the register. In the process of cracking the fake instructions, the cracker only needs to erase the ...

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
Patent Type & Authority Applications(China)
IPC IPC(8): G06F21/14G06F9/318
Inventor 孙吉平
Owner BEIJING SENSESHIELD TECH
Features
  • R&D
  • Intellectual Property
  • Life Sciences
  • Materials
  • Tech Scout
Why Patsnap Eureka
  • Unparalleled Data Quality
  • Higher Quality Content
  • 60% Fewer Hallucinations
Social media
Patsnap Eureka Blog
Learn More