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

Fix handling for "0x48 0xff 0x25" instruction in hook_create_stub function #91

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

celyrin
Copy link

@celyrin celyrin commented Jun 28, 2024

Issue:
In x86-64 architecture, particularly under Windows 10 and Windows 11, imported functions fail to correctly jump to the original execution flow after hooking.

Changes:
Added handling for the "0x48 0xff 0x25" instruction in the hook_create_stub function to resolve the issue. This change ensures correct redirection to the original execution path after hooking imported functions.

Testing:
Thoroughly tested on Windows 10 and Windows 11 environments to validate the fix's effectiveness and stability.

…stub function to resolve the bug where imported functions fail to correctly jump to the original execution flow after hooking on x86-64 samples under Windows 10/Windows 11.
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

Successfully merging this pull request may close these issues.

1 participant