Function at 0x59d8a0
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xa0
mov edi, ecx
lea ebx, [ebp + 0x10]
mov esi, dword [ebp + 0xc]
mov eax, dword [0x5f3418]
xor eax, ebp
mov dword [esp + 0x98], eax
push dword [ebp + 8]
call fcn.0052fb03
add esp, 4
mov ecx, dword [edi + 0x2c]
mov dword [edi + 0x2c], eax
test ecx, ecx
je 0x59d8e3
push ecx
call fcn.0050ef20
add esp, 4
mov eax, dword [ebx]
push esi
mov esi, eax
call fcn.0052fb03
add esp, 4
mov dword [esp], eax
xor ebx, ebx
cmp dword [esi + 0x60], 0
setne bl
shl ebx, 0x13
or ebx, 0x40c
cmp dword [edi + 0x1c], 0
je 0x59d91c
call fcn.00421010
lea ecx, [ebx + 0x1000000]
cmp eax, 5
cmovl ebx, ecx
movzx eax, byte [esi + 0x10]
pxor xmm0, xmm0
mov ecx, esi
lea esi, [esp + 0x20]
movdqa xmmword [esi], xmm0
mov dword [esp + 4], ecx
add ecx, 0x1c
xor edx, edx
push esi
push ecx
push edx
push edx
push ebx
push eax
push edx
push edx
push dword [esp + 0x20]
push dword [ebp + 8]
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x59d9de
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x10]
movdqa xmmword [ecx], xmm0
push esi
call fcn.00585280
mov eax, dword [edi + 0x1c]
test eax, eax
mov esi, dword [esp + 4]
je 0x59d986
mov ecx, dword [esi + 0x98]
cmp ecx, dword [esi + 0x9c]
je 0x59db32
mov ebx, dword [edi + 0x14]
lea eax, [ebx + 1]
cmp eax, 2
jae 0x59da5a
mov ecx, dword [ebp + 0x14]
lea eax, [esp + 0x10]
push eax
call fcn.005853c0
test al, al
je 0x59d9f7
push dword [esp + 0x10]
call fcn.005a3540
add esp, 4
mov dword [edi + 0x28], eax
test eax, eax
mov ebx, dword [ebp + 0x18]
je 0x59db66
cmp eax, 0x400000
je 0x59dc06
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0x41
jmp 0x59da13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
mov ebx, 0x12
mov esi, dword [esp + 4]
mov edi, dword [esp]
jmp 0x59da1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0x17
mov edi, dword [esp]
lea ecx, [esp + 0x10]
call fcn.005852f0
test edi, edi
je 0x59da2c
push edi
call fcn.0050ef20
add esp, 4
test esi, esi
je 0x59da40
mov ecx, esi
call fcn.0059d1c0
push esi
call fcn.0050fc7c
add esp, 4
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.00512ee3
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
xor eax, eax
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x10]
xor edx, edx
dec edx
lea esi, [esp + 0x8c]
mov dword [esi + 8], edx
mov dword [esi + 4], edx
mov dword [esi], edx
push eax
push ecx
push esi
call fcn.00422a90
add esp, 0xc
cmp byte [esi], 0
je 0x59db84
pcmpeqd xmm0, xmm0
lea esi, [esp + 0x70]
movdqa xmmword [esi], xmm0
mov dword [esi + 0x10], 0xffffffff
lea ecx, [esp + 0x90]
push esi
call fcn.00585940
cmp byte [esi], 0
je 0x59dc27
lea eax, [edi + 0x30]
lea esi, [esp + 0x30]
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov dword [esi + 0x30], 0xffffffff
lea edx, [esp + 0x74]
mov ecx, esi
push eax
push edx
call fcn.005a7f40
lea eax, [esp + 0xc]
push eax
push esi
push 0
push ebx
call fcn.00581f40
add esp, 0x10
mov dword [esp + 8], eax
mov ecx, esi
call fcn.005a8070
lea ecx, [esp + 0x74]
cmp byte [ecx - 4], 0
mov esi, dword [esp + 4]
je 0x59db0f
call fcn.00420f10
cmp byte [esp + 0x8c], 0
je 0x59db25
lea ecx, [esp + 0x90]
call fcn.00422a00
cmp dword [esp + 8], 0
jne 0x59db88
mov ebx, dword [esp + 0xc]
jmp 0x59db88
push dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
jne 0x59d986
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0x14
jmp 0x59da13
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, 0x2b
jmp 0x59da13
mov esi, dword [esp + 4]
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
mov dword [ecx], eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov ebx, eax
test eax, eax
je 0x59dbc2
mov eax, dword [edi + 0x14]
inc eax
cmp eax, 2
jb 0x59dbd9
call fcn.004ee180
push dword [edi + 0x14]
call fcn.00506200
add esp, 4
mov dword [edi + 0x14], 0
jmp 0x59dbd9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x18]
mov dword [ecx], eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [esp + 0xc]
inc eax
cmp eax, 2
jb 0x59dbf4
call fcn.004ee180
push dword [esp + 0xc]
call fcn.00506200
add esp, 4
test ebx, ebx
jne 0x59d995
mov ebx, 0x15
jmp 0x59da13
lea esi, [esp + 0x30]
lea ecx, [esp + 0x10]
push esi
call fcn.00585480
mov ecx, edi
push esi
mov esi, dword [esp + 8]
call fcn.005852a0
xor ebx, ebx
jmp 0x59da13
cmp byte [esp + 0x8c], 0
mov esi, dword [esp + 4]
je 0x59db88
lea ecx, [esp + 0x90]
call fcn.00422a00
jmp 0x59db88