Windows API category
Memory Management
Every process allocates and protects memory. Suspicious patterns are executable private memory, protection flips from RW to RX, and memory mapped from unusual files or sections.
Allocation, protection, mapping and inspection of virtual memory. This category contains 50 APIs.
Open Memory Management in the interactive atlasMemory Management APIs
Last reviewed or generated: .
-
CoTaskMemAlloc
Allocates COM task memory.
-
CoTaskMemFree
Frees COM task memory.
-
CreateFileMappingW
Creates or opens a named file mapping object backed by a file or the pagefile.
-
FlushViewOfFile
Flushes a mapped view back to disk.
-
GetProcessHeap
Returns a handle to the default heap of the calling process.
-
GetProcessHeaps
Returns handles to all active heaps of the calling process.
-
GetProcessMemoryInfo
Reports working set, private bytes and page faults for a process.
-
GlobalAlloc
Allocates memory from the process heap using legacy GMEM flags.
-
GlobalFree
Frees global memory.
-
GlobalLock
Locks global memory and returns a pointer.
-
GlobalUnlock
Unlocks global memory.
-
HeapAlloc
Allocates a block from a heap.
-
HeapCreate
Creates a private heap, sometimes with executable permissions.
-
HeapDestroy
Destroys a private heap.
-
HeapFree
Frees a block allocated from a heap.
-
HeapReAlloc
Resizes a heap block.
-
HeapSetInformation
Configures heap features such as termination on corruption or LFH.
-
HeapValidate
Validates the integrity of a heap or block.
-
HeapWalk
Enumerates the blocks in a heap.
-
LocalAlloc
Allocates local heap memory.
-
LocalFree
Frees local heap memory.
-
MapViewOfFile
Maps a view of a file mapping into the caller address space.
-
MapViewOfFileEx
Maps a file view at a requested base address, useful for image mapping.
-
NtAllocateVirtualMemory
Reserves, commits, or changes the state of a region of pages in the user-mode virtual address space of a specified process.
-
NtCreateSection
Native creation of a section object usable for shared or executable memory.
-
NtFreeVirtualMemory
Native virtual memory release.
-
NtProtectVirtualMemory
Changes the protection of committed pages in a specified process virtual address space; the native equivalent of VirtualProtectEx.
-
NtQueryVirtualMemory
Queries page state, protection and mapping information in a process address space.
-
NtReadVirtualMemory
Reads memory from a specified process into a local buffer; the native equivalent of ReadProcessMemory.
-
NtWriteVirtualMemory
Writes data into a specified process virtual address space; the native equivalent of WriteProcessMemory.
-
ReadProcessMemory
Copies memory from another process into the caller-provided buffer.
-
RtlCopyMemory
Copies a memory block without overlap handling.
-
RtlFillMemory
Fills a memory block with a byte value.
-
RtlMoveMemory
Copies a block of memory between potentially overlapping buffers.
-
RtlSecureZeroMemory
Zeroes memory in a way the compiler cannot optimise away, used for wiping secrets.
-
RtlZeroMemory
Fills a memory block with zeros.
-
SetProcessDEPPolicy
Enables or disables data execution prevention for the current process.
-
SetProcessMitigationPolicy
Changes process mitigation policies such as DEP, ASLR or CFG settings.
-
UnmapViewOfFile
Unmaps a previously mapped view of a file.
-
VirtualAlloc
Reserves, commits or changes memory in the calling process.
-
VirtualAllocEx
Reserves, commits, or changes the state of a region of memory within another process.
-
VirtualFree
Releases or decommits memory previously allocated in the calling process.
-
VirtualFreeEx
Releases memory inside another process.
-
VirtualLock
Locks pages in physical memory to prevent paging.
-
VirtualProtect
Changes the protection of committed memory in the calling process.
-
VirtualProtectEx
Changes the memory protection of a region inside another process.
-
VirtualQuery
Returns information about a range of pages in the calling process.
-
VirtualQueryEx
Returns page information for a region in another process's address space.
-
VirtualUnlock
Unlocks pages previously locked in memory.
-
WriteProcessMemory
Writes data to an area of memory in a specified process; the entire target area must be writable or the operation fails.