further tweaks to mule_peb_trample

This commit is contained in:
Ryan Fleury
2024-05-22 11:39:23 -07:00
parent 7a4e939886
commit 0160d05e8a
3 changed files with 13 additions and 6 deletions
+1 -6
View File
@@ -1,5 +1,6 @@
#include <windows.h>
#include <winternl.h>
#include "mule_peb_trample_reload.c"
static void
HideModuleFromWindowsReload(HMODULE ModuleToFlush)
@@ -32,12 +33,6 @@ HideModuleFromWindowsReload(HMODULE ModuleToFlush)
}
}
__declspec(dllexport) int
loop_iteration(int it)
{
return it*it;
}
int main(int argument_count, char **arguments)
{
char *exe_name = arguments[0];
+10
View File
@@ -0,0 +1,10 @@
__declspec(dllexport) int
loop_iteration(int it)
{
int sum = 0;
for(int i = 0; i < 1000; i += 1)
{
sum += it*i;
}
return sum;
}