Functions§
- Get Loaded Image Protocol to access current binary
- Get actual PE file size from headers (not memory image size)
- Open file for reading only
- Restore original ImageBase in PE header UEFI relocates executables and modifies the ImageBase field - we need to restore it