MCPcopy Create free account
hub / github.com/ReversecLabs/C3 / ExecResource

Function ExecResource

Src/CebuLoader/CebuLoaderMain.cpp:8–18  ·  view source on GitHub ↗

Execute dll embedded as a resource [see ResourceGenerator] @param baseAddress of this Module

Source from the content-addressed store, hash-verified

6/// Execute dll embedded as a resource [see ResourceGenerator]
7/// @param baseAddress of this Module
8void ExecResource(void* baseAddress)
9{
10 FSECURE_SET_QUIET_ABORT(
11 if (auto resource = FindStartOfResource(baseAddress))
12 {
13 auto dllData = GetPayload(resource);
14 auto exportFunc = GetExportName(resource);
15 FSecure::Loader::LoadPe(dllData, exportFunc);
16 }
17 );
18}
19
20#ifdef NDEBUG
21/// Entry point for this module. Executes the embedded resource on process attach

Callers 2

DllMainFunction · 0.85
mainFunction · 0.85

Calls 4

FindStartOfResourceFunction · 0.85
GetPayloadFunction · 0.85
GetExportNameFunction · 0.85
LoadPeFunction · 0.85

Tested by

no test coverage detected