Function at 0x413d78
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 esi, ecx
lea edi, [ebp + 8]
mov eax, dword [0x5ef0d4]
xor eax, ebp
mov dword [esp + 0x98], eax
push dword [edi]
call fcn.005780f6
add esp, 4
mov ecx, dword [esi + 0x2c]
mov dword [esp], esi
mov dword [esi + 0x2c], eax
test ecx, ecx
je 0x413dba
push ecx
call fcn.0056da82
add esp, 4
mov esi, dword [edi + 8]
push dword [edi + 4]
call fcn.005780f6
add esp, 4
mov dword [esp + 4], eax
xor ebx, ebx
cmp dword [esi + 0x60], 0
setne bl
shl ebx, 0x13
or ebx, 0x40c
mov eax, dword [esp]
cmp dword [eax + 0x1c], 0
je 0x413df8
call fcn.004067f0
lea ecx, [ebx + 0x1000000]
cmp eax, 5
cmovl ebx, ecx
mov eax, dword [edi + 8]
movzx eax, byte [eax + 0x10]
pxor xmm0, xmm0
mov edx, edi
lea edi, [esp + 0x20]
movdqa xmmword [edi], xmm0
add esi, 0x1c
xor ecx, ecx
push edi
push esi
push ecx
push ecx
push ebx
push eax
push ecx
push ecx
push dword [esp + 0x24]
mov ebx, edx
push dword [edx]
mov esi, dword [esp + 0x28]
push dword [esi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x413f60
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x10]
movdqa xmmword [ecx], xmm0
push edi
call fcn.004128a0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x413e76
lea ecx, [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0xa8]
cmp edx, dword [ecx + 0xac]
jne 0x413e76
push dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x413f7a
mov esi, dword [esi + 0x14]
lea eax, [esi + 1]
cmp eax, 2
lea edi, [ebp + 8]
jb 0x413fe5
xor eax, eax
mov dword [esp + 0xc], eax
mov ecx, dword [esp + 0x10]
xor edx, edx
dec edx
lea edi, [esp + 0x8c]
mov dword [edi + 8], edx
mov dword [edi + 4], edx
mov dword [edi], edx
push eax
push ecx
push edi
call fcn.0042a8e0
add esp, 0xc
cmp byte [edi], 0
je 0x413f75
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x70]
movdqa xmmword [edi], xmm0
mov dword [edi + 0x10], 0xffffffff
lea ecx, [esp + 0x90]
push edi
call fcn.0042af80
cmp byte [edi], 0
je 0x413f9e
mov eax, dword [esp]
add eax, 0x30
lea edi, [esp + 0x30]
pcmpeqd xmm0, xmm0
movdqa xmmword [edi + 0x20], xmm0
movdqa xmmword [edi + 0x10], xmm0
movdqa xmmword [edi], xmm0
mov dword [edi + 0x30], 0xffffffff
lea ebx, [esp + 0x74]
mov ecx, edi
push eax
push ebx
call fcn.00429b60
lea eax, [esp + 0xc]
push eax
push edi
push 0
push esi
call fcn.00406f09
add esp, 0x10
mov dword [esp + 8], eax
mov ecx, edi
call fcn.00429c84
cmp byte [ebx - 4], 0
lea edi, [ebp + 8]
je 0x413f3d
mov ecx, ebx
call fcn.00413190
cmp byte [esp + 0x8c], 0
je 0x413f53
lea ecx, [esp + 0x90]
call fcn.00405300
cmp dword [esp + 8], 0
jne 0x413fb7
mov esi, dword [esp + 0xc]
jmp 0x413fb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x10]
mov dword [ecx], eax
mov edi, 0x12
jmp 0x4140b0
lea edi, [ebp + 8]
jmp 0x413fb7
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 + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x4140a7
cmp byte [esp + 0x8c], 0
lea edi, [ebp + 8]
je 0x413fb7
lea ecx, [esp + 0x90]
call fcn.00405300
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x30]
mov dword [ecx], eax
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
test eax, eax
je 0x414066
mov eax, dword [esp]
lea ecx, [eax + 0x14]
call fcn.00405300
lea ecx, [esp + 0xc]
call fcn.00405300
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.00412aa0
test al, al
je 0x41402a
push dword [esp + 0x10]
call fcn.0042db05
add esp, 4
mov ecx, dword [esp]
mov dword [ecx + 0x28], eax
test eax, eax
je 0x414048
lea eax, [ecx + 0x28]
cmp dword [eax], 0x400000
je 0x41408d
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x41
jmp 0x4140a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x10]
mov dword [ecx], eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x4140a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x10]
mov dword [ecx], eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x4140a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [edi + 0x10]
mov dword [ecx], eax
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea ecx, [esp + 0xc]
call fcn.00405300
mov edi, 0x15
jmp 0x4140a7
mov edi, ecx
lea esi, [esp + 0x30]
lea ecx, [esp + 0x10]
push esi
call fcn.00412ba0
mov ecx, edi
push esi
call fcn.004128c0
xor edi, edi
lea ecx, [esp + 0x10]
call fcn.004129e0
mov eax, dword [esp + 4]
test eax, eax
je 0x4140c1
push eax
call fcn.0056da82
add esp, 4
lea ecx, [ebp + 0x10]
call fcn.00404754
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.00565e42
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14