Function at 0x403c60
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x18c
push ebx
push esi
push edi
push ebp
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0x12c
push 0x40bf90
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x2e
push 0x40bf90
call fcn.00404fe0
add esp, 8
test eax, eax
je 0x403c99
mov byte [eax], 0
mov edi, str..DLL
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov ecx, 0xffffffff
mov edi, 0x40bf90
sub eax, eax
repne scasb al, byte es:[edi]
dec edi
mov ecx, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x40bf90
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
lea edi, [esp + 0x70]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push 0x40b3e8
and ecx, 3
push 0x40bf90
rep movsb byte es:[edi], byte [esi]
call fcn.004048f0
add esp, 8
mov esi, eax
test esi, esi
jne 0x403db6
push 0x40b3e0
mov eax, dword [0x40bf60]
push str.1234
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [0x40bf68], eax
test eax, eax
jne 0x403d47
push 0x40b3c0
call fcn.00403af0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18c
ret
mov eax, dword [0x40bf68]
mov ecx, dword [0x40bf60]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [0x40c19c], eax
test eax, eax
jne 0x403d89
mov eax, dword [0x40bf68]
push eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0x40b3a8
call fcn.00403af0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18c
ret
mov eax, dword [0x40c19c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
lea ecx, [esp + 0x10]
push 0x60
push eax
mov dword [0x40c190], eax
mov dword [0x40bf74], 0x60
push ecx
call fcn.004044d0
add esp, 0xc
jmp 0x403dc8
lea eax, [esp + 0x10]
push esi
push 0x18
push 4
push eax
call fcn.00404bd0
add esp, 0x10
cmp dword [esp + 0x14], 0xef6eb7da
je 0x403df5
push esi
call fcn.00403c40
add esp, 4
push 0x40b398
call fcn.00403af0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18c
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov dword [0x40bf64], eax
mov eax, dword [esp + 0x24]
mov edi, dword [esp + 0x10]
mov dword [0x40bf74], ecx
mov dword [0x40bf80], edx
mov ecx, dword [esp + 0x28]
mov dword [0x40c1f0], eax
mov dword [0x40c198], ecx
test edx, edx
je 0x403e32
lea eax, [ecx + edx]
jmp 0x403e36
mov eax, dword [esp + 0x18]
push 0x40
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
push 0x2000
mov dword [0x40bf6c], eax
mov eax, dword [0x40bf6c]
push eax
push edi
call ebx
mov dword [0x40bf7c], eax
test eax, eax
jne 0x403e96
push esi
call fcn.00403c40
lea ecx, [esp + 0x74]
add esp, 4
mov eax, dword [0x40bf6c]
push eax
push 0x40b380
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x7c]
add esp, 0xc
push ecx
call fcn.00403af0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18c
ret
cmp edi, dword [0x40bf7c]
je 0x403ee2
test edi, edi
je 0x403ee2
push esi
call fcn.00403c40
lea ecx, [esp + 0x74]
add esp, 4
mov eax, dword [0x40bf7c]
push eax
push edi
push 0x40b34c
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x80]
add esp, 0x10
push ecx
call fcn.00403af0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18c
ret
push 0x40
mov eax, dword [0x40bf64]
push 0x1000
mov ecx, dword [0x40bf7c]
push eax
push ecx
call ebx
mov dword [0x40c0bc], eax
test eax, eax
jne 0x403f47
push esi
call fcn.00403c40
lea edx, [esp + 0x74]
add esp, 4
mov eax, dword [0x40bf64]
mov ecx, dword [0x40bf7c]
push eax
push ecx
push 0x40b330
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x80]
add esp, 0x10
push ecx
call fcn.00403af0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18c
ret
mov eax, dword [0x40c0bc]
test esi, esi
mov dword [0x40c18c], eax
jne 0x403f7f
mov eax, dword [0x40bf74]
mov ecx, dword [0x40c190]
push eax
mov edx, dword [0x40c0bc]
push ecx
push edx
call fcn.004044d0
add esp, 0xc
mov ebp, dword [0x40bf74]
add dword [0x40c190], ebp
jmp 0x403fa2
push esi
call fcn.00404f80
add esp, 4
mov eax, dword [0x40bf74]
mov ecx, dword [0x40c0bc]
push esi
push eax
push 1
push ecx
call fcn.00404bd0
add esp, 0x10
mov ebp, eax
mov edi, dword [0x40c0bc]
add edi, dword [0x40c198]
cmp dword [0x40bf80], 0
je 0x404098
push 0x40
mov eax, dword [0x40bf80]
push 0x1000
push eax
push edi
call ebx
mov dword [0x40bf84], eax
test eax, eax
jne 0x404014
push esi
call fcn.00403c40
lea ecx, [esp + 0x74]
add esp, 4
mov eax, dword [0x40bf80]
push eax
push edi
push 0x40b330
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x80]
add esp, 0x10
push ecx
call fcn.00403af0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18c
ret
cmp dword [0x40bf84], edi
je 0x40405c
push esi
call fcn.00403c40
lea ecx, [esp + 0x74]
add esp, 4
mov eax, dword [0x40bf84]
push eax
push edi
push 0x40b2f4
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x80]
add esp, 0x10
push ecx
call fcn.00403af0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18c
ret
test esi, esi
jne 0x404084
mov eax, dword [0x40c1f0]
mov ecx, dword [0x40c190]
push eax
mov edx, dword [0x40bf84]
push ecx
push edx
call fcn.004044d0
add esp, 0xc
add ebp, dword [0x40c1f0]
jmp 0x404098
push esi
mov eax, dword [0x40c1f0]
push eax
push 1
push edi
call fcn.00404bd0
add esp, 0x10
add ebp, eax
push esi
call fcn.00403c40
add esp, 4
mov eax, ebp
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x18c
ret