Function at 0x4be5c0
Capabilities:
Create process on windows

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e6ab8
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x100
mov eax, dword [0x66a074]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x50], ecx
xor edi, edi
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x44], edi
mov dword [ebp - 0x48], edi
call fcn.004cfbc0
lea eax, [ebp - 0x48]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.004d0860
test al, al
je 0x4be87a
mov eax, dword [ebp - 0x44]
test eax, eax
je 0x4be87a
lea ecx, [ebp - 0x4c]
mov byte [ebp - 0x3d], 0
push ecx
push 1
push 2
push edi
push 0x18b
push eax
mov dword [ebp - 0x4c], edi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4be666
mov edi, dword [ebp - 0x4c]
mov byte [ebp - 0x3d], 1
jmp 0x4be670
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4be670
push eax
call esi
push dword [ebp - 0x44]
call esi
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call fcn.004cfc40
cmp byte [ebp - 0x3d], 0
je 0x4be882
test edi, edi
je 0x4be882
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x48], eax
cmp dword [eax + 0x14], 8
jb 0x4be6a7
mov eax, dword [eax]
mov dword [ebp - 0x48], eax
push 0
push 0
push 0x10
lea eax, [ebp - 0x3c]
xorps xmm0, xmm0
push eax
push 0
push edi
movups xmmword [ebp - 0x3c], xmm0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
push 0x629440
mov dword [ebp - 0x44], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x5c], eax
mov ecx, 5
test eax, eax
je 0x4be7c6
push str.CreateProcessWithTokenW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x58], eax
test eax, eax
je 0x4be7ae
push dword [ebp - 0x48]
xorps xmm0, xmm0
mov dword [ebp - 0xc8], 0x44
xor eax, eax
movlpd qword [ebp - 0xc4], xmm0
mov word [ebp - 0x86], ax
mov eax, 5
movlpd qword [ebp - 0xbc], xmm0
movlpd qword [ebp - 0xb4], xmm0
movlpd qword [ebp - 0xac], xmm0
movlpd qword [ebp - 0xa4], xmm0
movlpd qword [ebp - 0x96], xmm0
movlpd qword [ebp - 0x8e], xmm0
movups xmmword [ebp - 0x6c], xmm0
mov word [ebp - 0x98], ax
mov dword [ebp - 0x9c], 1
call fcn.005c101a
add esp, 4
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x6c]
push ecx
lea ecx, [ebp - 0xc8]
push ecx
push 0
push 0
push 0x10
push eax
push 0
push 1
push edi
call dword [ebp - 0x58]
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x44], eax
test ecx, ecx
je 0x4be7a0
push ecx
call fcn.005bfea0
mov eax, dword [ebp - 0x44]
add esp, 4
test eax, eax
je 0x4be7ae
push dword [ebp - 0x6c]
call esi
push dword [ebp - 0x68]
call esi
push dword [ebp - 0x5c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x44], 0
jne 0x4be875
mov ecx, 5
xorps xmm0, xmm0
mov word [ebp - 0xe0], cx
mov ecx, dword [ebp - 0x50]
xor eax, eax
push ecx
lea ecx, [ebp - 0x2c]
movlpd qword [ebp - 0x10c], xmm0
movlpd qword [ebp - 0x104], xmm0
movlpd qword [ebp - 0xfc], xmm0
movlpd qword [ebp - 0xf4], xmm0
movlpd qword [ebp - 0xec], xmm0
movlpd qword [ebp - 0xde], xmm0
movlpd qword [ebp - 0xd6], xmm0
mov word [ebp - 0xce], ax
mov dword [ebp - 0x110], 0x44
mov dword [ebp - 0xe4], 1
call fcn.0040aa10
cmp dword [ebp - 0x18], 8
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x110]
push ecx
push 0
push 0
push 0x4000000
push 0
push 0
lea eax, [ebp - 0x2c]
cmovae eax, dword [ebp - 0x2c]
push 0
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4be86d
push dword [ebp - 0x7c]
call esi
push dword [ebp - 0x78]
call esi
lea ecx, [ebp - 0x2c]
call fcn.00408ff0
push edi
call esi
jmp 0x4be882
lea ecx, [ebp - 0x54]
call fcn.004cfc40
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005b75ab
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret