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

Disassembly:
sub rsp, 0x38
mov rcx, qword [0x18007b650]
test rcx, rcx
je 0x18001665f
mov rax, qword [0x18007b678]
shr rax, 3
cmp rax, rcx
jbe 0x1800165ca
mov rdx, qword [0x18007b648]
mov r8, rdx
mov rdx, qword [rdx]
add rsp, 0x38
jmp 0x180016960
mov rcx, qword [0x18007b648]
mov qword [rsp + 0x30], rdi
mov rax, qword [rcx + 8]
mov qword [rax], 0
mov rdi, qword [rcx]
test rdi, rdi
je 0x180016616
mov qword [rsp + 0x40], rbx
nop
mov rbx, qword [rdi]
lea rcx, [rdi + 0x10]
call fcn.1800050f0
mov edx, 0x40
mov rcx, rdi
call fcn.18005ef14
mov rdi, rbx
test rbx, rbx
jne 0x1800165f0
mov rbx, qword [rsp + 0x40]
mov rax, qword [0x18007b648]
lea r8, [rsp + 0x20]
mov qword [rax], rax
mov rax, qword [0x18007b648]
mov qword [rax + 8], rax
mov rax, qword [0x18007b648]
mov rdx, qword [0x18007b660]
mov rcx, qword [0x18007b658]
mov qword [rsp + 0x20], rax
mov qword [0x18007b650], 0
call fcn.180004cb0
mov rdi, qword [rsp + 0x30]
add rsp, 0x38
ret
mov rax, rsp
push rbp
push r14
sub rsp, 0x58
mov rbp, r8
mov r14, rdx
cmp rdx, r8
je 0x180016b4c
cmp qword [rdx + 0x28], 0x10
lea r8, [rdx + 0x10]
mov r10, qword [0x18007b658]
mov r9, qword [r8 + 0x10]
mov qword [rax + 8], rbx
mov rbx, rdx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r13
mov qword [rax - 0x28], r15
mov rax, qword [0x18007b648]
mov qword [rsp + 0x28], rax
mov rax, qword [rdx + 8]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x30], r10
jb 0x1800169c7
mov r8, qword [r8]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
movabs r11, 0x100000001b3
test r9, r9
je 0x180016a04
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + r8]
inc rdx
xor rcx, rax
imul rcx, r11
cmp rdx, r9
jb 0x1800169f0
and rcx, qword [0x18007b670]
add rcx, rcx
mov r12, qword [r10 + rcx*8]
lea r15, [r10 + rcx*8]
mov r13, qword [r15 + 8]
nop word [rax + rax]
mov rdi, rbx
mov rsi, rbx
mov rbx, qword [rbx]
lea rcx, [rdi + 0x10]
call fcn.1800050f0
mov edx, 0x40
mov rcx, rdi
call fcn.18005ef14
dec qword [0x18007b650]
cmp rdi, r13
je 0x180016a69
cmp rbx, rbp
jne 0x180016a20
cmp r12, r14
jne 0x180016a58
mov qword [r15], rbx
mov rax, qword [rsp + 0x20]
mov qword [rax], rbx
mov qword [rbx + 8], rax
jmp 0x180016b2b
mov r13, qword [rsp + 0x20]
cmp r12, r14
mov r12, qword [rsp + 0x28]
jne 0x180016a80
mov qword [r15], r12
mov rax, r12
jmp 0x180016a83
mov rax, r13
mov qword [r15 + 8], rax
cmp rbx, rbp
je 0x180016b23
cmp qword [rbx + 0x28], 0x10
lea r8, [rbx + 0x10]
mov r9, qword [r8 + 0x10]
jb 0x180016aa2
mov r8, qword [r8]
xor edx, edx
movabs rcx, 0xcbf29ce484222325
test r9, r9
je 0x180016ad9
movabs r13, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + r8]
inc rdx
xor rcx, rax
imul rcx, r13
cmp rdx, r9
jb 0x180016ac0
mov r13, qword [rsp + 0x20]
and rcx, qword [0x18007b670]
mov r14, qword [rsp + 0x30]
shl rcx, 4
add r14, rcx
mov r15, qword [r14 + 8]
mov rdi, rbx
mov rsi, rbx
mov rbx, qword [rbx]
lea rcx, [rdi + 0x10]
call fcn.1800050f0
mov edx, 0x40
mov rcx, rdi
call fcn.18005ef14
dec qword [0x18007b650]
cmp rdi, r15
je 0x180016b57
cmp rbx, rbp
jne 0x180016af0
mov qword [r14], rbx
mov qword [r13], rbx
mov qword [rbx + 8], r13
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x80]
mov rsi, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x40]
mov rax, rbp
add rsp, 0x58
pop r14
pop rbp
ret
mov qword [r14], r12
mov qword [r14 + 8], r12
cmp rbx, rbp
jne 0x180016a90
jmp 0x180016b23