Function at 0x40bec0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bafec
mov eax, dword fs:[0]
push eax
sub esp, 0xbc
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4e27e0]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
xor eax, eax
mov word [esp + 0x20], ax
mov edi, 7
xor ebp, ebp
push 0x26
mov eax, str.CSystemCommands::CreateLowProcess_path
lea esi, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebp
call fcn.004033f0
mov esi, dword [esp + 0xe0]
mov dword [esp + 0xd8], ebp
xor ecx, ecx
mov eax, esi
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40bf35
sub eax, edx
sar eax, 1
push eax
mov eax, esi
lea esi, [esp + 0x3c]
call fcn.004033f0
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
mov byte [esp + 0xdc], 1
call fcn.00402ec0
mov esi, 8
add esp, 4
cmp dword [esp + 0x50], esi
jb 0x40bf7f
mov eax, dword [esp + 0x3c]
push eax
call fcn.0047cc0e
add esp, 4
xor ecx, ecx
mov dword [esp + 0xd8], 0xffffffff
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], cx
cmp dword [esp + 0x34], esi
jb 0x40bfac
mov edx, dword [esp + 0x20]
push edx
call fcn.0047cc0e
add esp, 4
xor eax, eax
mov word [esp + 0x20], ax
push 0x28
mov eax, str.CSystemCommands::CreateLowProcess_params
lea esi, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebp
call fcn.004033f0
mov ebx, dword [esp + 0xe4]
mov dword [esp + 0xd8], 2
xor ecx, ecx
mov eax, ebx
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], cx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bp
jne 0x40bff1
sub eax, edx
sar eax, 1
push eax
mov eax, ebx
lea esi, [esp + 0x3c]
call fcn.004033f0
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
mov byte [esp + 0xdc], 3
call fcn.00402ec0
mov esi, 8
add esp, 4
cmp dword [esp + 0x50], esi
jb 0x40c03b
mov eax, dword [esp + 0x3c]
push eax
call fcn.0047cc0e
add esp, 4
xor ecx, ecx
mov dword [esp + 0xd8], 0xffffffff
mov dword [esp + 0x50], edi
mov dword [esp + 0x4c], ebp
mov word [esp + 0x3c], cx
cmp dword [esp + 0x34], esi
jb 0x40c068
mov edx, dword [esp + 0x20]
push edx
call fcn.0047cc0e
add esp, 4
xor eax, eax
mov word [esp + 0x20], ax
push 0x31
mov eax, str.CSystemCommands::CreateLowProcess_bWaitForProcess
lea esi, [esp + 0x20]
mov dword [esp + 0x38], edi
mov dword [esp + 0x34], ebp
call fcn.004033f0
mov ecx, esi
push ebp
push ecx
mov dword [esp + 0xe0], 4
call fcn.00402aa0
mov esi, 8
add esp, 8
mov dword [esp + 0xd8], 0xffffffff
cmp dword [esp + 0x34], esi
jb 0x40c0c1
mov edx, dword [esp + 0x20]
push edx
call fcn.0047cc0e
add esp, 4
call fcn.0040cc90
call fcn.0040cc90
test eax, eax
jle 0x40c37d
xor eax, eax
push 0x40
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 0x8c]
push ebp
push eax
mov dword [esp + 0x64], ebp
mov dword [esp + 0x68], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x90], ebp
call fcn.004a2540
add esp, 0xc
lea edx, [esp + 0x64]
push edx
xor ecx, ecx
push 0x2000000
mov word [esp + 0xbc], cx
mov dword [esp + 0xb8], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40c34b
mov ecx, dword [esp + 0x64]
lea eax, [esp + 0x54]
push eax
push 1
push 2
push ebp
push 0x2000000
push ecx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
je 0x40c32b
lea edx, [esp + 0x58]
push edx
push str.S_1_16_8192
call sub.ADVAPI32.dll_ConvertStringSidToSidW
test eax, eax
je 0x40c30b
mov eax, dword [esp + 0x58]
push eax
mov dword [esp + 0x64], 0x20
mov dword [esp + 0x60], eax
call dword [sym.imp.ADVAPI32.dll_GetLengthSid]
mov ecx, dword [esp + 0x54]
add eax, 4
push eax
lea eax, [esp + 0x60]
push eax
push 0x19
push ecx
call dword [sym.imp.ADVAPI32.dll_SetTokenInformation]
test eax, eax
je 0x40c2d7
mov edi, dword [esp + 0xe0]
lea edx, [esp + 0x18]
push edx
call fcn.0040b640
lea eax, [esp + 0x14]
mov ebx, 5
push eax
mov edi, 0x4c868c
mov dword [esp + 0xdc], ebx
call fcn.0040b640
lea ecx, [esp + 0x14]
push ecx
lea edi, [esp + 0x1c]
mov byte [esp + 0xdc], 6
call fcn.0040b730
lea edi, [esp + 0x14]
mov byte [esp + 0xd8], bl
call fcn.0040b6e0
mov edi, dword [esp + 0xe4]
lea edx, [esp + 0x14]
push edx
call fcn.0040b640
lea eax, [esp + 0x14]
push eax
lea edi, [esp + 0x1c]
mov byte [esp + 0xdc], 7
call fcn.0040b730
lea edi, [esp + 0x14]
mov byte [esp + 0xd8], bl
call fcn.0040b6e0
lea esi, [esp + 0x18]
call fcn.0040b800
mov eax, dword [eax]
lea ecx, [esp + 0x38]
push ecx
mov ecx, dword [esp + 0x58]
lea edx, [esp + 0x88]
push edx
push ebp
push ebp
push ebp
push ebp
push ebp
push ebp
push eax
push ebp
push ecx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
lea ecx, [esp + 0x68]
cmp eax, ebp
je 0x40c2a1
mov eax, str.CSystemCommands::CreateLowProcess_return_true
call fcn.004034a0
lea edx, [esp + 0x68]
push edx
mov byte [esp + 0xdc], 9
call fcn.00403580
add esp, 4
lea esi, [esp + 0x68]
call fcn.004092a0
lea edi, [esp + 0x18]
call fcn.0040b6e0
mov al, 1
jmp 0x40c3e3
mov eax, str.CSystemCommands::CreateLowProcess_CreateProcessAsUser_failed
call fcn.004034a0
lea eax, [esp + 0x68]
push eax
mov byte [esp + 0xdc], 8
call fcn.00403580
add esp, 4
lea esi, [esp + 0x68]
call fcn.004092a0
lea edi, [esp + 0x18]
call fcn.0040b6e0
jmp 0x40c3e1
mov eax, str.LIP::CreateLowProcess_SetTokenInformation_failed
lea ecx, [esp + 0x1c]
call fcn.004034a0
lea ecx, [esp + 0x1c]
mov dword [esp + 0xd8], 0xa
push ecx
call fcn.00403580
add esp, 4
lea esi, [esp + 0x1c]
call fcn.004092a0
jmp 0x40c3e1
mov eax, str.CSystemCommands::CreateLowProcess_ConvertStringSidToSid_failed
lea ecx, [esp + 0x1c]
call fcn.004034a0
lea edx, [esp + 0x1c]
mov dword [esp + 0xd8], 0xb
push edx
jmp 0x40c2f5
mov eax, str.CSystemCommands::CreateLowProcess_DuplicateTokenEx_failed
lea ecx, [esp + 0x1c]
call fcn.004034a0
lea eax, [esp + 0x1c]
mov dword [esp + 0xd8], 0xc
push eax
jmp 0x40c2f5
mov eax, str.CSystemCommands::CreateLowProcess_OpenProcessToken_failed
lea ecx, [esp + 0x1c]
call fcn.004034a0
lea ecx, [esp + 0x1c]
push ecx
mov dword [esp + 0xdc], 0xd
call fcn.00403580
add esp, 4
cmp dword [esp + 0x34], esi
jb 0x40c3e1
mov edx, dword [esp + 0x20]
jmp 0x40c3d8
mov ecx, dword [esp + 0xe0]
push ebp
push ebp
push ebx
call fcn.0040b980
xor eax, eax
add esp, 0xc
mov word [esp + 0x6c], ax
push 0x2e
mov eax, str.CSystemCommands::CreateLowProcess_return_false
lea esi, [esp + 0x6c]
mov dword [esp + 0x84], edi
mov dword [esp + 0x80], ebp
call fcn.004033f0
mov ecx, esi
push ecx
mov dword [esp + 0xdc], 0xe
call fcn.00403580
add esp, 4
cmp dword [esp + 0x80], 8
jb 0x40c3e1
mov edx, dword [esp + 0x6c]
push edx
call fcn.0047cc0e
add esp, 4
xor al, al
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret