|
HyperDbg Debugger
|
Internal PDB identity formatting helpers. More...
Go to the source code of this file.
Typedefs | |
| typedef BOOLEAN(* | PSYM_PDB_IDENTITY_FALLBACK_CALLBACK) (PVOID Context, CHAR *PdbFile, SIZE_T PdbFileSize, GUID *Guid, DWORD *Age) |
| typedef BOOLEAN(* | PSYM_PDB_IDENTITY_EXTRACTOR_CALLBACK) (const BYTE *PeImageBytes, SIZE_T PeImageSize, CHAR *PdbFile, SIZE_T PdbFileSize, GUID *Guid, DWORD *Age) |
Functions | |
| BOOLEAN | SymFormatPdbIdentity (const CHAR *PdbFile, const GUID *Guid, DWORD Age, CHAR *SymbolServerRelativePath, SIZE_T SymbolServerRelativePathSize, CHAR *GuidAndAgeDetails, SIZE_T GuidAndAgeDetailsSize) |
| Helper function to format the PDB identity information into the specified output buffers. | |
| BOOLEAN | SymFormatPdbIdentityFromPeImageOrFallback (const BYTE *PeImageBytes, SIZE_T PeImageSize, CHAR *SymbolServerRelativePath, SIZE_T SymbolServerRelativePathSize, CHAR *PdbFilePath, SIZE_T PdbFilePathSize, CHAR *GuidAndAgeDetails, SIZE_T GuidAndAgeDetailsSize, PSYM_PDB_IDENTITY_FALLBACK_CALLBACK FallbackCallback, PVOID FallbackContext) |
| Extracts PDB identity information from a PE image using the specified extractor callback, with an optional fallback if extraction fails. | |
| BOOLEAN | SymFormatPdbIdentityFromLoadedPeImageOrFallback (const BYTE *PeImageBytes, SIZE_T PeImageSize, CHAR *SymbolServerRelativePath, SIZE_T SymbolServerRelativePathSize, CHAR *PdbFilePath, SIZE_T PdbFilePathSize, CHAR *GuidAndAgeDetails, SIZE_T GuidAndAgeDetailsSize, PSYM_PDB_IDENTITY_FALLBACK_CALLBACK FallbackCallback, PVOID FallbackContext) |
| Extracts PDB identity information from a PE image using the specified extractor callback that parses the image as if it is loaded in memory, with an optional fallback if extraction fails. | |
Internal PDB identity formatting helpers.
| typedef BOOLEAN(* PSYM_PDB_IDENTITY_EXTRACTOR_CALLBACK) (const BYTE *PeImageBytes, SIZE_T PeImageSize, CHAR *PdbFile, SIZE_T PdbFileSize, GUID *Guid, DWORD *Age) |
| typedef BOOLEAN(* PSYM_PDB_IDENTITY_FALLBACK_CALLBACK) (PVOID Context, CHAR *PdbFile, SIZE_T PdbFileSize, GUID *Guid, DWORD *Age) |
| BOOLEAN SymFormatPdbIdentity | ( | const CHAR * | PdbFile, |
| const GUID * | Guid, | ||
| DWORD | Age, | ||
| CHAR * | SymbolServerRelativePath, | ||
| SIZE_T | SymbolServerRelativePathSize, | ||
| CHAR * | GuidAndAgeDetails, | ||
| SIZE_T | GuidAndAgeDetailsSize ) |
Helper function to format the PDB identity information into the specified output buffers.
The function formats the PDB file name, GUID, and age into a symbol server relative path and a combined GUID-and-age string according to the standard symbol server layout.
| PdbFile | The base name of the PDB file (e.g., "example.pdb") |
| Guid | The GUID associated with the PDB |
| Age | The age associated with the PDB |
| SymbolServerRelativePath | An optional output buffer to receive the formatted symbol server relative path. If not NULL, it must have enough space for the formatted string |
| SymbolServerRelativePathSize | The size of the SymbolServerRelativePath buffer in bytes |
| GuidAndAgeDetails | An optional output buffer to receive the formatted GUID and age details string. If not NULL, it must have enough space for the formatted string |
| GuidAndAgeDetailsSize | The size of the GuidAndAgeDetails buffer in bytes |
| BOOLEAN SymFormatPdbIdentityFromLoadedPeImageOrFallback | ( | const BYTE * | PeImageBytes, |
| SIZE_T | PeImageSize, | ||
| CHAR * | SymbolServerRelativePath, | ||
| SIZE_T | SymbolServerRelativePathSize, | ||
| CHAR * | PdbFilePath, | ||
| SIZE_T | PdbFilePathSize, | ||
| CHAR * | GuidAndAgeDetails, | ||
| SIZE_T | GuidAndAgeDetailsSize, | ||
| PSYM_PDB_IDENTITY_FALLBACK_CALLBACK | FallbackCallback, | ||
| PVOID | FallbackContext ) |
Extracts PDB identity information from a PE image using the specified extractor callback that parses the image as if it is loaded in memory, with an optional fallback if extraction fails.
| PeImageBytes | A pointer to the bytes of the PE image in memory |
| PeImageSize | The size of the PE image in bytes |
| SymbolServerRelativePath | An optional output buffer to receive the formatted symbol server relative path. If not NULL, it must have enough space for the formatted string |
| SymbolServerRelativePathSize | The size of the SymbolServerRelativePath buffer in bytes |
| PdbFilePath | An optional output buffer to receive the extracted PDB file path. If not NULL, it must have enough space for the file path string |
| PdbFilePathSize | The size of the PdbFilePath buffer in bytes |
| GuidAndAgeDetails | An optional output buffer to receive the formatted GUID and age details string. If not NULL, it must have enough space for the formatted string |
| GuidAndAgeDetailsSize | The size of the GuidAndAgeDetails buffer in bytes |
| FallbackCallback | An optional callback function that is invoked if the extractor callback fails. It should attempt to provide the same information as the extractor and return TRUE on success or FALSE on failure |
| FallbackContext | An optional context pointer that is passed to the fallback callback when invoked |
| BOOLEAN SymFormatPdbIdentityFromPeImageOrFallback | ( | const BYTE * | PeImageBytes, |
| SIZE_T | PeImageSize, | ||
| CHAR * | SymbolServerRelativePath, | ||
| SIZE_T | SymbolServerRelativePathSize, | ||
| CHAR * | PdbFilePath, | ||
| SIZE_T | PdbFilePathSize, | ||
| CHAR * | GuidAndAgeDetails, | ||
| SIZE_T | GuidAndAgeDetailsSize, | ||
| PSYM_PDB_IDENTITY_FALLBACK_CALLBACK | FallbackCallback, | ||
| PVOID | FallbackContext ) |
Extracts PDB identity information from a PE image using the specified extractor callback, with an optional fallback if extraction fails.
| PeImageBytes | A pointer to the bytes of the PE image in memory |
| PeImageSize | The size of the PE image in bytes |
| SymbolServerRelativePath | An optional output buffer to receive the formatted symbol server relative path. If not NULL, it must have enough space for the formatted string |
| SymbolServerRelativePathSize | The size of the SymbolServerRelativePath buffer in bytes |
| PdbFilePath | An optional output buffer to receive the extracted PDB file path. If not NULL, it must have enough space for the file path string |
| PdbFilePathSize | The size of the PdbFilePath buffer in bytes |
| GuidAndAgeDetails | An optional output buffer to receive the formatted GUID and age details string. If not NULL, it must have enough space for the formatted string |
| GuidAndAgeDetailsSize | The size of the GuidAndAgeDetails buffer in bytes |
| FallbackCallback | An optional callback function that is invoked if the extractor callback fails. It should attempt to provide the same information as the extractor and return TRUE on success or FALSE on failure |
| FallbackContext | An optional context pointer that is passed to the fallback callback when invoked |