Function at 0x1002b400
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 0x100b5d1c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd8
mov eax, dword [0x100f101c]
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.10004040
test eax, eax
je 0x1002b822
push str.Advapi32.dll
lea ecx, [ebp - 0xcc]
call fcn.10003940
mov dword [ebp - 4], 0
lea eax, [ebp - 0xcc]
push eax
call fcn.1000a500
mov ecx, eax
call fcn.1000a5c0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.100038a0
test esi, esi
je 0x1002b822
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100d59bc
push esi
call edi
push 0x100d59d4
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 0x1002b822
cmp dword [ebp - 0xac], 0
je 0x1002b822
cmp dword [ebp - 0xa8], 0
je 0x1002b822
test eax, eax
je 0x1002b822
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.1000ae20
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.1000bcc0
test al, al
je 0x1002b804
mov edi, dword [ebp - 0x98]
test edi, edi
je 0x1002b804
cmp dword [ebp - 0x18], 0xffffffff
je 0x1002b7fd
mov dl, byte [ebx + 8]
lea eax, [ebp - 0x98]
push eax
mov ecx, edi
mov dword [ebp - 0x98], 0
call fcn.1002b850
add esp, 4
test al, al
je 0x1002b7fd
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 0x1002b674
push str.Userenv.dll
lea ecx, [ebp - 0xcc]
call fcn.10003940
mov byte [ebp - 4], 2
lea eax, [ebp - 0xcc]
push eax
call fcn.1000a500
mov ecx, eax
call fcn.1000a5c0
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.100038a0
cmp dword [ebp - 0x98], 0
je 0x1002b674
push str.Advapi32.dll
lea ecx, [ebp - 0xe4]
call fcn.10003940
mov byte [ebp - 4], 3
lea eax, [ebp - 0xe4]
push eax
call fcn.1000a500
mov ecx, eax
call fcn.1000a5c0
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.100038a0
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x1002b674
push str.SetTokenInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002b674
push str.CreateEnvironmentBlock
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002b674
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.1002b290
add esp, 4
mov byte [ebp - 4], 4
push esi
mov dword [ebp - 0x98], 0
call dword [ebp - 0xa0]
test eax, eax
je 0x1002b77c
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.10003830
mov ecx, dword [ebp - 0xa4]
push eax
call fcn.10003830
push eax
push esi
call dword [ebp - 0xa8]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x1002b74c
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x1002b761
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x1002b776
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48], 0
call dword [ebp - 0xac]
test esi, esi
je 0x1002b787
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], 0
je 0x1002b7e1
push str.Userenv.dll
lea ecx, [ebp - 0xe4]
call fcn.10003940
mov byte [ebp - 4], 5
lea eax, [ebp - 0xe4]
push eax
call fcn.1000a500
mov ecx, eax
call fcn.1000a5c0
mov esi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe4]
call fcn.100038a0
push str.DestroyEnvironmentBlock
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002b7e1
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.100038a0
jmp 0x1002b80b
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.1000aea0
mov al, byte [ebp - 0x91]
jmp 0x1002b824
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.1007f947
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret