Function at 0x140065370
Capabilities:
Connect socket
Encode data using xor
Hash data using fnv
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x68]
sub rsp, 0x168
mov rdi, rdx
mov r15, rcx
mov dword [rbp + 0xc0], 1
call fcn.1400651b0
nop
mov dword [rbp + 0xc0], 1
mov r8d, 4
lea rdx, [0x140169ec8]
mov rcx, r15
call fcn.140058ce0
mov edx, 1
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov r14, rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x140234328]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x140234120], eax
cmp eax, 0xffffffff
jne 0x140065453
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
call qword [sym.imp.WS2_32.dll_WSACleanup]
nop
lea rcx, [rdi + 0xa0]
call fcn.140008910
lea rcx, [rdi + 0x60]
call fcn.140065300
lea rcx, [rdi + 0x40]
call fcn.140008910
lea rcx, [rdi + 0x20]
call fcn.140008910
mov rcx, rdi
call fcn.140008910
mov rax, r15
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret
lea rdx, [rsp + 0x40]
mov rcx, rdi
call fcn.1400644b0
nop
cmp qword [rax + 0x18], 0xf
jbe 0x14006546b
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor r13d, r13d
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], r13
mov rsi, 0xffffffffffffffff
mov r8, rsi
nop word [rax + rax]
inc r8
cmp byte [rax + r8], r13b
jne 0x140065490
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.140008b20
mov ebx, r13d
mov r12d, 0x1000
cmp qword [rsp + 0x30], rbx
jbe 0x1400654ff
mov rcx, r13
nop dword [rax]
mov r8d, dword [rsp + 0x30]
sub r8d, ebx
cmp r8d, r12d
cmovg r8d, r12d
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rdx, qword [rsp + 0x20]
add rdx, rcx
xor r9d, r9d
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x140065538
add ebx, eax
movsxd rcx, ebx
cmp rcx, qword [rsp + 0x30]
jb 0x1400654c0
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140065541
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, r12
jb 0x14006553c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006553c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov bl, 1
jmp 0x140065501
call fcn.14011888c
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], recv
mov byte [rsp + 0x20], r13b
lea rcx, [rsp + 0x40]
call fcn.140008910
test bl, bl
je 0x140065570
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14006540d
lea r13, [rdi + 0xa0]
mov rdx, r13
cmp qword [r13 + 0x18], 0xf
jbe 0x140065585
mov rdx, qword [r13]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor ebx, ebx
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x38], rbx
nop dword [rax]
inc rsi
cmp byte [rdx + rsi], bl
jne 0x1400655a0
mov r8, rsi
lea rcx, [rsp + 0x20]
call fcn.140008b20
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140065600
xor edx, edx
sub ecx, ebx
cmp ecx, r12d
cmovg ecx, r12d
lea rax, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rax, qword [rsp + 0x20]
add rdx, rax
xor r9d, r9d
mov r8d, ecx
mov rcx, r14
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x140065639
add ebx, eax
movsxd rdx, ebx
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jb 0x1400655c1
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140065642
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, r12
jb 0x14006563d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006563d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov bl, 1
jmp 0x140065602
call fcn.14011888c
test bl, bl
je 0x140065658
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, r13
jmp 0x140065414
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], 0
mov ecx, 0x1000027
call fcn.140118894
test rax, rax
je 0x140065ade
lea r12, [rax + 0x27]
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
mov qword [rbp - 0x80], r12
lea rbx, [r12 + 0x1000000]
mov qword [rbp - 0x70], rbx
xor edx, edx
mov r8d, 0x1000000
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x78], rbx
xor r9d, r9d
mov r8d, 0x1000000
mov rdx, r12
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
mov r8d, 0x1000000
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.140008b20
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.140064980
mov rdx, rax
mov rcx, r15
call fcn.140065b00
lea rcx, [rbp + 0x38]
call fcn.140008910
lea rcx, [rbp - 8]
call fcn.140065300
lea rcx, [rbp - 0x28]
call fcn.140008910
lea rcx, [rbp - 0x48]
call fcn.140008910
lea rcx, [rbp - 0x68]
call fcn.140008910
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x14006576d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065768
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065768
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011888c
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], recv
mov qword [rsp + 0x58], recv
movsd xmm0, qword [0x140169ed0]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x140169ed8]
mov dword [rsp + 0x48], eax
movzx eax, word [0x140169edc]
mov word [rsp + 0x4c], ax
mov byte [rsp + 0x4e], 0
xor ecx, ecx
movabs rdx, 0x100000001b3
movabs r9, 0xcbf29ce484222325
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x40]
xor r9, rax
imul r9, rdx
inc rcx
cmp rcx, 0xe
jb 0x1400657d0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
lea rcx, [r15 + 0x60]
call fcn.14009c7f0
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x14006581c
cmp rdx, qword [r15 + 0x68]
je 0x14006581c
add rdx, 0x30
lea rcx, [rsp + 0x60]
call fcn.14008e2c0
mov rax, qword [rsp + 0x70]
jmp 0x140065838
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], recv
mov byte [rsp + 0x60], al
mov dword [rbp + 0xc0], 3
cmp qword [r15 + 0xb0], 0
ja 0x140065a43
test rax, rax
je 0x140065a43
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov rsi, rax
lea rbx, [rsp + 0x60]
cmp qword [rsp + 0x78], 0xf
cmova rbx, qword [rsp + 0x60]
mov dword [rax], 0
mov r8d, 0xa
lea rdx, [rbp + 0xc8]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_strtol]
movsxd r15, eax
cmp rbx, qword [rbp + 0xc8]
jne 0x1400658a9
lea rcx, str.invalid_stoi_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [rsi], 0x22
jne 0x1400658bc
lea rcx, str.stoi_argument_out_of_range
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
int3
mov rbx, r15
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
xor r13d, r13d
mov qword [rsp + 0x30], r13
test eax, eax
je 0x140065946
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140065aeb
cmp rbx, 0x1000
jb 0x140065919
lea rcx, [r15 + 0x27]
cmp rcx, rbx
jbe 0x140065ae5
call fcn.140118894
test rax, rax
je 0x140065a26
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140065924
mov rcx, rbx
call fcn.140118894
mov rsi, rax
mov qword [rsp + 0x20], rsi
lea r13, [rsi + r15]
mov qword [rsp + 0x30], r13
mov r8, rbx
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], r13
jmp 0x14006594b
mov rsi, qword [rsp + 0x20]
xor ebx, ebx
test r15d, r15d
jle 0x140065983
nop dword [rax]
nop word [rax + rax]
mov r8d, r15d
sub r8d, ebx
movsxd rdx, ebx
add rdx, rsi
xor r9d, r9d
mov rcx, r14
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140065983
add ebx, eax
cmp ebx, r15d
jl 0x140065960
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movsxd r8, ebx
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.140008b20
mov r15, qword [rbp + 0xb0]
lea rcx, [r15 + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.14008e230
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x1400659fd
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400659f7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400659f7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011888c
nop
test rsi, rsi
je 0x140065a38
sub r13, rsi
mov rax, rsi
cmp r13, 0x1000
jb 0x140065a2d
add r13, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065a2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r13
mov rcx, rsi
call fcn.14011888c
lea r13, [rdi + 0xa0]
mov rbx, qword [rbp - 0x70]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140065a8d
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065a88
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065a88
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14011888c
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], recv
mov byte [rsp + 0x60], 0
sub rbx, r12
cmp rbx, 0x1000
jb 0x140065aca
add rbx, 0x27
mov rcx, qword [r12 - 8]
sub r12, rcx
lea rax, [r12 - 8]
cmp rax, 0x1f
ja 0x140065ade
mov r12, rcx
mov rdx, rbx
mov rcx, r12
call fcn.14011888c
nop
mov rcx, r13
jmp 0x140065414
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.140008040
int3
call fcn.140091920
int3