MCPcopy Create free account
hub / github.com/connorjaydunn/BinaryShield / removeOriginalFunctionBytes

Method removeOriginalFunctionBytes

src/pe.cpp:262–271  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260}
261
262void PE::removeOriginalFunctionBytes(Function function)
263{
264 // replace all the original function bytes with 0xCC
265 std::fill
266 (
267 bytes.begin() + rvaToFileOffset(function.getStartRva()),
268 bytes.begin() + rvaToFileOffset(function.getEndRva()),
269 0xCC
270 );
271}

Callers

nothing calls this directly

Calls 3

rvaToFileOffsetFunction · 0.85
getStartRvaMethod · 0.80
getEndRvaMethod · 0.80

Tested by

no test coverage detected