about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--miasm2/analysis/sandbox.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/miasm2/analysis/sandbox.py b/miasm2/analysis/sandbox.py
index 078663fe..fd5de7b6 100644
--- a/miasm2/analysis/sandbox.py
+++ b/miasm2/analysis/sandbox.py
@@ -184,7 +184,8 @@ class OS_Win(OS):
 
         # Load main pe
         with open(self.fname) as fstream:
-            self.pe = vm_load_pe(self.jitter.vm, fstream.read(), **kwargs)
+            self.pe = vm_load_pe(self.jitter.vm, fstream.read(),
+                                 load_hdr=self.options.load_hdr, **kwargs)
             self.name2module[fname_basename] = self.pe
 
         # Load library
@@ -231,7 +232,7 @@ class OS_Win(OS):
 
     @classmethod
     def update_parser(cls, parser):
-        parser.add_argument('-o', "--loadhdr", action="store_true",
+        parser.add_argument('-o', "--load-hdr", action="store_true",
                             help="Load pe hdr")
         parser.add_argument('-e', "--loadmainpe", action="store_true",
                             help="Load main pe")