Function at 0x1400b3a40
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 rsi, rdx
mov qword [rsp + 0x50], rcx
movabs rax, 0x3fffffffffffffff
add rax, rdx
mov rcx, rax
or rcx, rdx
shr rcx, 0x20
je 0x1400b3a7b
xor edx, edx
div rsi
jmp 0x1400b3a7f
xor edx, edx
div esi
mov qword [rsp + 0x58], rax
cmp rsi, 0x1001
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r8
jae 0x1400b3ab2
mov rax, rsi
shr rax, 1
mov rcx, rsi
sub rcx, rax
cmp rcx, 0x40
mov eax, 0x40
cmovb rax, rcx
jmp 0x1400b3ac4
mov rcx, rsi
call sym.core::slice::sort::stable::drift::sqrt_approx::hb8357f463699dba4
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x30]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x50]
lea rcx, [rax + 8]
mov qword [rsp + 0x68], rcx
add rax, 0xfffffffffffffff8
mov qword [rsp + 0x70], rax
mov r13d, 1
xor r15d, r15d
xor r14d, r14d
mov qword [rsp + 0x80], rsi
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x50]
lea rax, [rax + r15*8]
mov qword [rsp + 0x40], rax
sub rsi, r15
jbe 0x1400b3b70
cmp rsi, qword [rsp + 0x48]
jae 0x1400b3b90
cmp byte [rsp + 0x350], 0
je 0x1400b3ba7
cmp rsi, 0x20
mov eax, 0x20
cmovae rsi, rax
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, qword [rsp + 0x40]
mov rdx, rsi
mov r9, qword [rsp + 0x30]
call sym.core::slice::sort::stable::quicksort::quicksort::hbeb63f5738ad7bc1
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x30]
mov eax, esi
jmp 0x1400b3b9d
xor esi, esi
mov eax, 1
mov qword [rsp + 0x60], rax
cmp r14, 2
jae 0x1400b3c10
jmp 0x1400b3e96
cmp rsi, 2
jae 0x1400b3ecd
mov rax, rsi
lea rsi, [rax*2 + 1]
jmp 0x1400b3bb6
mov rax, qword [rsp + 0x48]
cmp rax, rsi
cmovb rsi, rax
add rsi, rsi
mov rax, r13
shr rax, 1
mov qword [rsp + 0x60], rsi
shr rsi, 1
lea rdx, [r15 + r15]
sub rdx, rax
lea rax, [rsi + r15*2]
mov rcx, qword [rsp + 0x58]
imul rdx, rcx
imul rax, rcx
xor rax, rdx
je 0x1400b3bf4
bsr rsi, rax
xor rsi, 0x3f
cmp r14, 2
jae 0x1400b3c10
jmp 0x1400b3e96
mov esi, 0x40
cmp r14, 2
jb 0x1400b3e96
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x70]
lea rax, [rax + r15*8]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], r15
jmp 0x1400b3c5d
mov r15, r13
mov rdx, r10
sub r8, rdx
mov rcx, r15
call sym.memcpy
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
lea r13, [rbp*2 + 1]
mov r15, qword [rsp + 0x88]
cmp r14, 1
jbe 0x1400b3e90
cmp byte [rsp + r14 + 0x95], sil
jb 0x1400b3e96
dec r14
mov rdi, qword [rsp + r14*8 + 0xd8]
mov r12, rdi
shr r12, 1
mov rbx, r13
shr rbx, 1
lea rbp, [r12 + rbx]
cmp rbp, r9
ja 0x1400b3cb0
mov eax, edi
or eax, r13d
and eax, 1
jne 0x1400b3cb0
add rbp, rbp
mov r13, rbp
cmp r14, 1
ja 0x1400b3c5d
jmp 0x1400b3e90
mov rax, r15
sub rax, rbp
mov rcx, qword [rsp + 0x50]
lea r15, [rcx + rax*8]
test dil, 1
je 0x1400b3ce0
test r13b, 1
je 0x1400b3d20
cmp r13, 2
jae 0x1400b3d65
jmp 0x1400b3c43
mov rax, r12
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, r12
mov r9, qword [rsp + 0x30]
call sym.core::slice::sort::stable::quicksort::quicksort::hbeb63f5738ad7bc1
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x30]
test r13b, 1
jne 0x1400b3ccb
lea rcx, [r15 + r12*8]
mov rax, rbx
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, rbx
mov r9, qword [rsp + 0x30]
call sym.core::slice::sort::stable::quicksort::quicksort::hbeb63f5738ad7bc1
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x30]
cmp r13, 2
jb 0x1400b3c43
cmp rdi, 2
jb 0x1400b3c43
cmp r12, rbx
mov rdi, rbx
cmovb rdi, r12
cmp rdi, r9
ja 0x1400b3c43
lea r13, [r15 + r12*8]
cmp rbx, r12
mov rdx, r15
cmovb rdx, r13
mov rcx, r8
lea r8, [rdi*8]
call sym.memcpy
mov r10, qword [rsp + 0x38]
lea r8, [r10 + rdi*8]
cmp rbx, r12
jae 0x1400b3e1d
mov rax, qword [rsp + 0x78]
nop word cs:[rax + rax]
mov ecx, dword [r8 - 8]
mov edx, dword [r8 - 4]
xor r9d, r9d
cmp edx, dword [r13 - 4]
setb r9b
xor edx, edx
cmp ecx, dword [r13 - 8]
setb dl
cmove edx, r9d
test dl, dl
mov rcx, r8
cmovne rcx, r13
mov rcx, qword [rcx - 8]
mov qword [rax], rcx
movzx ecx, dl
xor dl, 1
movzx edx, dl
lea r13, [r13 + rdx*8 - 8]
lea r8, [r8 + rcx*8]
add r8, 0xfffffffffffffff8
cmp r13, r15
je 0x1400b3c28
add rax, 0xfffffffffffffff8
cmp r8, r10
jne 0x1400b3dc0
jmp 0x1400b3c28
mov rdx, r10
test rdi, rdi
je 0x1400b3c2e
nop dword [rax]
mov ecx, dword [r13]
mov eax, dword [r13 + 4]
xor r9d, r9d
cmp eax, dword [rdx + 4]
setb r9b
xor eax, eax
cmp ecx, dword [rdx]
setb al
cmove eax, r9d
mov ecx, eax
xor cl, 1
test al, al
mov r9, rdx
cmovne r9, r13
mov r9, qword [r9]
mov qword [r15], r9
movzx ecx, cl
lea rdx, [rdx + rcx*8]
add r15, 8
cmp rdx, r8
je 0x1400b3c2e
movzx eax, al
lea r13, [r13 + rax*8]
cmp r13, qword [rsp + 0x40]
jne 0x1400b3e30
jmp 0x1400b3c2e
mov r14d, 1
mov qword [rsp + r14*8 + 0xd8], r13
mov byte [rsp + r14 + 0x96], sil
mov rsi, qword [rsp + 0x80]
cmp rsi, r15
jbe 0x1400b40e1
inc r14
mov r13, qword [rsp + 0x60]
mov rax, r13
shr rax, 1
add r15, rax
jmp 0x1400b3b00
mov r10, r8
mov r11, qword [rsp + 0x40]
mov edx, dword [r11 + 8]
mov r8d, dword [r11 + 0xc]
xor ecx, ecx
cmp r8d, dword [r11 + 4]
setb cl
xor eax, eax
cmp edx, dword [r11]
setb al
cmove eax, ecx
test al, al
je 0x1400b3f2f
cmp rsi, 2
jne 0x1400b3f4e
cmp qword [rsp + 0x48], 2
mov r8, r10
ja 0x1400b3b1a
mov rax, qword [rsp + 0x40]
lea rdx, [rax + 8]
mov eax, 2
mov r8d, 1
cmp r8, 1
jne 0x1400b403f
xor ecx, ecx
jmp 0x1400b40a6
cmp rsi, 2
jne 0x1400b3f9c
mov eax, 2
cmp qword [rsp + 0x48], 2
mov r8, r10
ja 0x1400b3b1a
jmp 0x1400b3b9d
mov ecx, 2
nop word cs:[rax + rax]
mov r9d, edx
mov r10d, r8d
mov r8, qword [rsp + 0x40]
mov edx, dword [r8 + rcx*8]
mov r8d, dword [r8 + rcx*8 + 4]
xor r11d, r11d
cmp r8d, r10d
setb r11b
xor r10d, r10d
cmp edx, r9d
setb r10b
cmove r10d, r11d
cmp r10b, 1
jne 0x1400b3fec
inc rcx
cmp rsi, rcx
jne 0x1400b3f60
jmp 0x1400b3fe9
mov ecx, 2
nop word cs:[rax + rax]
mov r9d, edx
mov r10d, r8d
mov r8, qword [rsp + 0x40]
mov edx, dword [r8 + rcx*8]
mov r8d, dword [r8 + rcx*8 + 4]
xor r11d, r11d
cmp r8d, r10d
setb r11b
xor r10d, r10d
cmp edx, r9d
setb r10b
cmove r10d, r11d
test r10b, r10b
jne 0x1400b3fec
inc rcx
cmp rsi, rcx
jne 0x1400b3fb0
mov rcx, rsi
cmp rcx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
jb 0x1400b3b1a
test al, al
je 0x1400b40d9
mov eax, 1
cmp rcx, 2
jb 0x1400b3b9d
mov r8, rcx
shr r8, 1
mov rax, qword [rsp + 0x40]
lea rdx, [rax + rcx*8]
lea rax, [r8*8]
sub rdx, rax
mov rax, rcx
cmp r8, 1
je 0x1400b3f28
mov r9, r8
and r9, 0xfffffffffffffffe
mov rcx, qword [rsp + 0x68]
lea r10, [rcx + r15*8]
lea r11, [rdx + r8*8]
add r11, 0xfffffffffffffff8
xor ecx, ecx
movabs r12, 0x1ffffffffffffffe
nop word cs:[rax + rax]
mov rsi, qword [r11]
mov rdi, qword [r10 + rcx*8 - 8]
mov qword [r10 + rcx*8 - 8], rsi
mov qword [r11], rdi
mov rsi, rcx
xor rsi, r12
add rsi, r8
mov rdi, qword [rdx + rsi*8]
mov rbx, qword [r10 + rcx*8]
mov qword [r10 + rcx*8], rdi
mov qword [rdx + rsi*8], rbx
add rcx, 2
add r11, 0xfffffffffffffff0
cmp r9, rcx
jne 0x1400b4070
test r8b, 1
je 0x1400b40ca
mov r9, rcx
not r9
add r8, r9
mov r9, qword [rdx + r8*8]
mov r11, qword [rsp + 0x40]
mov r10, qword [r11 + rcx*8]
mov qword [r11 + rcx*8], r9
mov qword [rdx + r8*8], r10
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
jmp 0x1400b3b9d
mov rax, rcx
jmp 0x1400b3b9d
test r13b, 1
jne 0x1400b4114
mov rax, rsi
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 [rsp + 0x50]
mov rdx, rsi
call sym.core::slice::sort::stable::quicksort::quicksort::hbeb63f5738ad7bc1
nop
add rsp, 0x2e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret