Skip to content

Added function for handling manually mapped binaries#6

Open
T00fy wants to merge 2 commits intoergrelet:masterfrom
T00fy:master
Open

Added function for handling manually mapped binaries#6
T00fy wants to merge 2 commits intoergrelet:masterfrom
T00fy:master

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.

@Heyholiday067
Copy link

Hi, @T00fy @ergrelet adding this function would be great !

Sometimes,the unpacked binary is injected to the custom section in original pe,or just use virtualalloc to create a new area and inject it.

We can sepcify our custom base image and extract it would be fine,maybe this function is the last puzzle of scylla (i guess

return SCY_ERROR_PROCOPEN;
}

ProcessAccessHelp::getProcessModules(ProcessAccessHelp::hProcess, ProcessAccessHelp::ownModuleList);
Copy link
Author

Choose a reason for hiding this comment

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

Turns out tomorrow was 3 months later ;)

@ergrelet This was the problem line! I had used mistakenly moduleList instead of ownModuleList.

initAsDll() was basically a workaround hack as it called getProcessModules on ownModuleList. I've tidied that up now.

@T00fy T00fy requested a review from ergrelet May 27, 2025 15:15
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.

3 participants