Function at 0x410e38
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 [0x5ce440]
xor eax, ebp
mov dword [esp + 0x98], eax
push dword [edi]
call fcn.00510746
add esp, 4
mov ecx, dword [esi + 0x2c]
mov dword [esp], esi
mov dword [esi + 0x2c], eax
test ecx, ecx
je 0x410e7a
push ecx
call fcn.0050b736
add esp, 4
mov esi, dword [edi + 8]
push dword [edi + 4]
call fcn.00510746
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 0x410eb8
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 0x411020
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x10]
movdqa xmmword [ecx], xmm0
push edi
call fcn.0040f990
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x410f36
lea ecx, [ebp + 0x10]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0xa8]
cmp edx, dword [ecx + 0xac]
jne 0x410f36
push dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_AssignProcessToJobObject]
test eax, eax
je 0x41103a
mov esi, dword [esi + 0x14]
lea eax, [esi + 1]
cmp eax, 2
lea edi, [ebp + 8]
jb 0x4110a5
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.004282b0
add esp, 0xc
cmp byte [edi], 0
je 0x411035
pcmpeqd xmm0, xmm0
lea edi, [esp + 0x70]
movdqa xmmword [edi], xmm0
mov dword [edi + 0x10], 0xffffffff
lea ecx, [esp + 0x90]
push edi
call fcn.00428950
cmp byte [edi], 0
je 0x41105e
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.00427540
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.00427664
cmp byte [ebx - 4], 0
lea edi, [ebp + 8]
je 0x410ffd
mov ecx, ebx
call fcn.00410260
cmp byte [esp + 0x8c], 0
je 0x411013
lea ecx, [esp + 0x90]
call fcn.00403540
cmp dword [esp + 8], 0
jne 0x411077
mov esi, dword [esp + 0xc]
jmp 0x411077
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebx + 0x10]
mov dword [ecx], eax
mov edi, 0x12
jmp 0x411170
lea edi, [ebp + 8]
jmp 0x411077
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 0x411167
cmp byte [esp + 0x8c], 0
lea edi, [ebp + 8]
je 0x411077
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 0x411126
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.0040fb90
test al, al
je 0x4110ea
push dword [esp + 0x10]
call fcn.0042b4e6
add esp, 4
mov ecx, dword [esp]
mov dword [ecx + 0x28], eax
test eax, eax
je 0x411108
lea eax, [ecx + 0x28]
cmp dword [eax], 0x400000
je 0x41114d
push 0
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, 0x41
jmp 0x411167
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 0x411167
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 0x411167
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 0x411167
mov edi, ecx
lea esi, [esp + 0x30]
lea ecx, [esp + 0x10]
push esi
call fcn.0040fc90
mov ecx, edi
push esi
call fcn.0040f9b0
xor edi, edi
lea ecx, [esp + 0x10]
call fcn.0040fad0
mov eax, dword [esp + 4]
test eax, eax
je 0x411181
push eax
call fcn.0050b736
add esp, 4
lea ecx, [ebp + 0x10]
call fcn.00402938
mov ecx, dword [esp + 0x98]
xor ecx, ebp
call fcn.005051b5
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14