Function at 0x10064de0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x100e0151
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x1010e07c]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
mov eax, dword [0x1010e07c]
xor eax, esp
push eax
lea eax, [esp + 0x170]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
xor ecx, ecx
push 0xe
xor ebx, ebx
mov word [esp + 0x118], cx
push str.SeTcbPrivilege
lea ecx, [esp + 0x11c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x20], ebx
mov dword [esp + 0x130], 7
mov dword [esp + 0x12c], ebx
call fcn.10006a20
mov dword [esp + 0x178], ebx
lea ecx, [esp + 0x114]
call fcn.10065bf0
mov dword [esp + 0x178], 0xffffffff
mov edi, 8
cmp dword [esp + 0x128], edi
jb 0x10064e9b
mov edx, dword [esp + 0x114]
push edx
call fcn.100b2678
add esp, 4
xor eax, eax
mov dword [esp + 0x128], 7
mov dword [esp + 0x124], ebx
mov word [esp + 0x114], ax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x1006507c
push 1
push 2
lea ecx, [esp + 0x84]
call fcn.100042d0
mov dword [esp + 0x178], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [esp + 0x84]
push str.QUT_FAILED._GetLastError:
push edx
call fcn.10007530
add esp, 0xc
mov ecx, eax
call fcn.1005be10
push 0x23
mov esi, 0xf
push str.CProcUtility::FXCreateProcessAsUser
lea ecx, [esp + 0x138]
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
call fcn.100065d0
mov byte [esp + 0x178], 2
push esi
push str.ProcUtility.cpp
lea ecx, [esp + 0x11c]
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
call fcn.100065d0
mov byte [esp + 0x178], 3
lea eax, [esp + 0x14c]
push eax
lea ecx, [esp + 0x80]
call fcn.100043f0
mov byte [esp + 0x178], 4
push eax
lea ecx, [esp + 0x134]
push ecx
push 0x156
lea edx, [esp + 0x120]
push edx
push ebx
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [esp + 0x178], 3
cmp dword [esp + 0x160], edi
jb 0x10064fd4
mov eax, dword [esp + 0x14c]
push eax
call fcn.100b2678
add esp, 4
xor ecx, ecx
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], ebx
mov word [esp + 0x14c], cx
mov byte [esp + 0x178], 2
mov edi, 0x10
cmp dword [esp + 0x128], edi
jb 0x10065016
mov edx, dword [esp + 0x114]
push edx
call fcn.100b2678
add esp, 4
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
mov byte [esp + 0x178], 1
cmp dword [esp + 0x144], edi
jb 0x1006504c
mov eax, dword [esp + 0x130]
push eax
call fcn.100b2678
add esp, 4
mov dword [esp + 0x144], esi
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
mov dword [esp + 0x178], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.100029c0
xor al, al
jmp 0x100654c5
push 0x40
xor eax, eax
lea ecx, [esp + 0x3c]
push ebx
push ecx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.100b2ed0
mov eax, dword [esi + 0x10]
xor edx, edx
add esp, 0xc
cmp byte [ebp + 0x10], bl
mov dword [esp + 0x34], 0x44
setne dl
xor ecx, ecx
inc eax
mov dword [esp + 0x3c], str.winsta0default
mov dword [esp + 0x60], 1
mov word [esp + 0x64], dx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.100b21c0
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x1006526e
push 1
push 2
lea ecx, [esp + 0x84]
call fcn.100042d0
mov dword [esp + 0x178], 5
lea eax, [esp + 0x7c]
push str.new_FAILED.
push eax
call fcn.10007530
add esp, 8
push 0x23
mov esi, 0xf
push str.CProcUtility::FXCreateProcessAsUser
lea ecx, [esp + 0x11c]
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
call fcn.100065d0
mov byte [esp + 0x178], 6
push esi
push str.ProcUtility.cpp
lea ecx, [esp + 0x138]
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
call fcn.100065d0
mov byte [esp + 0x178], 7
lea ecx, [esp + 0x14c]
push ecx
lea ecx, [esp + 0x80]
call fcn.100043f0
mov byte [esp + 0x178], 8
push eax
lea edx, [esp + 0x118]
push edx
push 0x165
lea eax, [esp + 0x13c]
push eax
push ebx
call fcn.10004af0
mov ecx, eax
call fcn.10058f40
mov byte [esp + 0x178], 7
cmp dword [esp + 0x160], 8
jb 0x100651dc
mov ecx, dword [esp + 0x14c]
push ecx
call fcn.100b2678
add esp, 4
xor edx, edx
mov dword [esp + 0x160], 7
mov dword [esp + 0x15c], ebx
mov word [esp + 0x14c], dx
mov byte [esp + 0x178], 6
mov edi, 0x10
cmp dword [esp + 0x144], edi
jb 0x1006521e
mov eax, dword [esp + 0x130]
push eax
call fcn.100b2678
add esp, 4
mov dword [esp + 0x144], esi
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
mov byte [esp + 0x178], 5
cmp dword [esp + 0x128], edi
jb 0x10065254
mov ecx, dword [esp + 0x114]
push ecx
call fcn.100b2678
add esp, 4
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
jmp 0x10065061
mov eax, dword [esi + 0x10]
inc eax
push eax
push ebx
push edi
call fcn.100b2ed0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x10065285
mov esi, dword [esi]
push esi
push 0x100f59a0
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov edx, dword [esp + 0x24]
add esp, 0xc
push ebx
push edx
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov eax, dword [esp + 0x30]
cmp dword [eax + 0x14], 8
mov byte [esp + 0x17], 1
jb 0x100652bb
mov eax, dword [eax]
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x20]
lea edx, [esp + 0x38]
push edx
mov edx, dword [esp + 0x20]
push ebx
push ecx
push 0x420
push ebx
push ebx
push ebx
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x10065486
push 1
push 2
lea ecx, [esp + 0x84]
call fcn.10004d10
mov dword [esp + 0x178], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [esp + 0x84]
push str.CPAU_FAILED._GetLastError:
push eax
call fcn.10007790
add esp, 0xc
push eax
call fcn.100669a0
push 0x23
mov esi, 0xf
push str.CProcUtility::FXCreateProcessAsUser
lea ecx, [esp + 0x11c]
mov dword [esp + 0x130], esi
mov dword [esp + 0x12c], ebx
mov byte [esp + 0x11c], bl
call fcn.100065d0
mov byte [esp + 0x178], 0xa
push esi
push str.ProcUtility.cpp
lea ecx, [esp + 0x138]
mov dword [esp + 0x14c], esi
mov dword [esp + 0x148], ebx
mov byte [esp + 0x138], bl
call fcn.100065d0
mov byte [esp + 0x178], 0xb
lea ecx, [esp + 0x14c]
push ecx
lea ecx, [esp + 0x80]
call fcn.10004e30
mov byte [esp + 0x178], 0xc
push eax
lea edx, [esp + 0x118]
push edx
push 0x17c
lea eax, [esp + 0x13c]
push eax
push ebx
call fcn.10004af0
mov ecx, eax
call fcn.10058a20
mov byte [esp + 0x178], 0xb
cmp dword [esp + 0x160], 0x10
jb 0x100653eb
mov ecx, dword [esp + 0x14c]
push ecx
call fcn.100b2678
add esp, 4
mov dword [esp + 0x160], esi
mov dword [esp + 0x15c], ebx
mov byte [esp + 0x14c], bl
mov byte [esp + 0x178], 0xa
cmp dword [esp + 0x144], 0x10
jb 0x10065422
mov edx, dword [esp + 0x130]
push edx
call fcn.100b2678
add esp, 4
mov dword [esp + 0x144], esi
mov dword [esp + 0x140], ebx
mov byte [esp + 0x130], bl
mov byte [esp + 0x178], 9
cmp dword [esp + 0x128], 0x10
jb 0x10065459
mov eax, dword [esp + 0x114]
push eax
call fcn.100b2678
add esp, 4
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
mov dword [esp + 0x178], 0xffffffff
lea ecx, [esp + 0x7c]
call fcn.10002a50
mov byte [esp + 0x17], bl
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov edx, dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 0x24]
push eax
mov dword [esp + 0x24], ebx
call esi
mov ecx, dword [esp + 0x18]
push ecx
mov dword [esp + 0x28], ebx
call esi
push edi
mov dword [esp + 0x1c], ebx
call fcn.100b2e04
mov al, byte [esp + 0x1b]
add esp, 4
mov ecx, dword [esp + 0x170]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x158]
xor ecx, esp
call fcn.100b2b2c
mov esp, ebp
pop ebp
ret