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

hook_MapViewOfFile throwing exception while emulating windows binary #1515

Open
chintanhshah opened this issue Nov 22, 2024 · 0 comments
Open

Comments

@chintanhshah
Copy link

*Describe the bug
I am trying to emulate one of the windows binary that calls Kernerl32!MapViewOfFile. I see that there is a hook already implemented in os/windows/dlls/kernel32/fileapi.py.
image

While emulating the PE , it throws an exception and come out .
image

Sample Code

ql = Qiling(["x8664_freebsd/bin/x8664_hello_asm"], "x8664_freebsd", output = "dump")
ql.run()

Expected behavior
Error thrown is at line 602 within fileapi.py..It should return the new address of where the file is mapped in the memory.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

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