160 def __init__(self, custom_methods, *args, **kwargs):
163 methods = win_api_x86_32.__dict__
164 methods.update(custom_methods)
166 super(OS_Win, self).
__init__(methods, *args, **kwargs)
171 win_api_x86_32.winobjs.runtime_dll = libs
174 if self.options.loadbasedll:
181 for pe
in all_pe.values():
185 with open(self.fname)
as fstream:
188 win_api_x86_32.winobjs.current_pe = self.
pe
194 self.jitter.add_lib_handler(libs, methods)
197 if self.options.use_seh:
198 win_api_x86_32_seh.main_pe_name = self.fname
199 win_api_x86_32_seh.main_pe = self.
pe
200 win_api_x86_32_seh.loaded_modules = self.
ALL_IMP_DLL
201 win_api_x86_32_seh.init_seh(self.jitter)
202 win_api_x86_32_seh.set_win_fs_0(self.jitter)
204 self.
entry_point = self.pe.rva2virt(self.pe.Opthdr.AddressOfEntryPoint)