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

Disassembly:
push rsi
push r13
sub rsp, 0x58
movabs rax, 0xfffffffffffffff
mov qword [rsp + 0x20], rcx
mov r13, rcx
mov esi, 1
bsr rcx, rax
mov eax, esi
shl rax, cl
cmp rdx, rax
jbe 0x1400055fb
lea rcx, str.invalid_hash_bucket_count
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov qword [rsp + 0x80], rbx
lea rax, [rdx - 1]
mov rdx, qword [r13 + 0x20]
or rax, rsi
bsr rcx, rax
mov qword [rsp + 0x50], rbp
mov rbp, qword [r13 + 8]
inc ecx
shl rsi, cl
mov rcx, rdx
mov qword [rsp + 0x48], rdi
mov rdi, qword [r13 + 0x18]
sub rcx, rdi
mov qword [rsp + 0x40], r12
mov rax, rcx
lea rbx, [rsi + rsi]
sar rax, 3
cmp rax, rbx
jae 0x140005719
movabs rax, 0x1fffffffffffffff
cmp rbx, rax
ja 0x14000593f
lea rbx, [rbx*8]
xor r12d, r12d
cmp rbx, 0x1000
jb 0x140005698
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x14000593f
call fcn.140005c90
test rax, rax
je 0x140005712
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x1400056ad
test rbx, rbx
je 0x1400056aa
mov rcx, rbx
call fcn.140005c90
mov rdi, rax
jmp 0x1400056ad
mov rdi, r12
mov rcx, qword [r13 + 0x18]
mov rax, qword [r13 + 0x28]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x1400056ef
lea rdx, [rax*8]
cmp rdx, 0x1000
jb 0x1400056ea
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005712
mov rcx, r8
call fcn.140005ccc
lea rax, [rbx + rdi]
mov qword [r13 + 0x18], rdi
mov qword [r13 + 0x20], rax
mov qword [r13 + 0x28], rax
cmp rdi, rax
je 0x140005736
mov qword [rdi], rbp
add rdi, 8
cmp rdi, rax
jne 0x140005704
jmp 0x140005736
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
add rcx, 7
xor r12d, r12d
shr rcx, 3
cmp rdi, rdx
cmova rcx, r12
test rcx, rcx
je 0x140005736
mov rax, rbp
rep stosq qword [rdi], rax
mov rbx, qword [r13 + 8]
lea rax, [rsi - 1]
mov qword [r13 + 0x38], rsi
mov qword [r13 + 0x30], rax
mov rbx, qword [rbx]
mov rsi, rbx
cmp rbx, rbp
je 0x1400058fa
mov qword [rsp + 0x38], r14
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x30], r15
movabs r9, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
mov r8, qword [rbx + 0x28]
lea rdi, [rbx + 0x10]
mov rsi, qword [rsi]
cmp r8, 0x10
jb 0x140005795
mov rdi, qword [rbx + 0x10]
mov r15, qword [rbx + 0x20]
mov rdx, rax
mov rcx, r12
test r15, r15
je 0x1400057c3
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rcx + rdi]
inc rcx
xor rdx, rax
imul rdx, r9
cmp rcx, r15
jb 0x1400057b0
mov rcx, qword [r13 + 0x30]
mov r13, qword [r13 + 0x18]
and rcx, rdx
shl rcx, 4
add r13, rcx
mov r12, qword [r13]
cmp r12, rbp
jne 0x1400057eb
mov qword [r13], rbx
mov qword [r13 + 8], rbx
jmp 0x1400058cf
mov rdi, qword [r13 + 8]
cmp qword [rdi + 0x28], 0x10
lea rdx, [rdi + 0x10]
jb 0x1400057fe
mov rdx, qword [rdi + 0x10]
lea rcx, [rbx + 0x10]
cmp r8, 0x10
jb 0x14000580c
mov rcx, qword [rbx + 0x10]
cmp r15, qword [rdi + 0x20]
jne 0x140005851
mov r8, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14000584d
mov rdi, qword [rdi]
cmp rdi, rbx
je 0x140005847
mov rdx, qword [rbx + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], rdi
mov rax, qword [rdi + 8]
mov qword [rax], rbx
mov qword [rdi + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rbx + 8], rax
mov qword [r13 + 8], rbx
jmp 0x1400058c5
mov r8, qword [rbx + 0x28]
cmp r12, rdi
je 0x1400058a0
nop word [rax + rax]
mov rdi, qword [rdi + 8]
cmp qword [rdi + 0x28], 0x10
lea rdx, [rdi + 0x10]
jb 0x140005873
mov rdx, qword [rdi + 0x10]
lea rcx, [rbx + 0x10]
cmp r8, 0x10
jb 0x140005881
mov rcx, qword [rbx + 0x10]
cmp r15, qword [rdi + 0x20]
jne 0x14000589b
mov r8, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140005919
mov r8, qword [rbx + 0x28]
cmp r12, rdi
jne 0x140005860
mov rdx, qword [rbx + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], rdi
mov rax, qword [rdi + 8]
mov qword [rax], rbx
mov qword [rdi + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rbx + 8], rax
mov qword [r13], rbx
movabs r9, 0x100000001b3
mov r13, qword [rsp + 0x20]
mov rbx, rsi
movabs rax, 0xcbf29ce484222325
mov r12d, 0
cmp rsi, rbp
jne 0x140005780
mov r15, qword [rsp + 0x30]
mov r14, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x80]
mov r12, qword [rsp + 0x40]
add rsp, 0x58
pop r13
pop rsi
ret
mov rdi, qword [rdi]
mov rdx, qword [rbx + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], rdi
mov rax, qword [rdi + 8]
mov qword [rax], rbx
mov qword [rdi + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rbx + 8], rax
jmp 0x1400058c5
call fcn.140001230
int3