Function at 0x140065950
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 rsi, rdx
mov r13, rcx
mov dword [rbp + 0xc0], 1
call fcn.140065790
nop
mov dword [rbp + 0xc0], 1
mov r8d, 4
lea rdx, str.None
mov rcx, r13
call fcn.1400589d0
mov edx, 1
lea ecx, [rdx + 1]
lea r8d, [rdx + 5]
call qword [sym.imp.WS2_32.dll_socket]
mov r15, rax
mov r8d, reloc.WS2_32.dll_recv
lea rdx, [0x14021c4b8]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x14021c298], eax
cmp eax, 0xffffffff
je 0x140065f93
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140064a90
nop
cmp qword [rax + 0x18], 0xf
jbe 0x1400659f9
mov rax, qword [rax]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov r14, 0xffffffffffffffff
mov r8, r14
inc r8
cmp byte [rax + r8], dil
jne 0x140065a17
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14005cbe0
mov ebx, edi
mov r12d, 0x1000
cmp qword [rsp + 0x30], rbx
jbe 0x140065a7f
mov rcx, rdi
nop
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, r15
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x140065ab8
add ebx, eax
movsxd rcx, ebx
cmp rcx, qword [rsp + 0x30]
jb 0x140065a40
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140065ac1
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, r12
jb 0x140065abc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065abc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov bl, 1
jmp 0x140065a81
call fcn.1401203e8
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], recvfrom
mov byte [rsp + 0x20], dil
lea rcx, [rsp + 0x40]
call fcn.1400588f0
test bl, bl
jne 0x140065f93
cmp qword [rsi + 0xb0], 0
je 0x140065bd9
lea rdx, [rsi + 0xa0]
cmp qword [rsi + 0xb8], 0xf
jbe 0x140065b0c
mov rdx, qword [rsi + 0xa0]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
nop
inc r14
cmp byte [rdx + r14], 0
jne 0x140065b20
mov r8, r14
lea rcx, [rsp + 0x20]
call fcn.14005cbe0
mov ebx, edi
mov rcx, qword [rsp + 0x30]
mov r14d, 0x1000
test rcx, rcx
je 0x140065b8f
mov rdx, rdi
nop dword [rax]
sub ecx, ebx
cmp ecx, r14d
cmovg ecx, r14d
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, r15
call qword [sym.imp.WS2_32.dll_send]
test eax, eax
js 0x140065bc8
add ebx, eax
movsxd rdx, ebx
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jb 0x140065b50
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140065bd1
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, r14
jb 0x140065bcc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065bcc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov bl, 1
jmp 0x140065b91
call fcn.1401203e8
test bl, bl
jne 0x140065f93
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], rdi
mov ecx, 0x4027
call fcn.14012009c
test rax, rax
je 0x140065f8c
lea r12, [rax + 0x27]
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
mov qword [rsp + 0x20], r12
lea rbx, [r12 + 0x4000]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, 0x4000
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], rbx
xor r9d, r9d
mov r8d, 0x4000
mov rdx, r12
mov rcx, r15
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, 0x4000
mov rdx, r12
lea rcx, [rsp + 0x40]
call fcn.14005cbe0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.140064f60
mov rdx, rax
mov rcx, r13
call fcn.140065ff0
lea rcx, [rbp + 0x38]
call fcn.1400588f0
lea rcx, [rbp - 8]
call fcn.1400658e0
lea rcx, [rbp - 0x28]
call fcn.1400588f0
lea rcx, [rbp - 0x48]
call fcn.1400588f0
lea rcx, [rbp - 0x68]
call fcn.1400588f0
nop
lea rcx, [rsp + 0x40]
call fcn.1400588f0
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], recvfrom
mov qword [rsp + 0x58], recvfrom
movsd xmm0, qword [str.Content_Length]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x140160628]
mov dword [rsp + 0x48], eax
movzx eax, word [0x14016062c]
mov word [rsp + 0x4c], ax
mov byte [rsp + 0x4e], 0
movabs r9, 0xcbf29ce484222325
mov rcx, rdi
movabs rdx, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rsp + rcx + 0x40]
xor r9, rax
imul r9, rdx
inc rcx
cmp rcx, 0xe
jb 0x140065d20
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x60]
lea rcx, [r13 + 0x60]
call fcn.1400a8630
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140065d6b
cmp rdx, qword [r13 + 0x68]
je 0x140065d6b
add rdx, 0x30
lea rcx, [rsp + 0x78]
call fcn.1400998f0
mov rax, qword [rbp - 0x78]
jmp 0x140065d86
xorps xmm0, xmm0
movups xmmword [rsp + 0x78], xmm0
mov rax, rdi
mov qword [rbp - 0x78], rax
mov qword [rbp - 0x70], recvfrom
mov byte [rsp + 0x78], al
mov dword [rbp + 0xc0], 3
cmp qword [r13 + 0xb0], 0
ja 0x140065f44
test rax, rax
je 0x140065f44
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov r13, rax
lea rbx, [rsp + 0x78]
cmp qword [rbp - 0x70], 0xf
cmova rbx, qword [rsp + 0x78]
mov dword [rax], edi
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 r14, eax
cmp rbx, qword [rbp + 0xc8]
jne 0x140065df2
lea rcx, str.invalid_stoi_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [r13], 0x22
jne 0x140065e07
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, r14
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x60], xmm0
mov r13, rdi
mov qword [rsp + 0x70], rdi
test eax, eax
je 0x140065e4e
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.1400a3c20
mov r8, rbx
xor edx, edx
mov rbx, qword [rsp + 0x60]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memset
lea rax, [rbx + r14]
mov qword [rsp + 0x68], rax
mov r13, qword [rsp + 0x70]
jmp 0x140065e53
mov rbx, qword [rsp + 0x60]
test r14d, r14d
jle 0x140065e83
nop dword [rax + rax]
mov r8d, r14d
sub r8d, edi
movsxd rdx, edi
add rdx, rbx
xor r9d, r9d
mov rcx, r15
call qword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x140065e83
add edi, eax
cmp edi, r14d
jl 0x140065e60
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x50], xmm1
movsxd r8, edi
mov rdx, rbx
lea rcx, [rsp + 0x40]
call fcn.14005cbe0
mov rcx, qword [rbp + 0xb0]
add rcx, 0xa0
lea rdx, [rsp + 0x40]
call fcn.140099830
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140065efd
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065ef7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065ef7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1401203e8
nop
test rbx, rbx
je 0x140065f38
sub r13, rbx
mov rax, rbx
cmp r13, 0x1000
jb 0x140065f2d
add r13, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065f2d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rdx, r13
mov rcx, rbx
call fcn.1401203e8
mov rbx, qword [rsp + 0x30]
mov r13, qword [rbp + 0xb0]
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
nop
lea rcx, [rsp + 0x78]
call fcn.1400588f0
nop
sub rbx, r12
cmp rbx, 0x1000
jb 0x140065f7f
add rbx, 0x27
mov rcx, qword [r12 - 8]
sub r12, rcx
lea rax, [r12 - 8]
cmp rax, 0x1f
ja 0x140065f8c
mov r12, rcx
mov rdx, rbx
mov rcx, r12
call fcn.1401203e8
jmp 0x140065f9d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, r15
call qword [sym.imp.WS2_32.dll_closesocket]
nop
lea rcx, [rsi + 0xa0]
call fcn.1400588f0
lea rcx, [rsi + 0x60]
call fcn.1400658e0
lea rcx, [rsi + 0x40]
call fcn.1400588f0
lea rcx, [rsi + 0x20]
call fcn.1400588f0
mov rcx, rsi
call fcn.1400588f0
mov rax, r13
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret