Function at 0x40efb0
Capabilities:
Create process on windows
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x4ba8c4
mov eax, dword fs:[0]
push eax
sub esp, 0x2dc
mov eax, dword [0x4e27e0]
xor eax, esp
mov dword [esp + 0x2d4], eax
push ebp
push esi
push edi
mov eax, dword [0x4e27e0]
xor eax, esp
push eax
lea eax, [esp + 0x2ec]
mov dword fs:[0], eax
xor eax, eax
mov edi, ecx
mov word [esp + 0x14], ax
xor ebp, ebp
push 0x3e
mov eax, str.CLocalSystemCommands::LaunchAppIntoDifferentSession___app_name
lea esi, [esp + 0x14]
mov dword [esp + 0x40], edi
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
call fcn.004033f0
mov ecx, esi
push ecx
mov ecx, edi
mov dword [esp + 0x2f8], ebp
call fcn.00402ec0
or edi, 0xffffffff
add esp, 4
mov dword [esp + 0x2f4], edi
cmp dword [esp + 0x28], 8
jb 0x40f047
mov edx, dword [esp + 0x14]
push edx
call fcn.0047cc0e
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
push 0x40
mov eax, str.CLocalSystemCommands::LaunchAppIntoDifferentSession___parameters
lea esi, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
call fcn.004033f0
mov ecx, esi
push ecx
mov ecx, ebx
mov dword [esp + 0x2f8], 1
call fcn.00402ec0
add esp, 4
mov dword [esp + 0x2f4], edi
cmp dword [esp + 0x28], 8
jb 0x40f09d
mov edx, dword [esp + 0x14]
push edx
call fcn.0047cc0e
add esp, 4
xor eax, eax
mov word [esp + 0x14], ax
push 0x40
mov eax, str.CLocalSystemCommands::LaunchAppIntoDifferentSession___session_id
lea esi, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
call fcn.004033f0
mov ecx, dword [esp + 0x2fc]
mov dword [esp + 0x2f4], 2
call fcn.00402c10
mov dword [esp + 0x2f4], edi
cmp dword [esp + 0x28], 8
jb 0x40f0f2
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047cc0e
add esp, 4
push ebp
push 2
mov dword [esp + 0x34], ebp
mov dword [esp + 0x3c], ebp
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, edi
jne 0x40f161
xor edx, edx
push 0x56
mov eax, str.CLocalSystemCommands::LaunchAppIntoDifferentSession___CreateToolhelp32Snapshot_failed.
lea esi, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
mov word [esp + 0x18], dx
call fcn.004033f0
mov dword [esp + 0x2f4], 3
lea eax, [esp + 0x10]
push eax
call fcn.00403580
add esp, 4
cmp dword [esp + 0x28], 8
jb 0x40f157
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047cc0e
add esp, 4
mov eax, 0x3eb
jmp 0x40f4f7
lea edx, [esp + 0xb4]
push edx
push esi
mov dword [esp + 0xbc], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x40f1d3
mov word [esp + 0x14], ax
push 0x4c
mov eax, str.CLocalSystemCommands::LaunchAppIntoDifferentSession___Process32First_failed.
lea esi, [esp + 0x14]
mov dword [esp + 0x2c], 7
mov dword [esp + 0x28], ebp
call fcn.004033f0
mov ecx, esi
push ecx
mov dword [esp + 0x2f8], 4
call fcn.00403580
add esp, 4
cmp dword [esp + 0x28], 8
jb 0x40f157
mov edx, dword [esp + 0x14]
push edx
call fcn.0047cc0e
add esp, 4
mov eax, 0x3eb
jmp 0x40f4f7
mov edi, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
lea esp, [esp]
lea eax, [esp + 0xd8]
push str.explorer.exe
push eax
call fcn.0049e075
add esp, 8
test eax, eax
jne 0x40f21d
mov edx, dword [esp + 0xbc]
lea ecx, [esp + 0x30]
push ecx
push edx
mov dword [esp + 0x38], ebp
call edi
test eax, eax
je 0x40f21d
mov eax, dword [esp + 0x2fc]
cmp dword [esp + 0x30], eax
je 0x40f24d
lea ecx, [esp + 0xb4]
push ecx
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40f1e0
mov eax, str.CLocalSystemCommands::LaunchAppIntoDifferentSession___didnt_get_winlogonPid.
lea ecx, [esp + 0x10]
call fcn.004034a0
mov dword [esp + 0x2f4], 6
jmp 0x40f136
mov edi, dword [esp + 0xbc]
mov eax, str.CLocalSystemCommands::LaunchAppIntoDifferentSession___winlogonPid
lea ecx, [esp + 0x10]
call fcn.004034a0
mov ecx, edi
lea esi, [esp + 0x10]
mov dword [esp + 0x2f4], 5
call fcn.00402c10
mov dword [esp + 0x2f4], 0xffffffff
cmp dword [esp + 0x28], 8
jb 0x40f297
mov edx, dword [esp + 0x14]
push edx
call fcn.0047cc0e
add esp, 4
push 0x44
lea edx, [esp + 0x70]
push ebp
push edx
mov esi, 0x30
call fcn.004a2540
add esp, 0xc
push edi
xor eax, eax
push ebp
push 0x2000000
mov dword [esp + 0x78], 0x44
mov dword [esp + 0x80], str.winsta0default
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x54], eax
mov dword [esp + 0x58], eax
call dword [sym.imp.KERNEL32.dll_OpenProcess]
lea ecx, [esp + 0x34]
push ecx
push 0x201eb
push eax
mov dword [esp + 0x3c], eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x40f328
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, str.CLocalSystemCommands::LaunchAppIntoDifferentSession___OpenProcessToken_failed
lea ecx, [esp + 0x10]
call fcn.004034a0
mov ecx, edi
lea esi, [esp + 0x10]
mov dword [esp + 0x2f4], 7
call fcn.00402c10
jmp 0x40f4d5
mov eax, dword [esp + 0x34]
lea edx, [esp + 0x2c]
push edx
push 1
push 1
push ebp
push 0x2000000
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
test eax, eax
jne 0x40f377
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, str.CLocalSystemCommands::LaunchAppIntoDifferentSession___DuplicateTokenEx_failed
lea ecx, [esp + 0x10]
call fcn.004034a0
mov ecx, edi
lea esi, [esp + 0x10]
mov dword [esp + 0x2f4], 8
call fcn.00402c10
jmp 0x40f4d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
cmp edi, 0x514
jne 0x40f3b6
mov eax, str.CLocalSystemCommands::LaunchAppIntoDifferentSession___we_got_ERROR_NOT_ALL_ASSIGNED
lea ecx, [esp + 0x10]
call fcn.004034a0
lea ecx, [esp + 0x10]
push ecx
mov dword [esp + 0x2f8], 9
call fcn.00403580
add esp, 4
lea esi, [esp + 0x10]
jmp 0x40f4d5
mov edx, dword [esp + 0x2c]
push 1
push edx
lea eax, [esp + 0x40]
push eax
mov dword [esp + 0x44], ebp
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
je 0x40f3d6
mov esi, 0x430
jmp 0x40f3da
mov dword [esp + 0x38], ebp
mov eax, dword [ebx + 0x14]
xor ecx, ecx
add eax, 0xa
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0047cc03
add esp, 4
cmp dword [ebx + 0x18], 8
mov edi, eax
jb 0x40f406
mov ecx, dword [ebx + 4]
jmp 0x40f409
lea ecx, [ebx + 4]
mov edx, edi
jmp 0x40f410
movzx eax, word [ecx]
mov word [edx], ax
add ecx, 2
add edx, 2
cmp ax, bp
jne 0x40f410
push ebp
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [esp + 0x3c]
cmp dword [eax + 0x18], 8
jb 0x40f437
mov eax, dword [eax + 4]
jmp 0x40f43a
add eax, 4
lea ecx, [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x3c]
lea edx, [esp + 0x70]
push edx
mov edx, dword [esp + 0x34]
push ebp
push ecx
push esi
push ebp
push ebp
push ebp
push edi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
push edi
mov esi, eax
call fcn.0047cc0e
add esp, 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
mov eax, str.CLocalSystemCommands::LaunchAppIntoDifferentSession___bResult
lea ecx, [esp + 0x10]
call fcn.004034a0
cmp esi, ebp
setne al
movzx ecx, al
push ecx
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x2fc], 0xa
call fcn.00402aa0
add esp, 8
lea esi, [esp + 0x10]
mov dword [esp + 0x2f4], 0xffffffff
call fcn.004092a0
mov eax, str.CLocalSystemCommands::LaunchAppIntoDifferentSession___error
lea ecx, [esp + 0x50]
call fcn.004034a0
mov ecx, edi
lea esi, [esp + 0x50]
mov dword [esp + 0x2f4], 0xb
call fcn.00402c10
call fcn.004092a0
mov eax, dword [esp + 0x30]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0x2c]
push ecx
call esi
mov edx, dword [esp + 0x34]
push edx
call esi
mov eax, edi
mov ecx, dword [esp + 0x2ec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x2d4]
xor ecx, esp
call fcn.0049bee5
add esp, 0x2e8
ret