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

Added function for handling manually mapped binaries #6

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

T00fy
Copy link

@T00fy T00fy commented Feb 24, 2025

Maybe this might be useful for the project. Currently there's no way to dump/fix the IAT like you can with the GUI in the case that the binary you are dumping is manually mapped and requires a manually specified image address. This adds a few functions to support that

Copy link
Owner

@ergrelet ergrelet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi, thanks for the MR! 😊

LGTM overall, but the initAsDll call in ScyllaIatFixManualW seems unwarranted.

const WCHAR* iatFixFile
)
{
Scylla::initAsDll(); //Not entirely sure why - but this is required otherwise the module list is populated incorrectly.
Copy link
Owner

@ergrelet ergrelet Feb 25, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This might need further investigation as it might hide a bug somewhere. How did you load Scylla when testing? initAsDll should have been called when loading Scylla's DLL into the process (when used as a DLL of course).
Could it be that the interaction with ScyllaIatSearchManual produces a weird state?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could it be that the interaction with ScyllaIatSearchManual produces a weird state?

Good point. It could have been. I'll try and have a look at this tomorrow sometime and see if that was the culprit.

It was quite a strange bug honestly, the ProcessAccessHelp::getProcessModules call would just fail without any error.

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.

2 participants