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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp - 0x20]
push eax
lea ecx, [ebp - 0x48]
push ecx
mov dword [ebp - 0x20], 0x494a24
mov dword [ebp - 0x1c], str.SeIncreaseQuotaPrivilege
call fcn.0044a621
lea edx, [ebp - 0x48]
push edx
call fcn.0043aa94
test al, al
jne 0x450f84
lea eax, [ebp - 0x48]
push eax
call fcn.0044a5da
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24
xor edi, edi
push 0x20
lea ecx, [ebp - 0x68]
push edi
push ecx
mov byte [ebp - 5], 0
mov dword [ebp - 0xc], edi
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x1c], edi
xor ebx, ebx
mov dword [ebp - 0x18], edi
call fcn.00412800
mov eax, dword [ebp + 0x14]
add esp, 0xc
mov dword [ebp - 0x68], 0x20
mov dword [ebp - 0x60], esi
mov byte [ebp + 0xb], bl
test al, 1
je 0x450fc2
mov byte [ebp + 0xb], 1
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
push edx
push eax
mov eax, dword [ebp + 0x10]
push eax
push ecx
push esi
call fcn.0043a84c
test al, al
je 0x4511ae
test byte [ebp + 0x14], 2
je 0x451011
mov eax, dword [ebp - 0xc]
lea edx, [ebp + 0x10]
push edx
push 1
push 2
push 0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x4511ae
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 0x10]
mov dword [ebp - 0xc], edx
push 0x60000
push 0
push str.winsta0
call dword [sym.imp.USER32.dll_OpenWindowStationW]
mov edi, eax
test edi, edi
je 0x4511ae
cmp edi, 0xffffffff
je 0x4511ae
call dword [sym.imp.USER32.dll_GetProcessWindowStation]
push edi
mov dword [ebp - 0x1c], eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
test eax, eax
je 0x4511ae
push 0x60081
push 0
push 0
push str.default
call dword [sym.imp.USER32.dll_OpenDesktopW]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4511ae
cmp eax, 0xffffffff
je 0x4511ae
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 0x10]
push eax
push ecx
call fcn.0043a87e
test al, al
je 0x4511ae
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 0x38]
push edx
push eax
push edi
mov word [ebp - 0x38], 0xb00
mov dword [ebp - 0x34], 0xf0000000
mov word [ebp - 0x2c], 0x400
mov dword [ebp - 0x28], 0xf037f
call fcn.0044a3db
test al, al
je 0x4511ae
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x2c]
push ecx
push edx
push eax
mov word [ebp - 0x2c], bx
mov dword [ebp - 0x28], 0xf01ff
call fcn.0044a1dc
test al, al
je 0x4511ae
mov eax, dword [ebp + 0x24]
mov esi, dword [eax + 0x2c]
mov dword [eax + 8], str.winsta0default
mov eax, dword [ebp + 0x18]
and esi, 0x100
mov dword [ebp + 0x10], esi
test eax, eax
je 0x451130
push eax
call fcn.00412781
lea esi, [eax + 1]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004128c9
mov ebx, eax
mov eax, dword [ebp + 0x18]
push esi
push eax
push ebx
call fcn.00413024
mov esi, dword [ebp + 0x10]
add esp, 0x14
cmp byte [ebp + 0xb], 0
je 0x451148
mov edx, dword [ebp - 0xc]
lea ecx, [ebp - 0x68]
push ecx
push edx
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x4511ae
test byte [ebp + 0x14], 4
jne 0x451162
mov eax, dword [ebp - 0xc]
push 0
push eax
lea ecx, [ebp - 0x18]
push ecx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
je 0x4511ae
mov edx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x20]
push edx
mov edx, dword [ebp - 0x18]
push eax
mov eax, dword [ebp + 0x1c]
push ecx
push edx
or eax, 0x400
push eax
mov eax, dword [ebp - 0xc]
push esi
push 0
push 0
push ebx
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
je 0x4511ae
cmp byte [ebp + 0xb], 0
je 0x4511a8
mov eax, dword [ebp + 0x28]
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 0x4c]
push edx
push eax
call fcn.0043a7e3
mov byte [ebp - 5], 1
jmp 0x4511c0
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x4511c0
mov ecx, dword [ebp - 0xc]
push eax
push ecx
call dword [sym.imp.USERENV.dll_UnloadUserProfile]
mov edx, dword [ebp - 0x10]
push edx
call fcn.0043a722
add esp, 4
test edi, edi
je 0x4511d7
push edi
call dword [sym.imp.USER32.dll_CloseWindowStation]
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x4511e5
push eax
call dword [sym.imp.USER32.dll_CloseDesktop]
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4511f3
push eax
call dword [sym.imp.USER32.dll_SetProcessWindowStation]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call fcn.00410eb6
mov eax, dword [ebp - 0x18]
add esp, 4
test eax, eax
je 0x451214
push eax
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
lea ecx, [ebp - 0x48]
push ecx
call fcn.0044a5da
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x24