Function at 0x140018a30
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push r13
sub rsp, 0x38
movabs rax, 0xfffffffffffffff
mov r13, rcx
bsr rcx, rax
mov ebx, 1
mov eax, ebx
shl rax, cl
cmp rdx, rax
ja 0x1400169b6
mov qword [rsp + 0x58], rbp
lea rax, [rdx - 1]
mov rbp, qword [r13 + 8]
or rax, rbx
bsr rcx, rax
mov qword [rsp + 0x60], rsi
mov r8, rbp
inc ecx
mov qword [rsp + 0x68], rdi
shl rbx, cl
mov qword [rsp + 0x30], r12
lea r12, [r13 + 0x18]
mov rcx, r12
lea rdx, [rbx + rbx]
call fcn.140013930
mov rdi, qword [r13 + 8]
lea rax, [rbx - 1]
mov qword [r13 + 0x30], rax
mov qword [r13 + 0x38], rbx
mov rdi, qword [rdi]
mov rsi, rdi
cmp rdi, rbp
je 0x140016974
mov qword [rsp + 0x28], r14
movabs rax, 0xcbf29ce484222325
mov qword [rsp + 0x20], r15
movabs r10, 0x100000001b3
nop dword [rax + rax]
mov r9, qword [rdi + 0x28]
lea r8, [rdi + 0x10]
mov rsi, qword [rsi]
cmp r9, 0x10
jb 0x140016815
mov r8, qword [rdi + 0x10]
mov r15, qword [rdi + 0x20]
xor edx, edx
mov rcx, rax
test r15, r15
je 0x140016844
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [rdx + r8]
inc rdx
xor rcx, rax
imul rcx, r10
cmp rdx, r15
jb 0x140016830
and rcx, qword [r13 + 0x30]
mov r13, qword [r12]
shl rcx, 4
add r13, rcx
mov r12, qword [r13]
cmp r12, rbp
jne 0x140016869
mov qword [r13], rdi
mov qword [r13 + 8], rdi
jmp 0x14001694b
mov rbx, qword [r13 + 8]
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
jb 0x14001687c
mov rdx, qword [rbx + 0x10]
lea rcx, [rdi + 0x10]
cmp r9, 0x10
jb 0x14001688a
mov rcx, qword [rdi + 0x10]
cmp r15, qword [rbx + 0x20]
jne 0x1400168cf
mov r8, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x1400168cb
mov r8, qword [rbx]
cmp r8, rdi
je 0x1400168c5
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13 + 8], rdi
jmp 0x140016941
mov r9, qword [rdi + 0x28]
cmp r12, rbx
je 0x14001691c
nop dword [rax]
nop dword [rax + rax]
mov rbx, qword [rbx + 8]
cmp qword [rbx + 0x28], 0x10
lea rdx, [rbx + 0x10]
jb 0x1400168f3
mov rdx, qword [rbx + 0x10]
lea rcx, [rdi + 0x10]
cmp r9, 0x10
jb 0x140016901
mov rcx, qword [rdi + 0x10]
cmp r15, qword [rbx + 0x20]
jne 0x140016917
mov r8, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140016990
mov r9, qword [rdi + 0x28]
cmp r12, rbx
jne 0x1400168e0
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], rbx
mov rax, qword [rbx + 8]
mov qword [rax], rdi
mov qword [rbx + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
mov qword [r13], rdi
movabs r10, 0x100000001b3
mov r13, qword [rsp + 0x50]
mov rdi, rsi
movabs rax, 0xcbf29ce484222325
lea r12, [r13 + 0x18]
cmp rsi, rbp
jne 0x140016800
mov r15, qword [rsp + 0x20]
mov r14, qword [rsp + 0x28]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x58]
mov r12, qword [rsp + 0x30]
add rsp, 0x38
pop r13
pop rbx
ret
mov r8, qword [rbx]
mov rdx, qword [rdi + 8]
mov qword [rdx], rsi
mov rcx, qword [rsi + 8]
mov qword [rcx], r8
mov rax, qword [r8 + 8]
mov qword [rax], rdi
mov qword [r8 + 8], rcx
mov qword [rsi + 8], rdx
mov qword [rdi + 8], rax
jmp 0x140016941
lea rcx, str.invalid_hash_bucket_count
call sub.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_
int3
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 0x140018a55
cvtsi2ss xmm0, rdx
jmp 0x140018a6a
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 [0x140043250]
xor ecx, ecx
comiss xmm0, xmm1
jb 0x140018a98
subss xmm0, xmm1
comiss xmm0, xmm1
jae 0x140018a98
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 0x140018aca
cmp rbx, 0x200
jae 0x140018ac7
lea rbx, [rbx*8]
cmp rbx, rcx
jae 0x140018aca
mov rbx, rcx
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp 0x140016750