Function at 0x1400015b0
Capabilities:
Resolve function by parsing pe exports
Set console window title

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x17]
sub rsp, 0xd0
mov qword [rbp - 0x39], 0xfffffffffffffffe
mov qword [rsp + 0x120], rbx
mov rax, qword [0x140042010]
xor rax, rsp
mov qword [rbp + 7], rax
mov rsi, r8
mov qword [rbp - 0x79], rdx
mov r15, rcx
mov qword [rbp - 0x29], rcx
xor ebx, ebx
mov r14d, ebx
mov dword [rbp - 0x71], ebx
mov byte [rcx + 8], bl
mov qword [rcx + 0x10], rbx
mov qword [rcx + 0x18], rbx
mov qword [rcx + 0x20], rbx
mov dword [rcx + 0x28], ebx
lea rcx, [0x140036760]
mov qword [r15], rcx
lea rcx, [0x140036778]
mov qword [r15 + 0x30], rcx
movzx eax, r8b
and al, 1
mov byte [r15 + 0x38], al
movzx eax, r8b
shr al, 1
and al, 1
mov byte [r15 + 0x39], al
mov dword [r15 + 0x3c], r9d
lea r13, [r15 + 0x40]
mov qword [rbp - 0x41], r13
mov qword [r13], rbx
mov word [r13 + 8], bx
mov byte [r13 + 0xa], bl
mov qword [r13 + 0x10], rbx
mov qword [r13 + 0x18], rbx
mov qword [r13 + 0x20], rbx
lea edx, [rbx + 0x10]
lea rcx, [r13 + 0x10]
call fcn.140006090
test al, al
je 0x14000168b
mov rax, qword [r13 + 0x10]
lea rcx, [rax + 0x20]
xor edx, edx
mov qword [rax], rdx
mov qword [rax + 8], rdx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], rdx
mov qword [r13 + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov qword [r13], rax
test rax, rax
je 0x140001e1d
mov qword [r15 + 0x68], rbx
mov qword [r15 + 0x70], rbx
mov qword [r15 + 0x78], rbx
mov qword [r15 + 0x80], rbx
mov qword [r15 + 0x88], rbx
mov qword [r15 + 0x90], rbx
mov qword [r15 + 0x98], rbx
mov word [r15 + 0xa0], 0
mov byte [r15 + 0xa2], 0
mov qword [r15 + 0xa8], rbx
mov qword [r15 + 0xb0], rbx
lea r12, [r15 + 0xb8]
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], 7
mov word [r12], bx
mov r8d, 1
lea rdx, [0x140036474]
mov rcx, r12
call fcn.140004ad0
nop
lea rcx, [0x140036478]
call fcn.1400146a0
mov ecx, dword [rbp + 0x77]
cmp ecx, 1
jl 0x140001e04
mov eax, dword [rbp + 0x7f]
cmp eax, 1
jl 0x140001e04
cmp ecx, 0x9c4
cmovg ecx, dword [0x140036780]
cmp eax, 0x7d0
cmovg eax, dword [0x140036784]
cmp byte [r15 + 0x39], 0
je 0x140001765
test sil, 4
mov byte [rsp + 0x31], 0
je 0x14000176a
mov byte [rsp + 0x31], 1
mov word [rbp - 0x51], cx
mov word [rbp - 0x4f], ax
lea rdx, [rbp - 0x41]
mov rcx, r15
call fcn.140003b90
nop
cmp byte [r15 + 0x38], 0
je 0x140001830
xor eax, eax
mov qword [rbp - 0x69], rax
mov qword [rbp - 0x61], rax
mov qword [rbp - 0x59], rax
mov dword [rbp - 0x69], 0x18
mov dword [rbp - 0x59], 1
mov qword [rsp + 0x20], rbx
lea r9d, [rax + 1]
lea r8, [rbp - 0x69]
lea edx, [rax + 3]
mov ecx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateConsoleScreenBuffer]
mov rsi, rax
cmp rax, 0xffffffffffffffff
je 0x140001e36
mov ecx, 0x10
call fcn.1400174f4
mov rdi, rax
mov qword [rsp + 0x38], rax
mov qword [rax], rsi
mov byte [rax + 8], 1
mov r14d, 1
lea rcx, [rsp + 0x38]
lea rax, [r15 + 0x78]
cmp rax, rcx
je 0x14000181a
mov rsi, qword [rax]
mov qword [rax], rdi
test rsi, rsi
je 0x140001830
cmp byte [rsi + 8], 0
je 0x140001815
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
jmp 0x140001826
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rdi
mov edx, 0x10
call fcn.140017530
mov rdi, qword [rbp - 0x41]
mov rdx, rdi
mov rcx, r13
call fcn.140001190
mov rcx, r15
call fcn.14000ccc0
mov rsi, rax
mov rdx, qword [rbp - 0x79]
mov rcx, rax
call fcn.14000f310
test byte [rsi + 0x48], 1
je 0x140001e4f
mov qword [rsi + 0x50], 0x10000
mov qword [r15 + 0x80], rsi
lea r8, str.conin
xor edx, edx
mov rcx, r15
call fcn.140001ff0
mov qword [r15 + 0x88], rax
lea r8, str.conout
mov dl, 1
mov rcx, r15
call fcn.140001ff0
mov qword [r15 + 0x90], rax
cmp byte [r15 + 0x38], 0
je 0x1400018be
lea r8, str.conerr
mov dl, 1
mov rcx, r15
call fcn.140001ff0
mov qword [r15 + 0x98], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x69], xmm0
mov qword [rbp - 0x59], rbx
or r14d, 2
mov dword [rbp - 0x71], r14d
mov qword [rsp + 0x38], rbx
lea r9, [rbp - 0x79]
lea r8, [rsp + 0x38]
mov rdx, rbx
lea rcx, [rbp - 0x69]
call fcn.140013ec0
lea rdx, [rbp - 0x19]
mov rcx, qword [r15 + 0x88]
call fcn.140001080
mov rsi, rax
mov rax, qword [rax + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x14000190d
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], 2
lea r9, [rsp + 0x31]
lea r8, [rsp + 0x30]
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x69]
call fcn.140013ec0
lea r9, [rbp - 0x79]
lea r8, [rsp + 0x38]
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x69]
call fcn.140013ec0
mov rax, qword [rsp + 0x38]
lea r9, [rsi + rax*2]
mov r8, rsi
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x69]
call fcn.140013ec0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x14000199e
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001999
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001e68
call fcn.140017530
lea rdx, [rbp - 0x19]
mov rcx, qword [r15 + 0x90]
call fcn.140001080
mov rsi, rax
mov rax, qword [rax + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x1400019bf
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], 2
lea r9, [rsp + 0x31]
lea r8, [rsp + 0x30]
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x69]
call fcn.140013ec0
lea r9, [rbp - 0x79]
lea r8, [rsp + 0x38]
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x69]
call fcn.140013ec0
mov rax, qword [rsp + 0x38]
lea r9, [rsi + rax*2]
mov r8, rsi
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x69]
call fcn.140013ec0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140001a50
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001a4b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001e6e
call fcn.140017530
cmp byte [r15 + 0x38], 0
je 0x140001b0d
lea rdx, [rbp - 0x19]
mov rcx, qword [r15 + 0x98]
call fcn.140001080
mov rsi, rax
mov rax, qword [rax + 0x10]
cmp qword [rsi + 0x18], 8
jb 0x140001a7c
mov rsi, qword [rsi]
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x30], 2
lea r9, [rsp + 0x31]
lea r8, [rsp + 0x30]
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x69]
call fcn.140013ec0
lea r9, [rbp - 0x79]
lea r8, [rsp + 0x38]
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x69]
call fcn.140013ec0
mov rax, qword [rsp + 0x38]
lea r9, [rsi + rax*2]
mov r8, rsi
mov rdx, qword [rbp - 0x61]
lea rcx, [rbp - 0x69]
call fcn.140013ec0
nop
mov rdx, qword [rbp - 1]
cmp rdx, 8
jb 0x140001b0d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001b08
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001e74
call fcn.140017530
mov r14, qword [rbp - 0x61]
mov rsi, qword [rbp - 0x69]
sub r14, rsi
mov qword [rbp - 0x79], r14
cmp r14, 8
jb 0x140001deb
mov r8d, 8
lea rdx, [rbp - 0x79]
mov rcx, rsi
call fcn.14001b450
mov rcx, qword [r15 + 0x80]
test byte [rcx + 0x48], 2
je 0x140001e7a
add rcx, 0x78
mov r8, r14
mov rdx, rsi
call fcn.140004db0
nop
test rsi, rsi
je 0x140001b92
mov rdx, qword [rbp - 0x59]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x140001b8a
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001e93
mov rcx, rsi
call fcn.140017530
mov qword [rsp + 0x38], rbx
mov ecx, 0x60
call fcn.1400174f4
mov r14, rax
mov qword [rbp - 0x79], rax
movzx edx, byte [r15 + 0x39]
mov rcx, qword [r15 + 0x90]
mov qword [rax], rcx
mov qword [rax + 8], rbx
mov dword [rax + 0x10], ebx
mov byte [rax + 0x14], 1
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbx
mov qword [rax + 0x28], rbx
mov byte [rax + 0x30], 0
mov dword [rax + 0x34], 0xffffffff
mov qword [rax + 0x48], rbx
mov qword [rax + 0x50], 0xf
mov byte [rax + 0x38], 0
mov byte [rax + 0x58], dl
movzx eax, byte [rsp + 0x31]
mov byte [r14 + 0x59], al
mov byte [r14 + 0x5a], 0
mov qword [rsp + 0x38], r14
mov ecx, 0x88
call fcn.1400174f4
mov qword [rbp - 0x49], rax
mov esi, dword [rbp - 0x51]
mov dword [rbp - 0x71], esi
mov qword [rsp + 0x38], rbx
mov qword [rbp - 0x79], r14
lea rcx, [rbp - 0x71]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x79]
mov r8, rdi
mov rdx, r13
mov rcx, rax
call fcn.14000f8c0
nop
mov rdx, qword [r15 + 0x68]
mov qword [r15 + 0x68], rax
test rdx, rdx
je 0x140001c4a
call fcn.140004920
cmp byte [r15 + 0x38], 0
je 0x140001d09
mov qword [rbp - 0x79], rbx
mov ecx, 0x60
call fcn.1400174f4
mov r14, rax
mov qword [rbp - 0x49], rax
movzx edx, byte [r15 + 0x39]
mov rcx, qword [r15 + 0x98]
mov qword [rax], rcx
mov qword [rax + 8], rbx
mov dword [rax + 0x10], ebx
mov byte [rax + 0x14], 1
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbx
mov qword [rax + 0x28], rbx
mov byte [rax + 0x30], 0
mov dword [rax + 0x34], 0xffffffff
mov qword [rax + 0x48], rbx
mov qword [rax + 0x50], 0xf
mov byte [rax + 0x38], 0
mov byte [rax + 0x58], dl
movzx eax, byte [rsp + 0x31]
mov byte [r14 + 0x59], al
mov byte [r14 + 0x5a], 0
mov qword [rbp - 0x79], r14
mov ecx, 0x88
call fcn.1400174f4
mov qword [rbp - 0x49], rax
mov dword [rbp - 0x71], esi
mov qword [rbp - 0x79], rbx
mov qword [rbp - 0x51], r14
lea rcx, [rbp - 0x71]
mov qword [rsp + 0x20], rcx
lea r9, [rbp - 0x51]
mov r8, qword [r15 + 0x78]
mov rdx, r13
mov rcx, rax
call fcn.14000f8c0
nop
mov rdx, qword [r15 + 0x70]
mov qword [r15 + 0x70], rax
test rdx, rdx
je 0x140001d09
call fcn.140004920
nop
cmp qword [r12 + 0x18], 8
jb 0x140001d15
mov r12, qword [r12]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
test eax, eax
jne 0x140001d2e
lea rcx, str.SetConsoleTitleW_failed
call fcn.1400146a0
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
mov ecx, pe_nt_image_headers64
call fcn.1400174f4
mov qword [rbp - 0x49], rax
mov qword [rsp + 0x20], r13
lea r9, [r15 + 0x30]
mov r8d, dword [r15 + 0x3c]
mov rdx, rbx
mov rcx, rax
call fcn.140008380
nop
mov rdx, qword [r15 + 0xa8]
mov qword [r15 + 0xa8], rax
test rdx, rdx
je 0x140001d7b
call fcn.140004880
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov edx, 1
lea rcx, [0x140001180]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov dword [r15 + 0x28], 0x19
test rdi, rdi
je 0x140001dc1
cmp byte [rdi + 8], 0
je 0x140001db3
mov rcx, qword [rdi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 0x10
mov rcx, rdi
call fcn.140017530
nop
mov rax, r15
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1400174d0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, str.pos___m_buf.size____len___m_buf.size_____pos
mov edx, 0x2e
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_shared_buffer.cc
call fcn.140017100
nop
lea r8, str.initialCols___1__initialRows___1
mov edx, 0x9c
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_agent.cc
call fcn.140017100
nop
lea r8, str.m_hwnd___nullptr
mov edx, 0x27
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agentwin32console.cc
call fcn.140017100
nop
lea r8, str.conout___INVALID_HANDLE_VALUE
mov edx, 0x36
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agentwin32consolebuffer.cc
call fcn.140017100
int3
lea r8, str.m_openMode__OpenMode::Reading
mov edx, 0x13a
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_namedpipe.cc
call fcn.140017100
nop
call fcn.14001bb5c
int3
call fcn.14001bb5c
int3
call fcn.14001bb5c
int3
lea r8, str.m_openMode__OpenMode::Writing
mov edx, 0x129
lea rcx, str.d:mouxxuk8reloaded_release_app_node_modules_node_ptydepswinpty_src_agent_namedpipe.cc
call fcn.140017100
nop
call fcn.14001bb5c
int3