Function at 0x140064510
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.140064350
nop
mov dword [rbp + 0xc0], 1
mov r8d, 4
lea rdx, [0x140162da0]
mov rcx, r15
call fcn.140057ef0
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, [0x14022c338]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x14022c170], eax
cmp eax, 0xffffffff
jne 0x1400645f3
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.140057e90
lea rcx, [rdi + 0x60]
call fcn.1400644a0
lea rcx, [rdi + 0x40]
call fcn.140057e90
lea rcx, [rdi + 0x20]
call fcn.140057e90
mov rcx, rdi
call fcn.140057e90
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.140063650
nop
cmp qword [rax + 0x18], 0xf
jbe 0x14006460b
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 0x140064630
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14005c1a0
mov ebx, r13d
mov r12d, 0x1000
cmp qword [rsp + 0x30], rbx
jbe 0x14006469f
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 0x1400646d8
add ebx, eax
movsxd rcx, ebx
cmp rcx, qword [rsp + 0x30]
jb 0x140064660
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400646e1
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, r12
jb 0x1400646dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400646dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov bl, 1
jmp 0x1400646a1
call fcn.140112348
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], socket
mov byte [rsp + 0x20], r13b
lea rcx, [rsp + 0x40]
call fcn.140057e90
test bl, bl
je 0x140064710
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x1400645ad
lea r13, [rdi + 0xa0]
mov rdx, r13
cmp qword [r13 + 0x18], 0xf
jbe 0x140064725
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 0x140064740
mov r8, rsi
lea rcx, [rsp + 0x20]
call fcn.14005c1a0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x1400647a0
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 0x1400647d9
add ebx, eax
movsxd rdx, ebx
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jb 0x140064761
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x1400647e2
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, r12
jb 0x1400647dd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400647dd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov bl, 1
jmp 0x1400647a2
call fcn.140112348
test bl, bl
je 0x1400647f8
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, r13
jmp 0x1400645b4
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x30], 0
mov ecx, 0x1000027
call fcn.140111ffc
test rax, rax
je 0x140064c6f
lea r12, [rax + 0x27]
and r12, 0xffffffffffffffe0
mov qword [r12 - 8], rax
mov qword [rsp + 0x20], r12
lea rbx, [r12 + 0x1000000]
mov qword [rsp + 0x30], rbx
xor edx, edx
mov r8d, 0x1000000
mov rcx, r12
call sub.VCRUNTIME140.dll_memset
mov qword [rsp + 0x28], 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.14005c1a0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.140063b20
mov rdx, rax
mov rcx, r15
call fcn.140064c90
lea rcx, [rbp + 0x38]
call fcn.140057e90
lea rcx, [rbp - 8]
call fcn.1400644a0
lea rcx, [rbp - 0x28]
call fcn.140057e90
lea rcx, [rbp - 0x48]
call fcn.140057e90
lea rcx, [rbp - 0x68]
call fcn.140057e90
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140064912
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14006490d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006490d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140112348
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], recvfrom
mov qword [rsp + 0x58], socket
movsd xmm0, qword [0x140162da8]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x140162db0]
mov dword [rsp + 0x48], eax
movzx eax, word [0x140162db4]
mov word [rsp + 0x4c], ax
mov byte [rsp + 0x4e], 0
xor ecx, ecx
movabs rdx, 0x100000001b3
movabs r9, 0xcbf29ce484222325
nop dword [rax + rax]
movzx eax, byte [rsp + rcx + 0x40]
xor r9, rax
imul r9, rdx
inc rcx
cmp rcx, 0xe
jb 0x140064970
lea r8, [rsp + 0x40]
lea rdx, [rbp - 0x80]
lea rcx, [r15 + 0x60]
call fcn.14009b0d0
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x1400649bb
cmp rdx, qword [r15 + 0x68]
je 0x1400649bb
add rdx, 0x30
lea rcx, [rsp + 0x60]
call fcn.14008c830
mov rax, qword [rsp + 0x70]
jmp 0x1400649d7
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], socket
mov byte [rsp + 0x60], al
mov dword [rbp + 0xc0], 3
cmp qword [r15 + 0xb0], 0
ja 0x140064bd4
test rax, rax
je 0x140064bd4
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 0x140064a48
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 0x140064a5b
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 [rbp - 0x80], xmm0
xor r13d, r13d
mov qword [rbp - 0x70], r13
test eax, eax
je 0x140064ae0
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140064c7c
cmp rbx, 0x1000
jb 0x140064ab6
lea rcx, [r15 + 0x27]
cmp rcx, rbx
jbe 0x140064c76
call fcn.140111ffc
test rax, rax
je 0x140064bb6
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140064ac1
mov rcx, rbx
call fcn.140111ffc
mov rsi, rax
mov qword [rbp - 0x80], rsi
lea r13, [rsi + r15]
mov qword [rbp - 0x70], r13
mov r8, rbx
xor edx, edx
mov rcx, rsi
call sub.VCRUNTIME140.dll_memset
mov qword [rbp - 0x78], r13
jmp 0x140064ae4
mov rsi, qword [rbp - 0x80]
xor ebx, ebx
test r15d, r15d
jle 0x140064b13
nop dword [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 0x140064b13
add ebx, eax
cmp ebx, r15d
jl 0x140064af0
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.14005c1a0
mov r15, qword [rbp + 0xb0]
lea rcx, [r15 + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.14008c7a0
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140064b8d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064b87
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064b87
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140112348
nop
test rsi, rsi
je 0x140064bc8
sub r13, rsi
mov rax, rsi
cmp r13, 0x1000
jb 0x140064bbd
add r13, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064bbd
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.140112348
lea r13, [rdi + 0xa0]
mov rbx, qword [rsp + 0x30]
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rdx, qword [rsp + 0x78]
cmp rdx, 0xf
jbe 0x140064c1e
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064c19
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064c19
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140112348
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], socket
mov byte [rsp + 0x60], 0
sub rbx, r12
cmp rbx, 0x1000
jb 0x140064c5b
add rbx, 0x27
mov rcx, qword [r12 - 8]
sub r12, rcx
lea rax, [r12 - 8]
cmp rax, 0x1f
ja 0x140064c6f
mov r12, rcx
mov rdx, rbx
mov rcx, r12
call fcn.140112348
nop
mov rcx, r13
jmp 0x1400645b4
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14000b780
int3
call fcn.14008fdd0
int3