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

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x11
mov ebp, esp
push edi
push esi
lea edi, [ebp - 0x414]
push ebx
sub esp, 0x44c
mov dword [ebp - 0x424], 0
rep stosd dword es:[edi], eax
mov dword [ebp - 0x420], 0
mov dword [ebp - 0x41c], 0
mov dword [ebp - 0x418], 0
mov dword [ebp - 0x428], 0
mov dword [esp + 4], str.ExitThread
mov eax, dword [0x850190]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xe6a
xor eax, eax
test esi, esi
setne al
mov dword [esp + 4], str.GetProcAddress_ExitThread_failed_n
mov dword [esp], eax
mov edi, dword fs:[0x18]
call fcn.0050e8b0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x414], 0x44
mov dword [esp + 0x24], eax
lea eax, [ebp - 0x414]
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x84fee0
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xe6e
mov eax, dword [edi + 0x34]
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str.Failed_to_create_process___ld__n
call fcn.0050e8b0
mov eax, dword [ebp - 0x424]
lea edx, [ebp - 0x3d0]
call fcn.0050d950
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xe71
xor eax, eax
test ebx, ebx
setne al
mov dword [esp + 4], str.Could_not_find_EXE_in_remote_process_n
mov dword [esp], eax
call fcn.0050e8b0
mov eax, dword [ebp - 0x424]
mov edx, ebx
lea ecx, [ebp - 0x3d0]
mov dword [ebp - 0x42c], ebx
call fcn.0051e180
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xe74
xor eax, eax
test ebx, ebx
sete al
mov dword [esp + 4], str.IAT_entry_resolved_prematurely_n
mov dword [esp], eax
call fcn.0050e8b0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0x1234
mov dword [esp + 0xc], esi
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x424]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateRemoteThread]
sub esp, 0x1c
mov ebx, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xe79
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.Could_not_create_remote_thread___ld__n
mov dword [esp + 8], eax
xor eax, eax
test ebx, ebx
setne al
mov dword [esp], eax
call fcn.0050e8b0
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x424]
lea ecx, [ebp - 0x3d0]
call fcn.0051e180
mov dword [ebp - 0x430], eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xe7c
xor eax, eax
mov dword [esp + 4], str.IAT_entry_resolved_prematurely_n
mov edx, dword [ebp - 0x430]
test edx, edx
sete al
mov dword [esp], eax
call fcn.0050e8b0
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x1003f
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_GetThreadContext]
sub esp, 8
mov dword [ebp - 0x430], eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xe80
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.Failed_retrieving_remote_thread_context___ld__n
mov dword [esp + 8], eax
mov edx, dword [ebp - 0x430]
mov dword [esp], edx
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xe81
mov eax, dword [ebp - 0x2d8]
mov dword [esp + 4], str.wrong_flags__lx_n
cmp eax, 0x1003f
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
call fcn.0057d110
mov edx, 1
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xe96
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x51e72f
mov ecx, dword [0x8f0770]
xor edx, edx
test ecx, ecx
sete dl
mov dword [esp + 8], eax
mov dword [esp + 4], str.ebp_is_not_zero__08lx_n
mov dword [esp], edx
call fcn.0050e8b0
mov eax, dword [ebp - 0x224]
test eax, eax
je 0x51e9b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xe9e
mov eax, dword [ebp - 0x228]
mov dword [esp + 0xc], esi
cmp esi, eax
mov dword [esp + 8], eax
sete al
mov dword [esp + 4], str.wrong_eax__08lx__p_n
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xe9f
mov eax, dword [ebp - 0x234]
mov dword [esp + 4], str.wrong_ebx__08lx_n
cmp eax, 0x1234
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xea0
mov eax, dword [ebp - 0x218]
mov dword [esp + 4], str.wrong_flags__08lx_n
mov dword [esp + 8], eax
and eax, 0xfffffffd
cmp eax, 0x200
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xea1
mov eax, dword [ebp - 0x2bc]
mov dword [esp + 4], str.wrong_control__08lx_n
cmp ax, 0x27f
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xea2
movzx edx, word [ebp - 0x20c]
mov dword [esp + 4], str.wrong_control__08x_n
cmp dx, 0x27f
mov dword [esp + 8], edx
sete al
movzx eax, al
mov dword [esp], eax
mov edi, dword fs:[0x18]
call fcn.0050e8b0
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_ResumeThread]
sub esp, 4
mov dword [esp + 4], 0xea60
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xea7
mov eax, dword [edi + 0x34]
mov dword [esp + 4], str.Waiting_for_remote_thread_failed___ld__n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
sete al
mov dword [esp], eax
call fcn.0050e8b0
lea eax, [ebp - 0x428]
mov dword [esp], ebx
mov dword [esp + 4], eax
call dword [sym.imp.kernel32.dll_GetExitCodeThread]
sub esp, 8
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xea9
mov eax, dword [edi + 0x34]
mov dword [esp], esi
mov dword [esp + 8], eax
mov dword [esp + 4], str.Failed_to_retrieve_remote_thread_exit_code___ld__n
call fcn.0050e8b0
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xeaa
xor eax, eax
mov dword [esp + 4], str.Invalid_remote_thread_exit_code_n
cmp dword [ebp - 0x428], 0x1234
sete al
mov dword [esp], eax
call fcn.0050e8b0
mov edx, dword [ebp - 0x42c]
mov eax, dword [ebp - 0x424]
lea ecx, [ebp - 0x3d0]
call fcn.0051e180
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0xead
mov dword [esp + 4], str.EXE_IAT_entry_not_resolved_n
mov dword [esp], esi
call fcn.0050e8b0
test ebx, ebx
je 0x51e97e
mov dword [esp], ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x424]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
lea eax, [ebp - 0x424]
sub esp, 8
call fcn.0050e290
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xe99
call fcn.0050dc60
mov eax, dword [ebp - 0x22c]
mov dword [esp + 4], str.ecx_is_not_zero__08lx_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
mov eax, 0xe9a
call fcn.0050dc60
mov eax, dword [ebp - 0x230]
mov dword [esp + 4], str.edx_is_not_zero__08lx_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
mov eax, 0xe9b
call fcn.0050dc60
mov eax, dword [ebp - 0x238]
mov dword [esp + 4], str.esi_is_not_zero__08lx_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
mov eax, 0xe9c
call fcn.0050dc60
mov eax, dword [ebp - 0x23c]
mov dword [esp + 4], str.edi_is_not_zero__08lx_n
test eax, eax
mov dword [esp + 8], eax
sete al
movzx eax, al
mov dword [esp], eax
call fcn.0050e8b0
jmp 0x51e751