Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- DWORD FindPattern(const BYTE* Pattern, const char* Mask, DWORD AddValue = NULL, bool SubtractBase = false)
- {
- if (DumpedRegion == nullptr) if (!this->Dump()) return NULL;
- DWORD FoundOff = NULL;
- for (DWORD i=0; i<ModuleBase + ModuleSize; i++)
- {
- if (this->MaskCheck(i, Pattern, Mask))
- {
- if (!SubtractBase)
- return this->ModuleBase + (i + AddValue);
- else
- return (this->ModuleBase + (i + AddValue)) - ModuleBase;
- }
- }
- return NULL;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement