Page MenuHomedesp's stash

README.md
No OneTemporary

README.md

To use the generated files:
- Open Visual Studio
- File -> new project -> Visual C++ -> Windows Desktop -> Dynamic Link Library (DLL)
- Configure the name, location etc in the bottom section
- Change top section to target architecture (x86/x64) first
- Go to Solution Explorer, remove all source files and header files, move the generated files into the folder, then right click Source Files folder -> Add -> Add Existing Item... and add all of them
- Right click the DLL project (first one under solution), click properties
- Go to C/C++ -> Precompiled Headers -> change Use(/Yu) to Not Using Precompiled Headers
- Go to Linker -> Input -> set Module Definition File to the .def file
(If you are doing 32-bit files, skip to last step)
- Project -> Build Customizations -> check masm option
- Right click the .asm file in solution explorer, Properties -> Item type -> Microsoft Macro Assembler
- Build -> Build Solution, then check the directory for the generated folder containing the binary
Changing the proxied functions to include custom codes might be a little tricky, but its generally easier to replace functions with known signatures directly instead of relying on asm jmps (they also work if you know what you are doing though).
Of course, if all you need is to trigger the codes and whatever happens next ain't of concern, just write whatever inside the functions directly ;)
Note: function that acts as variables like `__p__fmode` in msvcr might not work, since programs might directly access it by dereferencing.
There might be more caveats to be ironed out, but thats the only limit I can find currently, aside from the previously unsupported function mangling.

File Metadata

Mime Type
text/plain
Expires
Mon, Jun 16, 6:39 AM (18 h, 24 m)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
a8/47/f58c75b1e548fb066559d9343331

Event Timeline