Function at 0x428ce0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4b7d31
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x4ff1a0]
xor eax, esp
mov dword [esp + 0x158], eax
push ebx
push esi
push edi
mov eax, dword [0x4ff1a0]
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.0040e680
mov dword [esp + 0x178], ebx
lea edx, [esp + 0x114]
push edx
call fcn.0042a520
add esp, 4
mov dword [esp + 0x178], 0xffffffff
mov edi, 8
cmp dword [esp + 0x128], edi
jb 0x428d9f
mov eax, dword [esp + 0x114]
push eax
call fcn.00490458
add esp, 4
xor ecx, ecx
mov dword [esp + 0x128], 7
mov dword [esp + 0x124], ebx
mov word [esp + 0x114], cx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea edx, [esp + 0x18]
push edx
push eax
call dword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x428f7f
push 1
push 2
lea ecx, [esp + 0x84]
call fcn.00413cc0
mov dword [esp + 0x178], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [esp + 0x84]
push str.WTSQueryUserToken_FAILED._GetLastError:
push eax
call fcn.00416b90
add esp, 0xc
push eax
call fcn.004135f0
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.0040ebe0
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.0040ebe0
mov byte [esp + 0x178], 3
lea ecx, [esp + 0x14c]
push ecx
lea ecx, [esp + 0x80]
call fcn.00413de0
mov byte [esp + 0x178], 4
push eax
lea edx, [esp + 0x134]
push edx
push 0x14f
lea eax, [esp + 0x120]
push eax
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x178], 3
cmp dword [esp + 0x160], edi
jb 0x428ed7
mov ecx, dword [esp + 0x14c]
push ecx
call fcn.00490458
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], 2
mov edi, 0x10
cmp dword [esp + 0x128], edi
jb 0x428f19
mov eax, dword [esp + 0x114]
push eax
call fcn.00490458
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 0x428f4f
mov ecx, dword [esp + 0x130]
push ecx
call fcn.00490458
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.00412cc0
xor al, al
jmp 0x4293c8
push 0x40
xor eax, eax
lea edx, [esp + 0x3c]
push ebx
push edx
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
call fcn.004911e0
xor eax, eax
add esp, 0xc
cmp byte [ebp + 0x10], bl
mov edx, 2
setne al
xor ecx, ecx
mov dword [esp + 0x34], 0x44
mov dword [esp + 0x3c], str.winsta0default
mov dword [esp + 0x60], 1
mov word [esp + 0x64], ax
mov eax, dword [esi + 0x10]
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00490047
mov edi, eax
add esp, 4
cmp edi, ebx
jne 0x429171
push 1
push 2
lea ecx, [esp + 0x84]
call fcn.00413cc0
mov dword [esp + 0x178], 5
lea eax, [esp + 0x7c]
push str.szCmd_new_FAILED.
push eax
call fcn.00416b90
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.0040ebe0
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.0040ebe0
mov byte [esp + 0x178], 7
lea ecx, [esp + 0x14c]
push ecx
lea ecx, [esp + 0x80]
call fcn.00413de0
mov byte [esp + 0x178], 8
push eax
lea edx, [esp + 0x118]
push edx
push 0x15e
lea eax, [esp + 0x13c]
push eax
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042e360
mov byte [esp + 0x178], 7
cmp dword [esp + 0x160], 8
jb 0x4290df
mov ecx, dword [esp + 0x14c]
push ecx
call fcn.00490458
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 0x429121
mov eax, dword [esp + 0x130]
push eax
call fcn.00490458
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 0x429157
mov ecx, dword [esp + 0x114]
push ecx
call fcn.00490458
add esp, 4
mov dword [esp + 0x128], esi
mov dword [esp + 0x124], ebx
mov byte [esp + 0x114], bl
jmp 0x428f64
mov eax, dword [esi + 0x10]
inc eax
push eax
push ebx
push edi
call fcn.004911e0
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x429188
mov esi, dword [esi]
push esi
push 0x4c5ea8
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 0x4291be
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 0x429389
push 1
push 2
lea ecx, [esp + 0x84]
call fcn.00419d60
mov dword [esp + 0x178], 9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ecx
lea eax, [esp + 0x84]
push str.CreateProcessAsUserW_FAILED._GetLastError:
push eax
call fcn.0041aa20
add esp, 0xc
push eax
call fcn.0042bc00
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.0040ebe0
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.0040ebe0
mov byte [esp + 0x178], 0xb
lea ecx, [esp + 0x14c]
push ecx
lea ecx, [esp + 0x80]
call fcn.00419e80
mov byte [esp + 0x178], 0xc
push eax
lea edx, [esp + 0x118]
push edx
push 0x175
lea eax, [esp + 0x13c]
push eax
push ebx
call fcn.004144e0
mov ecx, eax
call fcn.0042de40
mov byte [esp + 0x178], 0xb
cmp dword [esp + 0x160], 0x10
jb 0x4292ee
mov ecx, dword [esp + 0x14c]
push ecx
call fcn.00490458
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 0x429325
mov edx, dword [esp + 0x130]
push edx
call fcn.00490458
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 0x42935c
mov eax, dword [esp + 0x114]
push eax
call fcn.00490458
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.00418eb0
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.004913ca
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.004911d1
mov esp, ebp
pop ebp
ret