Function at 0x140005290
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x60]
sub rsp, 0x160
mov rax, qword [0x1400880c0]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rdi, rdx
mov qword [rsp + 0x40], rdx
xor esi, esi
mov dword [rsp + 0x24], esi
movaps xmm0, xmm2
call qword [sym.imp.api_ms_win_crt_math_l1_1_0.dll_round]
cvttsd2si ebx, xmm0
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x140070260]
mov qword [rsp + 0x50], rax
lea rax, [0x140070268]
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 + 0x24], 2
xor r8d, r8d
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x50]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::constructor_class_std::basic_streambuf_char__struct_std::char_traits_char______ptr64____ptr64]
nop
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea r14, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x50], r14
mov rax, qword [rsp + 0x50]
movsxd rcx, dword [rax + 4]
lea r8d, [rcx - 0x98]
mov dword [rsp + rcx + 0x4c], r8d
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]
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], rsi
mov dword [rbp - 0x28], esi
mov edx, ebx
lea rcx, [rsp + 0x60]
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___int____ptr64]
mov r10, rax
mov eax, dword [0x140070270]
mov dword [rsp + 0x20], eax
cmp byte [0x140070273], sil
je 0x140005450
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x14000540f
movdqa xmm3, xmmword [0x140070b30]
movdqa xmm2, xmm3
punpckldq xmm2, xmm3
pmuldq xmm2, xmmword [0x140070b90]
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmmword [0x140070b90]
shufps xmm2, xmm0, 0xdd
psrad xmm2, 4
movdqa xmm0, xmm2
psrld xmm0, 0x1f
paddd xmm0, xmm2
pmulld xmm0, xmmword [0x140070b50]
psubd xmm3, xmm0
andps xmm3, xmmword [0x140070b60]
packuswb xmm3, xmm3
packuswb xmm3, xmm3
paddb xmm3, xmmword [0x140070b80]
movd xmm0, eax
xorps xmm3, xmm0
movd dword [rsp + 0x20], xmm3
jmp 0x140005450
lea r9, [rsp + 0x20]
mov r8d, esi
nop word [rax + rax]
mov eax, 0x5397829d
imul r8d
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x31
movzx eax, r8b
sub al, cl
add al, 0x35
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 4
jl 0x140005420
lea rdx, [rsp + 0x20]
mov rcx, r10
call fcn.1400012a0
nop
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
mov qword [rdi + 0x18], reloc.WS2_32.dll_ntohs
mov byte [rdi], 0
mov dword [rsp + 0x24], 0xa
movups xmmword [rsp + 0x28], xmm0
mov ecx, dword [rbp - 0x28]
mov eax, ecx
and al, 0x22
cmp al, 2
je 0x1400054d3
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
test rax, rax
je 0x1400054d0
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbase_void_const___ptr64]
mov rsi, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov rbx, rax
cmp rax, qword [rbp - 0x30]
cmovb rbx, qword [rbp - 0x30]
sub rbx, rsi
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::epptr_void_const___ptr64]
jmp 0x140005513
mov ecx, dword [rbp - 0x28]
test cl, 4
jne 0x140005509
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::gptr_void_const___ptr64]
test rax, rax
je 0x140005509
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::eback_void_const___ptr64]
mov rsi, rax
lea rcx, [rsp + 0x68]
call qword [sym.imp.MSVCP140.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::egptr_void_const___ptr64]
mov rbx, rax
sub rbx, rsi
jmp 0x140005513
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x28]
test rsi, rsi
je 0x140005527
mov r8, rbx
mov rdx, rsi
mov rcx, rdi
call fcn.14001ce60
nop
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
mov qword [rsp + rdx + 0x50], r14
mov rcx, qword [rsp + 0x50]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rsp + rdx + 0x4c], r8d
lea rcx, [rsp + 0x68]
call fcn.140004d90
lea rcx, [rsp + 0x70]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_iostream_char__struct_std::char_traits_char__::destructor_void____ptr64]
lea rcx, [rbp - 0x18]
call qword [sym.imp.MSVCP140.dll_public_virtual:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::destructor_void____ptr64]
mov rax, rdi
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.14006d500
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret