load windows CLI arguments properly

This commit is contained in:
vee1e 2026-01-26 19:29:17 +05:30
parent e50afa89e7
commit ef13dc98b7

View file

@ -359,6 +359,10 @@ class Win32Emulator(WindowsEmulator):
"""
self.prepare_module_for_emulation(module, all_entrypoints)
# Update the command line if arguments were supplied via argv (-p)
if self.argv:
self.command_line = ' '.join(self.get_argv())
# Create an empty process object for the module if none is
# supplied, only do this for the main module
if len(self.processes) == 0: