Function at 0x1000d430
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 0x100b9c7c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd8
mov eax, dword [0x100fb03c]
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.100051f0
test eax, eax
je 0x1000d852
push str.Advapi32.dll
lea ecx, [ebp - 0xcc]
call fcn.10004920
mov dword [ebp - 4], 0
lea eax, [ebp - 0xcc]
push eax
call fcn.10010970
mov ecx, eax
call fcn.10010a30
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.10004840
test esi, esi
je 0x1000d852
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100ddd08
push esi
call edi
push 0x100ddd20
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 0x1000d852
cmp dword [ebp - 0xac], 0
je 0x1000d852
cmp dword [ebp - 0xa8], 0
je 0x1000d852
test eax, eax
je 0x1000d852
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.100053b0
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.10006280
test al, al
je 0x1000d834
mov edi, dword [ebp - 0x98]
test edi, edi
je 0x1000d834
cmp dword [ebp - 0x18], 0xffffffff
je 0x1000d82d
mov dl, byte [ebx + 8]
lea eax, [ebp - 0x98]
push eax
mov ecx, edi
mov dword [ebp - 0x98], 0
call fcn.1000d880
add esp, 4
test al, al
je 0x1000d82d
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 0x1000d6a4
push str.Userenv.dll
lea ecx, [ebp - 0xcc]
call fcn.10004920
mov byte [ebp - 4], 2
lea eax, [ebp - 0xcc]
push eax
call fcn.10010970
mov ecx, eax
call fcn.10010a30
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.10004840
cmp dword [ebp - 0x98], 0
je 0x1000d6a4
push str.Advapi32.dll
lea ecx, [ebp - 0xe4]
call fcn.10004920
mov byte [ebp - 4], 3
lea eax, [ebp - 0xe4]
push eax
call fcn.10010970
mov ecx, eax
call fcn.10010a30
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.10004840
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x1000d6a4
push str.SetTokenInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000d6a4
push str.CreateEnvironmentBlock
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000d6a4
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.1000d2c0
add esp, 4
mov byte [ebp - 4], 4
push esi
mov dword [ebp - 0x98], 0
call dword [ebp - 0xa0]
test eax, eax
je 0x1000d7ac
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.10004780
mov ecx, dword [ebp - 0xa4]
push eax
call fcn.10004780
push eax
push esi
call dword [ebp - 0xa8]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x1000d77c
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1000d791
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x1000d7a6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48], 0
call dword [ebp - 0xac]
test esi, esi
je 0x1000d7b7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], 0
je 0x1000d811
push str.Userenv.dll
lea ecx, [ebp - 0xe4]
call fcn.10004920
mov byte [ebp - 4], 5
lea eax, [ebp - 0xe4]
push eax
call fcn.10010970
mov ecx, eax
call fcn.10010a30
mov esi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe4]
call fcn.10004840
push str.DestroyEnvironmentBlock
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000d811
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.10004840
jmp 0x1000d83b
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.10005430
mov al, byte [ebp - 0x91]
jmp 0x1000d854
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.100881a5
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret