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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1804c4e78]
xor rax, rsp
mov qword [rsp + 0x58], rax
movzx ebx, dl
mov r14, rcx
mov ecx, dword [0x1804deea8]
mov rax, qword gs:[0x58]
mov edx, 0x44
mov rax, qword [rax + rcx*8]
xor r15d, r15d
mov eax, dword [rdx + rax]
cmp dword [0x1804d9ae0], eax
jg 0x18021d039
lea r12, [0x1804d9ae8]
test bl, bl
je 0x18021ce4f
mov qword [rsp + 0x28], r12
mov byte [rsp + 0x30], 1
mov rcx, r12
call sub.KERNEL32.dll_AcquireSRWLockShared
nop
mov r10, qword [r14 + 0x10]
mov r8, r14
mov rbx, qword [r14 + 0x18]
cmp rbx, 8
jb 0x18021cd6b
mov r8, qword [r14]
movabs rcx, 0xcbf29ce484222325
lea r9, [r10 + r10]
mov rdx, r15
test r9, r9
je 0x18021cda4
movabs r11, 0x100000001b3
nop dword [rax + rax]
movzx eax, byte [rdx + r8]
xor rcx, rax
imul rcx, r11
inc rdx
cmp rdx, r9
jb 0x18021cd90
and rcx, qword [0x1804d9ad0]
add rcx, rcx
mov rax, qword [0x1804d9ab8]
mov r9, qword [rax + rcx*8 + 8]
mov rdi, qword [0x1804d9aa8]
cmp r9, rdi
je 0x18021ce21
mov r11, qword [rax + rcx*8]
nop word [rax + rax]
lea rcx, [r9 + 0x10]
mov rax, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x18021cde2
mov rcx, qword [rcx]
mov r8, r14
cmp rbx, 8
jb 0x18021cdee
mov r8, qword [r14]
cmp r10, rax
jne 0x18021ce16
mov rdx, r10
test r10, r10
je 0x18021ce24
sub r8, rcx
nop
movzx eax, word [r8 + rcx]
cmp ax, word [rcx]
jne 0x18021ce16
add rcx, 2
sub rdx, 1
je 0x18021ce24
jmp 0x18021ce00
cmp r9, r11
je 0x18021ce21
mov r9, qword [r9 + 8]
jmp 0x18021cdd0
mov r9, r15
mov rbx, rdi
test r9, r9
cmovne rbx, r9
cmp rbx, rdi
je 0x18021ce47
mov rbx, qword [rbx + 0x30]
mov rcx, r12
call sub.KERNEL32.dll_ReleaseSRWLockShared
mov rax, rbx
jmp 0x18021cfce
mov rcx, r12
call sub.KERNEL32.dll_ReleaseSRWLockShared
call fcn.18021d100
mov rbp, rax
test rax, rax
je 0x18021cfcc
mov edi, r15d
mov rcx, rax
call fcn.1800b54a0
test eax, eax
jle 0x18021cfcc
mov ebx, dword [0x1804c0694]
nop dword [rax]
test edi, edi
js 0x18021cfba
mov eax, edi
cmp byte [0x1804d7e49], 0
je 0x18021cec3
cdq
and edx, 0x3fff
add eax, edx
mov ecx, eax
and eax, 0x3fff
sub eax, edx
sar ecx, 0xe
movsxd rcx, ecx
mov rdx, qword [rbp + rcx*8 + 0x10]
test rdx, rdx
je 0x18021cfba
imul eax, ebx
cdqe
add rax, rdx
jmp 0x18021cef1
mov r8, qword [rbp + 0x10]
cmp byte [0x1804d7e48], 0
je 0x18021cee9
cdq
movzx edx, dx
add eax, edx
mov ecx, eax
movzx eax, ax
sub eax, edx
sar ecx, 0x10
movsxd rcx, ecx
mov rdx, qword [r8 + rcx*8]
jmp 0x18021ceb0
imul eax, ebx
cdqe
add rax, r8
test rax, rax
je 0x18021cfba
mov rsi, qword [rax]
test rsi, rsi
je 0x18021cfba
lea rdx, [rsp + 0x38]
mov rcx, rsi
call fcn.18020d730
mov r8, rax
mov rcx, r14
cmp qword [r14 + 0x18], 8
jb 0x18021cf23
mov rcx, qword [r14]
mov rdx, qword [rax + 0x10]
cmp qword [rax + 0x18], 8
jb 0x18021cf31
mov r8, qword [rax]
cmp rdx, qword [r14 + 0x10]
jne 0x18021cf58
test rdx, rdx
je 0x18021cf54
sub r8, rcx
nop
movzx eax, word [rcx + r8]
cmp ax, word [rcx]
jne 0x18021cf58
add rcx, 2
sub rdx, 1
jne 0x18021cf40
mov bl, 1
jmp 0x18021cf5a
xor bl, bl
mov rdx, qword [rsp + 0x50]
cmp rdx, 8
jb 0x18021cf9c
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x38]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18021cf97
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18021d033
call fcn.18026a1a0
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], r15w
test bl, bl
jne 0x18021cff4
mov ebx, dword [0x1804c0694]
inc edi
mov rcx, rbp
call fcn.1800b54a0
cmp edi, eax
jl 0x18021ce80
xor eax, eax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.18026ad00
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret
mov qword [rsp + 0x28], r12
mov byte [rsp + 0x30], 0
mov rcx, r12
call sub.KERNEL32.dll_AcquireSRWLockExclusive
mov byte [rsp + 0x30], 1
mov r8, r14
lea rdx, [rsp + 0x38]
lea rcx, [0x1804d9aa0]
call fcn.18021af50
mov rcx, qword [rax]
mov qword [rcx + 0x30], rsi
mov rcx, r12
call sub.KERNEL32.dll_ReleaseSRWLockExclusive
mov rax, rsi
jmp 0x18021cfce
call fcn.18028cdc8
int3
lea rcx, [0x1804d9ae0]
call fcn.18026a604
cmp dword [0x1804d9ae0], 0xffffffff
jne 0x18021cd35
mov dword [rsp + 0x20], 0
mov eax, dword [rsp + 0x20]
mov dword [0x1804d9aa0], eax
mov qword [0x1804d9aa8], r15
mov qword [0x1804d9ab0], r15
mov ecx, 0x38
call fcn.18026a164
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [0x1804d9aa8], rax
mov qword [0x1804d9ab8], r15
xorps xmm0, xmm0
movdqa xmmword [0x1804d9ac0], xmm0
mov qword [0x1804d9ad0], 7
mov qword [0x1804d9ad8], 8
mov dword [0x1804d9aa0], 0x3f800000
mov r8, qword [0x1804d9aa8]
mov edx, 0x10
lea rcx, [0x1804d9ab8]
call fcn.18001fd00
nop
lea rcx, [0x1802f04f0]
call fcn.18026a544
nop
lea rcx, [0x1804d9ae0]
call fcn.18026a598
jmp 0x18021cd35