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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffebc
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.3000217c
mov eax, dword [ebp - 0xc]
call fcn.3000217c
xor eax, eax
push ebp
push 0x3000808e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x100]
xor ecx, ecx
mov edx, 0x10
call fcn.300013f8
lea eax, [ebp - 0x144]
xor ecx, ecx
mov edx, 0x44
call fcn.300013f8
lea eax, [ebp - 0xf0]
xor ecx, ecx
mov edx, 0xcc
call fcn.300013f8
mov dword [ebp - 0x144], 0x44
mov dword [ebp - 0x118], 0x80
lea eax, [ebp - 0x100]
push eax
lea eax, [ebp - 0x144]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
mov eax, dword [ebp - 0xc]
call fcn.3000218c
push eax
mov eax, dword [ebp - 4]
call fcn.3000218c
push eax
call sub.kernel32.dll_CreateProcessA
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
call fcn.30007d38
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
call fcn.30001140
mov dword [ebp - 0x14], eax
xor edx, edx
push ebp
push 0x30008069
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x54]
mov edx, dword [ebp - 0x10]
lea esi, [edx + 0x18]
mov edx, dword [ebp - 0x10]
movzx edx, word [edx + 0x14]
add esi, edx
mov edx, dword [ebp - 0x10]
movzx edi, word [edx + 6]
dec edi
test edi, edi
jb 0x30007ec8
inc edi
xor ebx, ebx
lea edx, [ebx + ebx*4]
cmp eax, dword [esi + edx*8 + 0x14]
jbe 0x30007ec4
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x14]
inc ebx
dec edi
jne 0x30007eb4
mov ecx, eax
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x24]
call fcn.30002ce0
mov eax, dword [ebp - 0x10]
mov edx, dword [eax + 0x38]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x54]
call fcn.30007d18
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
movzx edi, word [eax + 6]
dec edi
test edi, edi
jb 0x30007f6a
inc edi
xor ebx, ebx
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 0x10]
test eax, eax
jbe 0x30007f44
lea edx, [ebx + ebx*4]
cmp eax, dword [esi + edx*8 + 8]
jbe 0x30007f16
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 - 8]
mov ecx, eax
mov eax, dword [ebp - 0x24]
call fcn.30002ce0
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x38]
call fcn.30007d18
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
jmp 0x30007f66
lea eax, [ebx + ebx*4]
cmp dword [esi + eax*8 + 8], 0
je 0x30007f66
lea eax, [ebx + ebx*4]
mov eax, dword [esi + eax*8 + 8]
mov edx, dword [ebp - 0x10]
mov edx, dword [edx + 0x38]
call fcn.30007d18
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
inc ebx
dec edi
jne 0x30007efb
mov dword [ebp - 0xf0], 0x10007
lea eax, [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0xfc]
push eax
call sub.kernel32.dll_GetThreadContext
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x4c]
add eax, 8
push eax
mov eax, dword [ebp - 0x100]
push eax
call sub.kernel32.dll_ReadProcessMemory
push 0x40
push 0x3000
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x100]
push eax
call sub.kernel32.dll_VirtualAllocEx
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x20]
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
push eax
mov eax, dword [ebp - 0x100]
push eax
call sub.kernel32.dll_WriteProcessMemory
lea eax, [ebp - 0x1c]
push eax
push 4
mov eax, dword [ebp - 0x10]
add eax, 0x34
push eax
mov eax, dword [ebp - 0x4c]
add eax, 8
push eax
mov eax, dword [ebp - 0x100]
push eax
call sub.kernel32.dll_WriteProcessMemory
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x34]
mov edx, dword [ebp - 0x10]
add eax, dword [edx + 0x28]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xf0]
push eax
mov eax, dword [ebp - 0xfc]
push eax
call sub.kernel32.dll_SetThreadContext
mov eax, dword [ebp - 0xfc]
push eax
call sub.kernel32.dll_ResumeThread
cmp dword [ebp + 8], 0
je 0x30008051
push 0xffffffffffffffff
mov eax, dword [ebp - 0xfc]
push eax
call sub.kernel32.dll_WaitForSingleObject
push 0
mov eax, dword [ebp - 0x100]
push eax
call sub.kernel32.dll_TerminateProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x30008070
mov eax, dword [ebp - 0x14]
push eax
call fcn.30002620
pop ecx
ret