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

Disassembly:
push ebp
xor eax, eax
mov ecx, 0x10
mov ebp, esp
push edi
push esi
lea edx, [ebp - 0x50]
push ebx
lea ebx, [ebp - 0x4c]
mov edi, ebx
mov ebx, dword fs:[0x18]
sub esp, 0x84
mov dword [ebp - 0x50], 0x44
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x60]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x20], edx
mov dword [esp + 0x24], 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], 0x57f498
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
sub esp, 0x28
mov dword [ebp - 0x68], eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x987
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateProcess_error__lu_n
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call fcn.0050e8b0
lea eax, [ebp - 0x68]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], 4
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0xdeadbeef
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CreateRemoteThread]
sub esp, 0x1c
mov esi, eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x98b
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.CreateRemoteThread_error__ld_n
mov dword [esp + 8], eax
xor eax, eax
test esi, esi
setne al
mov dword [esp], eax
call fcn.0050e8b0
lea eax, [ebp - 0x64]
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov eax, dword [ebp - 0x60]
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov dword [esp], 0xffffffff
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
mov dword [ebp - 0x68], eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x991
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.DuplicateHandle_error__lu_n
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call fcn.0050e8b0
mov dword [ebx + 0x34], 0xdeadbeef
mov dword [esp], esi
mov dword [esp + 4], 0
call dword [sym.imp.kernel32.dll_TerminateThread]
sub esp, 8
mov dword [ebp - 0x68], eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x995
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], 0x5ef890
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call fcn.0050e8b0
mov dword [esp], esi
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
mov dword [ebx + 0x34], 0xdeadbeef
sub esp, 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TerminateProcess]
sub esp, 8
mov dword [ebp - 0x68], eax
call fcn.0057d110
mov dword [eax], 0x5eee7f
mov dword [eax + 4], 0x99a
mov eax, dword [ebx + 0x34]
mov dword [esp + 4], str.TerminateProcess_error__lu_n
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x68]
mov dword [esp], eax
call fcn.0050e8b0
mov eax, dword [ebp - 0x60]
mov dword [esp], eax
call esi
mov eax, dword [ebp - 0x5c]
sub esp, 4
mov dword [esp], eax
call esi
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret