prealloc (reserve pre-allocated pools)
Description of the 'prealloc' command in HyperDbg.
prealloc [Type (string)] [Count (hex)]
Reserves a specified number of pre-allocated pools.
In some cases, you need to reserve multiple pools to be used in vmx-root mode. This command will allocate these pools in PASSIVE_LEVEL.
HyperDbg tries to minimize the request for this command by allocating pools whenever your system is in PASSIVE_LEVEL.
The type of pools to be reserved.
Number of pools to be allocated and reserved.
0: kHyperDbg> prealloc monitor 10
the requested pools are allocated and reserved
This function works by calling DeviceIoControl with
IOCTL = IOCTL_RESERVE_PRE_ALLOCATED_POOLS, you have to send it in the following structure.
typedef struct _DEBUGGER_PREALLOC_COMMAND
} DEBUGGER_PREALLOC_COMMAND, *PDEBUGGER_PREALLOC_COMMAND;
You should only fill the Type and Count of the above structure when the IOCTL returns from the kernel, other parts of this structure are filled with appropriate KernelStatus.
The Type can be from the following enum:
typedef enum _DEBUGGER_PREALLOC_COMMAND_TYPE
This command will continue the debuggee for some time (in Debugger Mode). This means that you lose the current context (registers & memory) after executing this command.