Function at 0x140038550
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0xc8]
sub rsp, 0x1a0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140283aa8]
xor rax, rsp
mov qword [rbp + 0x90], rax
mov r15, rcx
mov dword [rsp + 0x30], 0
mov edx, reloc.WS2_32.dll_recv
mov rax, qword gs:[0x58]
mov rcx, qword [rax]
mov eax, dword [rdx + rcx]
cmp dword [0x14028cb88], eax
jle 0x1400385ea
lea rcx, [0x14028cb88]
call fcn.1401aaf5c
cmp dword [0x14028cb88], 0xffffffff
jne 0x1400385ea
call fcn.1400381e0
lea rcx, [0x1401b5810]
call fcn.1401ab384
nop
lea rcx, [0x14028cb88]
call fcn.1401aaefc
lea rdi, [0x14028cc20]
mov qword [rsp + 0x50], rdi
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14003860c
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
xor r14d, r14d
mov r8, r15
lea rdx, [rsp + 0x30]
lea rcx, [0x14028cc70]
call fcn.140039470
mov rax, qword [rsp + 0x30]
cmp rax, qword [0x14028cc78]
jne 0x14003896c
xor eax, eax
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], rax
mov qword [rbp + 0x60], rax
mov qword [rbp + 0x68], rax
lea r8d, [r14 + 0x20]
mov rdx, r15
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140038979
movabs r12, 0xc6a4a7935bd1e995
mov r13d, 0xe6546b64
nop
cmp r14d, 0x800
jae 0x14003883b
inc r14d
xor eax, eax
mov qword [rbp + 0x70], rax
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], rax
mov qword [rbp + 0x88], rax
lea r9d, [rax + 0x20]
lea r8, [rbp + 0x50]
lea rcx, [rbp + 0x70]
call fcn.1400681b0
movups xmm0, xmmword [rbp + 0x70]
movups xmmword [rbp + 0x50], xmm0
movups xmm1, xmmword [rbp + 0x80]
movups xmmword [rbp + 0x60], xmm1
lea r8, [rbp + 0x50]
xor ecx, ecx
mov rax, qword [r8]
imul rax, r12
mov rdx, rax
shr rdx, 0x2f
xor rdx, rax
imul rdx, r12
xor rcx, rdx
imul rcx, r12
add rcx, r13
add r8, 8
lea rax, [rbp + 0x70]
cmp r8, rax
jne 0x1400386c2
and rcx, qword [0x14028cca0]
mov rax, rcx
add rax, rax
mov r8, qword [0x14028cc88]
mov rax, qword [r8 + rax*8]
add rcx, rcx
lea rsi, [rcx*8 + 8]
mov rdi, qword [r8 + rcx*8]
mov rbx, qword [rbp + 0x88]
mov r11, qword [rbp + 0x80]
mov r10, qword [rbp + 0x78]
mov r9, qword [rbp + 0x70]
mov rdx, qword [0x14028cc78]
cmp rdi, rdx
jne 0x14003873c
mov rcx, rdx
jmp 0x140038743
mov rcx, qword [rsi + r8]
mov rcx, qword [rcx]
cmp rax, rcx
je 0x140038791
cmp qword [rax + 0x10], r9
jne 0x140038760
cmp qword [rax + 0x18], r10
jne 0x140038760
cmp qword [rax + 0x20], r11
jne 0x140038760
cmp qword [rax + 0x28], rbx
je 0x140038765
mov rax, qword [rax]
jmp 0x140038732
cmp r9, qword [rax + 0x10]
jne 0x14003877d
cmp r10, qword [rax + 0x18]
jne 0x14003877d
cmp r11, qword [rax + 0x20]
jne 0x14003877d
cmp rbx, qword [rax + 0x28]
je 0x140038780
mov rax, rdx
cmp rax, rdx
je 0x140038791
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x40], 0
jmp 0x140038806
lea rax, [rbp + 0x50]
mov qword [rsp + 0x30], rax
mov rbx, qword [rdx]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov r8, qword [rbx + 8]
mov rdx, rbx
call fcn.14003b640
movabs rcx, 0x492492492492491
mov rdx, qword [0x14028cc80]
sub rcx, rdx
cmp rcx, 1
jb 0x140038826
inc rdx
mov qword [0x14028cc80], rdx
mov qword [rbx + 8], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rax
mov r9, qword [0x14028cc78]
mov r9, qword [r9]
lea r8, [r9 + 0x10]
lea rdx, [rsp + 0x38]
lea rcx, [0x14028cc70]
call fcn.14003b120
mov rax, qword [rsp + 0x38]
mov dword [rax + 0x30], r14d
mov r8d, 0x20
mov rdx, r15
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x140038670
jmp 0x140038834
lea rcx, str.list_T__too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
cmp r14d, 0x800
jne 0x140038972
lea rax, [0x140236330]
mov qword [rsp + 0x60], rax
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
mov dword [rsp + 0x30], 1
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x60]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64__bool____ptr64]
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], rax
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x88]
mov dword [rsp + rcx + 0x5c], edx
lea rax, [rsp + 0x68]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::constructor_void____ptr64]
nop
lea rax, vtable.std::basic_stringbuf_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + 0x68], rax
mov qword [rbp - 0x30], 0
mov dword [rbp - 0x28], 4
lea rdx, str.apparent_block_number_for
lea rcx, [rsp + 0x60]
call fcn.140022e70
mov rcx, rax
mov rdx, r15
call fcn.140039c70
mov rcx, rax
lea rdx, str._is_too_high__max_is
call fcn.140022e70
mov rcx, rax
mov edx, 0x3a98000
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64]
lea rdx, [rbp + 0x70]
lea rcx, [rsp + 0x60]
call fcn.14001e8a0
nop
cmp qword [rax + 0x18], 0x10
jb 0x140038922
mov rax, qword [rax]
lea rcx, vtable.std::exception.0
mov qword [rbp + 0x50], rcx
xor ecx, ecx
mov qword [rbp + 0x58], rcx
mov qword [rbp + 0x60], rcx
mov qword [rsp + 0x38], rax
mov byte [rsp + 0x40], 1
lea rdx, [rbp + 0x58]
lea rcx, [rsp + 0x38]
call qword [sym.imp.VCRUNTIME140.dll___std_exception_copy]
lea rax, vtable.std::invalid_argument.0
mov qword [rbp + 0x50], rax
lea rdx, [0x140271a28]
lea rcx, [rbp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
mov r14d, dword [rax + 0x30]
jmp 0x140038979
lea rdi, [0x14028cc20]
imul ebx, r14d, 0x7530
mov rcx, rdi
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test eax, eax
je 0x140038996
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
nop
mov rax, rbx
mov rcx, qword [rbp + 0x90]
xor rcx, rsp
call fcn.1401aad60
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret