Skip to content

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.

celyrin added 2 commits June 28, 2024 15:43
…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