Function at 0x1400b3350
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 0x1400b338b
xor edx, edx
div rsi
jmp 0x1400b338f
xor edx, edx
div esi
mov qword [rsp + 0x58], rax
cmp rsi, 0x1001
mov qword [rsp + 0x30], r9
mov qword [rsp + 0x38], r8
jae 0x1400b33c2
mov rax, rsi
shr rax, 1
mov rcx, rsi
sub rcx, rax
cmp rcx, 0x40
mov eax, 0x40
cmovb rax, rcx
jmp 0x1400b33d4
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 + 3]
mov qword [rsp + 0x68], rcx
add rax, 0xfffffffffffffffe
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*2]
mov qword [rsp + 0x40], rax
sub rsi, r15
jbe 0x1400b3480
cmp rsi, qword [rsp + 0x48]
jae 0x1400b34a0
cmp byte [rsp + 0x350], 0
je 0x1400b34b7
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::he3cb3bc89566cc7b
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x30]
mov eax, esi
jmp 0x1400b34ad
xor esi, esi
mov eax, 1
mov qword [rsp + 0x60], rax
cmp r14, 2
jae 0x1400b3520
jmp 0x1400b3796
cmp rsi, 2
jae 0x1400b37cd
mov rax, rsi
lea rsi, [rax*2 + 1]
jmp 0x1400b34c6
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 0x1400b3504
bsr rsi, rax
xor rsi, 0x3f
cmp r14, 2
jae 0x1400b3520
jmp 0x1400b3796
mov esi, 0x40
cmp r14, 2
jb 0x1400b3796
nop word cs:[rax + rax]
mov rax, qword [rsp + 0x70]
lea rax, [rax + r15*2]
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x88], r15
jmp 0x1400b356d
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 0x1400b3790
cmp byte [rsp + r14 + 0x95], sil
jb 0x1400b3796
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 0x1400b35c0
mov eax, edi
or eax, r13d
and eax, 1
jne 0x1400b35c0
add rbp, rbp
mov r13, rbp
cmp r14, 1
ja 0x1400b356d
jmp 0x1400b3790
mov rax, r15
sub rax, rbp
mov rcx, qword [rsp + 0x50]
lea r15, [rcx + rax*2]
test dil, 1
je 0x1400b35f0
test r13b, 1
je 0x1400b3630
cmp r13, 2
jae 0x1400b3675
jmp 0x1400b3553
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::he3cb3bc89566cc7b
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x30]
test r13b, 1
jne 0x1400b35db
lea rcx, [r15 + r12*2]
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::he3cb3bc89566cc7b
mov r8, qword [rsp + 0x38]
mov r9, qword [rsp + 0x30]
cmp r13, 2
jb 0x1400b3553
cmp rdi, 2
jb 0x1400b3553
cmp r12, rbx
mov rdi, rbx
cmovb rdi, r12
cmp rdi, r9
ja 0x1400b3553
lea r13, [r15 + r12*2]
cmp rbx, r12
mov rdx, r15
cmovb rdx, r13
mov rcx, r8
lea r8, [rdi + rdi]
call sym.memcpy
mov r10, qword [rsp + 0x38]
lea r8, [r10 + rdi*2]
cmp rbx, r12
jae 0x1400b3720
mov rax, qword [rsp + 0x78]
nop
movzx edx, byte [r8 - 2]
movzx ecx, byte [r8 - 1]
xor r9d, r9d
cmp cl, byte [r13 - 1]
setb r9b
xor ecx, ecx
cmp dl, byte [r13 - 2]
setb cl
cmove ecx, r9d
mov rdx, r13
test cl, cl
jne 0x1400b36ec
mov rdx, r8
movzx edx, word [rdx - 2]
mov word [rax], dx
movzx edx, cl
xor cl, 1
movzx ecx, cl
lea r13, [r13 + rcx*2 - 2]
lea r8, [r8 + rdx*2]
add r8, 0xfffffffffffffffe
cmp r13, r15
je 0x1400b3538
add rax, 0xfffffffffffffffe
cmp r8, r10
jne 0x1400b36c0
jmp 0x1400b3538
mov rdx, r10
test rdi, rdi
je 0x1400b353e
nop dword [rax]
movzx ecx, byte [r13]
movzx eax, byte [r13 + 1]
xor r9d, r9d
cmp al, byte [rdx + 1]
setb r9b
xor eax, eax
cmp cl, byte [rdx]
setb al
cmove eax, r9d
mov rcx, r13
test al, al
jne 0x1400b3759
mov rcx, rdx
mov r9d, eax
xor r9b, 1
movzx ecx, word [rcx]
mov word [r15], cx
movzx ecx, r9b
lea rdx, [rdx + rcx*2]
add r15, 2
cmp rdx, r8
je 0x1400b353e
movzx eax, al
lea r13, [r13 + rax*2]
cmp r13, qword [rsp + 0x40]
jne 0x1400b3730
jmp 0x1400b353e
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 0x1400b39ef
inc r14
mov r13, qword [rsp + 0x60]
mov rax, r13
shr rax, 1
add r15, rax
jmp 0x1400b3410
mov r10, r8
mov r11, qword [rsp + 0x40]
movzx edx, byte [r11 + 2]
movzx r8d, byte [r11 + 3]
xor ecx, ecx
cmp r8b, byte [r11 + 1]
setb cl
xor eax, eax
cmp dl, byte [r11]
setb al
cmove eax, ecx
test al, al
je 0x1400b3831
cmp rsi, 2
jne 0x1400b3850
cmp qword [rsp + 0x48], 2
mov r8, r10
ja 0x1400b342a
mov rax, qword [rsp + 0x40]
lea rdx, [rax + 2]
mov eax, 2
mov r8d, 1
cmp r8, 1
jne 0x1400b3940
xor ecx, ecx
jmp 0x1400b39b0
cmp rsi, 2
jne 0x1400b389e
mov eax, 2
cmp qword [rsp + 0x48], 2
mov r8, r10
ja 0x1400b342a
jmp 0x1400b34ad
mov ecx, 2
nop word cs:[rax + rax]
mov r9d, edx
mov r10d, r8d
mov r8, qword [rsp + 0x40]
movzx edx, byte [r8 + rcx*2]
movzx r8d, byte [r8 + rcx*2 + 1]
xor r11d, r11d
cmp r8b, r10b
setb r11b
xor r10d, r10d
cmp dl, r9b
setb r10b
cmove r10d, r11d
cmp r10b, 1
jne 0x1400b38ee
inc rcx
cmp rsi, rcx
jne 0x1400b3860
jmp 0x1400b38eb
mov ecx, 2
nop word cs:[rax + rax]
mov r9d, edx
mov r10d, r8d
mov r8, qword [rsp + 0x40]
movzx edx, byte [r8 + rcx*2]
movzx r8d, byte [r8 + rcx*2 + 1]
xor r11d, r11d
cmp r8b, r10b
setb r11b
xor r10d, r10d
cmp dl, r9b
setb r10b
cmove r10d, r11d
test r10b, r10b
jne 0x1400b38ee
inc rcx
cmp rsi, rcx
jne 0x1400b38b0
mov rcx, rsi
cmp rcx, qword [rsp + 0x48]
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
jb 0x1400b342a
test al, al
je 0x1400b39e7
mov eax, 1
cmp rcx, 2
jb 0x1400b34ad
mov r8, rcx
shr r8, 1
mov rax, qword [rsp + 0x40]
lea rdx, [rax + rcx*2]
mov rax, rcx
and rax, 0xfffffffffffffffe
sub rdx, rax
mov rax, rcx
cmp r8, 1
je 0x1400b382a
mov r9, r8
and r9, 0xfffffffffffffffe
mov rcx, qword [rsp + 0x68]
lea r10, [rcx + r15*2]
lea r11, [rdx + r8*2]
dec r11
xor ecx, ecx
movabs r12, 0x7ffffffffffffffe
nop word cs:[rax + rax]
movzx esi, word [r10 + rcx*2 - 3]
movzx edi, word [r11 - 1]
mov word [r10 + rcx*2 - 3], di
mov word [r11 - 1], si
mov rsi, rcx
xor rsi, r12
add rsi, r8
movzx edi, word [r10 + rcx*2 - 1]
movzx ebx, word [rdx + rsi*2]
mov word [r10 + rcx*2 - 1], bx
mov word [rdx + rsi*2], di
add rcx, 2
add r11, 0xfffffffffffffffc
cmp r9, rcx
jne 0x1400b3970
test r8b, 1
je 0x1400b39d8
mov r9, rcx
not r9
add r8, r9
mov r11, qword [rsp + 0x40]
movzx r9d, word [r11 + rcx*2]
movzx r10d, word [rdx + r8*2]
mov word [r11 + rcx*2], r10w
mov word [rdx + r8*2], r9w
mov r9, qword [rsp + 0x30]
mov r8, qword [rsp + 0x38]
jmp 0x1400b34ad
mov rax, rcx
jmp 0x1400b34ad
test r13b, 1
jne 0x1400b3a22
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::he3cb3bc89566cc7b
nop
add rsp, 0x2e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret