Function at 0x4472a8
Capabilities:
Create process on windows
Impersonate user

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
xor esi, esi
push 0x20
lea eax, [esp + 0x44]
push esi
xor ebx, ebx
push eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x24], esi
xor edi, edi
xor ebp, ebp
mov dword [esp + 0x28], ebx
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call fcn.00414380
mov ecx, dword [esp + 0x70]
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov dword [esp + 0x40], 0x20
mov dword [esp + 0x48], ecx
mov byte [esp + 0x64], bl
test al, 1
je 0x4472fd
mov byte [esp + 0x64], 1
lea edx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x6c]
push eax
mov eax, dword [esp + 0x74]
push eax
push edx
push ecx
call fcn.0043af83
test al, al
je 0x4474f8
push 0x60000
push 0
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov edi, eax
test edi, edi
je 0x4474f8
cmp edi, 0xffffffff
je 0x4474f8
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push edi
mov dword [esp + 0x28], eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x4474f8
push 0x60081
push 0
push 0
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov ebp, eax
test ebp, ebp
je 0x4474f8
cmp ebp, 0xffffffff
je 0x4474f8
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1c]
push eax
push ecx
call fcn.0043afb6
test al, al
je 0x4474f4
lea edx, [esp + 0x28]
mov byte [esp + 0x28], bl
mov byte [esp + 0x34], bl
mov ebx, dword [esp + 0x1c]
push edx
push ebx
push edi
mov byte [esp + 0x35], 0xb
mov dword [esp + 0x38], 0xf0000000
mov byte [esp + 0x41], 4
mov dword [esp + 0x44], 0xf037f
call fcn.0044709b
test al, al
je 0x4474f8
lea eax, [esp + 0x28]
push eax
push ebx
push ebp
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0
mov dword [esp + 0x38], 0xf01ff
call fcn.00446e8e
test al, al
je 0x4474f8
mov eax, dword [esp + 0x80]
mov dword [eax + 8], str.winsta0default
mov eax, dword [eax + 0x2c]
and eax, 0x100
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
test eax, eax
je 0x447451
push eax
call fcn.004143fa
mov eax, eax
inc eax
xor ecx, ecx
mov dword [esp + 0x70], eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004122b8
mov ecx, dword [esp + 0x7c]
mov esi, eax
mov eax, dword [esp + 0x74]
push eax
push ecx
push esi
call fcn.00414414
add esp, 0x14
cmp byte [esp + 0x64], 0
je 0x447470
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x40]
push edx
push eax
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x4474f8
test byte [esp + 0x70], 4
jne 0x44748d
mov ecx, dword [esp + 0x18]
push 0
push ecx
lea edx, [esp + 0x28]
push edx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4474f8
mov eax, dword [esp + 0x84]
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x7c]
push eax
mov eax, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x70]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x88]
or eax, 0x400
push eax
push ecx
push 0
push 0
push esi
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4474f8
cmp byte [esp + 0x64], 0
je 0x4474ed
mov edx, dword [esp + 0x84]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x60]
push ecx
push edx
call fcn.0043af1b
mov byte [esp + 0x17], 1
jmp 0x44750c
mov ebx, dword [esp + 0x1c]
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x44750c
push eax
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
push ebx
call fcn.0043adcf
add esp, 4
push edi
call dword [sym.imp.USER32.dll_CloseWindowStation]
push ebp
call dword [sym.imp.USER32.dll_CloseDesktop]
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov edx, dword [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.00412979
mov eax, dword [esp + 0x24]
add esp, 4
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov al, byte [esp + 0x17]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret 0x24