Function at 0x140064910
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x80
mov rax, qword [0x1402a87c0]
xor rax, rsp
mov qword [rbp - 8], rax
mov qword [rbp - 0x30], rdx
mov rsi, rcx
mov qword [rbp - 0x10], rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x28], xmm0
lea rax, [rbp + 0x38]
movabs r12, 0xff00ff00ff00ff00
mov qword [rbp - 0x20], r12
mov qword [rbp - 0x18], rax
mov r14, qword [rax]
xor r14, r12
mov qword [rbp - 0x28], r14
mov qword [rax], 0
cmp byte [0x1402a93c2], 0
je 0x140064c1a
mov rax, qword [str.a__AQBV9Medal]
mov qword [rbp - 0x50], rax
cmp byte [0x1401b631f], 0
je 0x140064ac2
xor r8d, r8d
cmp dword [0x1402a8820], 2
jl 0x140064a82
movdqa xmm4, xmmword [0x1401b6a80]
movdqa xmm2, xmmword [0x1400c4d30]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401b6940]
psubd xmm2, xmm0
andps xmm2, xmmword [0x1401b6950]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401b6960]
movd xmm0, dword [rbp - 0x50]
xorps xmm2, xmm0
movd dword [rbp - 0x50], xmm2
movdqa xmm2, xmmword [0x1401b68f0]
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmmword [0x1401b6940]
psubd xmm2, xmm0
andps xmm2, xmmword [0x1401b6950]
packuswb xmm2, xmm2
packuswb xmm2, xmm2
paddb xmm2, xmmword [0x1401b6960]
movd xmm0, dword [rbp - 0x4c]
xorps xmm2, xmm0
movd dword [rbp - 0x4c], xmm2
jmp 0x140064ac2
lea r9, [rbp - 0x50]
nop word [rax + rax]
mov eax, 0x3521cfb3
mul r8d
mov eax, r8d
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
movsx eax, al
imul ecx, eax, 0x35
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 8
jl 0x140064a90
lea rax, [rbp - 0x50]
mov rdi, 0xffffffffffffffff
nop dword [rax]
inc rdi
cmp byte [rax + rdi], 0
jne 0x140064ad0
mov rax, qword [rsi + 0x10]
mov r15, rsi
cmp qword [rsi + 0x18], 0xf
jbe 0x140064aea
mov r15, qword [rsi]
cmp rdi, rax
ja 0x140064c1a
sub rax, rdi
test rdi, rdi
je 0x140064b7d
lea r12, [rax + r15]
movsx r13d, byte [rbp - 0x50]
lea r8, [r12 + 1]
sub r8, r15
mov edx, r13d
mov rcx, r15
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140064c1a
nop word [rax + rax]
mov r8, rdi
lea rdx, [rbp - 0x50]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140064b66
inc rbx
lea r8, [r12 + 1]
sub r8, rbx
mov edx, r13d
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140064b30
jmp 0x140064c1a
sub rbx, r15
cmp rbx, 0xffffffffffffffff
je 0x140064c1a
movabs r12, 0xff00ff00ff00ff00
mov rcx, qword [rbp - 0x30]
add rcx, qword [0x1401e12c8]
call fcn.140048650
test rax, rax
je 0x140064c1a
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
lea rcx, [rbp + 0x38]
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], rcx
mov rbx, qword [rcx]
mov rax, rbx
xor rax, r12
mov qword [rbp - 0x48], rax
mov qword [rcx], 0
mov qword [rsp + 0x20], 0
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov ecx, r9d
call qword [0x1402a8fc0]
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
lea rax, [rbp + 0x38]
mov qword [rbp - 0x40], r12
mov qword [rbp - 0x38], rax
xor rbx, r12
mov qword [rbp - 0x48], rbx
mov qword [rax], 0
mov qword [rsp + 0x20], 0
mov r9d, 4
xor r8d, r8d
xor edx, edx
mov ecx, r9d
call qword [0x1402a8fc0]
nop
movabs rax, 0xff00ff00ff00ff00
xor r14, rax
lea rax, [rbp + 0x38]
mov qword [rax], r14
mov rdx, qword [rsi + 0x18]
cmp rdx, 0xf
jbe 0x140064c64
inc rdx
mov rcx, qword [rsi]
cmp rdx, 0x1000
jb 0x140064c5f
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140064c9e
mov rcx, r8
call fcn.1400baeac
mov qword [rsi + 0x10], 0
mov qword [rsi + 0x18], 0xf
mov byte [rsi], 0
mov rcx, qword [rbp - 8]
xor rcx, rsp
call fcn.1400bae50
mov rbx, qword [rsp + 0xd0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3