Function at 0x10048b70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c4
mov eax, dword [0x10188068]
xor eax, ebp
mov dword [ebp - 4], eax
movups xmm0, xmmword [str.S_1_16_4096]
push ebx
push esi
movups xmmword [ebp - 0x2c], xmm0
lea eax, [ebp - 0x650]
mov dword [ebp - 0x65c], edx
movq xmm0, qword [0x10160138]
push edi
movq qword [ebp - 0x1c], xmm0
xorps xmm0, xmm0
push eax
push 0x2000000
mov dword [ebp - 0x658], ecx
mov dword [ebp - 0x650], 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 0x10048bee
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100e278d
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x650]
lea eax, [ebp - 0x6c0]
push 0x44
push 0
push eax
call fcn.100fc650
add esp, 0xc
mov dword [ebp - 0x64c], 0
lea eax, [ebp - 0x64c]
push eax
push 1
push 2
push 0
push 0x2000000
push edi
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x10048c38
mov ebx, 0x80004005
jmp 0x10048e1f
mov eax, dword [ebp - 0x64c]
mov dword [ebp - 0x660], eax
lea eax, [ebp - 0x654]
push eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x654], 0
push eax
call dword [sym.imp.ADVAPI32.dll_ConvertStringSidToSidW]
test eax, eax
je 0x10048e0e
mov esi, dword [ebp - 0x654]
test esi, esi
je 0x10048e0e
mov dword [ebp - 0x664], 0
push esi
mov dword [ebp - 0x664], 0x20
mov dword [ebp - 0x668], esi
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
add eax, 8
push eax
lea eax, [ebp - 0x668]
push eax
push 0x19
push dword [ebp - 0x64c]
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x10048e00
push 0x410
lea eax, [ebp - 0x648]
push 0
push eax
call fcn.100fc650
push 0x208
lea eax, [ebp - 0x238]
push 0
push eax
call fcn.100fc650
mov eax, dword [ebp - 0x658]
lea ecx, [ebp - 0x648]
add esp, 0x18
mov ebx, 0x1015a6ac
test eax, eax
mov edx, 0x208
cmovne ebx, eax
mov eax, ecx
sub ebx, eax
nop
lea eax, [edx + 0x7ffffdf6]
test eax, eax
je 0x10048d1e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x10048d1e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10048d00
test edx, edx
lea eax, [ecx - 2]
mov ebx, 0x1015a6ac
mov edx, 0x104
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea ecx, [ebp - 0x238]
mov eax, dword [ebp - 0x65c]
test eax, eax
cmovne ebx, eax
mov eax, ecx
sub ebx, eax
nop word [eax + eax]
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x10048d6e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x10048d6e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x10048d50
test edx, edx
lea eax, [ecx - 2]
xorps xmm0, xmm0
cmovne eax, ecx
xor ecx, ecx
movups xmmword [ebp - 0x678], xmm0
mov word [eax], cx
lea eax, [ebp - 0x678]
cmp word [ebp - 0x238], cx
push eax
lea eax, [ebp - 0x6c0]
push eax
lea eax, [ebp - 0x238]
cmove eax, ecx
push eax
push ecx
push ecx
push ecx
push ecx
push ecx
lea eax, [ebp - 0x648]
push eax
push ecx
push dword [ebp - 0x64c]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x10048e00
mov eax, dword [ebp - 0x678]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x10048dde
push eax
call ebx
mov dword [ebp - 0x678], 0
mov eax, dword [ebp - 0x674]
test eax, eax
je 0x10048df5
push eax
call ebx
mov dword [ebp - 0x674], 0
push esi
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10048e13
push esi
mov ebx, 0x80004005
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x10048e13
mov ebx, 0x80004005
push dword [ebp - 0x660]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100e278d
mov esp, ebp
pop ebp
ret