Function at 0x40eca8
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 [0x5df440]
xor eax, ebp
mov dword [esp + 0x98], eax
push dword [edi]
call fcn.0051f2ad
add esp, 4
mov ecx, dword [esi + 0x2c]
mov dword [esp], esi
mov dword [esi + 0x2c], eax
test ecx, ecx
je 0x40ecea
push ecx
call fcn.0051a296
add esp, 4
mov esi, dword [edi + 8]
push dword [edi + 4]
call fcn.0051f2ad
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 0x40ed28
call fcn.00404a80
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 0x40ee90
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x10]
movdqa xmmword [ecx], xmm0
push edi
call fcn.0040d800
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40eda6
lea ecx, [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0xa8]
cmp edx, dword [ecx + 0xac]
jne 0x40eda6
push dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x40eeaa
mov esi, dword [esi + 0x14]
lea eax, [esi + 1]
cmp eax, 2
lea edi, [ebp + 8]
jb 0x40ef15
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.00425520
add esp, 0xc
cmp byte [edi], 0
je 0x40eea5
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x70]
movdqa xmmword [edi], xmm0
mov dword [edi + 0x10], 0xffffffff
lea ecx, [esp + 0x90]
push edi
call fcn.00425bc0
cmp byte [edi], 0
je 0x40eece
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.004247b0
lea eax, [esp + 0xc]
push eax
push edi
push 0
push esi
call fcn.00405173
add esp, 0x10
mov dword [esp + 8], eax
mov ecx, edi
call fcn.004248d4
cmp byte [ebx - 4], 0
lea edi, [ebp + 8]
je 0x40ee6d
mov ecx, ebx
call fcn.0040e0d0
cmp byte [esp + 0x8c], 0
je 0x40ee83
lea ecx, [esp + 0x90]
call fcn.00403540
cmp dword [esp + 8], 0
jne 0x40eee7
mov esi, dword [esp + 0xc]
jmp 0x40eee7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x10]
mov dword [ecx], eax
mov edi, 0x12
jmp 0x40efe0
lea edi, [ebp + 8]
jmp 0x40eee7
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 0x40efd7
cmp byte [esp + 0x8c], 0
lea edi, [ebp + 8]
je 0x40eee7
lea ecx, [esp + 0x90]
call fcn.00403540
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 0x40ef96
mov eax, dword [esp]
lea ecx, [eax + 0x14]
call fcn.00403540
lea ecx, [esp + 0xc]
call fcn.00403540
mov ecx, dword [edi + 0xc]
lea eax, [esp + 0x10]
push eax
call fcn.0040da00
test al, al
je 0x40ef5a
push dword [esp + 0x10]
call fcn.00428756
add esp, 4
mov ecx, dword [esp]
mov dword [ecx + 0x28], eax
test eax, eax
je 0x40ef78
lea eax, [ecx + 0x28]
cmp dword [eax], 0x400000
je 0x40efbd
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x41
jmp 0x40efd7
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 0x40efd7
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 0x40efd7
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.00403540
mov edi, 0x15
jmp 0x40efd7
mov edi, ecx
lea esi, [esp + 0x30]
lea ecx, [esp + 0x10]
push esi
call fcn.0040db00
mov ecx, edi
push esi
call fcn.0040d820
xor edi, edi
lea ecx, [esp + 0x10]
call fcn.0040d940
mov eax, dword [esp + 4]
test eax, eax
je 0x40eff1
push eax
call fcn.0051a296
add esp, 4
lea ecx, [ebp + 0x10]
call fcn.00402938
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.00513cac
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14