There is a perl script that will modify windows PE executables ([url removed, login to view]~autrijus/[url removed, login to view])
If that link doesn't show, you can do a search on cpan for win32:exe
Anyhow, I need this script extended so that I can send it a directory and have it take all of the files in the directory and put them in the exe I tell it to. It would also need to remove the current resources.
More specifically, I have a screensaver executable. In this executable are various 500,501, 502, etc. resources. Each one of these is for a jpg file.
I'd like the perl script to look at the exe file I give it, remove all of the 500 and above resources and then take the directory I give it and add all of the jpg files in there to the exe. Finally it would save the exe in a specified location/filename.
P.S. I have attached the screensaver as an example. You'll need to rename the extension from .sc_ to .scr to run it but I'd recommend just looking at it with a resource viewer :)