Function at 0x140022c4c
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
mov rdx, qword [rcx + 0x10]
mov ebp, 1
add rdx, rbp
mov rbx, qword [rcx + 0x38]
mov rsi, rcx
xorps xmm0, xmm0
js 0x140022c81
cvtsi2ss xmm0, rdx
jmp 0x140022c96
mov rax, rdx
and rdx, rbp
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 [0x1400889b8]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140022cc4
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140022cc4
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 0x140022cf2
cmp rbx, 0x200
jae 0x140022cef
shl rbx, 3
cmp rbx, rcx
jae 0x140022cf2
mov rbx, rcx
movabs rax, 0xfffffffffffffff
bsr rcx, rax
mov rax, rbp
shl rax, cl
cmp rbx, rax
jbe 0x140022d19
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [rbx - 1]
mov rdi, rbp
mov rbx, qword [rsi + 8]
or rax, rbp
bsr rcx, rax
mov r8, rbx
inc ecx
shl rdi, cl
lea rcx, [rsi + 0x18]
lea rdx, [rdi + rdi]
call fcn.140020cd0
lea rax, [rdi - 1]
mov qword [rsi + 0x38], rdi
mov qword [rsi + 0x30], rax
mov rax, qword [rsi + 8]
mov rax, qword [rax]
mov rdx, rax
cmp rax, rbx
je 0x140022e8b
movabs r12, 0xcbf29ce484222325
movabs r13, 0x100000001b3
mov rdx, qword [rdx]
mov r9, r12
xor r8d, r8d
movzx ecx, byte [r8 + rax + 0x10]
add r8, rbp
xor r9, rcx
imul r9, r13
cmp r8, 8
jb 0x140022d7c
mov r10, r12
xor r8d, r8d
movzx ecx, byte [rax + r8 + 0x18]
add r8, rbp
xor r10, rcx
imul r10, r13
cmp r8, 8
jb 0x140022d98
mov r11, qword [rsi + 0x18]
xor r10, r9
and r10, qword [rsi + 0x30]
add r10, r10
cmp qword [r11 + r10*8], rbx
jne 0x140022dd0
mov qword [r11 + r10*8], rax
mov qword [r11 + r10*8 + 8], rax
jmp 0x140022e7f
mov rcx, qword [r11 + r10*8 + 8]
mov r9, qword [rax + 0x10]
cmp r9, qword [rcx + 0x10]
jne 0x140022e14
mov r8, qword [rcx + 0x18]
cmp qword [rax + 0x18], r8
jne 0x140022e14
mov rdi, qword [rcx]
cmp rdi, rax
je 0x140022dc6
mov r9, qword [rax + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov qword [rdi + 8], r8
mov qword [rdx + 8], r9
mov qword [rax + 8], rcx
jmp 0x140022dc6
mov rdi, rcx
cmp qword [r11 + r10*8], rcx
je 0x140022e5a
mov rcx, qword [rcx + 8]
mov rdi, rcx
cmp r9, qword [rcx + 0x10]
jne 0x140022e17
mov r8, qword [rcx + 0x18]
cmp qword [rax + 0x18], r8
jne 0x140022e17
mov r10, qword [rcx]
mov r9, qword [rax + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], r10
mov rcx, qword [r10 + 8]
mov qword [rcx], rax
mov qword [r10 + 8], r8
mov qword [rdx + 8], r9
mov qword [rax + 8], rcx
jmp 0x140022e7f
mov r9, qword [rax + 8]
mov qword [r9], rdx
mov r8, qword [rdx + 8]
mov qword [r8], rdi
mov rcx, qword [rdi + 8]
mov qword [rcx], rax
mov qword [rdi + 8], r8
mov qword [rdx + 8], r9
mov qword [rax + 8], rcx
mov qword [r11 + r10*8], rax
mov rax, rdx
cmp rdx, rbx
jne 0x140022d73
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x20]
call fcn.1400231a8
mov rbx, qword [rsp + 0x68]
mov rbp, qword [rsp + 0x70]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret