MCPcopy Create free account
hub / github.com/echQoQ/RustSL / initialize_dll_info

Function initialize_dll_info

RustVEHSyscalls/src/hooks.rs:42–47  ·  view source on GitHub ↗

Initializes the `DllInfo` struct with `ntdll.dll`'s base and end addresses by accessing the PEB and locating the module using its DJB2 hash (0x1edab0ed).

(obj: &mut DllInfo)

Source from the content-addressed store, hash-verified

40/// Initializes the `DllInfo` struct with `ntdll.dll`'s base and end addresses by accessing the PEB and
41/// locating the module using its DJB2 hash (0x1edab0ed).
42pub fn initialize_dll_info(obj: &mut DllInfo) {
43 let (base_addr, size_of_image) = unsafe { ldr_module_info(0x1edab0ed) };
44
45 obj.base_address = base_addr as u64;
46 obj.end_address = unsafe { base_addr.add(size_of_image) } as u64;
47}
48
49/// Adds hardware breakpoints at the syscall entry and return addresses.
50///

Callers 1

initialize_hooksFunction · 0.85

Calls 1

ldr_module_infoFunction · 0.85

Tested by

no test coverage detected