Function at 0x18022d550
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 0x18022d7be
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.18002b5e0
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 0x18022d798
movabs rax, 0xcbf29ce484222325
movabs rbp, 0x100000001b3
nop dword [rax]
mov r8, qword [r8]
mov r10, qword [rdx + 0x20]
lea r11, [rdx + 0x10]
mov rsi, qword [rdx + 0x28]
cmp rsi, 7
jbe 0x18022d609
mov r11, qword [rdx + 0x10]
mov rcx, rax
lea rdi, [r10 + r10]
xor r9d, r9d
test rdi, rdi
je 0x18022d634
nop dword [rax + rax]
movzx eax, byte [r9 + r11]
xor rcx, rax
imul rcx, rbp
inc r9
cmp r9, rdi
jb 0x18022d620
and rcx, qword [r13 + 0x30]
shl rcx, 4
mov r15, qword [r13 + 0x18]
add r15, rcx
cmp qword [r15], rbx
jne 0x18022d654
mov qword [r15], rdx
mov qword [r15 + 8], rdx
jmp 0x18022d778
mov rax, qword [r15 + 8]
lea r9, [rax + 0x10]
mov rcx, qword [r9 + 0x10]
cmp qword [r9 + 0x18], 7
jbe 0x18022d66a
mov r9, qword [r9]
lea r11, [rdx + 0x10]
cmp rsi, 7
jbe 0x18022d678
mov r11, qword [rdx + 0x10]
cmp r10, rcx
jne 0x18022d6cc
test r10, r10
je 0x18022d69a
sub r11, r9
movzx ecx, word [r9 + r11]
cmp cx, word [r9]
jne 0x18022d6cc
add r9, 2
sub r10, 1
jne 0x18022d685
mov rcx, qword [rax]
cmp rcx, rdx
je 0x18022d6c3
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 [r15 + 8], rdx
jmp 0x18022d778
mov rsi, qword [r15]
cmp rsi, rax
je 0x18022d754
mov rbp, qword [rdx + 0x28]
mov rdi, qword [rdx + 0x20]
mov rax, qword [rax + 8]
lea rcx, [rax + 0x10]
mov r9, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 7
jbe 0x18022d6f6
mov rcx, qword [rcx]
lea r11, [rdx + 0x10]
cmp rbp, 7
jbe 0x18022d704
mov r11, qword [rdx + 0x10]
cmp rdi, r9
jne 0x18022d74f
mov r10, rdi
test rdi, rdi
je 0x18022d729
sub r11, rcx
movzx r9d, word [r11 + rcx]
cmp r9w, word [rcx]
jne 0x18022d74f
add rcx, 2
sub r10, 1
jne 0x18022d714
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 0x18022d778
cmp rsi, rax
jne 0x18022d6e0
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 [r15], rdx
mov rdx, r8
cmp r8, rbx
movabs rbp, 0x100000001b3
movabs rax, 0xcbf29ce484222325
jne 0x18022d5f0
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.18027a608
int3