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

Disassembly:
mov qword [rsp + 8], rcx
push rsi
push r13
sub rsp, 0x48
movabs rax, 0xfffffffffffffff
mov r13, rcx
bsr rcx, rax
mov esi, 1
mov eax, esi
shl rax, cl
cmp rdx, rax
ja 0x18017e9ea
lea rax, [rdx - 1]
mov qword [rsp + 0x70], rbx
mov rdx, qword [r13 + 0x20]
or rax, rsi
bsr rcx, rax
mov qword [rsp + 0x40], rbp
mov rax, rdx
mov rbp, qword [r13 + 8]
inc ecx
shl rsi, cl
mov rcx, qword [r13 + 0x18]
sub rax, rcx
mov qword [rsp + 0x38], rdi
sar rax, 3
lea rdi, [rsi + rsi]
mov qword [rsp + 0x68], rbp
cmp rax, rdi
jae 0x18017e7e1
movabs rax, 0x1fffffffffffffff
cmp rdi, rax
ja 0x18017e9e4
lea rdi, [rdi*8]
cmp rdi, 0x1000
jb 0x18017e764
lea rcx, [rdi + 0x27]
cmp rcx, rdi
jbe 0x18017e9e4
call fcn.1801aef40
test rax, rax
je 0x18017e9f7
lea rbx, [rax + 0x27]
and rbx, 0xffffffffffffffe0
mov qword [rbx - 8], rax
jmp 0x18017e778
test rdi, rdi
je 0x18017e776
mov rcx, rdi
call fcn.1801aef40
mov rbx, rax
jmp 0x18017e778
xor ebx, ebx
mov rcx, qword [r13 + 0x18]
mov rax, qword [r13 + 0x28]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x18017e7be
lea rdx, [rax*8]
cmp rdx, 0x1000
jb 0x18017e7b9
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18017e9f7
mov rcx, r8
call fcn.1801aebc8
lea rax, [rdi + rbx]
mov qword [r13 + 0x18], rbx
mov qword [r13 + 0x20], rax
mov qword [r13 + 0x28], rax
cmp rbx, rax
je 0x18017e7eb
mov qword [rbx], rbp
add rbx, 8
cmp rbx, rax
jne 0x18017e7d3
jmp 0x18017e7eb
lea r8, [rsp + 0x68]
call fcn.1800b2700
mov qword [r13 + 0x38], rsi
lea rax, [rsi - 1]
mov qword [r13 + 0x30], rax
mov rdi, qword [r13 + 8]
mov rdi, qword [rdi]
mov rsi, rdi
cmp rdi, rbp
je 0x18017e9a7
mov qword [rsp + 0x30], r12
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x28], r14
movabs r10, 0x100000001b3
mov qword [rsp + 0x20], r15
nop dword [rax]
mov r9, qword [rdi + 0x28]
lea r8, [rdi + 0x10]
mov rsi, qword [rsi]
mov r15, qword [rdi + 0x20]
cmp r9, 0xf
jbe 0x18017e849
mov r8, qword [rdi + 0x10]
xor ecx, ecx
mov rdx, rax
test r15, r15
je 0x18017e874
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r8 + rcx]
inc rcx
xor rdx, rax
imul rdx, r10
cmp rcx, r15
jb 0x18017e860
mov rcx, qword [r13 + 0x30]
mov r13, qword [r13 + 0x18]
and rcx, rdx
shl rcx, 4
add r13, rcx
mov r12, qword [r13]
cmp r12, rbp
jne 0x18017e89c
mov qword [r13], rdi
mov qword [r13 + 8], rdi
jmp 0x18017e97d
mov rbx, qword [r13 + 8]
cmp qword [rbx + 0x28], 0xf
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jbe 0x18017e8b2
mov rdx, qword [rdx]
lea rcx, [rdi + 0x10]
cmp r9, 0xf
jbe 0x18017e8c0
mov rcx, qword [rdi + 0x10]
cmp r15, rax
jne 0x18017e904
mov r8, r15
call fcn.1801de1e0
test eax, eax
jne 0x18017e900
mov r8, qword [rbx]
cmp r8, rdi
je 0x18017e8fa
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13 + 8], rdi
jmp 0x18017e973
mov r9, qword [rdi + 0x28]
cmp r12, rbx
je 0x18017e94e
nop dword [rax]
mov rbx, qword [rbx + 8]
cmp qword [rbx + 0x28], 0xf
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
jbe 0x18017e926
mov rdx, qword [rdx]
lea rcx, [rdi + 0x10]
cmp r9, 0xf
jbe 0x18017e934
mov rcx, qword [rdi + 0x10]
cmp r15, rax
jne 0x18017e949
mov r8, r15
call fcn.1801de1e0
test eax, eax
je 0x18017e9be
mov r9, qword [rdi + 0x28]
cmp r12, rbx
jne 0x18017e910
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], rbx
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov qword [rbx + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13], rdi
movabs r10, 0x100000001b3
mov r13, qword [rsp + 0x60]
mov rdi, rsi
movabs rax, 0xcbf29ce484222325
cmp rsi, rbp
jne 0x18017e830
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x38]
add rsp, 0x48
pop r13
pop rsi
ret
mov r8, qword [rbx]
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
jmp 0x18017e973
call fcn.1800b3610
int3
lea rcx, str.invalid_hash_bucket_count
call fcn.1801ab03c
int3
call fcn.1801b5bfc
int3