diff --git a/source/utility/pe_pattern_scan.cpp b/source/utility/pe_pattern_scan.cpp index 3d7d6c2..51d92cf 100644 --- a/source/utility/pe_pattern_scan.cpp +++ b/source/utility/pe_pattern_scan.cpp @@ -11,6 +11,9 @@ #include #endif +// Internal PE shit defines +// Big thx for linuxpe sources as ref +// Link: https://github.com/can1357/linux-pe namespace { constexpr std::uint16_t opt_hdr32_magic = 0x010B; @@ -178,7 +181,11 @@ namespace using NtHeaderVariant = std::variant, ImageNtHeaders>; +} +// Internal PE scanner functions +namespace +{ [[nodiscard]] std::optional get_nt_header_from_file(std::fstream& file, const DosHeader& dos_header) {