ZwProtectVirtualMemory

NTSTATUS __stdcall ZwProtectVirtualMemory(
        VOID *ProcessHandle,
        VOID **BaseAddress,
        UINT64 *RegionSize,
        UINT64 NewProtectWin32,
        UINT64 *OldProtect){
  NTSTATUS result; 

  _disable();
  __readeflags();
  KiServiceInternal();
  return result;
}

Referenced by:

CmSiProtectViewOfSection
KiOpPatchCode
MiCheckForUserStackOverflow
WbMakeUserDataPagesKernelWritable