about summary refs log tree commit diff stats
path: root/example/jitter/unpack_upx.py
diff options
context:
space:
mode:
authorAjax <commial@gmail.com>2015-11-09 13:35:23 +0100
committerAjax <commial@gmail.com>2015-11-09 13:35:23 +0100
commit5c6b3d0c002cbdf5665cc90aed43e0687cfc1672 (patch)
tree318790a97d36113736cfda114fb353768bdf36dc /example/jitter/unpack_upx.py
parent34948365493c9a65a0264d495d8070e45eae1a38 (diff)
downloadfocaccia-miasm-5c6b3d0c002cbdf5665cc90aed43e0687cfc1672.tar.gz
focaccia-miasm-5c6b3d0c002cbdf5665cc90aed43e0687cfc1672.zip
Example/UnpackUPX: PR #256 comments (creds @p-l-, @fmonjalet)
Diffstat (limited to 'example/jitter/unpack_upx.py')
-rw-r--r--example/jitter/unpack_upx.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/example/jitter/unpack_upx.py b/example/jitter/unpack_upx.py
index 09bd801e..eb03209b 100644
--- a/example/jitter/unpack_upx.py
+++ b/example/jitter/unpack_upx.py
@@ -13,10 +13,10 @@ if filename and os.path.isfile(filename):
 # User defined methods
 
 def kernel32_GetProcAddress(jitter):
-    """Hook on GetProcAddress to note where UPX store imports pointer"""
+    """Hook on GetProcAddress to note where UPX stores import pointers"""
     ret_ad, args = jitter.func_args_stdcall(["libbase", "fname"])
 
-    # When the function is called, EBX is a pointer on the destination buffer
+    # When the function is called, EBX is a pointer to the destination buffer
     dst_ad = jitter.cpu.EBX
     logging.info('EBX ' + hex(dst_ad))
 
@@ -28,7 +28,7 @@ def kernel32_GetProcAddress(jitter):
     # Get the generated address of the library, and store it in memory to dst_ad
     ad = sb.libs.lib_get_add_func(args.libbase, fname, dst_ad)
     # Add a breakpoint in case of a call on the resolved function
-    # NOTE: never append in UPX, just for skeleton
+    # NOTE: never happens in UPX, just for skeleton
     jitter.handle_function(ad)
 
     jitter.func_ret_stdcall(ret_ad, ad)