Does the address that ZwClosePtr points to match that of MmGetSystemRoutineAddress for "ZwClose"?
Accept nothing less than STATUS_SUCCESS
A forum for reverse engineering, OS internals and malware analysis
_Lynn wrote:Computed offset is the address I get from dumping the ntoskrnl EAT subtracted by default image base. I then add that offset to the kernel base I obtain in my driver, which I check to make sure is correct with DbgPrint.The EAT is an array of RVAs, which are relative to the image base. So you don't need to subtract the default image base, because the base has not been added to the address.
Export address table - An array of RVAs of exported symbols. These are the actual addresses of the exported functions and data within the executable code and data sections. Other image files can import a symbol by using an index to this table (an ordinal) or, optionally, by using the public name that corresponds to the ordinal if a public name is defined.