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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdx, qword [rcx + 0x10]
mov rdi, rcx
add rdx, 1
mov rbx, qword [rcx + 0x38]
xorps xmm0, xmm0
js 0x140018bb9
cvtsi2ss xmm0, rdx
jmp 0x140018bce
mov rax, rdx
and edx, 1
shr rax, 1
or rax, rdx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
divss xmm0, dword [rcx]
call sub.api_ms_win_crt_private_l1_1_0.dll__o_ceilf
movss xmm1, dword [0x14004ae9c]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140018bfc
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140018bfc
movabs rax, 0x8000000000000000
mov rcx, rax
cvttss2si rax, xmm0
add rax, rcx
mov ecx, 8
cmp rax, rcx
cmova rcx, rax
cmp rbx, rcx
jae 0x140018c2a
cmp rbx, 0x200
jae 0x140018c27
shl rbx, 3
cmp rbx, rcx
jae 0x140018c2a
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140018d44
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movabs rax, 0xfffffffffffffff
mov r13, rcx
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rdx, rax
ja 0x140018fb8
mov rbx, qword [r13 + 8]
lea rax, [rdx - 1]
or rax, 1
mov edi, 1
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [r13 + 0x18]
lea rdx, [rdi + rdi]
call fcn.14000ee88
lea rax, [rdi - 1]
mov qword [r13 + 0x38], rdi
mov qword [r13 + 0x30], rax
mov rax, qword [r13 + 8]
mov rax, qword [rax]
mov rcx, rax
cmp rax, rbx
je 0x140018f9a
mov rcx, qword [rcx]
lea r10, [rax + 0x10]
cmp qword [r10 + 0x18], 8
mov r11, r10
mov r15, qword [r10 + 0x10]
jb 0x140018de3
mov r11, qword [r10]
lea rdi, [r15 + r15]
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdi, rdi
je 0x140018e17
movzx edx, byte [r9 + r11]
movabs rsi, 0x100000001b3
xor r8, rdx
inc r9
imul r8, rsi
cmp r9, rdi
jb 0x140018df9
mov r11, qword [r13 + 0x30]
mov r14, qword [r13 + 0x18]
and r11, r8
add r11, r11
cmp qword [r14 + r11*8], rbx
jne 0x140018e39
mov qword [r14 + r11*8], rax
mov qword [r14 + r11*8 + 8], rax
jmp 0x140018f8e
mov rdx, qword [r14 + r11*8 + 8]
lea r8, [rdx + 0x10]
cmp qword [r8 + 0x18], 8
mov r9, qword [r8 + 0x10]
jb 0x140018e50
mov r8, qword [r8]
cmp qword [r10 + 0x18], 8
mov rsi, r10
jb 0x140018e5d
mov rsi, qword [r10]
cmp r15, r9
jne 0x140018ea5
mov rbp, r15
test r15, r15
je 0x140018f11
movzx r9d, word [rsi]
movzx edi, word [r8]
cmp r9w, di
jb 0x140018ea5
sub rsi, r8
cmp r9w, di
ja 0x140018ea5
cmp rbp, 1
je 0x140018f11
add r8, 2
dec rbp
movzx r9d, word [r8 + rsi]
movzx edi, word [r8]
cmp r9w, di
jae 0x140018e83
cmp qword [r14 + r11*8], rdx
je 0x140018f69
mov rdx, qword [rdx + 8]
lea r8, [rdx + 0x10]
cmp qword [r8 + 0x18], 8
mov rdi, qword [r8 + 0x10]
jb 0x140018ec5
mov r8, qword [r8]
cmp qword [r10 + 0x18], 8
mov r9, r10
jb 0x140018ed2
mov r9, qword [r10]
cmp r15, rdi
jne 0x140018ea5
mov rbp, r15
test r15, r15
je 0x140018f43
movzx edi, word [r9]
movzx esi, word [r8]
cmp di, si
jb 0x140018ea5
sub r9, r8
cmp di, si
ja 0x140018ea5
cmp rbp, 1
je 0x140018f43
add r8, 2
dec rbp
movzx edi, word [r8 + r9]
movzx esi, word [r8]
cmp di, si
jae 0x140018ef2
jmp 0x140018ea5
mov r10, qword [rdx]
cmp r10, rax
je 0x140018e2f
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140018e2f
mov r10, qword [rdx]
mov r9, qword [rax + 8]
mov qword [r9], rcx
mov r8, qword [rcx + 8]
mov qword [r8], r10
mov rdx, qword [r10 + 8]
mov qword [rdx], rax
mov qword [r10 + 8], r8
mov qword [rcx + 8], r9
mov qword [rax + 8], rdx
jmp 0x140018f8e
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rax
mov qword [rdx + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], r8
mov qword [r14 + r11*8], rax
mov rax, rcx
cmp rcx, rbx
jne 0x140018dcb
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
lea rcx, str.invalid_hash_bucket_count
call fcn.140011b38
int3