Function at 0x140006d84
Capabilities:
Create process on windows

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1bf8]
mov eax, 0x1cf8
call fcn.14012bd30
sub rsp, rax
mov rax, qword [0x1401f5698]
xor rax, rsp
mov qword [rbp + 0x1be0], rax
mov r14d, dword [rbp + 0x1c60]
mov r15d, r8d
mov ebx, edx
mov dword [rbp], 0x68
mov r12, rcx
xorps xmm0, xmm0
xor eax, eax
lea rcx, [rbp + 8]
xor esi, esi
mov qword [rbp - 0x80], rax
xor edx, edx
mov edi, r9d
movups xmmword [rsp + 0x70], xmm0
lea r8d, [rsi + 0x60]
call fcn.14012d4b0
xor edx, edx
mov dword [rbp - 0x70], 0x70
lea r8d, [rsi + 0x6c]
lea rcx, [rbp - 0x6c]
call fcn.14012d4b0
or dword [rsp + 0x58], 0xffffffff
mov r13d, esi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x68], rsi
test r12, r12
je 0x1400073fe
test ebx, ebx
je 0x1400073fe
test r15d, r15d
je 0x1400073fe
test edi, edi
je 0x1400073fe
mov rcx, qword [0x14022ab50]
lea edx, [rsi + 1]
call fcn.14007f158
test eax, eax
je 0x140006e9b
mov eax, dword [rbp + 0x1c68]
lea rdx, str.CAttachDlg::StartAttach_HWNDx_08X__PID_u__Bits_u__Type_u__AltMode_u__Leave_u
mov dword [rsp + 0x38], eax
lea rcx, [rbp + 0x1130]
mov dword [rsp + 0x30], r14d
mov r9d, ebx
mov dword [rsp + 0x28], edi
mov r8d, r12d
mov dword [rsp + 0x20], r15d
call fcn.1400011f8
mov rcx, qword [0x14022a9e0]
lea rdx, [rbp + 0x1130]
mov r9b, 1
mov r8b, r9b
call fcn.1400157d0
lea rdx, [rbp + 0x70]
mov rcx, r12
call fcn.140119918
test eax, eax
je 0x140006f0d
mov edx, 0x30
lea ecx, [rdx - 0x1e]
call fcn.140119328
mov r8, qword [0x14022a9e8]
xor r9d, r9d
mov ecx, dword [rbp + 0x84]
mov rdx, rax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x20], esi
call fcn.1401196dc
mov qword [rsp + 0x60], rax
test rax, rax
je 0x140006ef9
cmp dword [rax], 0x34
jb 0x140006ef9
cmp dword [rax + 0x30], esi
je 0x140006ef9
mov sil, 1
jmp 0x1400073fe
lea rcx, [rsp + 0x50]
call fcn.140119184
lea rcx, [rsp + 0x60]
call fcn.140119184
mov r9d, ebx
lea r8, [0x1401773b4]
lea rdx, [0x1401773b8]
lea rcx, [rbp + 0x1330]
call fcn.1400046dc
call fcn.140116ec4
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0x1330]
mov r9, rax
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rbp - 0x78], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140006fb5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x44
lea ecx, [rdx - 0x32]
call fcn.140119328
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
or r14d, 0xffffffff
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x30], ecx
mov rcx, qword [rsp + 0x50]
mov eax, dword [0x14022a9e8]
mov dword [rcx + 0x34], eax
mov rax, qword [rsp + 0x50]
mov ecx, dword [rbp + 0x1c68]
mov dword [rax + 0x40], ecx
jmp 0x1400072e0
mov r9d, ebx
lea r8, [0x1401773b4]
lea rdx, str._spipeConEmuHk_u
lea rcx, [rbp + 0x1330]
call fcn.1400046dc
call fcn.140116ec4
mov qword [rsp + 0x30], rsi
lea rcx, [rbp + 0x1330]
mov r9, rax
mov dword [rsp + 0x28], esi
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov qword [rsp + 0x68], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140007020
call qword [sym.imp.KERNEL32.dll_CloseHandle]
or r14d, 0xffffffff
jmp 0x140007294
mov rdx, qword [0x14022a9e0]
lea rcx, [rbp + 0x1540]
add rdx, 0xef4
call fcn.140004824
lea rax, [0x140177420]
cmp r15d, 0x40
lea r8, [0x140177440]
mov edx, 0x144
cmove r8, rax
lea rcx, [rbp + 0x1540]
call fcn.140001e48
test r14d, r14d
je 0x140007096
cmp edi, 1
jne 0x140007096
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r8d, ebx
lea rdx, str.__ATTACH__CONPID_u__GID_u__GHWND_08X
mov r9d, eax
lea rcx, [rbp + 0x1230]
mov eax, dword [0x14022a9e8]
mov dword [rsp + 0x20], eax
call fcn.1400011f8
jmp 0x1400070af
mov r8d, ebx
lea rdx, str.__INJECT_u
lea rcx, [rbp + 0x1230]
call fcn.1400011f8
mov r14d, esi
mov dword [rbp + 0x3c], 1
mov word [rbp + 0x40], si
cmp edi, 2
jne 0x1400070cd
mov rcx, qword [0x14022a9e0]
mov edx, ebx
call fcn.140010f70
mov r8d, ebx
xor edx, edx
mov ecx, 0x43a
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r13, rax
test rax, rax
jne 0x140007163
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rax, qword [0x14022a9e8]
mov qword [rbp - 0x68], rax
mov eax, r14d
neg eax
mov dword [rbp - 0x40], 2
lea rax, str.runas
mov qword [rbp - 0x60], rax
sbb ecx, ecx
and ecx, 0xffff8000
lea rax, [rbp + 0x1540]
mov qword [rbp - 0x58], rax
add ecx, 0x8140
lea rax, [rbp + 0x1230]
mov dword [rbp - 0x6c], ecx
mov qword [rbp - 0x50], rax
lea rcx, [rbp - 0x70]
mov rax, qword [0x14022a9e0]
add rax, 0xef4
mov qword [rbp - 0x48], rax
call qword [sym.imp.SHELL32.dll_ShellExecuteExW]
test eax, eax
setne cl
test eax, eax
je 0x1400071ba
mov rax, qword [rbp - 8]
mov qword [rsp + 0x70], rax
jmp 0x1400071ba
mov eax, r14d
lea rdx, [rbp + 0x1230]
neg eax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x48], rax
sbb ecx, ecx
and ecx, 0x7fffff0
lea rax, [rbp]
mov qword [rsp + 0x40], rax
add ecx, 0x4000030
mov qword [rsp + 0x38], rsi
xor r9d, r9d
mov qword [rsp + 0x30], rsi
xor r8d, r8d
mov dword [rsp + 0x28], ecx
lea rcx, [rbp + 0x1540]
mov dword [rsp + 0x20], esi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
setne cl
test cl, cl
jne 0x140007236
call qword [sym.imp.KERNEL32.dll_GetLastError]
test r14d, r14d
lea r8, str.console
mov edi, eax
lea r9, [rbp + 0x1540]
lea rax, str.injection
cmovne r8, rax
lea rdx, str.Cant_start__s_server_n_s__s
lea rax, [rbp + 0x1230]
lea rcx, [rbp + 0x17d0]
mov qword [rsp + 0x20], rax
call fcn.140004708
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, ebx
lea rdx, str.ConEmu_Attach__PID_u__TID_u
mov r8d, eax
lea rcx, [rbp + 0x1130]
call fcn.1400011f8
mov edx, edi
lea rcx, [rbp + 0x17d0]
jmp 0x1400073d7
test r14d, r14d
jne 0x140007327
mov rcx, qword [rsp + 0x70]
or r14d, 0xffffffff
mov edx, r14d
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x70]
lea rdx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14000727c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x58], 0x81
je 0x140007294
cmp dword [rsp + 0x58], 0x90
jne 0x1400073eb
mov edx, 0x44
lea ecx, [rdx - 0xe]
call fcn.140119328
mov qword [rsp + 0x50], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x30], ecx
mov rcx, qword [rsp + 0x50]
mov eax, dword [0x14022a9e8]
mov dword [rcx + 0x34], eax
mov rax, qword [rsp + 0x50]
mov ecx, dword [rbp + 0x1c68]
mov dword [rax + 0x40], ecx
cmp edi, 2
jne 0x1400072e0
mov rax, qword [rsp + 0x50]
mov dword [rax + 0x38], r12d
mov r9, qword [0x14022a9e8]
lea rcx, [rbp + 0x1330]
mov rdx, qword [rsp + 0x50]
mov r8d, 0x1f4
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
call fcn.140118f9c
mov qword [rsp + 0x60], rax
mov rdx, rax
test rax, rax
je 0x14000732f
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
cmp dword [rdx], ecx
jb 0x14000732f
cmp dword [rdx + 0x30], esi
je 0x14000732f
mov sil, 1
jmp 0x1400073eb
lea rdx, str.Failed_to_start_console_server_in_the_remote_process
lea rcx, [rbp + 0x17d0]
call fcn.1400048bc
mov rax, qword [rbp - 0x78]
mov ebx, 0xff
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x140007369
lea r8, str._nFar_ConEmu_plugin_was_loaded
mov edx, ebx
lea rcx, [rbp + 0x17d0]
call fcn.140001e48
mov rax, qword [rsp + 0x68]
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000738d
lea r8, str._nHooks_already_were_set
mov rdx, rbx
lea rcx, [rbp + 0x17d0]
call fcn.140001e48
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r9d, ebx
lea rdx, str.ConEmu_Attach__PID_u__TID_u
mov r8d, eax
lea rcx, [rbp + 0x1130]
call fcn.1400011f8
mov rdx, qword [rsp + 0x60]
test rdx, rdx
je 0x1400073cd
mov rax, qword [rsp + 0x50]
mov ecx, dword [rax]
cmp dword [rdx], ecx
jb 0x1400073cd
mov r14d, dword [rdx + 0x34]
mov edx, r14d
lea rcx, [rbp + 0x17d0]
lea r9, [rbp + 0x1130]
mov qword [rsp + 0x20], rsi
xor r8d, r8d
call fcn.140113304
lea rcx, [r13 - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1400073fe
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rsp + 0x50]
call fcn.140119184
lea rcx, [rsp + 0x60]
call fcn.140119184
mov al, sil
mov rcx, qword [rbp + 0x1be0]
xor rcx, rsp
call fcn.14012bda0
add rsp, 0x1cf8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret