MCPcopy Create free account
hub / github.com/NoMercy-ac/NoMercy / SecureMemory

Function SecureMemory

Source/Client/NM_Sys/API/MemoryUtils.cpp:84–91  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

82
83 _IRQL_requires_max_(APC_LEVEL)
84 BOOLEAN SecureMemory(__in_data_source(USER_MODE) PVOID UserAddress, SIZE_T Size, ULONG ProtectRights, OUT PHANDLE SecureHandle)
85 {
86 if (!SecureHandle || !Size || AddressRange::IsKernelAddress(UserAddress))
87 return FALSE;
88
89 *SecureHandle = MmSecureVirtualMemory(UserAddress, Size, ProtectRights);
90 return *SecureHandle != NULL;
91 }
92
93 _IRQL_requires_max_(APC_LEVEL)
94 BOOLEAN SecureProcessMemory(PEPROCESS Process,__in_data_source(USER_MODE) PVOID UserAddress, SIZE_T Size, ULONG ProtectRights, OUT PHANDLE SecureHandle)

Callers 7

SecureProcessMemoryFunction · 0.85
OperateProcessMemoryFunction · 0.85
KbSecureVirtualMemoryFunction · 0.85
KbGetThreadContextFunction · 0.85
KbSetThreadContextFunction · 0.85
KbGetKernelProcAddressFunction · 0.85
KbCreateDriverFunction · 0.85

Calls 1

IsKernelAddressFunction · 0.85

Tested by

no test coverage detected