MCPcopy Create free account
hub / github.com/SaadAhla/HeapCrypt / HeapSleep

Function HeapSleep

HeapCrypt/HeapEncryptDecrypt.cpp:87–108  ·  view source on GitHub ↗

our Hooking function

Source from the content-addressed store, hash-verified

85
86// our Hooking function
87void HeapSleep(DWORD dwMilliseconds) {
88
89 BYTE KeyBuf[16];
90 unsigned int r = 0;
91 for (int i = 0; i < 16; i++) {
92 rand_s(&r);
93 KeyBuf[i] = (CHAR)r;
94
95 }
96
97 printf("[+] Encrypt the HEAP allocations\n");
98 HeapEncryptDecrypt(KeyBuf);
99
100
101 pSleep(dwMilliseconds);
102
103 HeapEncryptDecrypt(KeyBuf);
104
105 printf("[+] Decrypt the Heap allocations\n");
106 pSleep(dwMilliseconds);
107
108}
109
110
111

Callers

nothing calls this directly

Calls 1

HeapEncryptDecryptFunction · 0.85

Tested by

no test coverage detected