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

Disassembly:
push rdi
push r13
sub rsp, 0x48
movabs rax, 0xfffffffffffffff
mov r13, rcx
bsr rcx, rax
mov edi, 1
mov eax, edi
shl rax, cl
cmp rdx, rax
ja 0x140016468
lea rax, [rdx - 1]
mov qword [rsp + 0x70], rbx
mov rbx, qword [r13 + 8]
or rax, rdi
bsr rcx, rax
mov qword [rsp + 0x20], r15
mov r8, rbx
inc ecx
lea r15, [r13 + 0x18]
shl rdi, cl
mov rcx, r15
lea rdx, [rdi + rdi]
call fcn.1400089d0
mov qword [r13 + 0x38], rdi
lea rax, [rdi - 1]
mov qword [r13 + 0x30], rax
mov rcx, qword [r13 + 8]
mov rcx, qword [rcx]
mov rdx, rcx
cmp rcx, rbx
je 0x1400163fe
mov qword [rsp + 0x40], rbp
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x38], rsi
movabs rdi, 0x100000001b3
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r14
nop dword [rax]
nop dword [rax + rax]
mov r12, qword [rcx + 0x28]
lea r10, [rcx + 0x10]
mov rdx, qword [rdx]
mov r14, qword [rcx + 0x20]
cmp r12, 8
jb 0x140016269
mov r10, qword [rcx + 0x10]
lea r11, [r14 + r14]
xor r8d, r8d
mov r9, rax
test r11, r11
je 0x140016294
nop dword [rax + rax]
movzx eax, byte [r8 + r10]
inc r8
xor r9, rax
imul r9, rdi
cmp r8, r11
jb 0x140016280
mov r8, qword [r13 + 0x30]
mov r15, qword [r15]
and r8, r9
shl r8, 4
add r15, r8
mov rbp, qword [r15]
cmp rbp, rbx
jne 0x1400162b9
mov qword [r15], rcx
mov qword [r15 + 8], rcx
jmp 0x1400163d0
mov rax, qword [r15 + 8]
cmp qword [rax + 0x28], 8
lea r8, [rax + 0x10]
mov r9, qword [r8 + 0x10]
jb 0x1400162cf
mov r8, qword [r8]
lea rdi, [rcx + 0x10]
cmp r12, 8
jb 0x1400162dd
mov rdi, qword [rcx + 0x10]
cmp r14, r9
jne 0x140016326
mov r11, r14
test r14, r14
je 0x140016410
movzx r9d, word [rdi]
movzx r10d, word [r8]
cmp r9w, r10w
jb 0x140016326
sub rdi, r8
cmp r9w, r10w
ja 0x140016326
cmp r11, 1
je 0x140016410
movzx r9d, word [r8 + rdi + 2]
add r8, 2
dec r11
movzx r10d, word [r8]
cmp r9w, r10w
jae 0x140016303
cmp rbp, rax
je 0x1400163a2
nop dword [rax + rax]
mov rax, qword [rax + 8]
cmp qword [rax + 0x28], 8
lea r8, [rax + 0x10]
mov r9, qword [r8 + 0x10]
jb 0x140016346
mov r8, qword [r8]
lea rdi, [rcx + 0x10]
cmp r12, 8
jb 0x140016354
mov rdi, qword [rcx + 0x10]
cmp r14, r9
jne 0x14001639d
mov r11, r14
test r14, r14
je 0x14001643f
movzx r9d, word [rdi]
movzx r10d, word [r8]
cmp r9w, r10w
jb 0x14001639d
sub rdi, r8
cmp r9w, r10w
ja 0x14001639d
cmp r11, 1
je 0x14001643f
movzx r9d, word [r8 + rdi + 2]
add r8, 2
dec r11
movzx r10d, word [r8]
cmp r9w, r10w
jae 0x14001637a
cmp rbp, rax
jne 0x140016330
mov r10, qword [rcx + 8]
mov qword [r10], rdx
mov r9, qword [rdx + 8]
mov qword [r9], rax
mov r8, qword [rax + 8]
mov qword [r8], rcx
mov qword [rax + 8], r9
mov qword [rdx + 8], r10
mov qword [rcx + 8], r8
mov qword [r15], rcx
movabs rdi, 0x100000001b3
lea r15, [r13 + 0x18]
mov rcx, rdx
movabs rax, 0xcbf29ce484222325
cmp rdx, rbx
jne 0x140016250
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x20]
add rsp, 0x48
pop r13
pop rdi
ret
mov r10, qword [rax]
cmp r10, rcx
je 0x140016439
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
mov qword [r15 + 8], rcx
jmp 0x1400163c6
mov r10, qword [rax]
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rax, qword [r10 + 8]
mov qword [rax], rcx
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rcx + 8], rax
jmp 0x1400163c6
lea rcx, str.invalid_hash_bucket_count
call fcn.1400494f4
int3