Function at 0x18001ce70
Capabilities:
Encode data using xor
Encrypt data using rc4 prga
Hash data using djb2

Disassembly:
push rbx
push r12
sub rsp, 0x38
movabs rax, 0xfffffffffffffff
mov r12, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x18001d15a
lea rax, [rdx - 1]
mov qword [rsp + 0x50], rbp
mov rbp, qword [r12 + 8]
or rax, rbx
bsr rcx, rax
mov qword [rsp + 0x58], rsi
mov r8, rbp
inc ecx
mov qword [rsp + 0x28], r14
shl rbx, cl
lea r14, [r12 + 0x18]
mov rcx, r14
lea rdx, [rbx + rbx]
call fcn.1800169e0
lea rax, [rbx - 1]
mov qword [r12 + 0x38], rbx
mov rbx, qword [r12 + 8]
mov qword [r12 + 0x30], rax
mov rbx, qword [rbx]
mov rsi, rbx
cmp rbx, rbp
je 0x18001d143
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x20], r15
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1800a5f10]
mov rsi, qword [rsi]
add rcx, 8
mov edi, 0x1505
call fcn.18004de9c
movzx ecx, byte [rax]
inc rax
test cl, cl
je 0x18001cf56
nop word [rax + rax]
imul rdi, rdi, 0x21
movzx ecx, cl
lea rax, [rax + 1]
xor rdi, rcx
movzx ecx, byte [rax - 1]
test cl, cl
jne 0x18001cf40
mov r15, qword [r12 + 0x30]
and r15, rdi
shl r15, 4
add r15, qword [r14]
cmp qword [r15], rbp
jne 0x18001cf72
mov qword [r15], rbx
jmp 0x18001d124
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1800a5f10]
mov rdi, qword [r15 + 8]
add rcx, 8
call fcn.18004de9c
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1800a5f10]
add rcx, 8
mov r14, rax
call fcn.18004de9c
cmp r14, rax
je 0x18001d0f6
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1800a5f10]
add rcx, 8
call fcn.18004de9c
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1800a5f10]
add rcx, 8
mov r14, rax
call fcn.18004de9c
sub r14, rax
nop dword [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r14]
sub edx, ecx
jne 0x18001cff3
inc rax
test ecx, ecx
jne 0x18001cfe0
test edx, edx
je 0x18001d0f6
mov r13, rdi
cmp qword [r15], rdi
je 0x18001d0a0
nop word [rax + rax]
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1800a5f10]
mov rdi, qword [rdi + 8]
add rcx, 8
mov r13, rdi
call fcn.18004de9c
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1800a5f10]
add rcx, 8
mov r14, rax
call fcn.18004de9c
cmp r14, rax
je 0x18001d0cb
mov rcx, qword [rdi + 0x10]
lea rdx, [0x1800a5f10]
add rcx, 8
call fcn.18004de9c
mov rcx, qword [rbx + 0x10]
lea rdx, [0x1800a5f10]
add rcx, 8
mov r14, rax
call fcn.18004de9c
sub r14, rax
nop dword [rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r14]
sub edx, ecx
jne 0x18001d093
inc rax
test ecx, ecx
jne 0x18001d080
test edx, edx
je 0x18001d0cb
cmp qword [r15], rdi
jne 0x18001d010
mov rdx, qword [rbx + 8]
lea r14, [r12 + 0x18]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r13
mov rax, qword [r13 + 8]
mov qword [rax], rbx
mov qword [r13 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rbx + 8], rax
mov qword [r15], rbx
jmp 0x18001d128
mov r8, qword [rdi]
lea r14, [r12 + 0x18]
mov rdx, qword [rbx + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rbx
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rbx + 8], rax
jmp 0x18001d128
mov r8, qword [rdi]
cmp r8, rbx
je 0x18001d11f
mov rdx, qword [rbx + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rbx
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rbx + 8], rax
lea r14, [r12 + 0x18]
mov qword [r15 + 8], rbx
mov rbx, rsi
cmp rsi, rbp
jne 0x18001cf10
mov r15, qword [rsp + 0x20]
mov r13, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
mov r14, qword [rsp + 0x28]
add rsp, 0x38
pop r12
pop rbx
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.1800215a8
int3