Function at 0x1401a1b40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x2e8
mov qword [rsp + 0x58], rcx
cmp rdx, 2
jb 0x1401a21cc
mov rsi, rdx
movabs rax, 0x3fffffffffffffff
add rax, rdx
mov rcx, rax
or rcx, rdx
shr rcx, 0x20
je 0x1401a1b85
xor edx, edx
div rsi
jmp 0x1401a1b89
xor edx, edx
div esi
mov qword [rsp + 0x60], rax
cmp rsi, 0x1001
mov qword [rsp + 0x48], r9
mov qword [rsp + 0x40], r8
jae 0x1401a1bbc
mov rax, rsi
shr rax, 1
mov rcx, rsi
sub rcx, rax
cmp rcx, 0x40
mov eax, 0x40
cmovb rax, rcx
jmp 0x1401a1bce
mov rcx, rsi
call sym.core::slice::sort::stable::drift::sqrt_approx::hcb9be7d3a33f8944
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x58]
add rax, 0xfffffffffffffff8
mov qword [rsp + 0x70], rax
mov r13d, 1
xor r12d, r12d
xor r14d, r14d
mov qword [rsp + 0x80], rsi
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x58]
lea rax, [rax + r12*8]
mov qword [rsp + 0x38], rax
sub rsi, r12
jbe 0x1401a1c70
cmp rsi, qword [rsp + 0x50]
jae 0x1401a1c90
cmp byte [rsp + 0x350], 0
je 0x1401a1c9e
cmp rsi, 0x20
mov eax, 0x20
cmovae rsi, rax
mov rax, qword [rsp + 0x358]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x38]
mov rdx, rsi
call sym.core::slice::sort::stable::quicksort::quicksort::ha6f8f404175e8443
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
mov eax, esi
jmp 0x1401a1e80
xor ecx, ecx
mov r10d, 1
cmp r14, 2
jae 0x1401a1ee0
jmp 0x1401a215b
cmp rsi, 2
jae 0x1401a1cb5
mov rax, rsi
jmp 0x1401a1e80
mov rcx, rsi
mov rax, qword [rsp + 0x50]
cmp rax, rsi
cmovb rcx, rax
add rcx, rcx
jmp 0x1401a1e88
mov r11, qword [rsp + 0x38]
movzx ecx, byte [r11]
movzx edx, byte [r11 + 8]
cmp dl, cl
jae 0x1401a1ced
cmp rsi, 2
jne 0x1401a1d2c
lea rcx, [r11 + 8]
mov eax, 2
mov edx, 1
cmp rdx, 1
jne 0x1401a1da9
xor r8d, r8d
jmp 0x1401a1e3e
mov r10, rsi
mov eax, 2
cmp rsi, 2
je 0x1401a1e80
mov r11d, 2
mov eax, edx
nop word [rax + rax]
mov r10d, eax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + r11*8]
cmp al, r10b
jb 0x1401a1d5d
inc r11
cmp rsi, r11
jne 0x1401a1d10
jmp 0x1401a1d5a
mov r11d, 2
mov eax, edx
nop word cs:[rax + rax]
mov r10d, eax
mov rax, qword [rsp + 0x38]
movzx eax, byte [rax + r11*8]
cmp al, r10b
jae 0x1401a1d5d
inc r11
cmp rsi, r11
jne 0x1401a1d40
mov r11, rsi
cmp r11, qword [rsp + 0x50]
jb 0x1401a1c1a
cmp dl, cl
jae 0x1401a1e76
mov eax, 1
cmp r11, 2
jb 0x1401a1e80
mov rdx, r11
shr rdx, 1
mov r8, qword [rsp + 0x38]
lea rcx, [r8 + r11*8]
lea rax, [rdx*8]
sub rcx, rax
mov rax, r11
mov r11, r8
cmp rdx, 1
je 0x1401a1ce5
mov r9, rdx
and r9, 0xfffffffffffffffe
lea r10, [rcx + rdx*8]
add r10, 0xfffffffffffffff8
xor r8d, r8d
movabs r15, 0x1ffffffffffffffe
nop word cs:[rax + rax]
mov r11, qword [rsp + 0x38]
movzx r11d, byte [r11 + r8*8]
mov rsi, qword [rsp + 0x38]
mov esi, dword [rsi + r8*8 + 4]
mov rdi, qword [r10]
mov rbx, qword [rsp + 0x38]
mov qword [rbx + r8*8], rdi
mov byte [r10], r11b
mov dword [r10 + 4], esi
mov r11, r8
xor r11, r15
add r11, rdx
mov rsi, qword [rsp + 0x38]
movzx ebx, byte [rsi + r8*8 + 8]
mov rsi, qword [rsp + 0x38]
mov esi, dword [rsi + r8*8 + 0xc]
mov rdi, qword [rcx + r11*8]
mov rbp, qword [rsp + 0x38]
mov qword [rbp + r8*8 + 8], rdi
mov byte [rcx + r11*8], bl
mov dword [rcx + r11*8 + 4], esi
mov r11, qword [rsp + 0x38]
add r8, 2
add r10, 0xfffffffffffffff0
cmp r9, r8
jne 0x1401a1dd0
test dl, 1
je 0x1401a1e6a
mov r9, r8
not r9
add rdx, r9
movzx r9d, byte [r11 + r8*8]
mov r10d, dword [r11 + r8*8 + 4]
mov rsi, r11
mov r11, qword [rcx + rdx*8]
mov qword [rsi + r8*8], r11
mov byte [rcx + rdx*8], r9b
mov dword [rcx + rdx*8 + 4], r10d
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
jmp 0x1401a1e80
mov rax, r11
nop dword [rax]
lea rcx, [rax*2 + 1]
mov rax, r13
shr rax, 1
mov r10, rcx
shr rcx, 1
lea rdx, [r12 + r12]
sub rdx, rax
lea rax, [rcx + r12*2]
mov rcx, qword [rsp + 0x60]
imul rdx, rcx
imul rax, rcx
xor rax, rdx
je 0x1401a1ec4
bsr rcx, rax
xor rcx, 0x3f
cmp r14, 2
jae 0x1401a1ee0
jmp 0x1401a215b
mov ecx, 0x40
cmp r14, 2
jb 0x1401a215b
nop word cs:[rax + rax]
mov qword [rsp + 0x68], r10
mov rax, qword [rsp + 0x70]
lea rax, [rax + r12*8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], rcx
jmp 0x1401a1f35
mov r12, r13
mov rdx, r10
sub r8, rdx
mov rcx, r12
call sym.memcpy
mov r9, qword [rsp + 0x48]
mov r8, qword [rsp + 0x40]
lea r13, [rbp*2 + 1]
mov r12, rsi
mov rcx, qword [rsp + 0x88]
cmp r14, 1
jbe 0x1401a2150
cmp byte [rsp + r14 + 0x95], cl
jb 0x1401a2156
dec r14
mov rdi, qword [rsp + r14*8 + 0xd8]
mov r15, rdi
shr r15, 1
mov rbx, r13
shr rbx, 1
lea rbp, [r15 + rbx]
cmp rbp, r9
ja 0x1401a1f80
mov eax, edi
or eax, r13d
and eax, 1
jne 0x1401a1f80
add rbp, rbp
mov r13, rbp
cmp r14, 1
ja 0x1401a1f35
jmp 0x1401a2150
mov rsi, r12
mov rax, r12
sub rax, rbp
mov rcx, qword [rsp + 0x58]
lea r12, [rcx + rax*8]
test dil, 1
je 0x1401a1fb0
test r13b, 1
je 0x1401a1ff8
cmp r13, 2
jae 0x1401a2045
jmp 0x1401a1f18
mov rax, r15
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov rcx, qword [rsp + 0x358]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, r12
mov rdx, r15
call sym.core::slice::sort::stable::quicksort::quicksort::ha6f8f404175e8443
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
test r13b, 1
jne 0x1401a1f9e
lea rcx, [r12 + r15*8]
mov rax, rbx
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov rdx, qword [rsp + 0x358]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rdx, rbx
call sym.core::slice::sort::stable::quicksort::quicksort::ha6f8f404175e8443
mov r8, qword [rsp + 0x40]
mov r9, qword [rsp + 0x48]
cmp r13, 2
jb 0x1401a1f18
cmp rdi, 2
jb 0x1401a1f18
cmp r15, rbx
mov rdi, rbx
cmovb rdi, r15
cmp rdi, r9
ja 0x1401a1f18
lea r13, [r12 + r15*8]
cmp rbx, r15
mov rdx, r12
cmovb rdx, r13
mov rcx, r8
lea r8, [rdi*8]
call sym.memcpy
mov r10, qword [rsp + 0x40]
lea r8, [r10 + rdi*8]
cmp rbx, r15
jae 0x1401a20e7
mov rax, qword [rsp + 0x78]
nop word cs:[rax + rax]
movzx ecx, byte [r8 - 8]
xor edx, edx
xor r9d, r9d
cmp cl, byte [r13 - 8]
setb dl
setae r9b
mov rcx, r8
cmovb rcx, r13
mov rcx, qword [rcx - 8]
mov qword [rax], rcx
lea r13, [r13 + r9*8 - 8]
lea r8, [r8 + rdx*8]
add r8, 0xfffffffffffffff8
cmp r13, r12
je 0x1401a1efd
add rax, 0xfffffffffffffff8
cmp r8, r10
jne 0x1401a20a0
jmp 0x1401a1efd
test rdi, rdi
mov r11, qword [rsp + 0x38]
mov rdx, r10
je 0x1401a1f03
nop dword [rax + rax]
movzx ecx, byte [r13]
xor eax, eax
xor r9d, r9d
cmp cl, byte [rdx]
setb cl
setae r9b
mov r10, rdx
cmovb r10, r13
mov r10, qword [r10]
mov qword [r12], r10
lea rdx, [rdx + r9*8]
add r12, 8
cmp rdx, r8
je 0x1401a1f03
mov al, cl
lea r13, [r13 + rax*8]
cmp r13, r11
jne 0x1401a2100
jmp 0x1401a1f03
mov r14d, 1
mov r10, qword [rsp + 0x68]
mov qword [rsp + r14*8 + 0xd8], r13
mov byte [rsp + r14 + 0x96], cl
mov rsi, qword [rsp + 0x80]
cmp rsi, r12
jbe 0x1401a218c
inc r14
mov r13, r10
mov rax, r10
shr rax, 1
add r12, rax
jmp 0x1401a1c00
test r13b, 1
jne 0x1401a21cc
mov rax, rsi
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov rcx, qword [rsp + 0x358]
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x58]
mov rdx, rsi
call sym.core::slice::sort::stable::quicksort::quicksort::ha6f8f404175e8443
nop
add rsp, 0x2e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret