Function at 0x140012628
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 0x1400123d1
cvtsi2ss xmm0, rdx
jmp 0x1400123e6
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_math_l1_1_0.dll_ceilf
movss xmm1, dword [0x140063e10]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140012414
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140012414
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 0x140012442
cmp rbx, 0x200
jae 0x14001243f
shl rbx, 3
cmp rbx, rcx
jae 0x140012442
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140012628
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movabs rax, 0xfffffffffffffff
mov r13, rcx
bsr rcx, rax
mov eax, 1
shl rax, cl
cmp rdx, rax
jbe 0x140012668
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
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.140010eb4
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 0x140012880
mov rcx, qword [rcx]
lea r10, [rax + 0x10]
cmp qword [r10 + 0x18], 8
mov r11, r10
mov r15, qword [r10 + 0x10]
jb 0x1400126c9
mov r11, qword [r10]
lea rdi, [r15 + r15]
xor r9d, r9d
movabs r8, 0xcbf29ce484222325
test rdi, rdi
je 0x1400126fd
movzx edx, byte [r9 + r11]
movabs rsi, 0x100000001b3
xor r8, rdx
inc r9
imul r8, rsi
cmp r9, rdi
jb 0x1400126df
mov r11, qword [r13 + 0x30]
mov r14, qword [r13 + 0x18]
and r11, r8
add r11, r11
cmp qword [r14 + r11*8], rbx
jne 0x14001271f
mov qword [r14 + r11*8], rax
mov qword [r14 + r11*8 + 8], rax
jmp 0x140012874
mov rdx, qword [r14 + r11*8 + 8]
lea r8, [rdx + 0x10]
cmp qword [r8 + 0x18], 8
mov r9, qword [r8 + 0x10]
jb 0x140012736
mov r8, qword [r8]
cmp qword [r10 + 0x18], 8
mov rsi, r10
jb 0x140012743
mov rsi, qword [r10]
cmp r15, r9
jne 0x14001278b
mov rbp, r15
test r15, r15
je 0x1400127f7
movzx r9d, word [rsi]
movzx edi, word [r8]
cmp r9w, di
jb 0x14001278b
sub rsi, r8
cmp r9w, di
ja 0x14001278b
cmp rbp, 1
je 0x1400127f7
add r8, 2
dec rbp
movzx r9d, word [r8 + rsi]
movzx edi, word [r8]
cmp r9w, di
jae 0x140012769
cmp qword [r14 + r11*8], rdx
je 0x14001284f
mov rdx, qword [rdx + 8]
lea r8, [rdx + 0x10]
cmp qword [r8 + 0x18], 8
mov rdi, qword [r8 + 0x10]
jb 0x1400127ab
mov r8, qword [r8]
cmp qword [r10 + 0x18], 8
mov r9, r10
jb 0x1400127b8
mov r9, qword [r10]
cmp r15, rdi
jne 0x14001278b
mov rbp, r15
test r15, r15
je 0x140012829
movzx edi, word [r9]
movzx esi, word [r8]
cmp di, si
jb 0x14001278b
sub r9, r8
cmp di, si
ja 0x14001278b
cmp rbp, 1
je 0x140012829
add r8, 2
dec rbp
movzx edi, word [r8 + r9]
movzx esi, word [r8]
cmp di, si
jae 0x1400127d8
jmp 0x14001278b
mov r8, qword [rdx]
cmp r8, rax
je 0x140012715
mov r10, qword [rax + 8]
mov qword [r10], rcx
mov r9, qword [rcx + 8]
mov qword [r9], r8
mov rdx, qword [r8 + 8]
mov qword [rdx], rax
mov qword [r8 + 8], r9
mov qword [rcx + 8], r10
mov qword [rax + 8], rdx
jmp 0x140012715
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 0x140012874
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 0x1400126b1
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.1400128a8
mov rbx, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret