Function at 0x100e7220
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 0x101517ce
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x130
mov eax, dword [0x1019a128]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov edi, ecx
mov ecx, dword [ebx + 0xc]
mov dl, byte [ebx + 8]
mov dword [ebp - 0x8c], ecx
mov ecx, dword [ebx + 0x14]
mov dword [ebp - 0x94], ecx
mov ecx, eax
call fcn.100e6db0
mov dword [ebp - 0x18], eax
test eax, eax
jne 0x100e72cc
push str.ExecuteProcessInSession
lea edx, [eax + 8]
lea ecx, [ebp - 0x140]
call fcn.1000aed0
add esp, 4
mov dword [ebp - 4], 0
cmp byte [eax + 0x48], 0
je 0x100e72b7
mov edx, str.get_user_token_failed
mov ecx, eax
call fcn.10020800
lea ecx, [ebp - 0x140]
call fcn.1000ad70
mov eax, 0x1f
jmp 0x100e7582
xorps xmm0, xmm0
mov dword [ebp - 0x70], 0x44
push 1
push eax
lea eax, [ebp - 0x74]
movlpd qword [ebp - 0x6c], xmm0
push eax
movlpd qword [ebp - 0x64], xmm0
mov esi, 0x8000020
movlpd qword [ebp - 0x5c], xmm0
movlpd qword [ebp - 0x54], xmm0
movlpd qword [ebp - 0x4c], xmm0
movlpd qword [ebp - 0x44], xmm0
movlpd qword [ebp - 0x3c], xmm0
movlpd qword [ebp - 0x34], xmm0
movups xmmword [ebp - 0x84], xmm0
mov dword [ebp - 0x74], 0
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
mov dword [ebp - 0x20], 0
mov ecx, 0x8000420
mov dword [ebp - 0x88], 0
cmovne esi, ecx
mov dword [ebp - 0x20], 0
xorps xmm0, xmm0
mov dword [ebp - 0x90], esi
movq qword [ebp - 0x28], xmm0
lea ecx, [ebp - 0x28]
push 0x7fff
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.10002350
push 0xfffe
push 0
push eax
lea esi, [eax + 0xfffe]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], esi
call fcn.10117ff0
add esp, 0xc
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 1
xor ecx, ecx
mov eax, dword [ebp - 0x28]
mov word [eax], cx
cmp word [edi], 0x22
je 0x100e73b6
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
sub ecx, eax
sar ecx, 1
push 0x101676f4
push ecx
push eax
call fcn.1012317d
add esp, 0xc
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
sub ecx, eax
sar ecx, 1
push edi
push ecx
push eax
call fcn.1012317d
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100e73d0
sub ecx, edx
sar ecx, 1
cmp word [edi + ecx*2 - 2], 0x22
je 0x100e7400
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
sub ecx, eax
sar ecx, 1
push 0x101676f4
push ecx
push eax
call fcn.1012317d
add esp, 0xc
mov esi, dword [ebp - 0x8c]
test esi, esi
je 0x100e7438
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x28]
sub ecx, eax
sar ecx, 1
push 0x10166bd0
push ecx
push eax
call fcn.1012317d
mov ecx, dword [ebp - 0x24]
add esp, 0xc
mov eax, dword [ebp - 0x28]
sub ecx, eax
sar ecx, 1
push esi
push ecx
push eax
call fcn.1012317d
add esp, 0xc
push str.ExecuteProcessInSession
mov edx, 0x10
lea ecx, [ebp - 0x140]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 2
mov al, byte [esi + 0x48]
test al, al
je 0x100e747a
mov edx, str.Run
mov ecx, esi
call fcn.10020800
mov al, byte [esi + 0x48]
test al, al
je 0x100e747a
mov edx, dword [ebp - 0x28]
mov ecx, esi
call fcn.100205a0
lea ecx, [ebp - 0x140]
mov byte [ebp - 4], 1
call fcn.1000ad70
mov edi, dword [ebp - 0x18]
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x70]
push eax
push 0
push dword [ebp - 0x74]
push dword [ebp - 0x90]
push 0
push 0
push 0
push dword [ebp - 0x28]
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x100e7514
call dword [sym.imp.KERNEL32.dll_GetLastError]
push str.ExecuteProcessInSession
mov edx, 4
mov dword [ebp - 0x88], eax
lea ecx, [ebp - 0x140]
call fcn.1000aed0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 3
mov al, byte [esi + 0x48]
test al, al
je 0x100e7509
mov edx, str.CreateProcessAsUser_failed_err
mov ecx, esi
call fcn.10020800
mov al, byte [esi + 0x48]
test al, al
je 0x100e7509
push dword [ebp - 0x88]
mov ecx, esi
call fcn.100201d0
lea ecx, [ebp - 0x140]
call fcn.1000ad70
push dword [ebp - 0x74]
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x84]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x74], 0
test eax, eax
je 0x100e7571
cmp byte [ebx + 0x10], 0
je 0x100e7569
mov ecx, dword [ebp - 0x94]
push 0xffffffffffffffff
test ecx, ecx
je 0x100e755c
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push 0
push eax
push 2
mov dword [ebp - 0x18], ecx
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
jmp 0x100e7563
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x84]
push eax
call esi
push dword [ebp - 0x80]
call esi
push edi
call esi
lea ecx, [ebp - 0x28]
call fcn.100825d0
mov eax, dword [ebp - 0x88]
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.101157bc
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret