Function at 0x1400ffaa0
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 r13, rdx
mov qword [rsp + 0x38], rcx
cmp rdx, 0x15
jae 0x1400ffaf1
cmp r13, 1
jbe 0x14010017a
mov r8d, 1
mov rcx, qword [rsp + 0x38]
mov rdx, r13
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140100ab0
lea rax, [r13*4]
movabs rcx, 0x7ffffffffffffff8
and rcx, rax
movzx eax, byte [0x1402dfa01]
mov edx, 4
mov qword [rsp + 0x58], rcx
call fcn.140019a90
test rax, rax
je 0x14010029b
mov r12, rax
movzx eax, byte [0x1402dfa01]
mov ecx, 0x100
mov edx, 8
call fcn.140019a90
test rax, rax
je 0x1401002a7
mov rbx, rax
mov rax, qword [rsp + 0x38]
lea rcx, [rax + 0xc]
mov qword [rsp + 0x68], rcx
lea rcx, [rax - 4]
mov qword [rsp + 0x60], rcx
add rax, 0xfffffffffffffff8
mov qword [rsp + 0x70], rax
mov eax, 0x10
mov qword [rsp + 0x50], rax
xor ebp, ebp
xor esi, esi
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x78], r13
jmp 0x1400ffba3
mov esi, 1
mov rbp, qword [rsp + 0x20]
cmp rbp, r13
jae 0x14010013d
mov rax, r13
sub rax, rbp
mov rcx, qword [rsp + 0x38]
lea rcx, [rcx + rbp*8]
cmp rax, 2
jae 0x1400ffc20
mov r8, rax
lea rdx, [r8 + rbp]
mov rdi, rdx
sub rdi, rbp
jb 0x140100242
cmp rdx, r13
ja 0x140100242
jae 0x1400ffcb0
cmp r8, 0xa
jae 0x1400ffcb0
lea rdi, [rbp + 0xa]
cmp rdi, r13
cmovae rdi, r13
mov qword [rsp + 0x20], rdi
sub rdi, rbp
jb 0x14010025a
cmp r8, 1
adc r8, 0
mov rdx, rdi
call fcn.140100ab0
cmp rsi, qword [rsp + 0x50]
je 0x1400ffcbc
jmp 0x1400ffd1b
movzx edx, byte [rcx + 8]
cmp dl, byte [rcx]
jae 0x140100020
mov r8d, 2
cmp rax, 2
je 0x1400ffc58
nop dword [rax + rax]
mov r9d, edx
movzx edx, byte [rcx + r8*8]
cmp dl, r9b
jae 0x1400ffc58
inc r8
cmp rax, r8
jne 0x1400ffc40
mov r8, rax
mov rdx, r8
add rdx, rbp
jb 0x14010027a
cmp rdx, r13
ja 0x140100289
cmp r8, 2
jb 0x1400ffbbf
mov qword [rsp + 0x20], rdx
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rbx
mov rax, r8
shr rax, 1
lea rdx, [rcx + r8*8]
lea r9, [rax*8]
sub rdx, r9
cmp rax, 1
jne 0x140100058
xor r9d, r9d
jmp 0x1401000e7
mov qword [rsp + 0x20], rdx
cmp rsi, qword [rsp + 0x50]
jne 0x1400ffd1b
mov r14, rbx
mov rcx, rsi
shl rcx, 5
movzx eax, byte [0x1402dfa01]
mov edx, 8
call fcn.140019a90
test rax, rax
je 0x14010026e
mov r15, rsi
mov rsi, rax
lea rax, [r15 + r15]
mov qword [rsp + 0x50], rax
mov rbx, r15
shl rbx, 4
mov rcx, rsi
mov rdx, r14
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
mov rcx, r14
mov rdx, rbx
call fcn.140019aa0
mov rbx, rsi
mov rsi, r15
mov rax, rsi
shl rax, 4
mov qword [rbx + rax], rdi
mov qword [rbx + rax + 8], rbp
inc rsi
mov rax, rsi
cmp rsi, 2
mov qword [rsp + 0x40], rbx
jae 0x1400ffdb3
jmp 0x1400ffb95
mov rbx, rdi
mov r12, qword [rsp + 0x28]
mov rdx, r12
mov rsi, r14
mov r14, qword [rsp + 0x30]
sub r8, rdx
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsp + 0x80]
add rax, r13
mov qword [r15], rax
mov rax, qword [rsp + 0x88]
mov qword [r15 + 8], rax
lea rdx, [r14 + 0x10]
mov rax, qword [rsp + 0x90]
not rax
add rsi, rax
shl rsi, 4
mov rcx, r14
mov r8, rsi
call sub.VCRUNTIME140.dll_memmove
mov rax, qword [rsp + 0x48]
cmp rax, 1
mov r13, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x40]
jbe 0x1400ffb90
mov rsi, rax
lea r10, [rax - 1]
mov rcx, r10
shl rcx, 4
mov rax, qword [rbx + rcx]
mov rcx, qword [rbx + rcx + 8]
add rcx, rax
cmp rcx, r13
je 0x1400ffe20
mov rdx, rsi
shl rdx, 4
mov r8, qword [rdx + rbx - 0x20]
cmp r8, rax
jbe 0x1400ffe20
cmp rsi, 2
jbe 0x14010004e
lea r11, [rsi - 3]
mov rcx, r11
shl rcx, 4
mov rcx, qword [rbx + rcx]
lea r9, [r8 + rax]
cmp rcx, r9
jbe 0x1400ffe35
cmp rsi, 3
jbe 0x140100133
add r8, rcx
cmp qword [rdx + rbx - 0x40], r8
jbe 0x1400ffe35
jmp 0x1400ffb95
cmp rsi, 3
jb 0x1400ffe3a
lea r11, [rsi - 3]
mov rcx, r11
shl rcx, 4
mov rcx, qword [rbx + rcx]
cmp rcx, rax
jb 0x1400ffe3e
lea r11, [rsi - 2]
cmp rsi, r11
jbe 0x14010018f
lea r15, [r11 + 1]
cmp rsi, r15
jbe 0x1401001d8
mov r14, rsi
mov rax, r11
shl rax, 4
mov rcx, qword [rbx + rax + 8]
shl r15, 4
mov rdx, qword [rbx + r15]
mov rbp, qword [rbx + r15 + 8]
add rbp, rdx
mov rsi, rbp
sub rsi, rcx
jb 0x140100221
cmp rbp, r13
ja 0x140100230
mov qword [rsp + 0x80], rdx
mov qword [rsp + 0x90], r11
mov qword [rsp + 0x48], r10
lea rdx, [rbx + rax]
mov qword [rsp + 0x30], rdx
mov r13, qword [rbx + rax]
add r15, rbx
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x88], rcx
lea rbx, [rax + rcx*8]
lea rdi, [rbx + r13*8]
mov r12, rsi
sub r12, r13
cmp r12, r13
jae 0x1400fff70
lea r8, [r12*8]
mov rsi, qword [rsp + 0x28]
mov rcx, rsi
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsi + r12*8]
test r13, r13
jle 0x1400ffd41
test r12, r12
mov rsi, r14
jle 0x140100003
mov rax, qword [rsp + 0x70]
lea rax, [rax + rbp*8]
mov r12, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
nop word cs:[rax + rax]
movzx ecx, byte [r8 - 8]
movzx edx, byte [rdi - 8]
cmp cl, dl
mov r9d, 0
sbb r9, r9
cmp cl, dl
mov r10d, 0
adc r10, 0xffffffffffffffff
cmp cl, dl
lea rdi, [rdi + r9*8]
lea r8, [r8 + r10*8]
mov rcx, r8
cmovb rcx, rdi
mov rcx, qword [rcx]
mov qword [rax], rcx
cmp rdi, rbx
jbe 0x1400fff65
add rax, 0xfffffffffffffff8
cmp r8, r12
ja 0x1400fff20
mov rbx, rdi
mov rdx, r12
jmp 0x1400ffd54
lea r8, [r13*8]
mov r12, qword [rsp + 0x28]
mov rcx, r12
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea r8, [r12 + r13*8]
test r13, r13
jle 0x1400ffd49
cmp rsi, r13
jle 0x1400ffd49
mov rax, qword [rsp + 0x38]
lea rax, [rax + rbp*8]
mov rdx, r12
mov rsi, r14
mov r14, qword [rsp + 0x30]
nop word cs:[rax + rax]
movzx r9d, byte [rdi]
xor r10d, r10d
xor ecx, ecx
cmp r9b, byte [rdx]
setae r10b
setb r9b
mov r11, rdx
cmovb r11, rdi
mov r11, qword [r11]
mov qword [rbx], r11
add rbx, 8
lea rdx, [rdx + r10*8]
cmp rdx, r8
jae 0x1400ffd54
mov cl, r9b
lea rdi, [rdi + rcx*8]
cmp rdi, rax
jb 0x1400fffc0
jmp 0x1400ffd54
mov rbx, rdi
mov r12, qword [rsp + 0x28]
mov rdx, r12
jmp 0x1400ffd4f
mov r8d, 2
cmp rax, 2
je 0x1400ffbbb
mov r9d, edx
movzx edx, byte [rcx + r8*8]
cmp dl, r9b
jb 0x1400ffbbb
inc r8
cmp rax, r8
jne 0x140100030
jmp 0x1400ffbb8
mov esi, 2
jmp 0x1400ffb95
mov r10, rax
and r10, 0xfffffffffffffffe
mov r9, qword [rsp + 0x68]
lea r11, [r9 + rbp*8]
mov r9, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x20]
lea rsi, [r9 + rsi*8]
xor r9d, r9d
nop dword [rax]
movzx ebx, byte [r11 + r9*8 - 0xc]
mov edi, dword [r11 + r9*8 - 8]
movzx r14d, byte [rsi - 4]
mov r15d, dword [rsi]
mov byte [r11 + r9*8 - 0xc], r14b
mov dword [r11 + r9*8 - 8], r15d
mov byte [rsi - 4], bl
mov dword [rsi], edi
mov rdi, r9
movabs rbx, 0x1ffffffffffffffe
xor rdi, rbx
add rdi, rax
movzx ebx, byte [r11 + r9*8 - 4]
mov r14d, dword [r11 + r9*8]
movzx r15d, byte [rdx + rdi*8]
mov r12d, dword [rdx + rdi*8 + 4]
mov byte [r11 + r9*8 - 4], r15b
mov dword [r11 + r9*8], r12d
mov byte [rdx + rdi*8], bl
mov dword [rdx + rdi*8 + 4], r14d
add r9, 2
add rsi, 0xfffffffffffffff0
cmp r10, r9
jne 0x140100080
test r8b, 2
je 0x14010011a
mov r10, r9
not r10
add rax, r10
movzx r10d, byte [rcx + r9*8]
mov r11d, dword [rcx + r9*8 + 4]
movzx ebx, byte [rdx + rax*8]
mov esi, dword [rdx + rax*8 + 4]
mov byte [rcx + r9*8], bl
mov dword [rcx + r9*8 + 4], esi
mov byte [rdx + rax*8], r10b
mov dword [rdx + rax*8 + 4], r11d
mov r12, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdx, qword [rsp + 0x20]
jmp 0x1400ffbbf
mov esi, 3
jmp 0x1400ffb95
mov rdx, qword [rsp + 0x50]
shl rdx, 4
mov r8d, 8
mov rcx, rbx
call fcn.140019aa0
mov r8d, 4
mov rcx, r12
mov rdx, qword [rsp + 0x58]
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
jmp fcn.140019aa0
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
lea rax, str.Index_out_of_bounds
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rax, str._rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04librarycore_src_slice_sort.rs
mov qword [rsp + 0xa8], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
lea rdx, str._rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04librarycore_src_slice_sort.rs
lea rcx, [rsp + 0x98]
call fcn.140219f10
lea rax, str.Index_out_of_bounds
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 1
lea rax, str._rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04librarycore_src_slice_sort.rs
mov qword [rsp + 0xa8], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0xb0], xmm0
lea rdx, str._rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04librarycore_src_slice_sort.rs
lea rcx, [rsp + 0x98]
call fcn.140219f10
lea r8, str._rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04librarycore_src_slice_sort.rs
mov rdx, rbp
call fcn.14021a530
lea r8, str._rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04librarycore_src_slice_sort.rs
mov rcx, rbp
mov rdx, r13
call fcn.14021a4b0
lea rcx, str.assertion_failed:_end___start__end___len
lea r8, str._rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04librarycore_src_slice_sort.rs
mov edx, 0x2c
call fcn.140219fe0
lea r8, str._rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04librarycore_src_slice_sort.rs
mov rcx, rbp
mov rdx, qword [rsp + 0x20]
call fcn.14021a530
lea rcx, str._rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04librarycore_src_slice_sort.rs
call fcn.140219e80
lea r8, str._rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04librarycore_src_slice_sort.rs
mov rcx, rbp
call fcn.14021a530
lea r8, str._rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04librarycore_src_slice_sort.rs
mov rcx, rdx
mov rdx, r13
call fcn.14021a4b0
lea rcx, str._rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04librarycore_src_slice_sort.rs
call fcn.140219e80
lea rcx, str._rustc_25ef9e3d85d934b27d9dada2f9dd52b1dc63bb04librarycore_src_slice_sort.rs
call fcn.140219e80
int3