MCPcopy Create free account
hub / github.com/SickleSec/GhostWolf / PatchPattern

Function PatchPattern

Ghostwolf/Memory.cpp:30–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28}
29
30void PatchPattern(BYTE* pattern, BYTE baseAddrPattern[], size_t offset) {
31 size_t szAddr = sizeof(uintptr_t) - 1;
32 for (offset -= 1; szAddr > 3; offset--) {
33 pattern[offset] = baseAddrPattern[szAddr];
34 szAddr--;
35 }
36}
37
38BOOL MyMemCmp(BYTE* source, const BYTE* searchPattern, size_t num) {
39 for (size_t i = 0; i < num; ++i) {

Callers 2

PatchBaseAddressFunction · 0.85
mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected