-
Notifications
You must be signed in to change notification settings - Fork 52
/
DMPTemplate.bt
executable file
·82 lines (71 loc) · 2.26 KB
/
DMPTemplate.bt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
//--------------------------------------
//--- 010 Editor v2.0.2 Binary Template
//
// File: DMPTemplate.bt
// Author: <[email protected]>
// Revision: 1.0 - 20060320
// Purpose: This template merely serves as documentation of the
// memory dump format used by Microsoft's debuggers and
// the NT kernel crashdump facility. Detailed and
// authorative information about a DMP file can be
// obtained by processing the file with the "dumpchk"
// utility which ships whith Microsoft's free debugging
// tools package.
//--------------------------------------
typedef enum <uint32> {
FULL = 1,
KERNEL,
SMALL
} e_DumpType;
typedef struct {
uint32 BasePage <format=hex>;
uint32 PageCount <format=hex>;
} _PHYSICAL_MEMORY_RUN32;
typedef struct {
uint32 NumberOfRuns;
uint32 NumberOfPages <format=hex>;
_PHYSICAL_MEMORY_RUN32 Run[NumberOfRuns];
} _PHYSICAL_MEMORY_DESCRIPTOR32;
typedef struct {
int32 ExceptionCode <format=hex>;
uint32 ExceptionFlags;
uint32 ExceptionRecord;
uint32 ExceptionAddress <format=hex>;
uint32 NumberParameters;
uint32 ExceptionInformation[15] <format=hex>;
} _EXCEPTION_RECORD32;
FSeek(0);
char Signature[4];
char ValidDump[4];
uint32 MajorVersion;
uint32 MinorVersion;
uint32 DirectoryTableBase <format=hex>;
uint32 PfnDataBase <format=hex>;
uint32 PsLoadedModuleList <format=hex>;
uint32 PsActiveProcessHead <format=hex>;
uint32 MachineImageType <format=hex>;
uint32 NumberProcessors;
uint32 BugCheckCode <format=hex>;
uint32 BugCheckParameter[4] <format=hex>;
char VersionUser[32];
uchar PaeEnabled;
uchar KdSecondaryVersion;
uchar Spare3[2];
uint32 KdDebuggerDataBlock <format=hex>;
_PHYSICAL_MEMORY_DESCRIPTOR32 PhysicalMemoryBlock;
FSeek(800);
uchar ContextRecord[1200];
_EXCEPTION_RECORD32 Exception;
char Comment[128];
uchar _reserved0[1768];
e_DumpType DumpType;
uint32 MiniDumpFields;
uint32 SecondaryDataState;
uint32 ProductType;
uint32 SuiteMask;
uint32 WriterStatus;
int64 RequiredDumpSpace;
uchar _reserved2[16];
FILETIME SystemUpTime;
FILETIME SystemTime;
uchar _reserved3[56];