# US 2021/0173624 A1 · Deterministic software code decompiler system

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

- Number: US 2021/0173624 A1
- Document ID: US20210173624A1
- Status: Published application
- Kind: A1
- Application number: 16/707,867
- Filed: 2019-12-09
- Published: 2021-06-10
- Earliest claimed: 2019-12-09
- Assignees: Bank of America Corporation
- Applicants: Bank of America Corporation
- Inventors: Madhusudhanan Krishnamoorthy
- Web page: https://patentgrep.com/patent/US20210173624A1

## CPC

- G06F 8/36: Software reuse
- G06F 8/53: Decompilation; Disassembly
- G06F 8/30: Creation or generation of source code
- G06F 11/0715: {in a system implementing multitasking (multitasking per se G06F9/46)}
- G06F 11/0751: {Error or fault detection not based on redundancy (power supply failures G06F1/30; network fault management H04L41/06)}
- G06F 11/3624: {by performing operations on the source code, e.g. via a compiler}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

Embodiments of the present invention provide a system for decompiling one or more codes. The system is configured for extracting a binary code and one or more inputs associated with the binary code, disassembling the binary code into a first assembly language code based on the one or more inputs, converting the first assembly language code into first set of fixed dimension vectors, generating a skeleton code from the first set of fixed dimension vectors, optimizing the skeleton code, and generating a high level code.

## Claims

### Claim 1

A system for efficiently decompiling binary codes, the system comprising:
at least one network communication interface;
at least one non-transitory storage device; and
at least one processing device coupled to the at least one non-transitory storage device and the at least one network communication interface, wherein the at least one processing device is configured to:
extract a binary code and one or more inputs associated with the binary code, wherein the one or more inputs comprise compiler information associated with the binary code;
determine a disassembler for converting the binary code to a first assembly language code based on the compiler information;
disassemble the binary code into the first assembly language code via the disassembler;
convert the first assembly language code into first set of fixed dimension vectors; and
generate a skeleton code from the first set of fixed dimension vectors.

### Claim 2 (depends on 1)

The system of claim 1, wherein the at least one processing device is further configured to compile the skeleton code.

### Claim 3 (depends on 2)

The system of claim 2, wherein the at least one processing device is further configured to:
in response to compiling the skeleton code, determine one or more errors associated with the skeleton code; and
correct the one or more errors associated with the skeleton code.

### Claim 4 (depends on 3)

The system of claim 3, wherein the at least one processing device is further configured to correct the one or more errors based on:
converting the skeleton code to a second assembly language code and a second set of fixed dimension vectors; and
comparing the second set of fixed dimension vectors with the first set of fixed dimension vectors.

### Claim 5 (depends on 4)

The system of claim 4, wherein the at least one processing device is further configured to:
determine a mismatch between the second set of fixed dimension vectors and the first set of fixed dimension vectors based on comparing the second set of fixed dimension vectors with the first set of fixed dimension vectors; and
optimize the second set of fixed dimension vectors by correcting the mismatch between the second set of fixed dimension vectors and the first set of fixed dimension vectors.

### Claim 6 (depends on 4)

The system of claim 4, wherein the at least one processing device if further configured to:
determine a match between the second set of fixed dimension vectors and the first set of fixed dimension vectors based on comparing the second set of fixed dimension vectors with the first set of fixed dimension vectors; and
in response to determining the match, generate a high level code.

### Claim 7

(canceled)

### Claim 8

A computer program product for efficiently decompiling binary codes, the computer program product comprising a non-transitory computer-readable storage medium having computer executable instructions for causing a computer processor to perform the steps of:
extracting a binary code and one or more inputs associated with the binary code, wherein the one or more inputs comprise compiler information associated with the binary code;
determining a disassembler for converting the binary code to a first assembly language code based on the compiler information;
disassembling the binary code into the first assembly language code via the disassembler;
converting the first assembly language code into first set of fixed dimension vectors; and
generating a skeleton code from the first set of fixed dimension vectors.

### Claim 9 (depends on 8)

The computer program product of claim 8, wherein the computer executable instructions cause the computer processor to compile the skeleton code.

### Claim 10 (depends on 9)

The computer program product of claim 9, wherein the computer executable instructions cause the computer processor to:
in response to compiling the skeleton code, determine one or more errors associated with the skeleton code; and
correct the one or more errors associated with the skeleton code.

### Claim 11 (depends on 10)

The computer program product of claim 10, wherein the computer executable instructions cause the computer processor to correct the one or more errors based on:
converting the skeleton code to a second assembly language code and a second set of fixed dimension vectors; and
comparing the second set of fixed dimension vectors with the first set of fixed dimension vectors.

### Claim 12 (depends on 11)

The computer program product of claim 11, wherein the computer executable instructions cause the computer processor to:
determine a mismatch between the second set of fixed dimension vectors and the first set of fixed dimension vectors based on comparing the second set of fixed dimension vectors with the first set of fixed dimension vectors; and
optimize the second set of fixed dimension vectors by correcting the mismatch between the second set of fixed dimension vectors and the first set of fixed dimension vectors.

### Claim 13 (depends on 11)

The computer program product of claim 11, wherein the computer executable instructions cause the computer processor to:
determine a match between the second set of fixed dimension vectors and the first set of fixed dimension vectors based on comparing the second set of fixed dimension vectors with the first set of fixed dimension vectors; and
in response to determining the match, generate a high level code.

### Claim 14

(canceled)

### Claim 15

A computer implemented method for efficiently decompiling binary codes, wherein the method comprises:
extracting a binary code and one or more inputs associated with the binary code, wherein the one or more inputs comprise compiler information associated with the binary code;
determining a disassembler for converting the binary code to a first assembly language code based on the compiler information;
disassembling the binary code into the first assembly language code via the disassembler;
converting the first assembly language code into first set of fixed dimension vectors; and
generating a skeleton code from the first set of fixed dimension vectors.

### Claim 16 (depends on 15)

The computer implemented method of claim 15, wherein the method further comprises compiling the skeleton code.

### Claim 17 (depends on 16)

The computer implemented method of claim 16, wherein the method further comprises:
in response to compiling the skeleton code, determining one or more errors associated with the skeleton code; and
correcting the one or more errors associated with the skeleton code.

### Claim 18 (depends on 17)

The computer implemented method of claim 17, wherein correcting the one or more errors is based on:
converting the skeleton code to a second assembly language code and a second set of fixed dimension vectors; and
comparing the second set of fixed dimension vectors with the first set of fixed dimension vectors.

### Claim 19 (depends on 18)

The computer implemented method of claim 18, wherein the method further comprises:
determining a mismatch between the second set of fixed dimension vectors and the first set of fixed dimension vectors based on comparing the second set of fixed dimension vectors with the first set of fixed dimension vectors; and
optimizing the second set of fixed dimension vectors by correcting the mismatch between the second set of fixed dimension vectors and the first set of fixed dimension vectors.

### Claim 20 (depends on 18)

The computer implemented method of claim 18, wherein the method further comprises
determining a match between the second set of fixed dimension vectors and the first set of fixed dimension vectors based on comparing the second set of fixed dimension vectors with the first set of fixed dimension vectors; and
in response to determining the match, generating a high level code.
