Skip to content

Instantly share code, notes, and snippets.

@herrcore
Created May 24, 2023 23:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save herrcore/89337802f8ba8b6d36c80035b054b256 to your computer and use it in GitHub Desktop.
Save herrcore/89337802f8ba8b6d36c80035b054b256 to your computer and use it in GitHub Desktop.
PE_BASE struct to help with IDA markup of PE access
union PE_BASE {
PVOID baseAddress;
IMAGE_DOS_HEADER *mz;
IMAGE_NT_HEADERS *pe;
};
union PE_BASE64 {
PVOID baseAddress;
IMAGE_DOS_HEADER *mz;
IMAGE_NT_HEADERS64 *pe;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment