Function at 0x4a5104
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 [0x57ffac]
xor eax, ebp
mov dword [esp + 0xb8], eax
push dword [esi]
call fcn.0051326d
add esp, 4
mov ecx, dword [edi + 0x2c]
mov dword [esp + 0x10], edi
mov dword [edi + 0x2c], eax
test ecx, ecx
je 0x4a5147
push ecx
call fcn.00435680
add esp, 4
mov edi, dword [esi + 8]
push dword [esi + 4]
call fcn.0051326d
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 0x4a5186
call fcn.00455840
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 0x4a5297
lea ecx, [esp + 0x20]
push esi
call fcn.004a4c30
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x4a51fb
lea ecx, [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x94]
cmp edx, dword [ecx + 0x98]
jne 0x4a51fb
push dword [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x4a52af
mov ecx, dword [edi + 0x14]
lea eax, [ecx + 1]
cmp eax, 2
lea esi, [ebp + 8]
jb 0x4a53c7
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 0x4a5375
mov eax, dword [esp + 0x48]
xor ecx, ecx
lea edi, [esp + 0x44]
mov dword [edi], ecx
mov ecx, edi
push eax
call fcn.0040504a
mov esi, dword [edi]
mov ebx, 0x48
push ebx
call fcn.004fe808
add esp, 4
mov edi, eax
push ebx
xor eax, eax
push eax
push edi
call fcn.00502350
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 0x4a52d3
mov esi, dword [edi]
test esi, esi
je 0x4a52df
push 0x44
call fcn.004fe808
add esp, 4
mov dword [esp + 0x14], eax
mov ecx, eax
push esi
call fcn.0049fed4
jmp 0x4a52e7
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp + 8]
mov ecx, dword [ecx + 0x10]
mov dword [ecx], eax
mov edi, 0x12
jmp 0x4a544f
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 0x4a5446
mov dword [esp + 0x14], 0
xor ebx, ebx
jmp 0x4a52ec
mov dword [esp + 0x14], 0
test esi, esi
setne bl
lea esi, [ebp + 8]
push edi
call fcn.004fe838
add esp, 4
lea ecx, [esp + 0x44]
call fcn.00405024
test bl, bl
je 0x4a5360
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.004c30b8
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
push ecx
push ecx
push edi
push ecx
push dword [esp + 0x20]
call fcn.00476ead
add esp, 0x18
mov edi, eax
lea ecx, [esp + 0x4c]
call fcn.004c31f0
mov eax, ebx
test ebx, ebx
mov ebx, dword [esp + 0x18]
je 0x4a5352
push eax
call fcn.004fe838
add esp, 4
test edi, edi
mov edx, dword [esp + 0xc]
jne 0x4a5379
mov edx, dword [esp + 0x1c]
jmp 0x4a5379
mov eax, dword [esp + 0x14]
test eax, eax
mov ebx, dword [esp + 0x18]
je 0x4a5375
push eax
call fcn.004fe838
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 0x4a539f
mov eax, dword [esp + 0x10]
lea ecx, [eax + 0x14]
call fcn.00405024
jmp 0x4a53b6
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.00405024
test edi, edi
mov edi, dword [esp + 0x10]
je 0x4a5441
mov ecx, dword [esi + 0xc]
lea eax, [esp + 0x20]
push eax
call fcn.004a4e60
test al, al
je 0x4a5405
push dword [esp + 0x20]
call fcn.004a153b
add esp, 4
mov dword [edi + 0x28], eax
test eax, eax
je 0x4a5423
lea esi, [esp + 0x4c]
lea ecx, [esp + 0x20]
push esi
call fcn.004a4f60
mov ecx, edi
push esi
call fcn.004a4c50
xor edi, edi
jmp 0x4a5446
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 0x4a5446
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 0x4a5446
mov edi, 0x15
lea ecx, [esp + 0x20]
call fcn.004a4d90
test ebx, ebx
je 0x4a545c
push ebx
call fcn.00435680
add esp, 4
lea ecx, [ebp + 0x10]
push 0
call fcn.004a579c
mov ecx, dword [esp + 0xb8]
xor ecx, ebp
call fcn.004fe871
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14