Function at 0x140059a40
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 r14, rdx
mov r12, rcx
mov qword [rsp + 0x30], rcx
mov r10, qword [r8 + 8]
mov r15, qword [r8]
mov rdi, r10
sub rdi, r15
mov r9d, edi
mov rdx, r15
cmp r15, r10
je 0x140059aa4
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 0x140059a80
movsxd rax, r9d
mov qword [rsp + 0x38], rax
and rax, qword [r12 + 0x30]
add rax, rax
mov rsi, qword [r12 + 0x18]
mov rbx, qword [rsi + rax*8 + 8]
lea rcx, [r12 + 8]
mov rbp, qword [rcx]
cmp rbx, rbp
jne 0x140059ad3
mov rbx, rbp
mov rdi, rbp
jmp 0x140059b22
mov rsi, qword [rsi + rax*8]
nop word [rax + rax]
mov rdx, qword [rbx + 0x10]
mov rax, qword [rbx + 0x18]
sub rax, rdx
cmp rdi, rax
jne 0x140059aff
mov r8, rdi
mov rcx, r15
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140059b0a
cmp rbx, rsi
je 0x140059b17
mov rbx, qword [rbx + 8]
jmp 0x140059ae0
mov qword [r14], rbx
mov byte [r14 + 8], 0
jmp 0x140059ce0
mov rbp, rbx
mov rdi, rbx
lea rcx, [r12 + 8]
movabs rax, 0x555555555555555
cmp qword [r12 + 0x10], rax
jne 0x140059b41
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], rcx
xor r15d, r15d
mov qword [rsp + 0x48], r15
lea ecx, [r15 + 0x30]
call fcn.1401e8380
mov rsi, rax
mov qword [rsp + 0x48], rax
mov rdx, qword [rsp + 0x20]
lea rcx, [rax + 0x10]
call fcn.1400043b0
mov dword [rsi + 0x28], r15d
mov rdx, qword [r12 + 0x10]
add rdx, 1
xorps xmm0, xmm0
js 0x140059b86
cvtsi2ss xmm0, rdx
jmp 0x140059b9e
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 0x140059bb2
cvtsi2ss xmm1, rcx
jmp 0x140059bc7
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 0x140059c87
mov rcx, r12
call fcn.140017580
mov rdx, rax
mov rcx, r12
call fcn.1400176c0
mov r15, qword [r12 + 0x30]
and r15, qword [rsp + 0x38]
add r15, r15
mov rax, qword [r12 + 0x18]
mov rdi, qword [rax + r15*8 + 8]
mov rbx, qword [r12 + 8]
cmp rdi, rbx
jne 0x140059c19
mov qword [rsp + 0x20], rbx
mov rdi, rbx
jmp 0x140059c79
mov r15, qword [rax + r15*8]
mov r12, qword [rsi + 0x10]
mov rbp, qword [rsi + 0x18]
sub rbp, r12
nop dword [rax + rax]
mov rbx, rdi
mov rdx, qword [rdi + 0x10]
mov rax, qword [rdi + 0x18]
sub rax, rdx
cmp rbp, rax
jne 0x140059c52
mov r8, rbp
mov rcx, r12
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140059c5d
cmp rdi, r15
je 0x140059c6f
mov rdi, qword [rdi + 8]
jmp 0x140059c30
mov rbx, qword [rdi]
mov qword [rsp + 0x20], rbx
mov rdi, rbx
mov r12, qword [rsp + 0x30]
jmp 0x140059c82
mov qword [rsp + 0x20], rdi
mov r12, qword [rsp + 0x30]
mov qword [rsp + 0x28], 0
mov rbp, qword [rsp + 0x20]
mov rdx, qword [rbx + 8]
inc qword [r12 + 0x10]
mov qword [rsi], rbp
mov qword [rsi + 8], rdx
mov qword [rdx], rsi
mov qword [rbx + 8], rsi
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 0x140059cc1
mov qword [rcx + rax*8], rsi
jmp 0x140059cd3
cmp r8, rdi
jne 0x140059ccc
mov qword [rcx + rax*8], rsi
jmp 0x140059cd8
cmp qword [rcx + rax*8 + 8], rdx
jne 0x140059cd8
mov qword [rcx + rax*8 + 8], rsi
mov qword [r14], rsi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0xa8]
add rsp, 0x50
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret