Function at 0x140021540
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov qword [rsp + 0x20], r8
mov r15, rdx
mov r12, rcx
mov qword [rsp + 0x30], rcx
mov r10, qword [r8 + 8]
mov rbp, qword [r8]
mov rdi, r10
sub rdi, rbp
mov r9d, edi
mov rdx, rbp
cmp rbp, r10
je 0x1400215a4
nop dword [rax]
mov ecx, r9d
shl ecx, 6
mov eax, r9d
sar eax, 2
add ecx, eax
movzx eax, byte [rdx]
add ecx, 0x9e3779b9
add ecx, eax
xor r9d, ecx
inc rdx
cmp rdx, r10
jne 0x140021580
movsxd rax, r9d
mov qword [rsp + 0x38], rax
and rax, qword [r12 + 0x30]
add rax, rax
mov rcx, qword [r12 + 0x18]
mov rbx, qword [rcx + rax*8 + 8]
lea rdx, [r12 + 8]
mov rsi, qword [rdx]
cmp rbx, rsi
jne 0x1400215d3
mov rbx, rsi
mov rdi, rsi
jmp 0x140021622
mov rsi, qword [rcx + rax*8]
nop word [rax + rax]
mov rdx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
sub rax, rdx
cmp rdi, rax
jne 0x1400215ff
mov r8, rdi
mov rcx, rbp
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14002160a
cmp rbx, rsi
je 0x140021617
mov rbx, qword [rbx + 8]
jmp 0x1400215e0
mov qword [r15], rbx
mov byte [r15 + 8], 0
jmp 0x1400217e0
mov rsi, rbx
mov rdi, rbx
lea rdx, [r12 + 8]
movabs rax, 0x555555555555555
cmp qword [r12 + 0x10], rax
jne 0x140021641
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], 0
mov ecx, 0x30
call fcn.1401e8380
mov r14, rax
mov qword [rsp + 0x48], rax
mov rbp, qword [rsp + 0x20]
mov rdx, rbp
lea rcx, [rax + 0x10]
call fcn.1400043b0
mov ecx, dword [rbp + 0x18]
mov dword [r14 + 0x28], ecx
mov rdx, qword [r12 + 0x10]
add rdx, 1
xorps xmm0, xmm0
js 0x14002168e
cvtsi2ss xmm0, rdx
jmp 0x1400216a6
mov rcx, rdx
shr rcx, 1
mov rax, rdx
and eax, 1
or rcx, rax
cvtsi2ss xmm0, rcx
addss xmm0, xmm0
mov rcx, qword [r12 + 0x38]
xorps xmm1, xmm1
test rcx, rcx
js 0x1400216ba
cvtsi2ss xmm1, rcx
jmp 0x1400216cf
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [r12]
seta al
test al, al
je 0x140021787
mov rcx, r12
call fcn.140017580
mov rdx, rax
mov rcx, r12
call fcn.1400176c0
mov rbp, qword [r12 + 0x30]
and rbp, qword [rsp + 0x38]
add rbp, rbp
mov rax, qword [r12 + 0x18]
mov rdi, qword [rax + rbp*8 + 8]
mov rbx, qword [r12 + 8]
cmp rdi, rbx
jne 0x140021721
mov qword [rsp + 0x20], rbx
mov rdi, rbx
jmp 0x140021779
mov rbp, qword [rax + rbp*8]
mov r12, qword [r14 + 0x10]
mov rsi, qword [r14 + 0x18]
sub rsi, r12
mov rbx, rdi
mov rdx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
sub rax, rdx
cmp rsi, rax
jne 0x140021752
mov r8, rsi
mov rcx, r12
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x14002175d
cmp rdi, rbp
je 0x14002176f
mov rdi, qword [rdi + 8]
jmp 0x140021730
mov rbx, qword [rdi]
mov qword [rsp + 0x20], rbx
mov rdi, rbx
mov r12, qword [rsp + 0x30]
jmp 0x140021782
mov qword [rsp + 0x20], rdi
mov r12, qword [rsp + 0x30]
mov qword [rsp + 0x28], 0
mov rsi, qword [rsp + 0x20]
mov rdx, qword [rbx + 8]
inc qword [r12 + 0x10]
mov qword [r14], rsi
mov qword [r14 + 8], rdx
mov qword [rdx], r14
mov qword [rbx + 8], r14
mov rcx, qword [r12 + 0x18]
mov rax, qword [r12 + 0x30]
and rax, qword [rsp + 0x38]
add rax, rax
mov r8, qword [rcx + rax*8]
cmp r8, qword [r12 + 8]
jne 0x1400217c1
mov qword [rcx + rax*8], r14
jmp 0x1400217d3
cmp r8, rdi
jne 0x1400217cc
mov qword [rcx + rax*8], r14
jmp 0x1400217d8
cmp qword [rcx + rax*8 + 8], rdx
jne 0x1400217d8
mov qword [rcx + rax*8 + 8], r14
mov qword [r15], r14
mov byte [r15 + 8], 1
mov rax, r15
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret