Function at 0x140046710
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov r14, r9
mov rdi, r8
mov r12, rdx
mov rbx, rcx
cmp rdx, 0x21
jae 0x140046758
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov rcx, rbx
mov rdx, r12
mov r8, rdi
mov r9, r14
call fcn.1400400e0
jmp 0x140046be9
mov rax, qword [rsp + 0x138]
mov qword [rsp + 0x48], rax
mov ebp, dword [rsp + 0x130]
lea rax, [rdi - 0x20]
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], r14
lea rax, [rbx + 0x20]
mov qword [rsp + 0x60], rax
mov rsi, r12
nop word cs:[rax + rax]
sub ebp, 1
jb 0x140046bc6
mov dword [rsp + 0x44], ebp
mov r9, rsi
shr r9, 3
mov r15, r9
shl r15, 7
add r15, rbx
imul r8, r9, 0xe0
add r8, rbx
cmp rsi, 0x40
jae 0x140046800
movsd xmm0, qword [rbx]
movsd xmm1, qword [r15]
ucomisd xmm1, xmm0
seta al
movsd xmm2, qword [r8]
ucomisd xmm2, xmm0
seta cl
xor cl, al
ucomisd xmm2, xmm1
seta dl
xor dl, al
cmovne r15, r8
test cl, cl
cmovne r15, rbx
jmp 0x14004680e
mov rcx, rbx
mov rdx, r15
call fcn.140052260
mov r15, rax
mov r11, r15
sub r11, rbx
shr r11, 5
movupd xmm0, xmmword [r15]
movups xmm1, xmmword [r15 + 0x10]
movaps xmmword [rsp + 0xb0], xmm1
movapd xmmword [rsp + 0xa0], xmm0
cmp qword [rsp + 0x48], 0
je 0x14004684f
movsd xmm0, qword [r15]
mov rax, qword [rsp + 0x48]
ucomisd xmm0, qword [rax]
jbe 0x140046a30
cmp rsi, r14
ja 0x140046bfe
mov r14, rsi
shl r14, 5
lea rbp, [rdi + r14]
xor r12d, r12d
mov rax, rbx
mov rcx, rbp
mov qword [rsp + 0x50], r11
mov rdx, r11
nop word cs:[rax + rax]
mov r8, rdx
shl r8, 5
add r8, rbx
cmp rax, r8
jae 0x1400468d2
nop
movsd xmm0, qword [r15]
add rcx, 0xffffffffffffffe0
xor r9d, r9d
ucomisd xmm0, qword [rax]
seta r9b
mov r10, rcx
cmova r10, rdi
mov r11, r12
shl r11, 5
movupd xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r10 + r11 + 0x10], xmm1
movupd xmmword [r10 + r11], xmm0
add r12, r9
add rax, 0x20
cmp rax, r8
jb 0x140046890
cmp rdx, rsi
je 0x140046900
mov rdx, r12
shl rdx, 5
movupd xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx + rdx - 0x10], xmm1
movupd xmmword [rcx + rdx - 0x20], xmm0
add rcx, 0xffffffffffffffe0
add rax, 0x20
mov rdx, rsi
jmp 0x140046880
mov r13, r12
shl r13, 5
mov rcx, rbx
mov rdx, rdi
mov r8, r13
call sub.VCRUNTIME140.dll_memcpy
mov rdx, rsi
sub rdx, r12
movabs r10, 0x7fffffffffffffe
mov r11, qword [rsp + 0x50]
je 0x1400469d3
lea rax, [r12 + 1]
cmp rsi, rax
jne 0x140046940
xor eax, eax
jmp 0x1400469a5
mov rcx, rdx
and rcx, 0xfffffffffffffffe
mov rax, qword [rsp + 0x60]
lea r8, [rax + r13]
add r14, qword [rsp + 0x58]
xor r9d, r9d
nop dword [rax + rax]
movups xmm0, xmmword [r14]
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [r8 - 0x10], xmm1
movups xmmword [r8 - 0x20], xmm0
lea rax, [r9 + 2]
xor r9, r10
shl r9, 5
movupd xmm0, xmmword [rbp + r9]
movups xmm1, xmmword [rbp + r9 + 0x10]
movupd xmmword [r8], xmm0
movups xmmword [r8 + 0x10], xmm1
add r8, 0x40
add r14, 0xffffffffffffffc0
mov r9, rax
cmp rcx, rax
jne 0x140046960
test dl, 1
je 0x1400469d3
lea rcx, [rbx + r13]
mov r8, rax
not r8
shl r8, 5
shl rax, 5
movupd xmm0, xmmword [rbp + r8]
movups xmm1, xmmword [rbp + r8 + 0x10]
movups xmmword [rcx + rax + 0x10], xmm1
movupd xmmword [rcx + rax], xmm0
test r12, r12
mov r14, qword [rsp + 0x68]
je 0x140046a30
cmp rsi, r12
jb 0x140046c00
add r13, rbx
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x28], rax
mov ebp, dword [rsp + 0x44]
mov dword [rsp + 0x20], ebp
mov rcx, r13
mov r8, rdi
mov r9, r14
call fcn.140046710
mov rsi, r12
cmp r12, 0x21
jae 0x140046790
jmp 0x140046735
cmp rsi, r14
ja 0x140046bfe
mov rbp, rsi
shl rbp, 5
lea rcx, [rdi + rbp]
xor r13d, r13d
mov rax, rbx
mov qword [rsp + 0x50], rcx
nop
mov rdx, r11
shl rdx, 5
add rdx, rbx
cmp rax, rdx
jae 0x140046aa2
nop
movsd xmm0, qword [rax]
add rcx, 0xffffffffffffffe0
xor r8d, r8d
ucomisd xmm0, qword [r15]
setbe r8b
mov r9, rcx
cmovbe r9, rdi
mov r10, r13
shl r10, 5
movupd xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r9 + r10 + 0x10], xmm1
movupd xmmword [r9 + r10], xmm0
add r13, r8
add rax, 0x20
cmp rax, rdx
jb 0x140046a60
cmp r11, rsi
je 0x140046ad0
add rcx, 0xffffffffffffffe0
mov rdx, r13
shl rdx, 5
movupd xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rdi + rdx + 0x10], xmm1
movupd xmmword [rdi + rdx], xmm0
inc r13
add rax, 0x20
mov r11, rsi
jmp 0x140046a50
mov r15, r13
shl r15, 5
mov rcx, rbx
mov rdx, rdi
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
movabs r9, 0x7fffffffffffffe
mov r12, rsi
sub r12, r13
mov r10, qword [rsp + 0x50]
je 0x140046b9d
lea rax, [r13 + 1]
cmp rsi, rax
jne 0x140046b0d
xor eax, eax
jmp 0x140046b6f
mov rcx, r12
and rcx, 0xfffffffffffffffe
lea rdx, [rbx + r15]
add rdx, 0x20
add rbp, qword [rsp + 0x58]
xor r8d, r8d
nop word cs:[rax + rax]
movups xmm0, xmmword [rbp]
movups xmm1, xmmword [rbp + 0x10]
movups xmmword [rdx - 0x10], xmm1
movups xmmword [rdx - 0x20], xmm0
lea rax, [r8 + 2]
xor r8, r9
shl r8, 5
movupd xmm0, xmmword [r10 + r8]
movups xmm1, xmmword [r10 + r8 + 0x10]
movupd xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
add rdx, 0x40
add rbp, 0xffffffffffffffc0
mov r8, rax
cmp rcx, rax
jne 0x140046b30
test r12b, 1
je 0x140046b9d
lea rcx, [rbx + r15]
mov rdx, rax
not rdx
shl rdx, 5
shl rax, 5
movupd xmm0, xmmword [r10 + rdx]
movups xmm1, xmmword [r10 + rdx + 0x10]
movups xmmword [rcx + rax + 0x10], xmm1
movupd xmmword [rcx + rax], xmm0
cmp rsi, r13
jb 0x140046c3f
add rbx, r15
mov eax, 0
mov qword [rsp + 0x48], rax
cmp r12, 0x21
mov ebp, dword [rsp + 0x44]
jae 0x14004677a
jmp 0x140046735
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0x28], rax
mov byte [rsp + 0x20], 1
mov rcx, rbx
mov rdx, rsi
mov r8, rdi
mov r9, r14
call fcn.140042180
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rax, str.e_v_
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 1
mov qword [rsp + 0x80], 8
xorpd xmm0, xmm0
movupd xmmword [rsp + 0x88], xmm0
lea rdx, str._rustc_100fde5246bf56f22fb5cc85374dd841296fce0elibrarycore_src_slice_sort_stablequicksort.rsmid___len
lea rcx, [rsp + 0x70]
call fcn.1400ac6d0
lea r8, str._rustc_100fde5246bf56f22fb5cc85374dd841296fce0elibrarycore_src_slice_sort_stablequicksort.rsmid___len
mov rcx, r13
mov rdx, rsi
call fcn.1400acaf0
int3