Function at 0x476b40
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c4201
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4eb6b8]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x74], eax
xor ebx, ebx
xor ecx, ecx
mov edi, 7
push 0xe
mov eax, str.SeTcbPrivilege
lea esi, [ebp - 0x30]
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
call fcn.00419690
mov dword [ebp - 4], ebx
mov ecx, esi
call fcn.00477760
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 8
jb 0x476bbc
mov edx, dword [ebp - 0x30]
push edx
call fcn.0049ca60
add esp, 4
xor eax, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], ax
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x476cfa
lea edx, [ebp - 0x16c]
push edx
call fcn.00414a60
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [ebp - 0x16c]
push str.QUT_FAILED._GetLastError:
push eax
call fcn.0041d7d0
add esp, 0xc
push eax
call fcn.00475c10
push 0x23
mov esi, 0xf
push str.CProcUtility::FXCreateProcessAsUser
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.004190e0
mov byte [ebp - 4], 2
push esi
push str.ProcUtility.cpp
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.004190e0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x68]
push ecx
lea edx, [ebp - 0x16c]
push edx
call fcn.00414b60
mov byte [ebp - 4], 4
push eax
push 0x156
push ebx
call fcn.00413e40
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x30]
call fcn.00471900
mov byte [ebp - 4], 3
cmp dword [ebp - 0x54], 8
jb 0x476c94
mov eax, dword [ebp - 0x68]
push eax
call fcn.0049ca60
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], cx
mov byte [ebp - 4], 2
mov edi, 0x10
cmp dword [ebp - 0x1c], edi
jb 0x476cba
mov edx, dword [ebp - 0x30]
push edx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov byte [ebp - 4], 1
cmp dword [ebp - 0x38], edi
jb 0x476cd8
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16c]
call fcn.00403e50
xor al, al
jmp 0x47704a
push 0x40
xor eax, eax
lea ecx, [ebp - 0xd0]
push ebx
push ecx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
call fcn.004a4260
mov eax, dword [0x4ee990]
xor edx, edx
mov word [ebp - 0xa4], dx
xor ecx, ecx
inc eax
add esp, 0xc
mov edx, 2
mul edx
seto cl
mov dword [ebp - 0xd4], 0x44
mov dword [ebp - 0xcc], str.winsta0default
mov dword [ebp - 0xa8], 1
neg ecx
or ecx, eax
push ecx
call fcn.0049c21e
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x476e6b
lea eax, [ebp - 0x16c]
push eax
call fcn.00414a60
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x16c]
push str.new_FAILED.
push ecx
call fcn.0041d7d0
add esp, 8
push 0x23
mov esi, 0xf
push str.CProcUtility::FXCreateProcessAsUser
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.004190e0
mov byte [ebp - 4], 6
push esi
push str.ProcUtility.cpp
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.004190e0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x16c]
push eax
call fcn.00414b60
mov byte [ebp - 4], 8
push eax
push 0x165
push ebx
call fcn.00413e40
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.00471900
mov byte [ebp - 4], 7
cmp dword [ebp - 0x54], 8
jb 0x476e15
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0049ca60
add esp, 4
xor edx, edx
mov dword [ebp - 0x54], 7
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], dx
mov byte [ebp - 4], 6
mov edi, 0x10
cmp dword [ebp - 0x38], edi
jb 0x476e3f
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
mov byte [ebp - 4], 5
cmp dword [ebp - 0x1c], edi
jb 0x476e5d
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
jmp 0x476ce1
mov edx, dword [0x4ee990]
inc edx
push edx
push ebx
push edi
call fcn.004a4260
mov eax, dword [0x4ee980]
mov esi, 8
add esp, 0xc
cmp dword [0x4ee994], esi
jae 0x476e94
mov eax, 0x4ee980
push eax
push 0x4d9964
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp - 0x70]
add esp, 0xc
push ebx
push eax
lea ecx, [ebp - 0x78]
push ecx
mov dword [ebp - 0x78], ebx
call dword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
mov eax, dword [ebp - 0x74]
mov byte [ebp - 0x69], 1
cmp dword [eax + 0x14], esi
jb 0x476ec4
mov eax, dword [eax]
lea edx, [ebp - 0x88]
push edx
mov edx, dword [ebp - 0x78]
lea ecx, [ebp - 0xd4]
push ecx
push ebx
push edx
push 0x420
push ebx
push ebx
push ebx
push edi
push eax
mov eax, dword [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x477007
lea ecx, [ebp - 0x16c]
push ecx
call fcn.004136d0
mov dword [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [ebp - 0x16c]
push str.CPAU_FAILED._GetLastError:
push edx
call fcn.0041c580
add esp, 0xc
push eax
call fcn.00478600
push 0x23
mov esi, 0xf
push str.CProcUtility::FXCreateProcessAsUser
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
call fcn.004190e0
mov byte [ebp - 4], 0xa
push esi
push str.ProcUtility.cpp
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
call fcn.004190e0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x16c]
call fcn.004137d0
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 0xc
push 0x17c
lea ecx, [ebp - 0x4c]
push ecx
push ebx
call fcn.00413e40
mov edx, dword [ebp - 0x74]
push eax
lea ecx, [ebp - 0x30]
call fcn.004713e0
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x54], 0x10
jb 0x476fab
mov edx, dword [ebp - 0x68]
push edx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x58], ebx
mov byte [ebp - 0x68], bl
mov byte [ebp - 4], 0xa
cmp dword [ebp - 0x38], 0x10
jb 0x476fca
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x3c], ebx
mov byte [ebp - 0x4c], bl
mov byte [ebp - 4], 9
cmp dword [ebp - 0x1c], 0x10
jb 0x476fe9
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0049ca60
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x16c]
call fcn.004030b0
mov byte [ebp - 0x69], bl
mov edx, dword [ebp - 0x78]
push edx
call dword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov eax, dword [ebp - 0x88]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [ebp - 0x84]
push ecx
mov dword [ebp - 0x88], ebx
call esi
mov edx, dword [ebp - 0x70]
push edx
mov dword [ebp - 0x84], ebx
call esi
push edi
mov dword [ebp - 0x70], ebx
call fcn.0049cdad
mov al, byte [ebp - 0x69]
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0049ca6b
mov esp, ebp
pop ebp
ret