Function at 0x140002820
Capabilities:
Create reverse shell
Read pipe
Write pipe

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
sub rsp, 0x50
mov rdi, rdx
mov rsi, rcx
xor ebx, ebx
mov dword [rsp + 0x80], ebx
mov rcx, rdx
call fcn.140013b80
mov edx, eax
test eax, eax
je 0x14000296c
sub edx, 1
je 0x140002888
cmp edx, 1
je 0x140002871
mov edx, eax
lea rcx, str.Unrecognized_message__id:_d
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.1400149c0
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp 0x140003460
mov rcx, rdi
call fcn.140013b80
mov ebp, eax
mov rcx, rdi
call fcn.140013b80
mov rcx, qword [rdi + 8]
sub rcx, qword [rdi]
cmp qword [rdi + 0x18], rcx
jne 0x14000299c
mov r8d, eax
mov edx, ebp
mov rcx, rsi
call fcn.140003c70
nop
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], rbx
mov dword [rsp + 0x80], 1
mov qword [rsp + 0x88], rbx
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x88]
mov rdx, rbx
lea rcx, [rsp + 0x30]
call fcn.1400140e0
mov r8, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
sub r8, rbx
cmp r8, 8
jb 0x140002983
mov qword [rbx], r8
mov rcx, qword [rsi + 0x80]
test byte [rcx + 0x48], 2
je 0x1400029d9
add rcx, 0x78
mov rdx, rbx
call fcn.140005870
nop
mov rdx, qword [rsp + 0x40]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x140002958
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400029f2
mov rcx, rbx
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp fcn.140017cec
mov rdx, rdi
mov rcx, rsi
mov rbx, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
jmp 0x140002a00
lea r8, str.pos___m_buf.size____len___m_buf.size_____pos
mov edx, 0x2e
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_sharedBuffer.cc
call fcn.1400178c0
nop
lea rdx, str.m_off__m_buf.size__
lea rcx, str.decode_error:__s
call fcn.1400149c0
mov qword [rsp + 0x80], rbx
lea rcx, [rsp + 0x80]
call fcn.140013b60
lea rdx, [0x1400438a0]
lea rcx, [rsp + 0x80]
call fcn.14001a240
nop
lea r8, str.m_openMode__OpenMode::Writing
mov edx, 0x129
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_agentNamedPipe.cc
call fcn.1400178c0
nop
call fcn.14001e704
int3
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x120]
sub rsp, 0x220
mov rax, qword [0x140045010]
xor rax, rsp
mov qword [rbp + 0x110], rax
mov rbx, rdx
mov r13, rcx
cmp qword [rcx + 0xb0], 0
jne 0x1400032a5
cmp byte [rcx + 0xa2], 0
jne 0x1400032be
mov r8, qword [rdx]
mov rcx, qword [rdx + 8]
sub rcx, r8
mov rdx, qword [rdx + 0x18]
cmp rdx, rcx
ja 0x1400032d7
mov rax, rcx
sub rax, rdx
cmp rax, 1
jb 0x1400032f0
movzx eax, byte [r8 + rdx]
inc rdx
mov qword [rbx + 0x18], rdx
cmp al, 1
jne 0x140003326
cmp rdx, rcx
ja 0x140003359
sub rcx, rdx
cmp rcx, 8
jb 0x140003372
mov rax, qword [rdx + r8]
mov qword [rbp - 0x40], rax
lea rax, [rdx + 8]
mov qword [rbx + 0x18], rax
mov rcx, rbx
call fcn.140013b80
test eax, eax
setne byte [rsp + 0x50]
mov rcx, rbx
call fcn.140013b80
test eax, eax
setne byte [rsp + 0x60]
lea rdx, [rbp + 0xf0]
mov rcx, rbx
call fcn.140013cb0
nop
lea rdx, [rbp + 0xd0]
mov rcx, rbx
call fcn.140013cb0
nop
lea rdx, [rbp + 0x90]
mov rcx, rbx
call fcn.140013cb0
nop
lea rdx, [rbp + 0x70]
mov rcx, rbx
call fcn.140013cb0
nop
lea rdx, [rbp + 0xb0]
mov rcx, rbx
call fcn.140013cb0
nop
mov rax, qword [rbx + 8]
sub rax, qword [rbx]
cmp qword [rbx + 0x18], rax
jne 0x1400033a8
lea rdx, [rbp + 0xd0]
lea rcx, [rbp - 0x20]
call fcn.140004eb0
nop
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 0x38]
call fcn.140004eb0
nop
lea rcx, [rbp + 0x70]
cmp qword [rbp + 0x88], 8
cmovae rcx, qword [rbp + 0x70]
mov r8, qword [rbp + 0x80]
lea r14, [rcx + r8*2]
lea rdi, [rbp + 0x70]
cmovae rdi, qword [rbp + 0x70]
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
xor esi, esi
mov r15d, esi
mov qword [rbp - 0x48], rsi
sub r14, rdi
mov rbx, r14
sar rbx, 1
je 0x140002bc4
mov rdx, rbx
lea rcx, [rbp - 0x58]
call fcn.140006010
mov r8, r14
mov rdx, rdi
mov r14, qword [rbp - 0x58]
mov rcx, r14
call fcn.14001dbe0
lea rax, [r14 + rbx*2]
mov qword [rbp - 0x50], rax
mov r8, qword [rbp + 0x80]
mov r15, qword [rbp - 0x48]
jmp 0x140002bc8
mov r14, qword [rbp - 0x58]
cmp qword [rbp + 0x100], 0
jne 0x140002bd7
mov rbx, rsi
jmp 0x140002bee
lea rbx, [rbp + 0xf0]
cmp qword [rbp + 0x108], 8
cmovae rbx, qword [rbp + 0xf0]
mov r12, qword [rbp - 0x20]
cmp qword [rbp + 0xe0], 0
cmove r12, rsi
cmp qword [rbp + 0xa0], 0
jne 0x140002c0d
mov rdi, rsi
jmp 0x140002c24
lea rdi, [rbp + 0x90]
cmp qword [rbp + 0xa8], 8
cmovae rdi, qword [rbp + 0x90]
mov rax, r14
test r8, r8
cmove rax, rsi
mov qword [rsp + 0x58], rax
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
movups xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rax
mov dword [rbp], 0x68
mov rax, qword [rbp - 0x38]
cmp qword [rbp + 0xc0], 0
cmove rax, rsi
mov qword [rbp + 0x10], rax
mov ecx, esi
cmp byte [r13 + 0x38], cl
je 0x140002cbb
mov dword [rsp + 0x68], 1
or dword [rbp + 0x3c], 0x100
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 0x50], rax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov qword [rbp + 0x58], rax
mov rax, qword [r13 + 0x78]
mov r8, qword [rax]
mov qword [rbp + 0x60], r8
mov ecx, dword [rsp + 0x68]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x400
mov dword [rsp + 0x20], ecx
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebx, eax
test eax, eax
je 0x140002d04
mov edi, esi
jmp 0x140002d0c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
lea rax, str.success
lea rdx, str.fail
test ebx, ebx
cmovne rdx, rax
mov r8d, dword [rbp - 0x60]
lea rcx, str.CreateProcess:__s__u
call fcn.1400149c0
lea rcx, [rsp + 0x70]
call fcn.140001620
nop
test ebx, ebx
je 0x140002ecd
mov qword [rbp - 0x78], rsi
mov r12, rsi
cmp byte [rsp + 0x50], r12b
je 0x140002d9e
mov rdi, qword [rbp - 0x70]
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x58]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400033de
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x78], rax
cmp byte [rsp + 0x60], r12b
je 0x140002dee
mov rdi, qword [rbp - 0x68]
mov qword [rsp + 0x58], rsi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], esi
mov dword [rsp + 0x20], esi
lea r9, [rsp + 0x58]
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x1400033f7
mov r12, qword [rsp + 0x58]
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rbp - 0x70]
mov qword [r13 + 0xb0], rax
mov rcx, qword [rbp - 0x40]
movzx eax, cl
and al, 1
mov byte [r13 + 0xa0], al
shr cl, 1
and cl, 1
mov byte [r13 + 0xa1], cl
mov dword [rsp + 0x68], 1
mov byte [rsp + 0x50], 0
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400140e0
lea r9, [rsp + 0x6c]
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400140e0
mov rax, qword [rbp - 0x78]
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x50], 1
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400140e0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x58]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400140e0
mov qword [rsp + 0x58], r12
mov byte [rsp + 0x50], 1
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400140e0
lea r9, [rsp + 0x60]
lea r8, [rsp + 0x58]
jmp 0x140002f34
mov dword [rsp + 0x68], esi
mov byte [rsp + 0x50], 0
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400140e0
lea r9, [rsp + 0x6c]
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400140e0
mov dword [rsp + 0x68], edi
mov byte [rsp + 0x50], 0
lea r9, [rsp + 0x51]
lea r8, [rsp + 0x50]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400140e0
lea r9, [rsp + 0x6c]
lea r8, [rsp + 0x68]
mov rdx, qword [rsp + 0x78]
lea rcx, [rsp + 0x70]
call fcn.1400140e0
mov rax, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x70]
sub rax, rcx
cmp rax, 8
jb 0x14000328c
mov qword [rcx], rax
mov rcx, qword [r13 + 0x80]
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsp + 0x70]
sub r8, rdx
test byte [rcx + 0x48], 2
je 0x140003410
add rcx, 0x78
call fcn.140005870
nop
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x140002fcd
mov rdx, qword [rbp - 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002fbb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003429
call fcn.140017cec
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], rsi
test r14, r14
je 0x14000300a
sub r15, r14
sar r15, 1
lea rdx, [r15 + r15]
mov rax, r14
cmp rdx, 0x1000
jb 0x140003001
add rdx, 0x27
mov r14, qword [r14 - 8]
sub rax, r14
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000342f
mov rcx, r14
call fcn.140017cec
nop
mov rcx, qword [rbp - 0x38]
test rcx, rcx
je 0x140003057
mov rax, qword [rbp - 0x28]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003046
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003435
call fcn.140017cec
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], rsi
mov rcx, qword [rbp - 0x20]
test rcx, rcx
je 0x1400030a4
mov rax, qword [rbp - 0x10]
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003093
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000343b
call fcn.140017cec
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
mov qword [rbp - 0x10], rsi
mov rdx, qword [rbp + 0xc8]
cmp rdx, 8
jb 0x1400030ea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xb0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400030e5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003441
call fcn.140017cec
mov qword [rbp + 0xc0], rsi
mov qword [rbp + 0xc8], 7
mov word [rbp + 0xb0], si
mov rdx, qword [rbp + 0x88]
cmp rdx, 8
jb 0x140003146
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003141
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003447
call fcn.140017cec
mov qword [rbp + 0x80], rsi
mov qword [rbp + 0x88], 7
mov word [rbp + 0x70], si
mov rdx, qword [rbp + 0xa8]
cmp rdx, 8
jb 0x1400031a2
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x90]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000319d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000344d
call fcn.140017cec
mov qword [rbp + 0xa0], rsi
mov qword [rbp + 0xa8], 7
mov word [rbp + 0x90], si
mov rdx, qword [rbp + 0xe8]
cmp rdx, 8
jb 0x140003201
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xd0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400031fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003453
call fcn.140017cec
mov qword [rbp + 0xe0], rsi
mov qword [rbp + 0xe8], 7
mov word [rbp + 0xd0], si
mov rdx, qword [rbp + 0x108]
cmp rdx, 8
jb 0x14000325c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0xf0]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003257
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003286
call fcn.140017cec
mov rcx, qword [rbp + 0x110]
xor rcx, rsp
call fcn.140017c90
mov rbx, qword [rsp + 0x270]
add rsp, 0x220
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.14001e704
nop
lea r8, str.pos___m_buf.size____len___m_buf.size_____pos
mov edx, 0x2e
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_sharedBuffer.cc
call fcn.1400178c0
nop
lea r8, str.m_childProcess__nullptr
mov edx, 0x160
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_agentAgent.cc
call fcn.1400178c0
int3
lea r8, str._m_closingOutputPipes
mov edx, 0x161
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_agentAgent.cc
call fcn.1400178c0
int3
lea r8, str.m_off___m_buf.size__
mov edx, 0x45
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_sharedBuffer.cc
call fcn.1400178c0
int3
lea rdx, str.len___m_buf.size_____m_off
lea rcx, str.decode_error:__s
call fcn.1400149c0
xor esi, esi
mov qword [rsp + 0x68], rsi
lea rcx, [rsp + 0x68]
call fcn.140013b60
lea rdx, [0x1400438a0]
lea rcx, [rsp + 0x68]
call fcn.14001a240
int3
lea rdx, str.getRawValue_Piece_____Piece::Int64
lea rcx, str.decode_error:__s
call fcn.1400149c0
xor esi, esi
mov qword [rbp - 0x78], rsi
lea rcx, [rbp - 0x78]
call fcn.140013b60
lea rdx, [0x1400438a0]
lea rcx, [rbp - 0x78]
call fcn.14001a240
int3
lea r8, str.m_off___m_buf.size__
mov edx, 0x45
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_sharedBuffer.cc
call fcn.1400178c0
int3
lea rdx, str.len___m_buf.size_____m_off
lea rcx, str.decode_error:__s
call fcn.1400149c0
xor esi, esi
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x58]
call fcn.140013b60
lea rdx, [0x1400438a0]
lea rcx, [rsp + 0x58]
call fcn.14001a240
nop
lea rdx, str.m_off__m_buf.size__
lea rcx, str.decode_error:__s
call fcn.1400149c0
xor esi, esi
mov qword [rsp + 0x58], rsi
lea rcx, [rsp + 0x58]
call fcn.140013b60
lea rdx, [0x1400438a0]
lea rcx, [rsp + 0x58]
call fcn.14001a240
nop
lea r8, str.false___DuplicateHandle_failed__
mov edx, 0x82
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_agentAgent.cc
call fcn.1400178c0
int3
lea r8, str.false___DuplicateHandle_failed__
mov edx, 0x82
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_agentAgent.cc
call fcn.1400178c0
int3
lea r8, str.m_openMode__OpenMode::Writing
mov edx, 0x129
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_agentNamedPipe.cc
call fcn.1400178c0
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.14001e704
nop
call fcn.14001e704
int3
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x60
mov r15, rcx
mov rax, qword [rdx + 8]
sub rax, qword [rdx]
cmp qword [rdx + 0x18], rax
jne 0x1400036b2
mov ecx, pe_nt_image_headers64
call fcn.140017cb0
mov rsi, rax
mov qword [rbp - 0x18], rax
lea rdi, [rax + 0x100]
mov qword [rbp - 8], rdi
xor edx, edx
mov r8d, pe_nt_image_headers64
mov rcx, rax
call fcn.14001a360
mov qword [rbp - 0x10], rdi
mov edx, 0x40
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
mov r14d, eax
mov ecx, eax
mov rbx, rsi
cmp r14, 0x40
jbe 0x140003530
mov rax, rdi
sub rax, rsi
sar rax, 2
cmp rcx, rax
jbe 0x1400034fb
mov edx, ecx
lea rcx, [rbp - 0x18]
call fcn.140005980
mov rdi, qword [rbp - 8]
mov rax, qword [rbp - 0x10]
mov rsi, qword [rbp - 0x18]
jmp 0x140003518
lea rbx, [r14*4 - 0x100]
mov r8, rbx
xor edx, edx
mov rcx, rdi
call fcn.14001a360
lea rax, [rbx + rdi]
mov qword [rbp - 0x10], rax
sub rax, rsi
sar rax, 2
mov edx, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetConsoleProcessList]
mov r14d, eax
mov rbx, rsi
test r14d, r14d
jne 0x140003541
lea rcx, str.GetConsoleProcessList_failed
call fcn.1400149c0
lea rcx, [rbp - 0x30]
call fcn.140001620
nop
mov dword [rbp + 0x40], r14d
mov byte [rbp + 0x38], 0
lea r9, [rbp + 0x39]
lea r8, [rbp + 0x38]
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400140e0
lea r9, [rbp + 0x44]
lea r8, [rbp + 0x40]
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400140e0
test r14d, r14d
je 0x1400035bf
mov eax, dword [rbx]
mov dword [rbp + 0x40], eax
mov byte [rbp + 0x38], 0
lea r9, [rbp + 0x39]
lea r8, [rbp + 0x38]
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400140e0
lea r9, [rbp + 0x44]
lea r8, [rbp + 0x40]
mov rdx, qword [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400140e0
lea rbx, [rbx + 4]
sub r14, 1
jne 0x140003582
mov rax, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x30]
sub rax, rcx
cmp rax, 8
jb 0x140003699
mov qword [rcx], rax
mov rcx, qword [r15 + 0x80]
mov r8, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x30]
sub r8, rdx
test byte [rcx + 0x48], 2
je 0x1400036e7
add rcx, 0x78
call fcn.140005870
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140003647
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140003632
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003700
call fcn.140017cec
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], 0
test rsi, rsi
je 0x14000367f
sub rdi, rsi
and rdi, 0xfffffffffffffffc
mov rax, rsi
cmp rdi, 0x1000
jb 0x140003674
add rdi, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140003693
mov rdx, rdi
mov rcx, rsi
call fcn.140017cec
mov rbx, qword [rsp + 0x90]
add rsp, 0x60
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
call fcn.14001e704
nop
lea r8, str.pos___m_buf.size____len___m_buf.size_____pos
mov edx, 0x2e
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_sharedBuffer.cc
call fcn.1400178c0
nop
lea rdx, str.m_off__m_buf.size__
lea rcx, str.decode_error:__s
call fcn.1400149c0
mov qword [rbp + 0x38], 0
lea rcx, [rbp + 0x38]
call fcn.140013b60
lea rdx, [0x1400438a0]
lea rcx, [rbp + 0x38]
call fcn.14001a240
nop
lea r8, str.m_openMode__OpenMode::Writing
mov edx, 0x129
lea rcx, str.D:_a_arduino_ide_arduino_ide_node_modules_node_ptydepswinpty_src_agentNamedPipe.cc
call fcn.1400178c0
nop
call fcn.14001e704
int3