Function at 0x52e766
Capabilities:
Create process on windows
Create process suspended
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov eax, dword [0x63a1e8]
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov ebx, ecx
xor eax, ebp
mov dword [esp + 0xb8], eax
push dword [ebp + 8]
call fcn.005a6c22
add esp, 4
mov ecx, dword [ebx + 0x2c]
mov dword [esp + 0x14], ebx
mov dword [ebx + 0x2c], eax
test ecx, ecx
je 0x52e7ad
push ecx
call fcn.00496d10
add esp, 4
push edi
call fcn.005a6c22
add esp, 4
xor ebx, ebx
cmp dword [esi + 0x48], 0
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x14]
setne bl
shl ebx, 0x13
or ebx, 0x40c
cmp dword [eax + 0x1c], 0
je 0x52e7e7
call fcn.00496c20
lea ecx, [ebx + 0x1000000]
cmp eax, 5
cmovl ebx, ecx
movzx eax, byte [ebp + 0x10]
xorps xmm0, xmm0
lea edi, [esp + 0x30]
add esi, 4
xor ecx, ecx
movaps xmmword [edi], xmm0
push edi
push esi
push ecx
push ecx
push ebx
push eax
push ecx
push ecx
mov esi, dword [esp + 0x30]
push esi
push dword [ebp + 8]
mov ebx, dword [esp + 0x3c]
push dword [ebx + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x52e8e5
lea ecx, [esp + 0x20]
push edi
call fcn.0052e2d0
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x52e843
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x52e8fa
mov ebx, dword [ebx + 0x14]
mov edi, dword [ebp + 0x1c]
lea eax, [ebx + 1]
cmp eax, 2
jb 0x52e9e4
lea eax, [esp + 0x48]
mov dword [esp + 0x1c], 0
push eax
push 8
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x52e9b5
mov eax, dword [esp + 0x48]
xor ecx, ecx
lea esi, [esp + 0x44]
mov dword [esp + 0x18], ebx
mov dword [esi], ecx
mov ecx, esi
push eax
call fcn.00408a4a
mov esi, dword [esi]
mov edi, 0x48
push edi
call fcn.00590936
add esp, 4
mov ebx, eax
push edi
xor eax, eax
push eax
push ebx
call fcn.00594d60
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push edi
push ebx
push 0x1f
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x52e91b
mov esi, dword [ebx]
test esi, esi
je 0x52e91b
push 0x44
call fcn.00590936
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, eax
push esi
call fcn.004a1ba4
mov al, 1
mov dword [esp + 8], eax
jmp 0x52e92b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov edi, 0x12
mov dword [ecx], eax
jmp 0x52ea8e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x52ea85
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov esi, dword [esp + 0x10]
mov edi, dword [ebp + 0x1c]
push ebx
call fcn.005909b6
add esp, 4
lea ecx, [esp + 0x44]
call fcn.00408ad0
cmp byte [esp + 8], 0
je 0x52e9a0
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x4c]
mov ebx, ecx
add eax, 0x30
push eax
push dword [esp + 0x10]
call fcn.0052edd4
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
push ecx
push ecx
push ebx
push ecx
mov ebx, dword [esp + 0x2c]
push ebx
call fcn.0052fbfe
add esp, 0x18
lea ecx, [esp + 0x4c]
mov dword [esp + 8], eax
call fcn.0052ef10
push dword [esp + 0xc]
call fcn.005909b6
add esp, 4
cmp dword [esp + 8], 0
jne 0x52e9b5
mov ebx, dword [esp + 0x1c]
jmp 0x52e9b5
mov eax, dword [esp + 0xc]
mov ebx, dword [esp + 0x18]
test eax, eax
je 0x52e9b5
push eax
call fcn.005909b6
add esp, 4
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
mov dword [ecx], eax
push ebx
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x52ea63
mov eax, dword [esp + 0x14]
lea ecx, [eax + 0x14]
call fcn.00408ad0
lea ecx, [esp + 0x1c]
call fcn.00408ad0
mov ecx, dword [ebp + 0x18]
lea eax, [esp + 0x20]
push eax
call fcn.0052e490
test al, al
je 0x52ea2a
push dword [esp + 0x20]
call fcn.004a3152
add esp, 4
mov edi, dword [esp + 0x14]
test eax, eax
mov dword [edi + 0x28], eax
je 0x52ea45
lea esi, [esp + 0x4c]
lea ecx, [esp + 0x20]
push esi
call fcn.0052e550
mov ecx, edi
push esi
mov esi, dword [esp + 0x14]
call fcn.0052e320
xor edi, edi
jmp 0x52ea85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x52ea85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x52ea85
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x1c]
call fcn.00408ad0
mov edi, 0x15
lea ecx, [esp + 0x20]
call fcn.0052e370
test esi, esi
je 0x52ea9b
push esi
call fcn.00496d10
add esp, 4
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.005909f1
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x18