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

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x18012c100]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rsi, rdx
mov rbp, rcx
mov qword [rsp + 0x38], rdx
mov qword [rsp + 0x20], rcx
call fcn.1800446e0
test eax, eax
jne 0x1800167d4
mov eax, dword [rbp + 0x4c]
cmp eax, 0x7fffffff
je 0x1800167c4
mov r8, qword [rbp + 0x1d8]
test r8, r8
je 0x18001669a
lea r14, [rbp + 0xf0]
add r8, 8
mov r9, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x1800165d8
mov rdx, qword [r8]
movabs rbx, 0xcbf29ce484222325
xor ecx, ecx
test r9, r9
je 0x180016613
movabs r10, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + rcx]
xor rbx, rax
imul rbx, r10
inc rcx
cmp rcx, r9
jb 0x180016600
mov r9, rbx
lea rdx, [rsp + 0x28]
mov rcx, r14
call fcn.180030d20
mov rdi, qword [rax + 8]
test rdi, rdi
je 0x18001669a
mov rcx, qword [r14 + 0x30]
and rcx, rbx
shl rcx, 4
mov rdx, qword [r14 + 0x18]
add rdx, rcx
mov rax, qword [rdx]
cmp qword [rdx + 8], rdi
jne 0x180016663
cmp rax, rdi
jne 0x180016659
mov rax, qword [r14 + 8]
mov qword [rdx], rax
mov qword [rdx + 8], rax
jmp 0x18001666e
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
jmp 0x18001666e
cmp rax, rdi
jne 0x18001666e
mov rax, qword [rdi]
mov qword [rdx], rax
mov rdx, qword [rdi]
dec qword [r14 + 0x10]
mov rax, qword [rdi + 8]
mov qword [rax], rdx
mov rax, qword [rdi + 8]
mov qword [rdx + 8], rax
lea rcx, [rdi + 0x10]
call fcn.180032d80
mov edx, 0x40
mov rcx, rdi
call fcn.180068874
mov r8, qword [rsi]
mov edi, 0xffffffff
test r8, r8
je 0x18001670d
lea rcx, [rbp + 0xf0]
add r8, 8
lea rdx, [rsp + 0x28]
call fcn.1800287a0
mov rdx, qword [rax]
mov rax, qword [rsi + 8]
test rax, rax
je 0x1800166cc
lock inc dword [rax + 8]
mov rcx, qword [rsi + 8]
mov rax, qword [rsi]
mov qword [rdx + 0x30], rax
mov rbx, qword [rdx + 0x38]
mov qword [rdx + 0x38], rcx
test rbx, rbx
je 0x18001670d
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x18001670d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x18001670d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rax, qword [rsi]
mov rcx, qword [rsi + 8]
mov qword [rsi], 0
mov qword [rsi + 8], 0
mov qword [rbp + 0x1d8], rax
mov rbx, qword [rbp + 0x1e0]
mov qword [rbp + 0x1e0], rcx
test rbx, rbx
je 0x180016767
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x180016767
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
cmp eax, 1
jne 0x180016767
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
nop
mov rcx, qword [rsp + 0x20]
call fcn.180044708
nop
mov rbx, qword [rsi + 8]
test rbx, rbx
je 0x1800167a2
mov eax, edi
lock xadd dword [rbx + 8], eax
cmp eax, 1
jne 0x1800167a2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x1800167a2
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 8]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180068380
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
dec eax
mov dword [rbp + 0x4c], eax
mov ecx, 6
call fcn.1800449f4
int3
mov ecx, 5
call fcn.1800449f4
int3