Function at 0x1400278a0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x308
lea rbp, [rsp + 0x80]
mov rsi, r8
mov r8, rdx
mov qword [rbp + 0x268], rcx
movabs rax, 0x3fffffffffffffff
add rax, rdx
mov rcx, rax
or rcx, rdx
shr rcx, 0x20
je 0x1400278e8
xor edx, edx
div r8
jmp 0x1400278ed
xor edx, edx
div r8d
mov qword [rbp + 0x240], rax
cmp r8, 0x1001
mov qword [rbp + 0x280], r9
mov qword [rbp + 0x260], r8
jae 0x140027923
mov rax, r8
shr rax, 1
sub r8, rax
cmp r8, 0x40
mov eax, 0x40
cmovb rax, r8
jmp 0x140027932
mov rcx, r8
call dbg.sqrt_approx
mov r9, qword [rbp + 0x280]
mov qword [rbp + 0x270], rax
mov rax, qword [rbp + 0x268]
lea rcx, [rax + 0x20]
mov qword [rbp + 0x248], rcx
lea rcx, [rax + 0x10]
mov qword [rbp + 0x230], rcx
add rax, 0xfffffffffffffff0
mov qword [rbp + 0x228], rax
mov r12d, 1
xor r15d, r15d
xor r11d, r11d
mov qword [rbp + 0x278], rsi
mov rax, qword [rbp + 0x260]
sub rax, r15
jbe 0x140027a10
nop word cs:[rax + rax]
mov rdx, rax
mov rax, r15
shl rax, 4
mov rcx, qword [rbp + 0x268]
add rcx, rax
mov rbx, rdx
cmp rdx, qword [rbp + 0x270]
jae 0x140027a30
cmp byte [rbp + 0x2f0], 0
je 0x140027a50
cmp rbx, 0x20
mov eax, 0x20
cmovae rbx, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rdx, rbx
mov r8, rsi
mov r9, qword [rbp + 0x280]
mov rdi, r11
call sym.core::slice::sort::stable::quicksort::quicksort::h17145dbb1c13144d
mov r11, rdi
mov r9, qword [rbp + 0x280]
mov eax, ebx
lea rcx, [rax*2 + 1]
jmp 0x140027c60
xor ecx, ecx
mov r8d, 1
cmp r11, 2
jae 0x140027cb0
jmp 0x140027f9d
cmp rbx, 2
jae 0x140027a70
mov rdx, rbx
lea rcx, [rbx*2 + 1]
jmp 0x140027c60
mov rax, qword [rbp + 0x270]
mov rcx, rbx
cmp rax, rbx
cmovb rcx, rax
add rcx, rcx
jmp 0x140027c60
mov rdx, qword [rcx]
mov r8, qword [rcx + 0x10]
cmp r8, rdx
jae 0x140027ab4
cmp rbx, 2
jne 0x140027ad2
cmp qword [rbp + 0x270], 2
ja 0x1400279b4
lea r8, [rcx + 0x10]
mov edx, 2
mov r9d, 1
mov r14, r11
cmp r9, 1
jne 0x140027b9a
xor r10d, r10d
jmp 0x140027c0c
cmp rbx, 2
jne 0x140027b09
mov edx, 2
cmp qword [rbp + 0x270], 3
jae 0x1400279b4
jmp 0x140027c48
mov rdi, r11
mov r9, qword [rbp + 0x248]
add r9, rax
mov r10d, 2
mov r11, r8
nop dword [rax + rax]
mov rsi, r11
mov r11, qword [r9]
cmp r11, rsi
jae 0x140027b3a
inc r10
add r9, 0x10
cmp rbx, r10
jne 0x140027af0
jmp 0x140027b37
mov rdi, r11
mov r9, qword [rbp + 0x248]
add r9, rax
mov r10d, 2
mov r11, r8
nop
mov rsi, r11
mov r11, qword [r9]
cmp r11, rsi
jb 0x140027b3a
inc r10
add r9, 0x10
cmp rbx, r10
jne 0x140027b20
mov r10, rbx
cmp r10, qword [rbp + 0x270]
mov r9, qword [rbp + 0x280]
mov rsi, qword [rbp + 0x278]
mov r11, rdi
jb 0x1400279b4
cmp r8, rdx
jae 0x140027c52
mov edx, 1
cmp r10, 2
jb 0x140027c48
mov r9, r10
shr r9, 1
mov r8, r10
shl r8, 4
add r8, rcx
mov rdx, r9
shl rdx, 4
sub r8, rdx
mov rdx, r10
mov r14, r11
cmp r9, 1
je 0x140027aac
mov r11, r9
and r11, 0xfffffffffffffffe
add rax, qword [rbp + 0x230]
mov r10, r9
shl r10, 4
lea rdi, [r8 + r10]
add rdi, 0xfffffffffffffff0
xor r10d, r10d
movabs rbx, 0xffffffffffffffe
nop word cs:[rax + rax]
movups xmm0, xmmword [rax - 0x10]
movups xmm1, xmmword [rdi]
movups xmmword [rax - 0x10], xmm1
movups xmmword [rdi], xmm0
mov rsi, r10
xor rsi, rbx
add rsi, r9
shl rsi, 4
movups xmm0, xmmword [rax]
movups xmm1, xmmword [r8 + rsi]
movups xmmword [rax], xmm1
movups xmmword [r8 + rsi], xmm0
add r10, 2
add rax, 0x20
add rdi, 0xffffffffffffffe0
cmp r11, r10
jne 0x140027bd0
test r9b, 1
je 0x140027c37
mov rax, r10
not rax
add r9, rax
shl r10, 4
shl r9, 4
movups xmm0, xmmword [rcx + r10]
movups xmm1, xmmword [r8 + r9]
movups xmmword [rcx + r10], xmm1
movups xmmword [r8 + r9], xmm0
mov r9, qword [rbp + 0x280]
mov rsi, qword [rbp + 0x278]
mov r11, r14
lea rcx, [rdx*2 + 1]
jmp 0x140027c60
mov rdx, r10
lea rcx, [r10*2 + 1]
nop dword [rax]
mov rax, r12
shr rax, 1
mov r8, rcx
shr rcx, 1
lea rdx, [r15 + r15]
sub rdx, rax
lea rax, [rcx + r15*2]
mov rcx, qword [rbp + 0x240]
imul rdx, rcx
imul rax, rcx
xor rax, rdx
je 0x140027ca0
bsr rcx, rax
xor rcx, 0x3f
cmp r11, 2
jae 0x140027cb0
jmp 0x140027f9d
mov ecx, 0x40
cmp r11, 2
jb 0x140027f9d
nop
mov qword [rbp + 0x238], r8
mov rdx, r15
shl rdx, 4
mov rax, qword [rbp + 0x268]
add rax, rdx
mov qword [rbp + 0x220], rax
add rdx, qword [rbp + 0x228]
mov qword [rbp + 0x218], rdx
mov qword [rbp + 0x258], rcx
mov qword [rbp + 0x210], r15
jmp 0x140027d36
mov r15, rbx
mov rdx, r10
sub r12, rdx
mov rcx, r15
mov r8, r12
call sym.memcpy
mov r9, qword [rbp + 0x280]
mov r11, qword [rbp + 0x250]
mov rcx, qword [rbp + 0x258]
lea r12, [r13*2 + 1]
mov rsi, qword [rbp + 0x278]
mov r15, qword [rbp + 0x210]
cmp r11, 1
jbe 0x140027f90
cmp byte [rbp + r11 + 0x1cd], cl
jb 0x140027f96
dec r11
mov rbx, qword [rbp + r11*8 - 0x48]
mov rdi, rbx
shr rdi, 1
mov r14, r12
shr r14, 1
lea r13, [rdi + r14]
cmp r13, r9
ja 0x140027d80
mov eax, ebx
or eax, r12d
and eax, 1
jne 0x140027d80
add r13, r13
mov r12, r13
cmp r11, 1
ja 0x140027d36
jmp 0x140027f90
sub r15, r13
shl r15, 4
add r15, qword [rbp + 0x268]
test bl, 1
mov qword [rbp + 0x250], r11
je 0x140027db0
test r12b, 1
je 0x140027e00
cmp r12, 2
jae 0x140027e5b
jmp 0x140027d16
mov rax, rdi
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, r15
mov rdx, rdi
mov r8, rsi
mov r9, qword [rbp + 0x280]
call sym.core::slice::sort::stable::quicksort::quicksort::h17145dbb1c13144d
mov rcx, qword [rbp + 0x258]
mov r11, qword [rbp + 0x250]
mov r9, qword [rbp + 0x280]
test r12b, 1
jne 0x140027da0
mov rcx, rdi
shl rcx, 4
add rcx, r15
mov rax, r14
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rdx, r14
mov r8, rsi
mov r9, qword [rbp + 0x280]
call sym.core::slice::sort::stable::quicksort::quicksort::h17145dbb1c13144d
mov rcx, qword [rbp + 0x258]
mov r11, qword [rbp + 0x250]
mov r9, qword [rbp + 0x280]
cmp r12, 2
jb 0x140027d16
cmp rbx, 2
jb 0x140027d16
cmp rdi, r14
mov rsi, r14
cmovb rsi, rdi
cmp rsi, r9
ja 0x140027d16
mov rbx, rdi
shl rbx, 4
add rbx, r15
cmp r14, rdi
mov rdx, r15
cmovb rdx, rbx
mov r12, rsi
shl r12, 4
mov rcx, qword [rbp + 0x278]
mov r8, r12
call sym.memcpy
add r12, qword [rbp + 0x278]
cmp r14, rdi
jae 0x140027f17
mov rax, qword [rbp + 0x218]
mov r10, qword [rbp + 0x278]
nop dword [rax]
lea rcx, [rbx - 0x10]
mov rdx, qword [r12 - 0x10]
xor r8d, r8d
xor r9d, r9d
cmp rdx, qword [rbx - 0x10]
lea rdx, [r12 - 0x10]
setb r8b
cmovb rdx, rcx
setae r9b
movups xmm0, xmmword [rdx]
movups xmmword [rax], xmm0
shl r9d, 4
add rbx, r9
add rbx, 0xfffffffffffffff0
shl r8d, 4
add r12, r8
add r12, 0xfffffffffffffff0
cmp rbx, r15
je 0x140027ced
add rax, 0xfffffffffffffff0
cmp r12, r10
jne 0x140027ec0
jmp 0x140027ced
test rsi, rsi
je 0x140027f77
mov rdx, qword [rbp + 0x278]
mov r10, qword [rbp + 0x220]
nop word [rax + rax]
mov r8, rdx
mov rcx, qword [rbx]
xor eax, eax
xor edx, edx
cmp rcx, qword [r8]
setb cl
setae dl
mov r9, r8
cmovb r9, rbx
movups xmm0, xmmword [r9]
movups xmmword [r15], xmm0
shl edx, 4
add rdx, r8
add r15, 0x10
cmp rdx, r12
je 0x140027cf3
mov al, cl
shl eax, 4
add rbx, rax
cmp rbx, r10
jne 0x140027f30
jmp 0x140027cf3
mov rdx, qword [rbp + 0x278]
jmp 0x140027cf3
mov r11d, 1
mov r8, qword [rbp + 0x238]
mov qword [rbp + r11*8 - 0x48], r12
mov byte [rbp + r11 + 0x1ce], cl
cmp qword [rbp + 0x260], r15
jbe 0x140027fd7
inc r11
mov r12, r8
mov rax, r8
shr rax, 1
add r15, rax
mov rax, qword [rbp + 0x260]
sub rax, r15
jbe 0x140027a10
jmp 0x140027990
test r12b, 1
jne 0x140028013
mov rdx, qword [rbp + 0x260]
mov rax, rdx
or rax, 1
bsr rax, rax
xor eax, 0x3f
add eax, eax
xor eax, 0x7e
mov dword [rsp + 0x20], eax
mov qword [rsp + 0x28], 0
mov rcx, qword [rbp + 0x268]
mov r8, rsi
call sym.core::slice::sort::stable::quicksort::quicksort::h17145dbb1c13144d
nop
add rsp, 0x308
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret