Function at 0x1000e110
Capabilities:
Link many functions at runtime

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 0x100bacfc
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd8
mov eax, dword [0x100fc03c]
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 - 0xb0], edx
mov eax, ecx
mov dword [ebp - 0xa4], eax
mov ecx, dword [ebx + 0xc]
mov dword [ebp - 0xb4], ecx
mov ecx, eax
call fcn.10002ca0
test eax, eax
je 0x1000e532
push str.Advapi32.dll
lea ecx, [ebp - 0xcc]
call fcn.10002d70
mov dword [ebp - 4], 0
lea eax, [ebp - 0xcc]
push eax
call fcn.10011630
mov ecx, eax
call fcn.100116f0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.10002d10
test esi, esi
je 0x1000e532
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100df088
push esi
call edi
push 0x100df0a0
push esi
mov dword [ebp - 0xa0], eax
call edi
push str.CreateProcessAsUserW
push esi
mov dword [ebp - 0xac], eax
call edi
push str.SetTokenInformation
push esi
mov dword [ebp - 0xa8], eax
call edi
cmp dword [ebp - 0xa0], 0
mov dword [ebp - 0x9c], eax
je 0x1000e532
cmp dword [ebp - 0xac], 0
je 0x1000e532
cmp dword [ebp - 0xa8], 0
je 0x1000e532
test eax, eax
je 0x1000e532
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.100061a0
mov dword [ebp - 4], 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x98]
mov dword [ebp - 0x98], 0
push eax
mov dword [ebp - 0x18], 0xffffffff
call fcn.10007060
test al, al
je 0x1000e514
mov edi, dword [ebp - 0x98]
test edi, edi
je 0x1000e514
cmp dword [ebp - 0x18], 0xffffffff
je 0x1000e50d
mov dl, byte [ebx + 8]
lea eax, [ebp - 0x98]
push eax
mov ecx, edi
mov dword [ebp - 0x98], 0
call fcn.1000e560
add esp, 4
test al, al
je 0x1000e50d
mov esi, dword [ebp - 0x98]
lea eax, [ebp - 0x18]
push 4
push eax
push 0xc
push esi
call dword [ebp - 0x9c]
mov dword [ebp - 0x38], 0
test esi, esi
je 0x1000e384
push str.Userenv.dll
lea ecx, [ebp - 0xcc]
call fcn.10002d70
mov byte [ebp - 4], 2
lea eax, [ebp - 0xcc]
push eax
call fcn.10011630
mov ecx, eax
call fcn.100116f0
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.10002d10
cmp dword [ebp - 0x98], 0
je 0x1000e384
push str.Advapi32.dll
lea ecx, [ebp - 0xe4]
call fcn.10002d70
mov byte [ebp - 4], 3
lea eax, [ebp - 0xe4]
push eax
call fcn.10011630
mov ecx, eax
call fcn.100116f0
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.10002d10
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x1000e384
push str.SetTokenInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000e384
push str.CreateEnvironmentBlock
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000e384
push 0
push esi
lea ecx, [ebp - 0x38]
push ecx
call eax
push dword [ebp - 0xb0]
mov edx, dword [ebp - 0xa4]
lea ecx, [ebp - 0x34]
xorps xmm0, xmm0
mov dword [ebp - 0x8c], 0
xor eax, eax
movlpd qword [ebp - 0x84], xmm0
mov word [ebp - 0x4e], ax
mov eax, 1
movlpd qword [ebp - 0x7c], xmm0
movlpd qword [ebp - 0x74], xmm0
movlpd qword [ebp - 0x6c], xmm0
movlpd qword [ebp - 0x5e], xmm0
movlpd qword [ebp - 0x56], xmm0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x90], 0x44
mov dword [ebp - 0x88], str.WinSta0Default
mov word [ebp - 0x60], ax
mov dword [ebp - 0x64], 0x81
call fcn.1000dfa0
add esp, 4
mov byte [ebp - 4], 4
push esi
mov dword [ebp - 0x98], 0
call dword [ebp - 0xa0]
test eax, eax
je 0x1000e48c
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x90]
push eax
push 0
push dword [ebp - 0x38]
lea ecx, [ebp - 0x34]
push 0x430
push 0
push 0
push 0
call fcn.10002cb0
mov ecx, dword [ebp - 0xa4]
push eax
call fcn.10002cb0
push eax
push esi
call dword [ebp - 0xa8]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x1000e45c
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1000e471
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x1000e486
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48], 0
call dword [ebp - 0xac]
test esi, esi
je 0x1000e497
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], 0
je 0x1000e4f1
push str.Userenv.dll
lea ecx, [ebp - 0xe4]
call fcn.10002d70
mov byte [ebp - 4], 5
lea eax, [ebp - 0xe4]
push eax
call fcn.10011630
mov ecx, eax
call fcn.100116f0
mov esi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe4]
call fcn.10002d10
push str.DestroyEnvironmentBlock
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000e4f1
push dword [ebp - 0x38]
call eax
cmp dword [ebp - 0x98], 0
setne byte [ebp - 0x91]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x34]
call fcn.10002d10
jmp 0x1000e51b
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x91], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.10006220
mov al, byte [ebp - 0x91]
jmp 0x1000e534
xor al, al
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.10088f98
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret