IP Library Granted Patent US 9,361,173
Granted Patent B2
US 9,361,173 · App. 12/846,044 · Granted Jun 7, 2016

Automated unpacking of portable executable files

Inventor: Tomislav Pericin (Sremska Mitrovica, RS)
Assignee: Reversing Labs Holding GmbH
G06F11/0793G06F11/0715G06F11/0751
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 9,361,173
App. No.
12/846,044
Granted
Jun 7, 2016
Kind
B2
Abstract

Automated unpacking of a portable executable file includes setting a debugging breakpoint at an original entry point address of a packed portable executable file. A debugging process is executed for the packed portable executable file to obtain a debugged portable executable file in memory. One or more of import address table data and relocation table data are collected during execution of the debugging process for the packed portable executable file. The debugged portable executable file in memory is copied to a storage medium, and the debugging process is terminated.

Claims (33)

1. A computer implemented method comprising:

setting, by a computing device, a debugging breakpoint at an original entry point address of a packed portable executable file, wherein the original entry point includes a first instruction of executable code before the packed portable executable file was protected;

executing, by the computing device, a debugging process for the packed portable executable file to obtain a debugged portable executable file in memory;

collecting, by the computing device, one or more of import address table data and relocation table data during execution of the debugging process for the packed portable executable file by setting one or more debugging breakpoints associated with a LoadLibrary call, a GetModuleHandle call, and each of a plurality of GetProcAddress calls;

adding a new section to the debugged portable executable file;

pasting into the debugged portable executable file in the new section one or more of an import address table of the import table data and a relocation table of the relocation table data collected during execution of the debugging process for the packed portable executable file;

copying, by the computing device, the debugged portable executable file in memory to a storage medium; and

terminating, by the computing device, the debugging process at the original entry point.

2. The computer implemented method of claim 1 , further comprising determining, by the computing device, the original entry point address of the packed portable executable file based upon, at least in part, ImageBase field data of the packed portable executable file and AddressOfEntryPoint data of the packed portable executable file.

3. The computer implemented method of claim 1 , further comprising initializing, by the computing device, the debugging process including creating a debugging process based upon, at least in part, the packed portable executable file.

4. The computer implemented method of claim 1 , further comprising realigning, by the computing device, the debugged portable executable file.

5. A computer program product comprising a non-transitory computer readable medium having a plurality of instructions stored thereon, which, when executed by a processor, cause the processor to perform operations comprising:

setting a debugging breakpoint at an original entry point address of a packed portable executable file, wherein the original entry point includes a first instruction of executable code before the packed portable executable file was protected;

executing a debugging process for the packed portable executable file to obtain a debugged portable executable file in memory;

collecting one or more of import address table data and relocation table data during execution of the debugging process for the packed portable executable file by setting one or more debugging breakpoints associated with a LoadLibrary call, a GetModuleHandle call, and each of a plurality of GetProcAddress calls;

adding a new section to the debugged portable executable file;

pasting into the debugged portable executable file in the new section one or more of an import address table of the import table data and a relocation table of the relocation table data collected during execution of the debugging process for the packed portable executable file;

copying the debugged portable executable file in memory to a storage medium; and

terminating the debugging process at the original entry point.

6. The computer program product of claim 5 , further comprising instructions for determining the original entry point address of the packed portable executable file based upon, at least in part, ImageBase field data of the packed portable executable file and AddressOfEntryPoint data of the packed portable executable file.

7. The computer program product of claim 5 , further comprising instructions for initializing the debugging process including creating a debugging process based upon, at least in part, the packed portable executable file.

8. The computer program product of claim 5 , further comprising instructions for realigning the debugged portable executable file.

9. A system comprising:

a processor;

a memory coupled with the processor;

a first software module executable by the processor and the memory, the first software module configured to set a debugging breakpoint at an original entry point address of a packed portable executable file, wherein the original entry point includes a first instruction of executable code before the packed portable executable file was protected;

a second software module executable by the processor and the memory, the second software module configured to execute a debugging process for the packed portable executable file to obtain a debugged portable executable file in memory;

a third software module executable by the processor and the memory, the third software module configured to collect one or more of import address table data and relocation table data during execution of the debugging process for the packed portable executable file by setting one or more debugging breakpoints associated with a LoadLibrary call, a GetModuleHandle call, and each of a plurality of GetProcAddress calls, add a new section to the debugged portable executable file, and paste into the debugged portable executable file in the new section one or more of an import address table of the import table data and a relocation table of the relocation table data collected during execution of the debugging process for the packed portable executable file;

a fourth software module executable by the processor and the memory, the fourth software module configured to copy the debugged portable executable file in memory to a storage medium; and

a fifth software module executable by the processor and the memory, the fifth software module configured to terminate the debugging process at the original entry point.

10. The system of claim 9 , further comprising a sixth software module executable by the processor and the memory, the sixth software module configured to determine the original entry point address of the packed portable executable file based upon, at least in part, ImageBase field data of the packed portable executable file and AddressOfEntryPoint data of the packed portable executable file.

11. The system of claim 9 , further comprising a seventh software module executable by the processor and the memory, the seventh software module configured to initialize the debugging process including creating a debugging process based upon, at least in part, the packed portable executable file.

12. The system of claim 9 , further comprising a ninth software module executable by the processor and the memory, the ninth software module configured to realign the debugged portable executable file.

Assignments (3)
CORRECTIVE ASSIGNMENT TO CORRECT THE NAME OF ASSIGNEE PREVIOUSLY RECORDED AT REEL: 41835 FRAME: 784. ASSIGNOR(S) HEREBY CONFIRMS THE ASSIGNMENT . Recorded Jun 2, 2025
From: REVERSINGLABS CORPORATION
To: REVERSING LABS INTERNATIONAL GMBH
Reel/Frame 071490/0535 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Apr 4, 2017
From: REVERSINGLABS HOLDING GMBH
To: REVERSINGLABS INTERNATIONAL GMBH
Reel/Frame 041835/0784 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 6, 2014
From: PERICIN, TOMISLAV
To: REVERSING LABS HOLDING GMBH
Reel/Frame 032398/0612 →
Continuity (2)
Provisional Application 61229497 · Jul 29, 2009
Related Publication 20110035731A1 · Feb 10, 2011