Function at 0x10034c20
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 0x100c249c
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xd8
mov eax, dword [0x1010001c]
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.10004080
test eax, eax
je 0x10035042
push str.Advapi32.dll
lea ecx, [ebp - 0xcc]
call fcn.100039b0
mov dword [ebp - 4], 0
lea eax, [ebp - 0xcc]
push eax
call fcn.1000a870
mov ecx, eax
call fcn.1000a930
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.10003910
test esi, esi
je 0x10035042
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100e1c54
push esi
call edi
push 0x100e1c6c
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 0x10035042
cmp dword [ebp - 0xac], 0
je 0x10035042
cmp dword [ebp - 0xa8], 0
je 0x10035042
test eax, eax
je 0x10035042
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
call fcn.1000b190
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.1000c030
test al, al
je 0x10035024
mov edi, dword [ebp - 0x98]
test edi, edi
je 0x10035024
cmp dword [ebp - 0x18], 0xffffffff
je 0x1003501d
mov dl, byte [ebx + 8]
lea eax, [ebp - 0x98]
push eax
mov ecx, edi
mov dword [ebp - 0x98], 0
call fcn.10035070
add esp, 4
test al, al
je 0x1003501d
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 0x10034e94
push str.Userenv.dll
lea ecx, [ebp - 0xcc]
call fcn.100039b0
mov byte [ebp - 4], 2
lea eax, [ebp - 0xcc]
push eax
call fcn.1000a870
mov ecx, eax
call fcn.1000a930
mov dword [ebp - 0x98], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xcc]
call fcn.10003910
cmp dword [ebp - 0x98], 0
je 0x10034e94
push str.Advapi32.dll
lea ecx, [ebp - 0xe4]
call fcn.100039b0
mov byte [ebp - 4], 3
lea eax, [ebp - 0xe4]
push eax
call fcn.1000a870
mov ecx, eax
call fcn.1000a930
mov dword [ebp - 0x9c], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0xe4]
call fcn.10003910
mov eax, dword [ebp - 0x9c]
test eax, eax
je 0x10034e94
push str.SetTokenInformation
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10034e94
push str.CreateEnvironmentBlock
push dword [ebp - 0x98]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10034e94
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.10034ab0
add esp, 4
mov byte [ebp - 4], 4
push esi
mov dword [ebp - 0x98], 0
call dword [ebp - 0xa0]
test eax, eax
je 0x10034f9c
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.100038a0
mov ecx, dword [ebp - 0xa4]
push eax
call fcn.100038a0
push eax
push esi
call dword [ebp - 0xa8]
mov dword [ebp - 0x98], eax
test eax, eax
je 0x10034f6c
mov eax, dword [ebp - 0xb4]
mov ecx, dword [ebp - 0x40]
mov dword [eax], ecx
mov ecx, dword [ebp - 0x44]
test ecx, ecx
je 0x10034f81
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x44], 0
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x10034f96
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x48], 0
call dword [ebp - 0xac]
test esi, esi
je 0x10034fa7
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x38], 0
je 0x10035001
push str.Userenv.dll
lea ecx, [ebp - 0xe4]
call fcn.100039b0
mov byte [ebp - 4], 5
lea eax, [ebp - 0xe4]
push eax
call fcn.1000a870
mov ecx, eax
call fcn.1000a930
mov esi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xe4]
call fcn.10003910
push str.DestroyEnvironmentBlock
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10035001
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.10003910
jmp 0x1003502b
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.1000b210
mov al, byte [ebp - 0x91]
jmp 0x10035044
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.1008a187
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret