about summary refs log tree commit diff stats
path: root/example/unpack_upx.py
diff options
context:
space:
mode:
Diffstat (limited to 'example/unpack_upx.py')
-rw-r--r--example/unpack_upx.py12
1 files changed, 5 insertions, 7 deletions
diff --git a/example/unpack_upx.py b/example/unpack_upx.py
index 3dcfdb33..313f75a2 100644
--- a/example/unpack_upx.py
+++ b/example/unpack_upx.py
@@ -1,10 +1,9 @@
-from pdb import pm
 import os
-from miasm2.analysis.sandbox import Sandbox_Win_x86_32
 import logging
-from miasm2.core import asmbloc
-from elfesteem.strpatchwork import StrPatchwork
+from pdb import pm
 from elfesteem import pe
+from miasm2.analysis.sandbox import Sandbox_Win_x86_32
+from miasm2.core import asmbloc
 
 filename = os.environ.get('PYTHONSTARTUP')
 if filename and os.path.isfile(filename):
@@ -89,12 +88,11 @@ def update_binary(jitter):
 # Set callbacks
 sb.jitter.add_breakpoint(end_label, update_binary)
 
-
+# Run
 sb.run()
 
-regs = sb.jitter.cpu.get_gpreg()
+# Rebuild PE
 new_dll = []
-# XXXXX
 
 sb.pe.SHList.align_sections(0x1000, 0x1000)
 logging.info(repr(sb.pe.SHList))