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

Disassembly:
push rdi
push r15
sub rsp, 0x48
movabs rax, 0xfffffffffffffff
mov r15, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x180021a50
lea rax, [rdx - 1]
mov qword [rsp + 0x60], rbx
mov rbx, qword [r15 + 8]
or rax, rdi
bsr rcx, rax
mov r8, rbx
mov qword [rsp + 0x40], r12
inc ecx
shl rdi, cl
lea rcx, [r15 + 0x18]
lea rdx, [rdi + rdi]
call fcn.180001e40
mov qword [r15 + 0x38], rdi
lea rax, [rdi - 1]
mov qword [r15 + 0x30], rax
mov rcx, qword [r15 + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x180021a3e
mov qword [rsp + 0x68], rbp
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x38], r13
movabs r13, 0x100000001b3
mov qword [rsp + 0x30], r14
movups xmm0, xmmword [rcx + 0x10]
mov rdx, qword [rdx]
mov r8, rax
mov rax, qword [rcx + 0x18]
xor r9d, r9d
movaps xmmword [rsp + 0x20], xmm0
lea r10, [rax + rax]
test r10, r10
je 0x1800218e4
mov r11, qword [rsp + 0x20]
nop word [rax + rax]
movzx eax, byte [r9 + r11]
inc r9
xor r8, rax
imul r8, r13
cmp r9, r10
jb 0x1800218d0
and r8, qword [r15 + 0x30]
mov r14, qword [r15 + 0x18]
shl r8, 4
add r14, r8
mov rsi, qword [r14]
cmp rsi, rbx
jne 0x180021907
mov qword [r14], rcx
mov qword [r14 + 8], rcx
jmp 0x180021a14
mov rax, qword [r14 + 8]
mov r10, qword [rcx + 0x18]
mov r9, qword [rax + 0x10]
cmp r10, qword [rax + 0x18]
jne 0x180021977
test r10, r10
je 0x180021945
movq r11, xmm0
sub r11, r9
nop word [rax + rax]
movzx r8d, word [r9 + r11]
cmp r8w, word [r9]
jne 0x180021977
add r9, 2
sub r10, 1
jne 0x180021930
mov r10, qword [rax]
cmp r10, rcx
je 0x18002196e
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r14 + 8], rcx
jmp 0x180021a14
cmp rsi, rax
je 0x1800219f0
movaps xmmword [rsp + 0x20], xmm0
mov rdi, qword [rsp + 0x28]
mov rbp, qword [rsp + 0x20]
nop dword [rax + rax]
mov rax, qword [rax + 8]
mov r8, qword [rax + 0x10]
cmp rdi, qword [rax + 0x18]
jne 0x1800219eb
mov r10, rdi
test rdi, rdi
je 0x1800219c5
mov r11, rbp
sub r11, r8
nop dword [rax]
movzx r9d, word [r8 + r11]
cmp r9w, word [r8]
jne 0x1800219eb
add r8, 2
sub r10, 1
jne 0x1800219b0
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x180021a14
cmp rsi, rax
jne 0x180021990
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
mov qword [r14], rcx
mov rcx, rdx
movabs rax, 0xcbf29ce484222325
cmp rdx, rbx
jne 0x1800218a1
mov r14, qword [rsp + 0x30]
mov r13, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r12, qword [rsp + 0x40]
add rsp, 0x48
pop r15
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3