26 if (Buffer == NULL || Sigs == NULL)
31 for (
DWORD i = 0; i < SigCount; i++)
35 for (
DWORD j = 0; j < Sigs[i].Length; j++)
37 if (Sigs[i].Pattern[j] != 0x100 &&
38 Sigs[i].Pattern[j] != Buffer[Sigs[i].Offset + j])
74 if (Buffer == NULL || Sigs == NULL)
79 for (
DWORD i = 0; i < SigCount; i++)
82 for (
DWORD bufferOffset = 0; bufferOffset + Sigs[i].Length <= BufferSize; bufferOffset++)
DWORD IntPatternMatch(const BYTE *Buffer, DWORD SigCount, const PATTERN_SIGNATURE *Sigs)
Matches one of the given signatures on the given buffer.
#define SIG_NOT_FOUND
Signals that a signature was not matched.
DWORD IntPatternMatchAllOffsets(const BYTE *Buffer, const DWORD BufferSize, DWORD SigCount, const PATTERN_SIGNATURE *Sigs)
Matches one of the given signatures on the given buffer at any offset inside the given buffer...
Describes a signature that can be used for searching or matching guest contents.