UniPE icon indicating copy to clipboard operation
UniPE copied to clipboard

About exit excution and hook_Segment_error()

Open LakerMoon opened this issue 3 years ago • 0 comments

I tried to use unicorn to execute some sample(.exe) written by me. But it always after happening segment error exit when i execute other PE files.(with or without virus ) Due to hook_Segment_error(), it will map and write the given address into unicorn if the address is not mapped. Sometimes, it stop emulation because Error returned 7: Invalid memory write (UC_ERR_WRITE_UNMAPPED) But it still exit when map and write finished.

For example: FS : 01804000 Loading Address: 02E50000 Image Size : 0008B000 Image Region : 02E50000 - 02EDB000 EntryPoint :02E514E0

start emulating: ... begin(IP): 2e514e0(01AFFC94) 0x02E514E0 Missing memory at 0x4877D8, data size = 4, data value = 0x0 mem_type: 20 0x02EC0C60 Missing memory at 0x47774C, data size = 4, data value = 0x0 mem_type: 19 uc_mem_map failed! uc_mem_write failed!

LakerMoon avatar Mar 14 '22 08:03 LakerMoon