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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xc0
mov edi, ecx
lea esi, [ebp + 8]
mov eax, dword [0x6401e4]
xor eax, ebp
mov dword [esp + 0xb8], eax
push dword [esi]
call fcn.005ac886
add esp, 4
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x10], edi
mov dword [edi + 0x2c], eax
test ecx, ecx
je 0x534797
push ecx
call fcn.00499770
add esp, 4
mov edi, dword [esi + 8]
push dword [esi + 4]
call fcn.005ac886
add esp, 4
mov dword [esp + 0x18], eax
xor ebx, ebx
cmp dword [edi + 0x60], 0
setne bl
shl ebx, 0x13
or ebx, 0x40c
mov eax, dword [esp + 0x10]
cmp dword [eax + 0x1c], 0
je 0x5347d6
call fcn.00499680
lea ecx, [ebx + 0x1000000]
cmp eax, 5
cmovl ebx, ecx
mov eax, dword [esi + 8]
movzx eax, byte [eax + 0x10]
xorps xmm0, xmm0
mov edx, esi
lea esi, [esp + 0x30]
movaps xmmword [esi], xmm0
add edi, 0x1c
xor ecx, ecx
push esi
push edi
push ecx
push ecx
push ebx
push eax
push ecx
push ecx
mov eax, dword [esp + 0x38]
mov ebx, eax
push eax
push dword [edx]
mov edi, dword [esp + 0x38]
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x5348e7
lea ecx, [esp + 0x20]
push esi
call fcn.00534280
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x53484b
lea ecx, [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x94]
cmp edx, dword [ecx + 0x98]
jne 0x53484b
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x5348ff
mov ecx, dword [edi + 0x14]
lea eax, [ecx + 1]
cmp eax, 2
lea esi, [ebp + 8]
jb 0x534a17
mov dword [esp + 0xc], ecx
mov dword [esp + 0x1c], 0
lea eax, [esp + 0x48]
push eax
push 8
push dword [esp + 0x28]
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x5349c5
mov eax, dword [esp + 0x48]
xor ecx, ecx
lea edi, [esp + 0x44]
mov dword [edi], ecx
mov ecx, edi
push eax
call fcn.00408a9a
mov esi, dword [edi]
mov ebx, 0x48
push ebx
call fcn.00596296
add esp, 4
mov edi, eax
push ebx
xor eax, eax
push eax
push edi
call fcn.0059a740
add esp, 0xc
lea eax, [esp + 0x4c]
push eax
push ebx
push edi
push 0x1f
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x534923
mov esi, dword [edi]
test esi, esi
je 0x53492f
push 0x44
call fcn.00596296
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, eax
push esi
call fcn.004a47a4
jmp 0x534937
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 8]
mov ecx, dword [ecx + 0x10]
mov dword [ecx], eax
mov edi, 0x12
jmp 0x534a9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 8]
mov ecx, dword [ecx + 0x10]
mov dword [ecx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x534a96
mov dword [esp + 0x14], 0
xor ebx, ebx
jmp 0x53493c
mov dword [esp + 0x14], 0
test esi, esi
setne bl
lea esi, [ebp + 8]
push edi
call fcn.00596316
add esp, 4
lea ecx, [esp + 0x44]
call fcn.00408ad6
test bl, bl
je 0x5349b0
mov eax, dword [esp + 0x10]
add eax, 0x30
lea ecx, [esp + 0x4c]
mov edi, ecx
push eax
mov ebx, dword [esp + 0x18]
push ebx
call fcn.00562620
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
push ecx
push ecx
push edi
push ecx
push dword [esp + 0x20]
call fcn.005359cd
add esp, 0x18
mov edi, eax
lea ecx, [esp + 0x4c]
call fcn.00562758
mov eax, ebx
test ebx, ebx
mov ebx, dword [esp + 0x18]
je 0x5349a2
push eax
call fcn.00596316
add esp, 4
test edi, edi
mov edx, dword [esp + 0xc]
jne 0x5349c9
mov edx, dword [esp + 0x1c]
jmp 0x5349c9
mov eax, dword [esp + 0x14]
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x5349c5
push eax
call fcn.00596316
add esp, 4
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x4c]
mov dword [ecx], eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov edi, eax
test eax, eax
je 0x5349ef
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x14]
call fcn.00408ad6
jmp 0x534a06
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x10]
mov dword [ecx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0x1c]
call fcn.00408ad6
test edi, edi
mov edi, dword [esp + 0x10]
je 0x534a91
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x20]
push eax
call fcn.005344b0
test al, al
je 0x534a55
push dword [esp + 0x20]
call fcn.004a5e0b
add esp, 4
mov dword [edi + 0x28], eax
test eax, eax
je 0x534a73
lea esi, [esp + 0x4c]
lea ecx, [esp + 0x20]
push esi
call fcn.005345b0
mov ecx, edi
push esi
call fcn.005342a0
xor edi, edi
jmp 0x534a96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x10]
mov dword [ecx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x534a96
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 0x10]
mov dword [ecx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x534a96
mov edi, 0x15
lea ecx, [esp + 0x20]
call fcn.005343e0
test ebx, ebx
je 0x534aac
push ebx
call fcn.00499770
add esp, 4
lea ecx, [ebp + 0x10]
push 0
call fcn.00534dec
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.00596351
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14