Windows API Without Imports
Use sketchy Windows API functions without them showing up as imports
Last updated
Use sketchy Windows API functions without them showing up as imports
Last updated
Using functions like VirtualAlloc, WriteProcessMemory, and CreateRemoteThread can increase the chances of EDR and AV flagging your program as malicious because these API calls are added to the import table, which the system checks before execution.
We can use our own dynamically-defined WINAPI functions at the same address as the original function to leverage them without adding to the import table. Here is an example with WriteProcessMemory:
WriteProcessMemory is defined in windows as the following:
In our code, we will define our own WINAPI called aWriteProcessMemory:
Now we define this function at the address of the original WriteProcessMemory:
Now replace your WriteProcessMemory call with customWriteProcessMemory:
Now WriteProcessMemory won't show up in your import table!