Function at 0x402ae2
Capabilities:
Create process on windows
Resume thread
Terminate process
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push ebx
push esi
push edi
xor ebx, ebx
push 0x40
lea eax, [ebp - 0x5c]
push ebx
push eax
mov dword [ebp - 0x60], ebx
call sub.ntdll.dll_memset
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x103
stosd dword es:[edi], eax
lea eax, [ebp - 0x167]
push ebx
push eax
mov byte [ebp - 0x168], bl
call sub.ntdll.dll_memset
push 0x2c8
lea eax, [ebp - 0x434]
push ebx
push eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0x438], ebx
call sub.ntdll.dll_memset
add esp, 0x24
push 0x104
push dword [ebp + 8]
lea eax, [ebp - 0x168]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
xor eax, eax
mov word [ebp - 0x30], ax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
push ebx
push ebx
push 0xc
push ebx
push ebx
push ebx
push dword [ebp + 0xc]
lea eax, [ebp - 0x168]
push eax
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x402ca2
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x10]
mov dword [ebp - 0x438], 0x10007
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
je 0x402ca2
mov edi, dword [ebp - 0x374]
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
or dword [ebp - 0x18], 0xffffffff
lea ecx, [ebp + 8]
push ecx
push 4
lea ecx, [ebp - 0x18]
push ecx
push edi
push eax
mov dword [ebp + 0xc], eax
call esi
test eax, eax
jne 0x402c00
cmp dword [ebp + 8], 4
je 0x402c00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12b
jne 0x402c00
lea eax, [ebp + 8]
push eax
push 0xffffff04
lea eax, [ebp - 0x18]
push eax
push edi
push dword [ebp + 0xc]
call esi
push 0x10
pop eax
call sub.ntdll.dll__alloca_probe
mov esi, esp
cmp esi, ebx
je 0x402c1f
push 0xc
mov eax, esi
pop ebx
mov edx, 0x4096a4
call fcn.0040449f
xor ebx, ebx
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x402c3c
push 5
pop ebx
mov edx, 0x409908
call fcn.0040449f
xor ebx, ebx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 8
mov dword [ebp - 0x394], eax
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x402c6e
push 4
pop ebx
mov edx, 0x409b80
call fcn.0040449f
xor ebx, ebx
push eax
call fcn.00402a8a
mov dword [ebp - 0x380], eax
lea eax, [ebp - 0x438]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
test eax, eax
je 0x402ca2
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x402ca2
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], ebx
je 0x402cbe
cmp dword [ebp - 4], ebx
jne 0x402cb6
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x10]
call fcn.00402a54
cmp dword [ebp - 0x14], ebx
je 0x402cda
cmp dword [ebp - 4], ebx
jne 0x402cd2
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x14]
call fcn.00402a54
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x448]
pop edi
pop esi
pop ebx
leave
ret 8