MCPcopy Create free account
hub / github.com/NetSPI/BOF-PE / RemoveExceptionSupport

Function RemoveExceptionSupport

loader/mappedmodule.cpp:374–385  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

372
373
374void RemoveExceptionSupport(const Pe::PeNative& mappedPe) {
375
376 auto exceptionTableSize = 0ul;
377 auto exceptionTable = GetExceptionTables(mappedPe, exceptionTableSize);
378
379#if defined(__x86_64__) || defined(_M_X64)
380 //Add the runtime function table so that SEH/C++ exceptions work for x64 PE's
381 RtlDeleteFunctionTable((PRUNTIME_FUNCTION)mappedPe.exceptions().descriptor().ptr);
382#endif
383
384 RtlpDeleteInvertedFunctionTableEntry(PVOID(mappedPe.base()));
385}
386
387static void TlsCallbacks(Logger logger, const Pe::PeNative& mappedPe){
388

Callers 1

~MappedModuleMethod · 0.85

Calls 5

GetExceptionTablesFunction · 0.85
exceptionsMethod · 0.80
baseMethod · 0.80
descriptorMethod · 0.45

Tested by

no test coverage detected