Function at 0x45f870
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6b8
mov eax, dword [0x589ed0]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.S_1_16_4096]
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x658], edx
push eax
movups xmmword [ebp - 0x2c], xmm0
push 0x2000000
movq xmm0, qword [0x569f68]
movq qword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
mov dword [ebp - 0x654], ecx
mov dword [ebp - 0x64c], 0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x45f8e8
mov eax, 0x80004005
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004ba2f5
mov esp, ebp
pop ebp
ret
push ebx
push edi
mov edi, dword [ebp - 0x64c]
lea eax, [ebp - 0x6b8]
push 0x44
push 0
push eax
call fcn.004d90f0
add esp, 0xc
mov dword [ebp - 0x648], 0
lea eax, [ebp - 0x648]
push eax
push 1
push 2
push 0
push 0x2000000
push edi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x45f934
mov ebx, 0x80004005
jmp 0x45fb20
mov eax, dword [ebp - 0x648]
mov dword [ebp - 0x65c], eax
lea eax, [ebp - 0x650]
push esi
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x650], 0
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x45fb0e
mov esi, dword [ebp - 0x650]
test esi, esi
je 0x45fb0e
mov dword [ebp - 0x660], 0
push esi
mov dword [ebp - 0x660], 0x20
mov dword [ebp - 0x664], esi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x664]
push eax
push 0x19
push dword [ebp - 0x648]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x45fb00
push 0x410
lea eax, [ebp - 0x644]
push 0
push eax
call fcn.004d90f0
push 0x208
lea eax, [ebp - 0x234]
push 0
push eax
call fcn.004d90f0
mov eax, dword [ebp - 0x654]
lea ecx, [ebp - 0x644]
add esp, 0x18
mov ebx, 0x5679b8
test eax, eax
mov edx, 0x208
cmovne ebx, eax
mov eax, ecx
sub ebx, eax
nop dword [eax]
lea eax, [edx + 0x7ffffdf6]
test eax, eax
je 0x45fa1e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x45fa1e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x45fa00
test edx, edx
lea eax, [ecx - 2]
mov ebx, 0x5679b8
mov edx, 0x104
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x234]
mov eax, dword [ebp - 0x658]
test eax, eax
cmovne ebx, eax
mov eax, ecx
sub ebx, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x45fa6e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x45fa6e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x45fa50
test edx, edx
lea eax, [ecx - 2]
xorps xmm0, xmm0
cmovne eax, ecx
xor ecx, ecx
movups xmmword [ebp - 0x674], xmm0
mov word [eax], cx
lea eax, [ebp - 0x674]
cmp word [ebp - 0x234], cx
push eax
lea eax, [ebp - 0x6b8]
push eax
lea eax, [ebp - 0x234]
cmove eax, ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x644]
push eax
push ecx
push dword [ebp - 0x648]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x45fb00
mov eax, dword [ebp - 0x674]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x45fade
push eax
call ebx
mov dword [ebp - 0x674], 0
mov eax, dword [ebp - 0x670]
test eax, eax
je 0x45faf5
push eax
call ebx
mov dword [ebp - 0x670], 0
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x45fb13
push esi
mov ebx, 0x80004005
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x45fb13
mov ebx, 0x80004005
push dword [ebp - 0x65c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
xor ecx, ebp
pop ebx
call fcn.004ba2f5
mov esp, ebp
pop ebp
ret