Function at 0x140064780
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.1400645c0
nop
mov dword [rbp + 0xc0], 1
mov r8d, 4
lea rdx, [0x140162e58]
mov rcx, r15
call fcn.140057f10
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, [0x14022c368]
mov rcx, rax
call qword [sym.imp.WS2_32.dll_connect]
mov dword [0x14022c160], eax
cmp eax, 0xffffffff
jne 0x140064863
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.140057eb0
lea rcx, [rdi + 0x60]
call fcn.140064710
lea rcx, [rdi + 0x40]
call fcn.140057eb0
lea rcx, [rdi + 0x20]
call fcn.140057eb0
mov rcx, rdi
call fcn.140057eb0
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.1400638c0
nop
cmp qword [rax + 0x18], 0xf
jbe 0x14006487b
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 0x1400648a0
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14005c1e0
mov ebx, r13d
mov r12d, 0x1000
cmp qword [rsp + 0x30], rbx
jbe 0x14006490f
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 0x140064948
add ebx, eax
movsxd rcx, ebx
cmp rcx, qword [rsp + 0x30]
jb 0x1400648d0
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140064951
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, r12
jb 0x14006494c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14006494c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov bl, 1
jmp 0x140064911
call fcn.140111c68
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x38], send
mov byte [rsp + 0x20], r13b
lea rcx, [rsp + 0x40]
call fcn.140057eb0
test bl, bl
je 0x140064980
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
jmp 0x14006481d
lea r13, [rdi + 0xa0]
mov rdx, r13
cmp qword [r13 + 0x18], 0xf
jbe 0x140064995
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 0x1400649b0
mov r8, rsi
lea rcx, [rsp + 0x20]
call fcn.14005c1e0
mov rcx, qword [rsp + 0x30]
test rcx, rcx
je 0x140064a10
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 0x140064a49
add ebx, eax
movsxd rdx, ebx
mov rcx, qword [rsp + 0x30]
cmp rdx, rcx
jb 0x1400649d1
xor bl, bl
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140064a52
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, r12
jb 0x140064a4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064a4d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov bl, 1
jmp 0x140064a12
call fcn.140111c68
test bl, bl
je 0x140064a68
mov rcx, r14
call qword [sym.imp.WS2_32.dll_closesocket]
nop
mov rcx, r13
jmp 0x140064824
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], 0
mov ecx, 0x1000027
call fcn.14011191c
test rax, rax
je 0x140064eee
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.14005c1e0
nop
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x68]
call fcn.140063d90
mov rdx, rax
mov rcx, r15
call fcn.140064f10
lea rcx, [rbp + 0x38]
call fcn.140057eb0
lea rcx, [rbp - 8]
call fcn.140064710
lea rcx, [rbp - 0x28]
call fcn.140057eb0
lea rcx, [rbp - 0x48]
call fcn.140057eb0
lea rcx, [rbp - 0x68]
call fcn.140057eb0
nop
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140064b7d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064b78
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064b78
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140111c68
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x50], send
mov qword [rsp + 0x58], send
movsd xmm0, qword [0x140162e60]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [0x140162e68]
mov dword [rsp + 0x48], eax
movzx eax, word [0x140162e6c]
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 0x140064be0
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x20]
lea rcx, [r15 + 0x60]
call fcn.14009b1c0
mov rdx, qword [rax + 8]
test rdx, rdx
je 0x140064c2c
cmp rdx, qword [r15 + 0x68]
je 0x140064c2c
add rdx, 0x30
lea rcx, [rsp + 0x60]
call fcn.14008ce00
mov rax, qword [rsp + 0x70]
jmp 0x140064c48
xorps xmm0, xmm0
movups xmmword [rsp + 0x60], xmm0
xor eax, eax
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], send
mov byte [rsp + 0x60], al
mov dword [rbp + 0xc0], 3
cmp qword [r15 + 0xb0], 0
ja 0x140064e53
test rax, rax
je 0x140064e53
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 0x140064cb9
lea rcx, [0x1401735b8]
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
cmp dword [rsi], 0x22
jne 0x140064ccc
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 0x140064d56
movabs rax, 0x7fffffffffffffff
cmp rbx, rax
ja 0x140064efb
cmp rbx, 0x1000
jb 0x140064d29
lea rcx, [r15 + 0x27]
cmp rcx, rbx
jbe 0x140064ef5
call fcn.14011191c
test rax, rax
je 0x140064e36
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140064d34
mov rcx, rbx
call fcn.14011191c
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 0x140064d5b
mov rsi, qword [rsp + 0x20]
xor ebx, ebx
test r15d, r15d
jle 0x140064d93
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 0x140064d93
add ebx, eax
cmp ebx, r15d
jl 0x140064d70
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.14005c1e0
mov r15, qword [rbp + 0xb0]
lea rcx, [r15 + 0xa0]
lea rdx, [rsp + 0x40]
call fcn.14008cd70
mov rdx, qword [rsp + 0x58]
cmp rdx, 0xf
jbe 0x140064e0d
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064e07
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064e07
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140111c68
nop
test rsi, rsi
je 0x140064e48
sub r13, rsi
mov rax, rsi
cmp r13, 0x1000
jb 0x140064e3d
add r13, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064e3d
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.140111c68
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 0x140064e9d
inc rdx
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140064e98
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140064e98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140111c68
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], send
mov byte [rsp + 0x60], 0
sub rbx, r12
cmp rbx, 0x1000
jb 0x140064eda
add rbx, 0x27
mov rcx, qword [r12 - 8]
sub r12, rcx
lea rax, [r12 - 8]
cmp rax, 0x1f
ja 0x140064eee
mov r12, rcx
mov rdx, rbx
mov rcx, r12
call fcn.140111c68
nop
mov rcx, r13
jmp 0x140064824
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.14000b6f0
int3
call fcn.1400903b0
int3