Function at 0x47f950
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c36d1
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.00415f60
mov dword [ebp - 4], ebx
mov edx, esi
push edx
call fcn.004805a0
add esp, 4
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x1c], 8
jb 0x47f9d0
mov eax, dword [ebp - 0x30]
push eax
call fcn.0049b30a
add esp, 4
xor ecx, ecx
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], ebx
mov word [ebp - 0x30], cx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea edx, [ebp - 0x70]
push edx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x47fb0e
lea eax, [ebp - 0x16c]
push eax
call fcn.00410ff0
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea ecx, [ebp - 0x16c]
push str.WTSQueryUserToken_FAILED._GetLastError:
push ecx
call fcn.00418890
add esp, 0xc
push eax
call fcn.004102c0
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.004159b0
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.004159b0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x16c]
push eax
call fcn.004110f0
mov byte [ebp - 4], 4
push eax
push 0x14f
push ebx
call fcn.004117f0
push eax
lea edx, [ebp - 0x4c]
lea ecx, [ebp - 0x30]
call fcn.0047acf0
mov byte [ebp - 4], 3
cmp dword [ebp - 0x54], 8
jb 0x47faa8
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0049b30a
add esp, 4
xor edx, edx
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x58], ebx
mov word [ebp - 0x68], dx
mov byte [ebp - 4], 2
mov edi, 0x10
cmp dword [ebp - 0x1c], edi
jb 0x47face
mov eax, dword [ebp - 0x30]
push eax
call fcn.0049b30a
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 0x47faec
mov ecx, dword [ebp - 0x4c]
push ecx
call fcn.0049b30a
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.004039f0
xor al, al
jmp 0x47fe5e
push 0x40
xor eax, eax
lea edx, [ebp - 0xd0]
push ebx
push edx
mov dword [ebp - 0x88], ebx
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
call fcn.004a2b10
xor eax, eax
mov word [ebp - 0xa4], ax
mov eax, dword [0x4ee600]
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.0049aac8
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x47fc7f
lea eax, [ebp - 0x16c]
push eax
call fcn.00410ff0
mov dword [ebp - 4], 5
lea ecx, [ebp - 0x16c]
push str.szCmd_new_FAILED.
push ecx
call fcn.00418890
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.004159b0
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.004159b0
mov byte [ebp - 4], 7
lea edx, [ebp - 0x68]
push edx
lea eax, [ebp - 0x16c]
push eax
call fcn.004110f0
mov byte [ebp - 4], 8
push eax
push 0x15e
push ebx
call fcn.004117f0
push eax
lea edx, [ebp - 0x30]
lea ecx, [ebp - 0x4c]
call fcn.0047acf0
mov byte [ebp - 4], 7
cmp dword [ebp - 0x54], 8
jb 0x47fc29
mov ecx, dword [ebp - 0x68]
push ecx
call fcn.0049b30a
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 0x47fc53
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0049b30a
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 0x47fc71
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0049b30a
add esp, 4
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], ebx
mov byte [ebp - 0x30], bl
jmp 0x47faf5
mov edx, dword [0x4ee600]
inc edx
push edx
push ebx
push edi
call fcn.004a2b10
mov eax, dword [0x4ee5f0]
mov esi, 8
add esp, 0xc
cmp dword [0x4ee604], esi
jae 0x47fca8
mov eax, 0x4ee5f0
push eax
push 0x4d9278
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 0x47fcd8
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 0x47fe1b
lea ecx, [ebp - 0x16c]
push ecx
call fcn.00411a10
mov dword [ebp - 4], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea edx, [ebp - 0x16c]
push str.CreateProcessAsUserW_FAILED._GetLastError:
push edx
call fcn.00418d30
add esp, 0xc
push eax
call fcn.004815c0
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.004159b0
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.004159b0
mov byte [ebp - 4], 0xb
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x16c]
call fcn.00411b10
mov dword [ebp - 0x74], eax
mov byte [ebp - 4], 0xc
push 0x175
lea ecx, [ebp - 0x4c]
push ecx
push ebx
call fcn.004117f0
mov edx, dword [ebp - 0x74]
push eax
lea ecx, [ebp - 0x30]
call fcn.0047a7d0
mov byte [ebp - 4], 0xb
cmp dword [ebp - 0x54], 0x10
jb 0x47fdbf
mov edx, dword [ebp - 0x68]
push edx
call fcn.0049b30a
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 0x47fdde
mov eax, dword [ebp - 0x4c]
push eax
call fcn.0049b30a
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 0x47fdfd
mov ecx, dword [ebp - 0x30]
push ecx
call fcn.0049b30a
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.00405800
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.0049b58d
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.0049b315
mov esp, ebp
pop ebp
ret