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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
mov r13, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x18021ccb5
lea rax, [rdx - 1]
or rax, rdi
bsr rcx, rax
inc ecx
shl rdi, cl
mov rbx, qword [r13 + 8]
lea rdx, [rdi + rdi]
mov r8, rbx
lea rcx, [r13 + 0x18]
call fcn.18001fd00
lea rax, [rdi - 1]
mov qword [r13 + 0x30], rax
mov qword [r13 + 0x38], rdi
mov qword [rsp + 0x58], r13
mov rdx, qword [r13 + 8]
mov rdx, qword [rdx]
mov r8, rdx
cmp rdx, rbx
je 0x18021cc8f
movabs rax, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
nop dword [rax]
mov r8, qword [r8]
mov rsi, qword [rdx + 0x20]
lea r10, [rdx + 0x10]
mov r15, qword [rdx + 0x28]
cmp r15, 8
jb 0x18021cb09
mov r10, qword [rdx + 0x10]
mov r9, rax
lea r11, [rsi + rsi]
xor ecx, ecx
test r11, r11
je 0x18021cb34
nop word [rax + rax]
movzx eax, byte [rcx + r10]
xor r9, rax
imul r9, rbp
inc rcx
cmp rcx, r11
jb 0x18021cb20
mov r14, qword [r13 + 0x30]
and r14, r9
shl r14, 4
add r14, qword [r13 + 0x18]
mov rbp, qword [r14]
cmp rbp, rbx
jne 0x18021cb57
mov qword [r14], rdx
mov qword [r14 + 8], rdx
jmp 0x18021cc6f
mov rax, qword [r14 + 8]
lea r9, [rax + 0x10]
mov rcx, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 8
jb 0x18021cb6d
mov r9, qword [r9]
lea r11, [rdx + 0x10]
cmp r15, 8
jb 0x18021cb7b
mov r11, qword [rdx + 0x10]
cmp rsi, rcx
jne 0x18021cbd7
mov r10, rsi
test rsi, rsi
je 0x18021cba5
sub r11, r9
nop dword [rax + rax]
movzx ecx, word [r9 + r11]
cmp cx, word [r9]
jne 0x18021cbd7
add r9, 2
sub r10, 1
jne 0x18021cb90
mov rcx, qword [rax]
cmp rcx, rdx
je 0x18021cbce
mov r10, qword [rdx + 8]
mov qword [r10], r8
mov r9, qword [r8 + 8]
mov qword [r9], rcx
mov rax, qword [rcx + 8]
mov qword [rax], rdx
mov qword [rcx + 8], r9
mov qword [r8 + 8], r10
mov qword [rdx + 8], rax
mov qword [r14 + 8], rdx
jmp 0x18021cc6f
cmp rbp, rax
je 0x18021cc4b
mov rax, qword [rax + 8]
lea rcx, [rax + 0x10]
mov r9, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x18021cbf2
mov rcx, qword [rcx]
lea r11, [rdx + 0x10]
cmp r15, 8
jb 0x18021cc00
mov r11, qword [rdx + 0x10]
cmp rsi, r9
jne 0x18021cbd7
mov r10, rsi
test rsi, rsi
je 0x18021cc25
sub r11, rcx
movzx r9d, word [r11 + rcx]
cmp r9w, word [rcx]
jne 0x18021cbd7
add rcx, 2
sub r10, 1
jne 0x18021cc10
mov rax, qword [rax]
mov r10, qword [rdx + 8]
mov qword [r10], r8
mov r9, qword [r8 + 8]
mov qword [r9], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdx
mov qword [rax + 8], r9
mov qword [r8 + 8], r10
mov qword [rdx + 8], rcx
jmp 0x18021cc6f
mov r10, qword [rdx + 8]
mov qword [r10], r8
mov r9, qword [r8 + 8]
mov qword [r9], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rdx
mov qword [rax + 8], r9
mov qword [r8 + 8], r10
mov qword [rdx + 8], rcx
mov qword [r14], rdx
mov rdx, r8
cmp r8, rbx
movabs rbp, 0x100000001b3
movabs rax, 0xcbf29ce484222325
jne 0x18021caf0
mov qword [rsp + 0x58], 0
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.1802657c8
int3