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

Method ~MappedModule

loader/mappedmodule.cpp:477–486  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

475}
476
477MappedModule::~MappedModule() {
478
479 if (_mappedPe.headers().nt()->FileHeader.Characteristics & IMAGE_FILE_DLL) {
480 auto dllmain = dllmain_ptr(uintptr_t(_mappedPe.base()) + _mappedPe.headers().opt()->AddressOfEntryPoint);
481 dllmain(HINSTANCE(_mappedPe.base()), DLL_PROCESS_DETACH, 0);
482 }
483
484 RemoveExceptionSupport(_mappedPe);
485 VirtualFree(_mappedImage, 0, MEM_RELEASE);
486}
487
488FARPROC MappedModule::GetProcAddress(const char* name) const {
489

Callers

nothing calls this directly

Calls 5

RemoveExceptionSupportFunction · 0.85
ntMethod · 0.80
headersMethod · 0.80
baseMethod · 0.80
optMethod · 0.80

Tested by

no test coverage detected