Function at 0x140040ee0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1400]
mov eax, 0x1500
call fcn.140053c30
sub rsp, rax
mov rax, qword [0x140068040]
xor rax, rsp
mov qword [rbp + 0x13f0], rax
mov rbx, rdx
mov rdi, rcx
mov qword [rsp + 0x50], rcx
xor r15d, r15d
mov dword [rsp + 0x20], r15d
xor edx, edx
mov r8d, 0xf8
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
lea rax, [0x14005cfe8]
mov qword [rsp + 0x60], rax
lea rax, [0x14005cef0]
mov qword [rsp + 0x70], rax
lea rcx, [rbp - 8]
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 + 0x20], 2
xor r8d, r8d
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x60]
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 + 0x60]
movsxd rcx, dword [rax + 4]
lea r12, vtable.std::basic_stringstream_char__struct_std::char_traits_char___class_std::allocator_char__.0
mov qword [rsp + rcx + 0x60], r12
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x98]
mov dword [rsp + rcx + 0x5c], edx
lea rcx, [rsp + 0x78]
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 + 0x78], rax
mov qword [rbp - 0x20], r15
mov dword [rbp - 0x18], r15d
mov r9, rbx
cmp qword [rbx + 0x18], 0xf
jbe 0x140040fd0
mov r9, qword [rbx]
movabs rcx, 0xcbf29ce484222325
mov r8, qword [rbx + 0x10]
mov rdx, r15
test r8, r8
je 0x140041004
movabs r10, 0x100000001b3
movzx eax, byte [r9 + rdx]
xor rcx, rax
imul rcx, r10
inc rdx
cmp rdx, r8
jb 0x140040ff0
movabs rax, 0x5555555555555555
mov qword [rbp + 0x13e8], rax
mov qword [rbp + 0x68], rcx
mov edx, 1
movabs r8, 0x5851f42d4c957f2d
nop dword [rax + rax]
mov rax, rcx
shr rax, 0x3e
xor rcx, rax
imul rcx, r8
add rcx, rdx
mov qword [rbp + rdx*8 + 0x68], rcx
inc rdx
cmp rdx, 0x138
jb 0x140041030
mov dword [rbp + 0x60], 0x138
mov ebx, 0xa
lea esi, [rbx + 0x36]
mov r14d, 0x80000000
lea rcx, [rbp + 0x60]
call fcn.140050ce0
mov rcx, rax
mov eax, 9
mul rcx
cmp rax, 9
jae 0x1400410a1
cmp rax, 7
jae 0x1400410a1
lea rcx, [rbp + 0x60]
call fcn.140050ce0
mov rcx, rax
mov eax, 9
mul rcx
cmp rax, 7
jb 0x140041087
mov ecx, esi
and ecx, 0x3f
shr rdx, cl
lea ecx, [rdx - 0x7fffffff]
lea eax, [rcx + r14]
lea edx, [rcx - 0x80000000]
cmp ecx, r14d
cmovae edx, eax
lea rcx, [rsp + 0x70]
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]
sub rbx, 1
jne 0x140041067
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], r15
mov qword [rdi + 0x18], 0xf
mov byte [rdi], bl
mov dword [rsp + 0x20], 0xa
movups xmmword [rsp + 0x30], xmm0
mov rcx, r15
mov edx, dword [rbp - 0x18]
mov eax, edx
and al, 0x22
cmp al, 2
je 0x140041123
mov rax, qword [rbp - 0x48]
mov rbx, qword [rax]
test rbx, rbx
je 0x140041123
mov rax, qword [rbp - 0x68]
mov r9, qword [rax]
cmp rbx, qword [rbp - 0x20]
cmovb rbx, qword [rbp - 0x20]
sub rbx, r9
mov rcx, r9
jmp 0x140041155
test dl, 4
jne 0x140041181
mov rax, qword [rbp - 0x50]
mov rdx, qword [rax]
mov rbx, r15
test rdx, rdx
je 0x140041150
mov rax, qword [rbp - 0x70]
mov r9, qword [rax]
mov rax, qword [rbp - 0x38]
movsxd rbx, dword [rax]
add rbx, rdx
sub rbx, r9
mov rcx, r9
jmp 0x140041155
mov r9, qword [rsp + 0x30]
test rcx, rcx
je 0x140041181
mov rcx, rdi
cmp rbx, 0xf
ja 0x140041178
mov qword [rdi + 0x10], rbx
mov r8, rbx
mov rdx, r9
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rdi], 0
jmp 0x140041181
mov rdx, rbx
call fcn.140050240
nop
mov rcx, qword [rsp + 0x60]
movsxd rdx, dword [rcx + 4]
mov qword [rsp + rdx + 0x60], r12
mov rcx, qword [rsp + 0x60]
movsxd rdx, dword [rcx + 4]
lea r8d, [rdx - 0x98]
mov dword [rsp + rdx + 0x5c], r8d
lea rcx, [rsp + 0x78]
call fcn.14004e940
lea rcx, [rbp - 0x80]
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 - 8]
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 + 0x13f0]
xor rcx, rsp
call fcn.140052b90
lea r11, [rsp + 0x1500]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret