# US 2016/0253189 A1 · Flexible instruction sets for obfuscated virtual machines

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2016/0253189 A1
- Document ID: US20160253189A1
- Status: Published application
- Kind: A1
- Application number: 14/632,879
- Filed: 2015-02-26
- Published: 2016-09-01
- Earliest claimed: 2015-02-26
- Assignees: NXP B.V.
- Applicants: NXP B.V.
- Inventors: Philippe Teuwen
- Web page: https://patentgrep.com/patent/US20160253189A1

## CPC

- G06F 9/455: Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F 8/74: Reverse engineering; Extracting design information from source code
- G06F 21/14: against software analysis or reverse engineering, e.g. by obfuscation
- G06F 21/563: {by source code analysis}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A method for protecting computer software code is disclosed. In the embodiment, the method involves receiving instructions corresponding to computer software code for an application, the instructions including a first section of instructions to protect that is indicated by a first indicator and a second section of the instructions to protect that is indicated by a second indicator, rewriting the first section of instructions into a first section of virtual instructions, and rewriting the second section of instructions into a second section of virtual instructions, wherein the first section of instructions includes a first virtual instruction that corresponds to a first handler and the second section of virtual instructions includes a second virtual instruction that corresponds to a second handler, the first handler having different properties than the second handler.

## Claims

### Claim 1

A method for protecting computer software code, the method comprising:
receiving instructions corresponding to computer software code for an application, the instructions including a first section of instructions to protect that is indicated by a first indicator and a second section of instructions to protect that is indicated by a second indicator;
rewriting the first section of instructions into a first section of virtual instructions; and
rewriting the second section of instructions into a second section of virtual instructions;
wherein the first section of virtual instructions includes a first virtual instruction that corresponds to a first handler and the second section of virtual instructions includes a second virtual instruction that corresponds to a second handler, the first handler having different properties than the second handler.

### Claim 2 (depends on 1)

The method of claim 1, wherein a property of the first handler corresponds to higher obfuscation and slower execution speed than the second handler.

### Claim 3 (depends on 1)

The method of claim 1 further comprising rewriting a third section of instructions that is indicated by a third indicator into a third section of virtual instructions, wherein the third section of virtual instructions includes a virtual instruction that corresponds to a third handler, the third handler having a degree of obfuscation and execution speed within a range defined by the first and second handler.

### Claim 4 (depends on 1)

The method of claim 1, wherein virtual instructions of the first section of virtual instructions are from a first set of virtual instructions and virtual instructions of the second section of virtual instructions are from a second set of virtual instructions.

### Claim 5 (depends on 1)

The method of claim 1, wherein a set of virtual instructions used to form the first section of virtual instructions is a default set of virtual instructions and a set of virtual instructions used to form the second section of virtual instructions is a set of virtual instructions indicated by the second section of instructions.

### Claim 6 (depends on 1)

The method of claim 1, wherein the first and second indicators are operators embedded in the computer software code.

### Claim 7 (depends on 1)

The method of claim 1, wherein the first section of virtual instructions are configured such that the first section of virtual instructions will be interpreted using different handlers than the second section of virtual instructions and the second section of virtual instructions are configured such that the second section of virtual instructions will be interpreted using different handlers than the first section of virtual instructions.

### Claim 8 (depends on 1)

The method of claim 1, wherein the first handler and the second handler generate the same assembly code.

### Claim 9 (depends on 1)

A computer system comprising a one or more processors and memory, the memory comprising computer code that, when executed by the one or more processors, implements the method of claim 1.

### Claim 10

A non-transitory computer-readable storage medium storing instructions that, when executed by a computer, perform steps for protecting computer software code, the steps comprising:
receiving instructions corresponding to computer software code for an application, the instructions including a first section of instructions to protect that is indicated by a first indicator and a second section of instructions to protect that is indicated by a second indicator;
rewriting the first section of instructions into a first section of virtual instructions; and
rewriting the second section of instructions into a second section of virtual instructions;
wherein the first section of virtual instructions includes a first virtual instruction that corresponds to a first handler and the second set of virtual instructions includes a second virtual instruction that corresponds to a second handler, the first handler having different properties than the second handler.

### Claim 11 (depends on 10)

The non-transitory computer-readable storage medium of claim 10, wherein a property of the first handler corresponds to higher obfuscation and slower execution speed than the second handler.

### Claim 12 (depends on 10)

The non-transitory computer-readable storage medium of claim 10 further comprising instructions that, when executed by a computer, perform steps comprising rewriting a third section of instructions that is indicated by a third indicator into a third section of virtual instructions, wherein the third section of virtual instructions includes a virtual instruction that corresponds to a third handler, the third handler having a degree of obfuscation and execution speed within a range defined by the first and second handler.

### Claim 13 (depends on 10)

The non-transitory computer-readable storage medium of claim 10, wherein virtual instructions of the first section of virtual instructions are from a first set of virtual instructions and virtual instructions of the second section of virtual instructions are from a second set of virtual instructions.

### Claim 14 (depends on 10)

The non-transitory computer-readable storage medium of claim 10, wherein a set of virtual instructions used to form the first section of virtual instructions is a default set of virtual instructions and a set of virtual instructions used to form the second section of virtual instructions is a set of virtual instructions indicated by the second section of instructions.

### Claim 15 (depends on 10)

The non-transitory computer-readable storage medium of claim 10, wherein the first and second indicators are operators embedded in the computer software code.

### Claim 16 (depends on 10)

The non-transitory computer-readable storage medium of claim 10, wherein the first section of virtual instructions are configured such that the first section of virtual instructions will be interpreted using different handlers than the second section of virtual instructions and the second section of virtual instructions are configured such that the second section of virtual instructions will be interpreted using different handlers than the first section of virtual instructions.

### Claim 17 (depends on 10)

The non-transitory computer-readable storage medium of claim 10, wherein the first handler and the second handler generate the same assembly code.

### Claim 18 (depends on 10)

A computer system comprising a one or more processors and memory, the memory storing computer code that, when executed by the one or more processors, implements the steps of claim 10.

### Claim 19

A computer-implemented system for protecting computer software code, the system comprising:
one or more processors; and
memory storing instructions that, when executed by the one or more processors, perform steps comprising:
receiving instructions corresponding to computer software code for an application, the instructions including a first section of instructions to protect that is indicated by a first indicator and a second section of instructions to protect that is indicated by a second indicator;
rewriting the first section of instructions into a first section of virtual instructions; and
rewriting the second section of instructions into a second section of virtual instructions;
wherein the first section of virtual instructions includes a first virtual instruction that corresponds to a first handler and the second set of virtual instructions includes a second virtual instruction that corresponds to a second handler, the first handler having different properties than the second handler.

### Claim 20 (depends on 19)

The computer-implemented system of claim 19 further comprising instructions that, when executed, perform steps comprising rewriting a third section of instructions that is indicated by a third indicator into a third section of virtual instructions, wherein the third section of virtual instructions includes a virtual instruction that corresponds to a third handler, the third handler having a degree of obfuscation and execution speed within a range defined by the first and second handler.
