Function at 0x180021c50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using fnv

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x40
mov qword [rax - 0x48], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x20], rsi
mov rdi, r9
mov rsi, r8
mov r12, rdx
mov r14, rcx
mov r15, qword [r8 + 0x10]
mov r9, r8
mov r13, qword [r8 + 0x18]
cmp r13, 8
jb 0x180021c94
mov r9, qword [r8]
movabs rdx, 0xcbf29ce484222325
lea r8, [r15 + r15]
xor ecx, ecx
test r8, r8
je 0x180021cd4
movabs r10, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rcx + r9]
xor rdx, rax
imul rdx, r10
inc rcx
cmp rcx, r8
jb 0x180021cc0
mov r11, qword [r14 + 0x30]
and r11, rdx
add r11, r11
mov rcx, qword [r14 + 0x18]
mov rbx, qword [r14 + 8]
mov rax, qword [rcx + r11*8]
cmp rbx, rax
je 0x180021da0
mov rbx, qword [rcx + r11*8 + 8]
mov rbx, qword [rbx]
nop dword [rax + rax]
cmp rbx, rax
je 0x180021da0
mov rbx, qword [rbx + 8]
lea rcx, [rbx + 0x10]
mov rdx, qword [rcx + 0x10]
cmp qword [rcx + 0x18], 8
jb 0x180021d1f
mov rcx, qword [rcx]
mov r10, rsi
cmp r13, 8
jb 0x180021d2b
mov r10, qword [rsi]
cmp r15, rdx
jne 0x180021d00
mov r9, r15
test r15, r15
je 0x180021d6d
movzx edx, word [r10]
movzx r8d, word [rcx]
cmp dx, r8w
jb 0x180021d00
sub r10, rcx
cmp dx, r8w
ja 0x180021d00
cmp r9, 1
je 0x180021d6d
dec r9
add rcx, 2
movzx edx, word [r10 + rcx]
movzx r8d, word [rcx]
cmp dx, r8w
jae 0x180021d4d
jmp 0x180021d00
mov rcx, qword [rdi + 8]
mov rax, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi]
mov rax, qword [rdi + 8]
mov qword [rcx + 8], rax
dec qword [r14 + 0x10]
mov rdx, rdi
call fcn.180021ef0
mov qword [r12], rbx
mov byte [r12 + 8], 0
mov rax, r12
jmp 0x180021ecd
mov qword [rsp + 0x80], rdi
mov rax, qword [rdi]
cmp rbx, rax
je 0x180021ddd
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov rcx, qword [rax + 8]
mov qword [rcx], rbx
mov rcx, qword [rbx + 8]
mov qword [rcx], rdi
mov rdx, qword [rbx + 8]
mov rcx, qword [rax + 8]
mov qword [rbx + 8], rcx
mov rcx, qword [rdi + 8]
mov qword [rax + 8], rcx
mov qword [rdi + 8], rdx
mov rdx, qword [r14 + 0x18]
mov rax, qword [rdx + r11*8]
cmp rax, qword [r14 + 8]
jne 0x180021dfa
mov qword [rdx + r11*8], rdi
mov rax, qword [r14 + 0x18]
mov qword [rax + r11*8 + 8], rdi
jmp 0x180021e29
cmp rax, rbx
jne 0x180021e05
mov qword [rdx + r11*8], rdi
jmp 0x180021e29
mov rax, qword [rdx + r11*8 + 8]
mov rcx, qword [rax]
mov qword [rdx + r11*8 + 8], rcx
cmp rcx, rdi
je 0x180021e29
mov rdx, qword [r14 + 0x18]
mov rax, qword [rdx + r11*8 + 8]
mov rcx, qword [rax + 8]
mov qword [rdx + r11*8 + 8], rcx
mov rax, qword [r14 + 0x10]
mov rdx, qword [r14 + 0x38]
xorps xmm0, xmm0
cvtsi2ss xmm0, rax
movss xmm1, dword [0x180084c08]
test rax, rax
jns 0x180021e4a
addss xmm0, xmm1
xorps xmm2, xmm2
cvtsi2ss xmm2, rdx
test rdx, rdx
jns 0x180021e5b
addss xmm2, xmm1
divss xmm0, xmm2
comiss xmm0, dword [r14]
jbe 0x180021ec0
cmp rdx, 0x200
jae 0x180021e78
lea rdx, [rdx*8]
jmp 0x180021e8a
movabs rax, 0xfffffffffffffff
cmp rdx, rax
jae 0x180021e8a
add rdx, rdx
mov rcx, r14
call fcn.18001c4c0
mov rax, qword [r14 + 8]
cmp qword [rax], rax
je 0x180021ec0
mov rsi, qword [rax + 8]
nop
mov rbx, qword [r14 + 8]
mov rbx, qword [rbx]
lea r8, [rbx + 0x10]
mov r9, rbx
lea rdx, [rsp + 0x28]
mov rcx, r14
call fcn.180021c50
cmp rbx, rsi
jne 0x180021ea0
mov qword [r12], rdi
mov byte [r12 + 8], 1
mov rax, r12
mov rbx, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x88]
add rsp, 0x40
pop r15
pop r14
pop r13
pop r12
pop rdi
ret