MCPcopy Create free account
hub / github.com/NtQuery/Scylla / isValidPeFile

Method isValidPeFile

Scylla/PeParser.cpp:130–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

128}
129
130bool PeParser::isValidPeFile()
131{
132 bool retValue = false;
133
134 if (pDosHeader)
135 {
136 if (pDosHeader->e_magic == IMAGE_DOS_SIGNATURE)
137 {
138 if (pNTHeader32)
139 {
140 if (pNTHeader32->Signature == IMAGE_NT_SIGNATURE)
141 {
142 retValue = true;
143 }
144 }
145 }
146 }
147
148 return retValue;
149}
150
151bool PeParser::hasDirectory(const int directoryIndex)
152{

Callers 5

dumpActionHandlerMethod · 0.80
setAllSectionNamesMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected