Function at 0x18006dde8
Capabilities:
Connect socket
Encode data using xor
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x318]
sub rsp, 0x3f0
mov rax, qword [0x1800b13a8]
xor rax, rsp
mov qword [rbp + 0x2e0], rax
xor edi, edi
mov ecx, 0x202
lea rdx, [rbp + 0x140]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x18006de44
call qword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
jmp 0x18006e29e
xor r8d, r8d
lea edx, [r8 + 1]
lea ebx, [rdx + 1]
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
lea r8, [rbp - 0x74]
lea rdx, str.127.0.0.1
mov ecx, ebx
call qword [sym.imp.WS2_32.dll_InetPtonW]
mov word [rbp - 0x78], bx
mov ecx, 0x539
call qword [sym.imp.WS2_32.dll_htons]
mov word [rbp - 0x76], ax
lea esi, [rbx + 0xe]
mov r8d, esi
lea rdx, [rbp - 0x78]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x18006dea1
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x18006de37
call fcn.18006d924
mov rcx, qword [0x1800b34c0]
mov rdx, qword [0x1800b7b88]
movabs rax, 0x7fffffffffffffff
sub rax, rcx
cmp rax, rdx
jb 0x18006e2ce
lea r9, [0x1800b34b0]
cmp qword [0x1800b34c8], rsi
cmovae r9, qword [0x1800b34b0]
lea rax, [0x1800b7b78]
cmp qword [0x1800b7b90], rsi
cmovae rax, qword [0x1800b7b78]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rcx
lea rcx, [rsp + 0x68]
call fcn.1800899e0
nop
lea r13, [0x1800b1ba0]
mov rdx, r13
cmp qword [0x1800b1bb8], rsi
cmovae rdx, qword [0x1800b1ba0]
mov r8, qword [0x1800b1bb0]
lea rcx, [rsp + 0x68]
call fcn.18007716c
mov rbx, rax
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], rdi
mov r8d, 0x20
mov rdx, rax
lea rcx, [rsp + 0x40]
call qword [sym.imp.VCRUNTIME140.dll_memcpy]
mov qword [rbx + 0x10], rdi
mov r12d, recv
mov qword [rbx + 0x18], r12
mov byte [rbx], dil
lea rdx, [rsp + 0x40]
cmp qword [rsp + 0x58], rsi
cmovae rdx, qword [rsp + 0x40]
mov r8, qword [rsp + 0x50]
lea r15, [0x1800b6c80]
mov rcx, r15
call fcn.18007716c
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, rsi
jb 0x18006dfd5
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006dfd0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006dfd0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008e060
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], r12
mov byte [rsp + 0x40], dil
mov rdx, qword [rbp - 0x80]
cmp rdx, rsi
jb 0x18006e022
inc rdx
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006e01d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006e01d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008e060
mov r9, qword [0x1800b6c80]
mov r8, qword [0x1800b6c90]
cmp qword [0x1800b6c98], rsi
jb 0x18006e046
mov rbx, r9
lea rsi, [r9 + r8]
lea r12, [r9 + r8]
jmp 0x18006e051
lea r12, [r15 + r8]
lea rsi, [r15 + r8]
mov rbx, r15
cmp rbx, rsi
je 0x18006e0b3
movsx ecx, byte [rbx]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x18006e06b
inc rbx
cmp rbx, rsi
jne 0x18006e056
mov r8, qword [0x1800b6c90]
mov r9, qword [0x1800b6c80]
cmp rbx, rsi
je 0x18006e0b3
lea rdi, [rbx + 1]
cmp rdi, rsi
je 0x18006e0b1
movsx ecx, byte [rdi]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_isspace]
test eax, eax
jne 0x18006e09b
mov al, byte [rdi]
mov byte [rbx], al
inc rbx
inc rdi
cmp rdi, rsi
jne 0x18006e087
mov r8, qword [0x1800b6c90]
mov r9, qword [0x1800b6c80]
xor edi, edi
mov rax, r15
mov esi, reloc.WS2_32.dll_recv
cmp qword [0x1800b6c98], rsi
cmovae rax, r9
mov rdx, rbx
sub rdx, rax
sub r12, rbx
mov rax, r8
sub rax, rdx
cmp rax, r12
cmovb r12, rax
cmp qword [0x1800b6c98], rsi
cmovae r15, r9
lea rcx, [r15 + rdx]
sub r8, r12
mov qword [0x1800b6c90], r8
sub r8, rdx
inc r8
lea rdx, [rcx + r12]
call qword [sym.imp.VCRUNTIME140.dll_memmove]
xor edx, edx
lea r8d, [rsi + 0x70]
lea rcx, [rbp - 0x5c]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x60], 1
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x58], recv
mov ebx, esi
cmp qword [0x1800b1bb0], rsi
cmovb rbx, qword [0x1800b1bb0]
cmp qword [0x1800b1bb8], rsi
cmovae r13, qword [0x1800b1ba0]
lea rcx, [rsp + 0x40]
cmp rbx, 0xf
ja 0x18006e171
mov qword [rsp + 0x50], rbx
mov r8, rbx
mov rdx, r13
call qword [sym.imp.VCRUNTIME140.dll_memmove]
mov byte [rsp + rbx + 0x40], dil
jmp 0x18006e17c
mov r9, r13
mov rdx, rbx
call fcn.1800894b4
lea r8, [rsp + 0x40]
cmp qword [rsp + 0x58], rsi
cmovae r8, qword [rsp + 0x40]
mov ebx, 0x40
mov edx, ebx
lea rcx, [rbp - 0x5c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov rdx, qword [rsp + 0x58]
cmp rdx, rsi
jb 0x18006e1dc
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18006e1d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18006e1d7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18008e060
movabs rcx, 0x9e2d6c50374fcfa9
call fcn.180077f20
mov ecx, eax
call fcn.18000c050
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x1c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
xor r9d, r9d
mov ebx, 0x84
mov r8d, ebx
lea rdx, [rbp - 0x60]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
cmp eax, ebx
jne 0x18006e28d
mov ebx, 0x108
mov r8d, ebx
xor edx, edx
lea rcx, [rbp + 0x30]
call sub.VCRUNTIME140.dll_memset
xor r9d, r9d
mov r8d, ebx
lea rdx, [rbp + 0x30]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
cmp eax, ebx
jne 0x18006e28d
cmp dword [rbp + 0x30], edi
je 0x18006e28d
mov eax, 6
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0x4b2d2925
mov dword [rsp + 0x4c], 0x6d664b
mov rcx, rdi
lea eax, [rcx + 0x67]
xor byte [rsp + rcx + 0x48], al
inc rcx
mov rax, qword [rsp + 0x40]
cmp rcx, rax
jb 0x18006e26a
mov byte [rsp + rax + 0x48], dil
lea rcx, [rsp + 0x48]
call fcn.18000bb8c
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
mov al, 1
mov rcx, qword [rbp + 0x2e0]
xor rcx, rsp
call fcn.18008e040
lea r11, [rsp + 0x3f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
call fcn.18000bbdc
int3