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

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0xd0
mov esi, ecx
lea edi, [ebp + 8]
mov eax, dword [0x5c3648]
xor eax, ebp
mov dword [esp + 0xc8], eax
push dword [edi]
call fcn.004dfcf2
add esp, 4
mov ecx, dword [esi + 0x2c]
mov dword [esp + 8], esi
mov dword [esi + 0x2c], eax
test ecx, ecx
je 0x4180ab
push ecx
call fcn.004dfcf2
add esp, 4
mov esi, dword [edi + 8]
push dword [edi + 4]
call fcn.004dfcf2
add esp, 4
mov dword [esp + 0x14], eax
xor ebx, ebx
cmp dword [esi + 0x60], 0
setne bl
shl ebx, 0x13
or ebx, 0x40c
mov eax, dword [esp + 8]
cmp dword [eax + 0x1c], 0
je 0x4180ea
call fcn.0040aca0
lea ecx, [ebx + 0x1000000]
cmp eax, 5
cmovl ebx, ecx
lea eax, [ebp + 8]
mov edx, eax
mov eax, dword [eax + 8]
movzx eax, byte [eax + 0x10]
pxor xmm0, xmm0
lea edi, [esp + 0x30]
movdqa xmmword [edi], xmm0
add esi, 0x1c
xor ecx, ecx
push edi
push esi
push ecx
push ecx
push ebx
mov ebx, edx
push eax
push ecx
push ecx
mov esi, dword [esp + 0x34]
push esi
push dword [edx]
mov edi, dword [esp + 0x30]
push dword [edi + 0x10]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x418229
pcmpeqd xmm0, xmm0
lea ecx, [esp + 0x20]
movdqa xmmword [ecx], xmm0
lea eax, [esp + 0x30]
push eax
call fcn.00417ba0
mov eax, dword [edi + 0x1c]
test eax, eax
je 0x41816e
mov ecx, dword [ebx + 8]
mov edx, dword [ecx + 0xa4]
cmp edx, dword [ecx + 0xa8]
jne 0x41816e
push dword [esp + 0x20]
push eax
call dword [sym.imp.kernel32.dll_AssignProcessToJobObject]
test eax, eax
je 0x41823e
mov ecx, dword [edi + 0x14]
lea eax, [ecx + 1]
cmp eax, 2
jb 0x41839e
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], 0
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x4c]
mov dword [ecx], 0xffffffff
push ecx
push 8
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x41834e
mov eax, dword [esp + 0x4c]
xor edi, edi
lea ebx, [esp + 0x48]
mov dword [ebx], edi
mov ecx, ebx
push eax
call fcn.00408414
mov esi, dword [ebx]
mov eax, 0x48
push eax
call fcn.004dfcf2
add esp, 4
mov ebx, eax
pxor xmm0, xmm0
movdqu xmmword [eax], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x30], xmm0
mov dword [eax + 0x44], edi
mov dword [eax + 0x40], edi
lea eax, [esp + 0x50]
mov dword [eax], 0xffffffff
push eax
mov eax, 0x48
push eax
push ebx
push 0x1f
push esi
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x41825f
mov esi, dword [ebx]
test esi, esi
je 0x418279
push 0x44
call fcn.004dfcf2
add esp, 4
mov dword [esp + 0xc], eax
mov ecx, eax
push esi
call fcn.0041c3c4
jmp 0x418281
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebx + 0x10]
mov dword [ecx], eax
mov edi, 0x12
jmp 0x41842a
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebx + 0x10]
mov dword [ecx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov edi, 0x14
jmp 0x418421
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], 0
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 8]
jmp 0x418292
mov dword [esp + 0xc], 0
mov edi, dword [esp + 8]
test esi, esi
setne al
mov dword [esp + 0x18], eax
mov esi, dword [esp + 0x14]
push 0x48
push ebx
call fcn.004dfcf2
add esp, 8
lea ecx, [esp + 0x48]
call fcn.0040966a
cmp byte [esp + 0x18], 0
je 0x41833d
lea eax, [edi + 0x30]
pcmpeqd xmm0, xmm0
movdqu xmmword [esp + 0xac], xmm0
movdqa xmmword [esp + 0xa0], xmm0
movdqa xmmword [esp + 0x90], xmm0
movdqa xmmword [esp + 0x80], xmm0
movdqa xmmword [esp + 0x70], xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
lea ebx, [esp + 0x50]
mov ecx, ebx
push eax
push dword [esp + 0x10]
call fcn.00429a0c
lea eax, [esp + 0x1c]
xor ecx, ecx
push eax
push ecx
push ecx
push ebx
push ecx
push dword [esp + 0x24]
call fcn.0040b900
add esp, 0x18
mov dword [esp + 8], eax
mov ecx, ebx
call fcn.00429b38
push dword [esp + 0xc]
call fcn.004f2d4a
mov edx, dword [esp + 0x14]
add esp, 4
cmp dword [esp + 8], 0
jne 0x418352
mov edx, dword [esp + 0x1c]
jmp 0x418352
mov eax, dword [esp + 0xc]
test eax, eax
je 0x41834e
push eax
call fcn.004f2d4a
add esp, 4
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x24]
lea ecx, [esp + 0x50]
mov dword [ecx], eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_SetThreadToken]
mov ebx, eax
test eax, eax
je 0x418374
lea ecx, [edi + 0x14]
call fcn.0040966a
jmp 0x41838e
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]
lea ecx, [esp + 0x1c]
call fcn.0040966a
test ebx, ebx
lea ebx, [ebp + 8]
je 0x41841c
mov ecx, dword [ebx + 0xc]
lea eax, [esp + 0x20]
push eax
call fcn.00417dc0
test al, al
je 0x4183e0
push dword [esp + 0x20]
call fcn.0041dc9f
add esp, 4
mov dword [edi + 0x28], eax
test eax, eax
je 0x4183fe
lea esi, [esp + 0x50]
lea ecx, [esp + 0x20]
push esi
call fcn.00417ec0
mov ecx, edi
push esi
mov esi, dword [esp + 0x18]
call fcn.00417bc0
xor edi, edi
jmp 0x418421
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebx + 0x10]
mov dword [ecx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov edi, 0x17
jmp 0x418421
call dword [sym.imp.kernel32.dll_GetLastError]
mov ecx, dword [ebx + 0x10]
mov dword [ecx], eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.kernel32.dll_TerminateProcess]
mov edi, 0x2b
jmp 0x418421
mov edi, 0x15
lea ecx, [esp + 0x20]
call fcn.00417cf0
test esi, esi
je 0x418437
push esi
call fcn.004dfcf2
add esp, 4
mov esi, dword [ebx + 8]
test esi, esi
je 0x41844e
mov ecx, esi
call fcn.004168f8
push esi
call fcn.004f2d4a
add esp, 4
mov ecx, dword [esp + 0xc8]
xor ecx, ebp
call fcn.004f2990
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14