| 101 | } |
| 102 | |
| 103 | BOOL FreeHiddenMemory(DWORD64 lpAddress) |
| 104 | { |
| 105 | for (auto it = PagesOfNoAccessOfData.begin(); it != PagesOfNoAccessOfData.end(); it++) |
| 106 | { |
| 107 | if ((*it).lpAddress == lpAddress) |
| 108 | { |
| 109 | PagesOfNoAccessOfData.erase(it); |
| 110 | return VirtualFree((LPVOID)lpAddress, 0, MEM_RELEASE); |
| 111 | } |
| 112 | } |
| 113 | return FALSE; |
| 114 | } |