-
-
Notifications
You must be signed in to change notification settings - Fork 59
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
Support NtAlpcConnectPort/NtAlpcSendWaitReceivePort #128
Labels
feature
New feature or request
Comments
Can you test if it works for you now? |
Loading comctl32.dll should work now, but NtAlpcSendWaitReceivePort does not. That will be needed sooner or later and I'm going to use this issue to track the progress |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Overview
When I tried to emulate a file with comctl32.dll, the emulator fail when tried to run through comctl32.dll entry point.
Reason
user32.dll call
CsrClientConnectServer
which in turn call "CsrClietnCallServer" and "NtAlpcSendWaitReceivePort" in order to get the information from csrss.exe but "handle_NtAlpcSendWaitReceivePort" hasn't been implemented to support the case.Version of windows:
windows 11 pro (10.0.22631 build 22631)
Reproduce:
Make change to test.cpp, compile the code and run the command
.\analyzer.exe -e "root" -r "registry" "C:\temp\test.exe"
Idea for solutions
Idea 1: just port every argument when the emulator call NtAlpcSendWaitReceivePort to the real NtAlpcSendWaitReceivePort syscall.
Idea 2: Implement a specific case for NtAlpcSendWaitReceivePort of user32.dll and only emulate that case, allocate a memory buffer and copy the content of a fake NtAlpcSendWaitReceivePort to that buffer.
Idea 3 (hardest): dump csrss.exe and fully emulate NtAlpcSendWaitReceivePort.
The text was updated successfully, but these errors were encountered: