We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4266c50 commit 9779590Copy full SHA for 9779590
phlib/mapimg.c
@@ -2400,7 +2400,8 @@ NTSTATUS PhGetMappedImageProdIdHeader(
2400
richHeaderContentBuffer = PhAllocateZero(richHeaderContentLength);
2401
memcpy(richHeaderContentBuffer, richHeaderStart, richHeaderContentLength);
2402
2403
- // Walk the buffer and decrypt the entire thing.
+ // Walk the buffer and decrypt the entire thing. Based on the same loop used by yara:
2404
+ // https://github.com/VirusTotal/yara/blob/master/libyara/modules/pe/pe.c#L251-L259
2405
for (
2406
richHeaderContentOffset = richHeaderContentBuffer;
2407
richHeaderContentOffset < (PULONG)PTR_ADD_OFFSET(richHeaderContentBuffer, richHeaderContentLength);
0 commit comments