Function at 0x14006d840
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 0x14006d87b
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 0x14006d999
movabs rax, 0x1fffffffffffffff
cmp rbx, rax
ja 0x14006dbc1
lea rbx, [rbx*8]
xor r12d, r12d
cmp rbx, 0x1000
jb 0x14006d918
lea rcx, [rbx + 0x27]
cmp rcx, rbx
jbe 0x14006dbc1
call fcn.140070cb8
test rax, rax
je 0x14006d992
lea rdi, [rax + 0x27]
and rdi, 0xffffffffffffffe0
mov qword [rdi - 8], rax
jmp 0x14006d92d
test rbx, rbx
je 0x14006d92a
mov rcx, rbx
call fcn.140070cb8
mov rdi, rax
jmp 0x14006d92d
mov rdi, r12
mov rcx, qword [r13 + 0x18]
mov rax, qword [r13 + 0x28]
sub rax, rcx
sar rax, 3
test rax, rax
je 0x14006d96f
lea rdx, [rax*8]
cmp rdx, 0x1000
jb 0x14006d96a
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x14006d992
mov rcx, r8
call fcn.140070a70
lea rax, [rbx + rdi]
mov qword [r13 + 0x18], rdi
mov qword [r13 + 0x20], rax
mov qword [r13 + 0x28], rax
cmp rdi, rax
je 0x14006d9b6
mov qword [rdi], rbp
add rdi, 8
cmp rdi, rax
jne 0x14006d984
jmp 0x14006d9b6
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 0x14006d9b6
mov rax, rbp
rep stosq qword [rdi], rax
mov qword [r13 + 0x38], rsi
lea rax, [rsi - 1]
mov qword [r13 + 0x30], rax
mov rbx, qword [r13 + 8]
mov rbx, qword [rbx]
mov rsi, rbx
cmp rbx, rbp
je 0x14006db7c
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]
mov r15, qword [rbx + 0x20]
cmp r8, 0xf
jbe 0x14006da19
mov rdi, qword [rbx + 0x10]
mov rdx, rax
mov rcx, r12
test r15, r15
je 0x14006da43
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rdi + rcx]
inc rcx
xor rdx, rax
imul rdx, r9
cmp rcx, r15
jb 0x14006da30
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 0x14006da6b
mov qword [r13], rbx
mov qword [r13 + 8], rbx
jmp 0x14006db51
mov rdi, qword [r13 + 8]
cmp qword [rdi + 0x28], 0xf
lea rdx, [rdi + 0x10]
mov rax, qword [rdx + 0x10]
jbe 0x14006da81
mov rdx, qword [rdx]
lea rcx, [rbx + 0x10]
cmp r8, 0xf
jbe 0x14006da8f
mov rcx, qword [rbx + 0x10]
cmp r15, rax
jne 0x14006dad3
mov r8, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x14006dacf
mov rdi, qword [rdi]
cmp rdi, rbx
je 0x14006dac9
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 0x14006db47
mov r8, qword [rbx + 0x28]
cmp r12, rdi
je 0x14006db22
nop dword [rax + rax]
mov rdi, qword [rdi + 8]
cmp qword [rdi + 0x28], 0xf
lea rdx, [rdi + 0x10]
mov rax, qword [rdx + 0x10]
jbe 0x14006daf6
mov rdx, qword [rdx]
lea rcx, [rbx + 0x10]
cmp r8, 0xf
jbe 0x14006db04
mov rcx, qword [rbx + 0x10]
cmp r15, rax
jne 0x14006db1d
mov r8, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14006db9b
mov r8, qword [rbx + 0x28]
cmp r12, rdi
jne 0x14006dae0
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 0x14006da00
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 0x14006db47
call fcn.1400424c0
int3