Function at 0x100100d0
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 0x100c701c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd8
mov eax, dword [0x1010d03c]
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.10004890
test al, al
jne 0x100104f2
push str.Advapi32.dll
lea ecx, [ebp - 0xcc]
call fcn.10004900
mov dword [ebp - 4], 0
lea eax, [ebp - 0xcc]
push eax
call fcn.1001ad80
mov ecx, eax
call fcn.1001ae40
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.100048a0
test esi, esi
je 0x100104f2
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100ed7dc
push esi
call edi
push 0x100ed7f4
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 0x100104f2
cmp dword [ebp - 0xac], 0
je 0x100104f2
cmp dword [ebp - 0xa8], 0
je 0x100104f2
test eax, eax
je 0x100104f2
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.10010e70
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.10011d10
test al, al
je 0x100104d4
mov edi, dword [ebp - 0x98]
test edi, edi
je 0x100104d4
cmp dword [ebp - 0x18], 0xffffffff
je 0x100104cd
mov dl, byte [ebx + 8]
lea eax, [ebp - 0x98]
push eax
mov ecx, edi
mov dword [ebp - 0x98], 0
call fcn.10010520
add esp, 4
test al, al
je 0x100104cd
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 0x10010344
push str.Userenv.dll
lea ecx, [ebp - 0xcc]
call fcn.10004900
mov byte [ebp - 4], 2
lea eax, [ebp - 0xcc]
push eax
call fcn.1001ad80
mov ecx, eax
call fcn.1001ae40
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.100048a0
cmp dword [ebp - 0x98], 0
je 0x10010344
push str.Advapi32.dll
lea ecx, [ebp - 0xe4]
call fcn.10004900
mov byte [ebp - 4], 3
lea eax, [ebp - 0xe4]
push eax
call fcn.1001ad80
mov ecx, eax
call fcn.1001ae40
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.100048a0
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x10010344
push str.SetTokenInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10010344
push str.CreateEnvironmentBlock
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10010344
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.1000ff60
add esp, 4
mov byte [ebp - 4], 4
push esi
mov dword [ebp - 0x98], 0
call dword [ebp - 0xa0]
test eax, eax
je 0x1001044c
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.10004ac0
mov ecx, dword [ebp - 0xa4]
push eax
call fcn.10004ac0
push eax
push esi
call dword [ebp - 0xa8]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x1001041c
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x10010431
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10010446
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48], 0
call dword [ebp - 0xac]
test esi, esi
je 0x10010457
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], 0
je 0x100104b1
push str.Userenv.dll
lea ecx, [ebp - 0xe4]
call fcn.10004900
mov byte [ebp - 4], 5
lea eax, [ebp - 0xe4]
push eax
call fcn.1001ad80
mov ecx, eax
call fcn.1001ae40
mov esi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe4]
call fcn.100048a0
push str.DestroyEnvironmentBlock
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x100104b1
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.100048a0
jmp 0x100104db
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.10010ef0
mov al, byte [ebp - 0x91]
jmp 0x100104f4
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.10093f25
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret