Function at 0x40286a
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 0x402a39
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 0x402a39
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 0x402988
cmp dword [ebp + 8], 4
je 0x402988
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12b
jne 0x402988
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 0x4029ac
push 0x93
push 0xc
mov eax, esi
pop ebx
mov edx, 0x4095e4
call fcn.00403a50
xor ebx, ebx
push 8
pop eax
call sub.ntdll.dll__alloca_probe
mov eax, esp
cmp eax, ebx
je 0x4029ce
push 0x84
push 5
pop ebx
mov edx, 0x409848
call fcn.00403a50
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 0x402a05
push 0x88
push 4
pop ebx
mov edx, 0x409ac0
call fcn.00403a50
xor ebx, ebx
push eax
call fcn.0040280f
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 0x402a39
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x402a39
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
cmp dword [ebp - 0x10], ebx
je 0x402a55
cmp dword [ebp - 4], ebx
jne 0x402a4d
push ebx
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [ebp - 0x10]
call fcn.004027d9
cmp dword [ebp - 0x14], ebx
je 0x402a71
cmp dword [ebp - 4], ebx
jne 0x402a69
push ebx
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push dword [ebp - 0x14]
call fcn.004027d9
mov eax, dword [ebp - 4]
lea esp, [ebp - 0x448]
pop edi
pop esi
pop ebx
leave
ret 8