Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About exit excution and hook_Segment_error() #4

Open
LakerMoon opened this issue Mar 14, 2022 · 0 comments
Open

About exit excution and hook_Segment_error() #4

LakerMoon opened this issue Mar 14, 2022 · 0 comments

Comments

@LakerMoon
Copy link

LakerMoon commented Mar 14, 2022

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant