Atlantiraptor Docs

Windows.Memory.PEDump

Type: Client

Extracts running executables from process memory using VAD region enumeration and PE dumping, and uploads the files to the server.

NOTE: The output is not exactly the same as the original binary:

  1. Relocations are not fixed.

  2. Due to ASLR the base address of the binary will not be the same as the original.

The result is usually much better than the binaries dumped from a physical memory image (using e.g. Volatility) because reading process memory will page in any memory-mapped pages as we copy them out. Therefore we do not expect to have holes in the produced binary as is often the case in memory analysis.

Parameters

Name Type Default Description
Pid int The pid to dump
BaseOffset int The base offset to dump from memory. If not provided, we dump all pe files from the PID.
FilenameRegex string .+exe$ Applies to the PE mapping filename to upload

Source

Defined in artifacts/definitions/Windows/Memory/PEDump.yaml.

name: Windows.Memory.PEDump
description: |
  Extracts running executables from process memory using VAD region
  enumeration and PE dumping, and uploads the files to the server.

  NOTE: The output is not exactly the same as the original binary:
  
  1. Relocations are not fixed.
  
  2. Due to ASLR the base address of the binary will not be the same
  as the original.

  The result is usually much better than the binaries dumped from a
  physical memory image (using e.g. Volatility) because reading
  process memory will page in any memory-mapped pages as we copy them
  out. Therefore we do not expect to have holes in the produced binary
  as is often the case in memory analysis.

parameters:
  - name: Pid
    type: int
    description: The pid to dump
  - name: BaseOffset
    type: int
    description: |
      The base offset to dump from memory. If not provided, we dump
      all pe files from the PID.
  - name: FilenameRegex
    default: .+exe$
    description: Applies to the PE mapping filename to upload

sources:
  - query: |
     LET GetFilename(MappingName, BaseOffset) = if(
         condition=MappingName,
         then=format(format="dump_%#x_%s", args=[BaseOffset, basename(path=MappingName)]),
         else=format(format="dump_%#x", args=BaseOffset))

     SELECT format(format="%#x", args=Address) AS Address, Size, MappingName,
            State, Type, Protection, ProtectionMsg, read_file(
              accessor="process",
              filename=format(format="/%d", args=Pid),
              offset=Address,
              length=10) AS Header,
            upload(file=pe_dump(pid=Pid, base_offset=Address),
                   name=GetFilename(MappingName=MappingName, BaseOffset=Address)) AS Upload
     FROM vad(pid=Pid)
     WHERE Header =~ "^MZ" AND MappingName =~ FilenameRegex

Edit this page on GitHub

© 2026 Atlant Security EOOD. Atlantiraptor is free software under the GNU Affero General Public License v3. It is based on Velociraptor by Velocidex, and keeps its copyright notices. Velociraptor is a trademark of its owner; Atlantiraptor is not affiliated with or endorsed by it.