Function at 0x140002010
Capabilities:
Connect pipe
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140054040]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov rdi, rcx
xor r14d, r14d
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, qword [rcx + 8]
call qword [sym.imp.KERNEL32.DLL_CreateFileA]
mov rcx, rax
mov qword [rdi], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14000247a
mov dword [rdi + 0x24], 1
cmp dword [rdi + 0x28], r14d
jne 0x1400020a1
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_ConnectNamedPipe]
mov rcx, rdi
call fcn.140001eb0
mov r8, qword [rdi + 0x10]
test r8, r8
je 0x140002499
mov dword [rsp + 0x60], r14d
lea rdx, [rsp + 0x60]
mov rcx, rdi
call fcn.140002b70
lea rdx, [rsp + 0x68]
mov rcx, rdi
call fcn.140002590
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
sub rax, rcx
sar rax, 5
cmp rax, 3
jae 0x1400020fd
lea rcx, str.Received_invalid_connection_request
call fcn.140001900
jmp 0x1400023f8
mov rbx, rcx
cmp qword [rcx + 0x18], 0xf
jbe 0x14000210a
mov rcx, qword [rcx]
mov r8, qword [rbx + 0x10]
cmp r8, 7
jne 0x1400023de
lea rdx, str.CONNECT
call fcn.14003e6f0
test eax, eax
jne 0x1400023de
lea rdx, [rbx + 0x20]
cmp qword [rdx + 0x18], 0xf
jbe 0x14000213a
mov rdx, qword [rdx]
lea rcx, str.Received_connection_request_from__s
call fcn.1400017e0
mov dword [rdi + 0x24], 2
mov r14d, 1
mov rcx, qword [rsp + 0x68]
add rcx, 0x40
cmp qword [rcx + 0x18], 0xf
jbe 0x140002166
mov rcx, qword [rcx]
call fcn.140027f98
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x70]
cmp rcx, rdx
je 0x140002189
call fcn.140012a90
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x70], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 7
lea rdx, str.CONNECT
lea rcx, [rsp + 0x40]
call fcn.140012be0
nop
mov esi, 0xf
mov rdx, qword [rsp + 0x70]
cmp rdx, qword [rsp + 0x78]
je 0x1400021e3
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov edx, esi
mov byte [rsp + 0x40], 0
add qword [rsp + 0x70], 0x20
jmp 0x1400021f7
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140013350
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14000222f
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000222a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400024a6
call fcn.14001a090
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp - 0x70]
call fcn.14003e350
mov dword [rbp - 0x80], 0x100
lea rdx, [rbp - 0x80]
lea rcx, [rbp - 0x70]
call qword [sym.imp.KERNEL32.DLL_GetComputerNameA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rbp - 0x70]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x140002274
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x40]
call fcn.140012be0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, qword [rsp + 0x78]
je 0x1400022ba
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov rdx, rsi
mov byte [rsp + 0x40], 0
add qword [rsp + 0x70], 0x20
jmp 0x1400022ce
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140013350
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140002306
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002301
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400024a6
call fcn.14001a090
mov r8d, dword [rdi + 0x18]
lea rdx, [0x14004b768]
lea rcx, [rbp - 0x70]
call fcn.140001130
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
lea rax, [rbp - 0x70]
nop
inc rbx
cmp byte [rax + rbx], 0
jne 0x140002330
mov r8, rbx
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x40]
call fcn.140012be0
nop
mov rdx, qword [rsp + 0x70]
cmp rdx, qword [rsp + 0x78]
je 0x140002375
movups xmm0, xmmword [rsp + 0x40]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rsp + 0x50]
movups xmmword [rdx + 0x10], xmm1
mov byte [rsp + 0x40], 0
add qword [rsp + 0x70], 0x20
jmp 0x140002389
lea r8, [rsp + 0x40]
lea rcx, [rsp + 0x68]
call fcn.140013350
mov rsi, qword [rsp + 0x58]
cmp rsi, 0xf
jbe 0x1400023c2
lea rdx, [rsi + 1]
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400023bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400024a6
call fcn.14001a090
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x40]
call fcn.140012010
mov rdx, rax
mov rcx, rdi
call fcn.140002e30
jmp 0x1400023ff
lea rdx, [rbx + 0x20]
cmp qword [rdx + 0x18], 0xf
jbe 0x1400023ec
mov rdx, qword [rdx]
lea rcx, str.Received_invalid_connection_request_from__s
call fcn.140001900
mov dword [rdi + 0x24], 5
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x14000244a
mov rdx, qword [rsp + 0x70]
call fcn.140012a90
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002445
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002474
call fcn.14001a090
mov eax, r14d
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.14001a070
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400271a4
nop
mov dword [rdi + 0x24], 5
mov rcx, rdi
call fcn.140001e80
mov rdx, rax
lea rcx, str.Failed_to_connect_to__s
call fcn.140001af0
int3
lea rcx, str.Buffer_is_not_allocated
call fcn.140001af0
int3
call fcn.1400271a4
int3