Skip to content

Latest commit

 

History

History
10 lines (7 loc) · 790 Bytes

File metadata and controls

10 lines (7 loc) · 790 Bytes

PE Parser and Dynamic Function Loader

This Rust project experiments with reflective loading Windows API functions (LoadLibraryA, MessageBoxA, NtCreateFile) by getting modules from PEB and then parsing PE headers and export tables, avoiding dependencies in the import section.

Features

  • Retrieves the base address of kernelbase.dll and ntdll.dll via PEB/LDR.
  • Parses PE headers to locate export tables and dynamically find functions (LoadLibraryA, MessageBoxA and NtCreateFile).
  • Loads DLLs and calls exported functions at runtime.

When built, user32.dll MessageBoxA, ntdll.dll and NtCreateFile should not appear in the import section. Note that LoadLibraryA might still be visible in some builds (e.g., with GNU tools), possibly due to linker behavior.