0x6d696368 / ghidra-data Goto Github PK
View Code? Open in Web Editor NEWThis project forked from nationalsecurityagency/ghidra-data
Supporting Data Archives for Ghidra
Home Page: https://www.nsa.gov/ghidra
License: Apache License 2.0
This project forked from nationalsecurityagency/ghidra-data
Supporting Data Archives for Ghidra
Home Page: https://www.nsa.gov/ghidra
License: Apache License 2.0
I'm trying to use the _IRP
structure from ntddk_64.gdt
in a Ghidra project but it seems to be conflicting with the MSDN and header accounts of the structure in memory:
(ntddk_64
version:)
typedef struct _IRP {
CSHORT Type;
USHORT Size;
struct _MDL * MdlAddress;
ULONG Flags;
union {
struct _IRP * MasterIrp;
volatile LONG IrpCount;
PVOID SystemBuffer;
}
AssociatedIrp;
LIST_ENTRY ThreadListEntry;
IO_STATUS_BLOCK IoStatus;
KPROCESSOR_MODE RequestorMode;
BOOLEAN PendingReturned;
CHAR StackCount;
CHAR CurrentLocation;
...
}
IRP, * PIRP;
(WDM.h
& documentation version:)
typedef struct _IRP {
CSHORT Type;
USHORT Size;
PMDL MdlAddress;
ULONG Flags;
union {
struct _IRP *MasterIrp;
__volatile LONG IrpCount;
PVOID SystemBuffer;
} AssociatedIrp;
LIST_ENTRY ThreadListEntry;
IO_STATUS_BLOCK IoStatus;
KPROCESSOR_MODE RequestorMode;
BOOLEAN PendingReturned;
CHAR StackCount;
CHAR CurrentLocation;
...
} IRP;
So when I see RSI,qword ptr [RCX + Irp+0x18]
, Ghidra decompiles it to ((longlong)&Irp->AssociatedIrp + 4)
whereas it should be: Irp->AssociatedIrp.SystemBuffer
.
Is there any way to recompile a gdt file? (I have no experience or knowledge in this area) or is there any way I can find an updated version?
My main concern is that there might be other issues that I haven't noticed but could have an impact on how I reverse drivers so I'm trying to get a ntddk
file that is more reflective of how my sample binary was probably compiled.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.