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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x58
movabs rax, 0x800000000000001
cmp rdx, rax
jae 0x18001d031
mov rdi, rcx
dec rdx
mov eax, edx
and eax, 1
mov rcx, rdx
xor rcx, 1
mov r8, rdx
xor r8, 0xfffffffffffffffe
or r8, rcx
movabs rcx, 0x9062af1864fcdd16
lea r9, [rcx + 1]
xor r9, rdx
and r9, r8
or rax, rcx
movabs rcx, 0x6f9d50e79b0322e9
xor rcx, rax
and rcx, r9
xor rcx, rax
bsr rax, rcx
xor eax, 0x3f
mov dl, 0x40
sub dl, al
xor eax, eax
test rcx, rcx
movzx ecx, dl
cmove ecx, eax
mov esi, 1
shl rsi, cl
lea rax, [rdi + 0x18]
mov rbx, qword [rdi + 8]
mov edx, 2
shl rdx, cl
mov rcx, rax
mov r8, rbx
call fcn.18001c490
lea rax, [rsi - 1]
mov qword [rdi + 0x30], rax
mov qword [rdi + 0x38], rsi
mov rax, qword [rdi + 8]
mov r9, qword [rax]
mov qword [rsp + 0x40], rbx
cmp r9, rbx
je 0x18001d020
movabs r12, 0x4ca13045b4ac3562
movabs r13, 0xb35ecfba4b53ca9d
movabs rbp, 0x100000001b3
mov qword [rsp + 0x30], rdi
jmp 0x18001ce18
mov qword [r10 + rcx*8], r11
mov qword [r10 + rdx*8], r11
mov r9, qword [rsp + 0x28]
cmp r9, qword [rsp + 0x40]
je 0x18001d020
mov r11, r9
cmp qword [r9 + 0x28], 0x10
jb 0x18001ce30
mov rbx, qword [r11 + 0x10]
jmp 0x18001ce34
lea rbx, [r11 + 0x10]
mov r14, qword [r11 + 0x20]
movabs rax, 0xcbf29ce484222325
test r14, r14
je 0x18001cea6
xor ecx, ecx
nop dword [rax]
movzx edx, byte [rbx + rcx]
mov r9, rdx
not r9
mov r10d, r9d
and r10d, 0xaa
mov r8d, edx
and r8d, 0x55
or r8d, r10d
xor r8d, eax
xor r8d, 0xaa
and r8d, edx
and r9, r12
mov r10, rax
not eax
and eax, edx
and edx, 0xffffff9d
or rdx, r9
xor r10, r13
xor r10, rdx
or rax, r10
not rax
or rax, r8
imul rax, rbp
inc rcx
cmp r14, rcx
jne 0x18001ce50
mov rcx, qword [r11]
mov qword [rsp + 0x28], rcx
and rax, qword [rdi + 0x30]
mov r10, qword [rdi + 0x18]
lea rcx, [rax + rax]
lea rdx, [rax*2 + 1]
shl rax, 4
mov rsi, qword [r10 + rax]
cmp rsi, qword [rsp + 0x40]
je 0x18001ce00
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x38], r11
mov qword [rsp + 0x48], rdx
mov rdi, qword [r10 + rdx*8]
cmp r14, qword [rdi + 0x20]
mov r15, r10
jne 0x18001cf76
cmp qword [rdi + 0x28], 0x10
jb 0x18001cf02
mov rdx, qword [rdi + 0x10]
jmp 0x18001cf06
lea rdx, [rdi + 0x10]
mov rcx, rbx
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
mov r10, r15
jne 0x18001cf76
mov rax, qword [rdi]
mov r11, qword [rsp + 0x38]
cmp rax, r11
mov r9, qword [rsp + 0x28]
je 0x18001cf4b
mov rcx, qword [r11 + 8]
mov qword [rcx], r9
mov rdx, qword [r9 + 8]
mov qword [rdx], rax
mov r8, qword [rax + 8]
mov qword [r8], r11
mov qword [rax + 8], rdx
mov qword [r9 + 8], rcx
mov qword [r11 + 8], r8
mov rax, qword [rsp + 0x48]
mov qword [r10 + rax*8], r11
jmp 0x18001d010
mov rdx, qword [rdi + 0x10]
mov rcx, rbx
mov r8, r14
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
mov r10, r15
je 0x18001cfd6
cmp rsi, rdi
je 0x18001cfa0
mov rdi, qword [rdi + 8]
cmp r14, qword [rdi + 0x20]
jne 0x18001cf76
cmp qword [rdi + 0x28], 0x10
jae 0x18001cf60
lea rdx, [rdi + 0x10]
jmp 0x18001cf64
mov r8, qword [rsp + 0x38]
mov rax, qword [r8 + 8]
mov r9, qword [rsp + 0x28]
mov qword [rax], r9
mov rcx, qword [r9 + 8]
mov qword [rcx], rsi
mov rdx, qword [rsi + 8]
mov qword [rdx], r8
mov qword [rsi + 8], rcx
mov qword [r9 + 8], rax
mov qword [r8 + 8], rdx
mov rax, qword [rsp + 0x50]
mov qword [r10 + rax*8], r8
jmp 0x18001d010
mov rax, qword [rdi]
mov r10, qword [rsp + 0x38]
mov rcx, qword [r10 + 8]
mov r9, qword [rsp + 0x28]
mov qword [rcx], r9
mov rdx, qword [r9 + 8]
mov qword [rdx], rax
mov r8, qword [rax + 8]
mov qword [r8], r10
mov qword [rax + 8], rdx
mov qword [r9 + 8], rcx
mov qword [r10 + 8], r8
nop word cs:[rax + rax]
mov rdi, qword [rsp + 0x30]
cmp r9, qword [rsp + 0x40]
jne 0x18001ce18
add rsp, 0x58
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movabs rcx, 0xcf6c93ea341b59f7
add rcx, qword [0x18004d908]
call fcn.180035a60
lea rcx, [0x18004f054]
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3