Function at 0x18002a080
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rsi, rcx
mov rcx, qword [rcx + 0x18]
xor r14d, r14d
test rcx, rcx
je 0x18002a0b4
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x18], r14
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x18002a0c7
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov dword [rbp + 0x78], eax
xor edx, edx
lea r8d, [rdx + 0x60]
lea rcx, [rbp - 0x28]
call sub.MSVCR120.dll_memset
mov qword [rbp - 0x78], r14
xor eax, eax
mov qword [rbp - 0x70], rax
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x30], 0x68
cmp byte [rsi + 0x41], al
jne 0x18002a105
mov dword [rbp + 0xc], 1
mov word [rbp + 0x10], r14w
lea rdx, [rbp + 0x88]
mov rcx, rsi
call fcn.180029480
nop
cmp byte [rsi + 0x4c], 0
je 0x18002a153
lea rdx, [rbp + 0x88]
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.180009eb0
mov rdx, rax
lea rcx, [rbp + 0x88]
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rbp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMessageLogger::constructor_char_const____ptr64__int__char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rbp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::debug_void____ptr64]
nop
lea rdx, str.sessionID_old
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
mov rcx, rax
mov edx, dword [rbp + 0x78]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___unsigned_long_int____ptr64]
nop
lea rcx, [rbp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
lea rdx, [rbp + 0x78]
mov rcx, rsi
call fcn.1800298d0
mov ebx, eax
test eax, eax
jne 0x18002a1c5
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rbp + 0x78]
mov rcx, rsi
call fcn.1800298d0
mov ebx, eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMessageLogger::constructor_char_const____ptr64__int__char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rbp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::debug_void____ptr64]
nop
lea rdx, str.getSessionUserProcessPid_single_result_
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
mov rcx, rax
mov edx, ebx
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___unsigned_long_int____ptr64]
nop
lea rcx, [rbp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMessageLogger::constructor_char_const____ptr64__int__char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rbp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::debug_void____ptr64]
nop
lea rdx, str.sessionID_new
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
mov rcx, rax
mov edx, dword [rbp + 0x78]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___unsigned_long_int____ptr64]
nop
lea rcx, [rbp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
test ebx, ebx
je 0x18002a26b
mov r8d, ebx
xor edx, edx
mov ecx, 0x400
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
jne 0x18002a271
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rbp - 0x80]
mov edx, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea rax, [rsp + 0x70]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 1
mov r9d, 2
xor r8d, r8d
mov edx, 0x2000000
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov r9d, 4
lea r8, [rbp + 0x78]
lea edx, [r9 + 8]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_SetTokenInformation]
mov qword [rsp + 0x78], r14
xor r8d, r8d
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0x78]
call sub.USERENV.dll_CreateEnvironmentBlock
test eax, eax
setne al
test al, al
jne 0x18002a38d
mov edx, 0x23
lea rcx, str.CreateEnvironmentBlock_LastError:_1
call qword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____ptr64___cdecl_QString::fromAscii_helper_char_const____ptr64__int_]
mov qword [rsp + 0x60], rax
mov dl, 0x20
lea rcx, [rbp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QChar::constructor_struct_QLatin1Char____ptr64]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
movzx eax, word [rbx]
mov word [rsp + 0x28], ax
mov dword [rsp + 0x20], 0xa
xor r9d, r9d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_class_QString___cdecl_QString::arg_unsigned_long_int__int__int__class_QChar____ptr64]
mov rbx, rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMessageLogger::constructor_char_const____ptr64__int__char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rbp - 0x60]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::warning_void____ptr64]
nop
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___class_QString_const____ptr64____ptr64]
nop
lea rcx, [rbp - 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x60]
jmp 0x18002a5b6
lea rdx, [rsi + 8]
lea rcx, [rbp + 0x80]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
nop
mov edx, 1
lea rcx, [0x1800a83d8]
call qword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____ptr64___cdecl_QString::fromAscii_helper_char_const____ptr64__int_]
mov qword [rsp + 0x60], rax
mov edx, 1
lea rcx, [0x1800a83dc]
call qword [sym.imp.Qt5Core.dll_private:_static_struct_QTypedArrayData_unsigned_short_int_____ptr64___cdecl_QString::fromAscii_helper_char_const____ptr64__int_]
mov qword [rbp + 0x70], rax
mov r9d, 1
lea r8, [rsp + 0x60]
lea rdx, [rbp + 0x70]
lea rcx, [rbp + 0x80]
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::replace_class_QString_const____ptr64__class_QString_const____ptr64__enum_Qt::CaseSensitivity____ptr64]
mov rdx, rax
lea rcx, [rbp + 0x80]
call qword [reloc.Qt5Core.dll___4QString__QEAAAEAV0_AEBV0__Z]
nop
lea rcx, [rbp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rsp + 0x60]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
cmp byte [rsi + 0x4c], 0
je 0x18002a44d
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.180009eb0
mov rdx, rax
lea rcx, [rbp + 0x80]
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rbp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x68]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::constructor_class_QString_const____ptr64____ptr64]
mov rdx, rax
lea rcx, [rbp + 0x70]
call fcn.180008c50
mov rdx, rax
lea rcx, [rbp + 0x80]
call qword [sym.imp.Qt5Core.dll_public:_class_QString____ptr64___cdecl_QString::operator_class_QString____ptr64____ptr64]
lea rcx, [rbp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
call qword [sym.imp.Qt5Core.dll_public:_static_enum_QSysInfo::WinVersion___cdecl_QSysInfo::windowsVersion_void_]
cmp eax, 0x40
jg 0x18002a502
cmp dword [rbp + 0x78], 0
je 0x18002a502
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x58]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QMessageLogger::constructor_char_const____ptr64__int__char_const____ptr64____ptr64]
mov rcx, rax
lea rdx, [rbp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug___cdecl_QMessageLogger::debug_void____ptr64]
nop
lea rdx, str.CurrentConsoleProcessByExplorer_xp_createRemoteSession
mov rcx, rax
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___char_const____ptr64____ptr64]
mov rcx, rax
mov edx, dword [rbp + 0x78]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [rbp + 0x88]
call qword [sym.imp.Qt5Core.dll_public:_class_QDebug____ptr64___cdecl_QDebug::operator___class_QString_const____ptr64____ptr64]
nop
lea rcx, [rbp + 0x70]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QDebug::destructor_void____ptr64]
lea r8, [rbp - 0x78]
lea rdx, [rbp + 0x88]
mov ecx, dword [rbp + 0x78]
call fcn.1800284d0
jmp 0x18002a568
lea rcx, [rbp + 0x80]
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
mov rbx, rax
movzx edi, byte [rsi + 0x40]
lea rcx, [rbp + 0x88]
call qword [sym.imp.Qt5Core.dll_public:_unsigned_short_int_const____ptr64___cdecl_QString::utf16_void_const___ptr64]
mov r8, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rbx
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x420
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], r14
xor r9d, r9d
xor edx, edx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
mov eax, dword [rbp - 0x68]
mov dword [rsi + 0x48], eax
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x28], r14
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x30], r14
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x70]
mov qword [rsi + 0x20], rax
mov rax, qword [rbp - 0x78]
mov qword [rsi + 0x18], rax
lea rcx, [rbp + 0x80]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
nop
lea rcx, [rbp + 0x88]
call qword [sym.imp.Qt5Core.dll_public:_void___cdecl_QString::destructor_void____ptr64]
add rsp, 0x140
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret