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

Disassembly:
sub esp, 0x50
push ebx
push ebp
mov ebp, dword [esp + 0x5c]
push esi
push edi
xor esi, esi
push 0x20
lea eax, [esp + 0x44]
push esi
push eax
mov byte [esp + 0x23], 0
mov dword [esp + 0x24], esi
xor edi, edi
xor ebx, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
call fcn.00412fa0
mov eax, dword [esp + 0x7c]
add esp, 0xc
mov dword [esp + 0x40], 0x20
mov dword [esp + 0x48], ebp
mov byte [esp + 0x64], bl
test al, 1
je 0x446319
mov byte [esp + 0x64], 1
mov edx, dword [esp + 0x6c]
lea ecx, [esp + 0x18]
push ecx
push eax
mov eax, dword [esp + 0x70]
push edx
push eax
push ebp
call fcn.00438d79
test al, al
je 0x44654e
test byte [esp + 0x70], 2
je 0x446371
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x6c]
push ecx
push 1
push 2
push 0
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x44654e
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x18], ecx
push 0x60000
push 0
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov edi, eax
test edi, edi
je 0x44654e
cmp edi, 0xffffffff
je 0x44654e
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 0x44654e
push 0x60081
push 0
push 0
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov ebx, eax
test ebx, ebx
je 0x44654e
cmp ebx, 0xffffffff
je 0x44654e
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push edx
push eax
call fcn.00438dac
test al, al
je 0x44654e
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0x28]
push ecx
push edx
push edi
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0xb
mov dword [esp + 0x38], 0xf0000000
mov byte [esp + 0x40], 0
mov byte [esp + 0x41], 4
mov dword [esp + 0x44], 0xf037f
call fcn.004460b9
test al, al
je 0x44654e
mov ecx, dword [esp + 0x1c]
lea eax, [esp + 0x28]
push eax
push ecx
push ebx
mov byte [esp + 0x34], 0
mov byte [esp + 0x35], 0
mov dword [esp + 0x38], 0xf01ff
call fcn.00445eac
test al, al
je 0x44654e
mov eax, dword [esp + 0x80]
mov ebp, dword [eax + 0x2c]
mov dword [eax + 8], str.winsta0default
mov eax, dword [esp + 0x74]
and ebp, 0x100
mov dword [esp + 0x6c], ebp
test eax, eax
je 0x4464af
push eax
call fcn.00411085
mov ebp, eax
inc ebp
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004114ca
mov esi, eax
mov eax, dword [esp + 0x7c]
push ebp
push eax
push esi
call fcn.0041301a
mov ebp, dword [esp + 0x80]
add esp, 0x14
cmp byte [esp + 0x64], 0
je 0x4464ce
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x44654e
test byte [esp + 0x70], 4
jne 0x4464eb
mov eax, dword [esp + 0x18]
push 0
push eax
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x44654e
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x80]
mov ecx, dword [esp + 0x7c]
push edx
mov edx, dword [esp + 0x24]
push eax
mov eax, dword [esp + 0x80]
push ecx
push edx
or eax, 0x400
push eax
mov eax, dword [esp + 0x2c]
push ebp
push 0
push 0
push esi
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x44654e
cmp byte [esp + 0x64], 0
je 0x446547
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x18]
push ecx
lea edx, [esp + 0x60]
push edx
push eax
call fcn.00438d11
mov byte [esp + 0x17], 1
jmp 0x446562
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x446562
mov ecx, dword [esp + 0x18]
push eax
push ecx
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov edx, dword [esp + 0x1c]
push edx
call fcn.00438bec
add esp, 4
push edi
call dword [sym.imp.USER32.dll_CloseWindowStation]
push ebx
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [esp + 0x24]
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call fcn.0041109f
mov edx, dword [esp + 0x24]
add esp, 4
push edx
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