Skip to content

Commit 9779590

Browse files
committed
Add yara reference link
1 parent 4266c50 commit 9779590

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

phlib/mapimg.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2400,7 +2400,8 @@ NTSTATUS PhGetMappedImageProdIdHeader(
24002400
richHeaderContentBuffer = PhAllocateZero(richHeaderContentLength);
24012401
memcpy(richHeaderContentBuffer, richHeaderStart, richHeaderContentLength);
24022402

2403-
// Walk the buffer and decrypt the entire thing.
2403+
// 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
24042405
for (
24052406
richHeaderContentOffset = richHeaderContentBuffer;
24062407
richHeaderContentOffset < (PULONG)PTR_ADD_OFFSET(richHeaderContentBuffer, richHeaderContentLength);

0 commit comments

Comments
 (0)