You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I realize this is probably geared more towards more advanced users but I can't seem to find any information on how to setup a project and use PeNet for changing imports. The https://secanablog.wordpress.com/2020/06/12/add-an-import-to-a-pe-file/ page doesn't go into any detail for any of the environment setup and goes straight to code.
Essentially I'm looking to replace the imports on an old Win32 game to remove the need for calling WinG32.dll and the depreciated WinHelpA api without the need for convoluted DLL injection that can trigger AV.
The text was updated successfully, but these errors were encountered:
I'm not sure if replacing the imports will work. Some in the code, a function will call WinHelpA and the loader needs to be able to find it under the same name. As import are resolved on runtime and not statically, you cannot change that in the PE file.
Maybe a much easier approach would be to use the way that Windows searches for DLLs. If you place your own WinG32.dll with an exported stub for WinHelpA in the same directory as the binary you want to patch, it should load your DLL first and resolve the export from there instead of the real DLL in c:\windows\system32. In that case you would not need to change the original binary at all.
That's what I'm doing already ( https://github.com/aroenai/Monopoly95 ), most of the imports are just renamed functions in modern gdi32.dll since this came out in the Win 3.1 Era. I'm not concerned about changing the assembly since I'm already having to make other changes and should have space to modify it so it works with the new imports.
The original question remains though, since you linked to more or less the same article I did, how do I setup a project to use PeNet? You just have code examples without context.
I realize this is probably geared more towards more advanced users but I can't seem to find any information on how to setup a project and use PeNet for changing imports. The https://secanablog.wordpress.com/2020/06/12/add-an-import-to-a-pe-file/ page doesn't go into any detail for any of the environment setup and goes straight to code.
Essentially I'm looking to replace the imports on an old Win32 game to remove the need for calling WinG32.dll and the depreciated WinHelpA api without the need for convoluted DLL injection that can trigger AV.
The text was updated successfully, but these errors were encountered: