Function at 0x140188d90
Capabilities:
Encode data using xor

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x60], 0xfffffffffffffffe
mov r15, rdx
mov qword [rbp + 0x18], rcx
cmp rdx, 0x15
jae 0x140188def
cmp r15, 1
jbe 0x140189489
mov r8d, 1
mov rcx, qword [rbp + 0x18]
mov rdx, r15
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.140189f10
lea rax, [r15*4]
movabs rsi, 0x7ffffffffffffff8
and rsi, rax
movzx eax, byte [0x1402cd081]
mov edx, 4
mov rcx, rsi
call fcn.1400199f0
test rax, rax
je 0x1401895f9
mov qword [rbp + 0x28], rax
mov qword [rbp], rsi
movzx eax, byte [0x1402cd081]
mov ecx, 0x100
mov edx, 8
call fcn.1400199f0
test rax, rax
je 0x140189605
mov rdi, rax
mov rax, qword [rbp + 0x18]
lea rcx, [rax + 0xc]
mov qword [rbp - 0x10], rcx
lea rcx, [rax - 4]
mov qword [rbp - 8], rcx
add rax, 0xfffffffffffffff8
mov qword [rbp - 0x18], rax
mov eax, 0x10
mov qword [rbp + 0x50], rax
xor r12d, r12d
xor r14d, r14d
mov qword [rbp + 8], r15
jmp 0x140188e8a
mov r12d, 1
mov r14, qword [rbp + 0x38]
mov rax, r15
sub rax, r14
jbe 0x14018944d
mov rcx, qword [rbp + 0x18]
lea rcx, [rcx + r14*8]
cmp rax, 2
mov qword [rbp + 0x30], rdi
jae 0x140188f80
mov r8, rax
lea rbx, [r8 + r14]
mov rdi, rbx
sub rdi, r14
jb 0x14018956d
cmp rbx, r15
ja 0x14018956d
jae 0x140188ff0
cmp r8, 0xa
jae 0x140188ff0
lea rbx, [r14 + 0xa]
cmp rbx, r15
cmovae rbx, r15
cmp r8, 1
adc r8, 0
mov rdi, rbx
sub rdi, r14
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x48], rax
mov rsi, qword [rbp + 0x50]
mov qword [rbp + 0x40], rsi
mov rdx, rdi
call fcn.140189f10
cmp r12, rsi
jne 0x140188ffd
mov qword [rbp + 0x20], r14
lea rax, [rsi + rsi]
mov qword [rbp + 0x58], rax
mov rcx, rsi
shl rcx, 5
mov r13, rsi
movzx eax, byte [0x1402cd081]
mov edx, 8
call fcn.1400199f0
test rax, rax
je 0x140189597
mov rsi, rax
shl r13, 4
mov rcx, rax
mov r14, qword [rbp + 0x30]
mov rdx, r14
mov r8, r13
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
mov rcx, r14
mov rdx, r13
call fcn.140019a00
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x50], rax
mov r14, qword [rbp + 0x20]
jmp 0x140189001
movzx edx, byte [rcx + 8]
cmp dl, byte [rcx]
jae 0x1401892f0
mov r8d, 2
cmp rax, 2
je 0x140188fb8
nop dword [rax + rax]
mov r9d, edx
movzx edx, byte [rcx + r8*8]
cmp dl, r9b
jae 0x140188fb8
inc r8
cmp rax, r8
jne 0x140188fa0
mov r8, rax
mov rbx, r8
add rbx, r14
jb 0x1401895b5
cmp rbx, r15
ja 0x1401895d5
cmp r8, 2
jae 0x14018931e
mov r8d, 1
jmp 0x140188eb3
mov rsi, qword [rbp + 0x50]
cmp r12, rsi
je 0x140188f12
mov rsi, qword [rbp + 0x30]
mov rax, r12
shl rax, 4
mov qword [rsi + rax], rdi
mov qword [rsi + rax + 8], r14
inc r12
mov r14, rbx
cmp r12, 2
mov rdi, rsi
jb 0x140188e8a
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x30], rdi
jmp 0x140189093
mov r15, rdi
mov rdx, qword [rbp + 0x28]
mov r12, qword [rbp + 0x58]
nop dword [rax]
mov rdi, qword [rbp + 0x30]
add r13, rdi
add r14, rdi
sub r8, rdx
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x20]
add rax, rsi
mov qword [r14], rax
mov rax, qword [rbp - 0x28]
mov qword [r14 + 8], rax
lea rdx, [r13 + 0x10]
mov rax, qword [rbp - 0x30]
not rax
mov r8, qword [rbp + 0x20]
add r8, rax
shl r8, 4
mov rcx, r13
call sub.VCRUNTIME140.dll_memmove
cmp r12, 1
mov r15, qword [rbp + 8]
jbe 0x140188e80
lea r10, [r12 - 1]
mov rcx, r10
shl rcx, 4
mov rax, qword [rdi + rcx]
mov rcx, qword [rdi + rcx + 8]
add rcx, rax
cmp rcx, r15
je 0x140189100
mov rdx, r12
shl rdx, 4
mov r8, qword [rdx + rdi - 0x20]
cmp r8, rax
jbe 0x140189100
cmp r12, 2
je 0x14018934d
lea r11, [r12 - 3]
mov rcx, r11
shl rcx, 4
mov rcx, qword [rdi + rcx]
lea r9, [r8 + rax]
cmp rcx, r9
jbe 0x140189116
cmp r12, 3
jbe 0x140189435
add r8, rcx
cmp qword [rdx + rdi - 0x40], r8
jbe 0x140189116
jmp 0x140189444
cmp r12, 2
je 0x14018911b
lea r11, [r12 - 3]
mov rcx, r11
shl rcx, 4
mov rcx, qword [rdi + rcx]
cmp rcx, rax
jb 0x140189120
lea r11, [r12 - 2]
cmp r12, r11
jbe 0x1401894e4
lea r14, [r11 + 1]
cmp r12, r14
jbe 0x14018949e
mov rdx, r11
shl rdx, 4
mov rcx, qword [rdi + rdx + 8]
shl r14, 4
mov rax, qword [rdi + r14]
mov rbx, qword [rdi + r14 + 8]
add rbx, rax
mov rsi, rbx
sub rsi, rcx
jb 0x14018952a
cmp rbx, r15
ja 0x14018954a
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x30], r11
mov qword [rbp + 0x20], r12
mov qword [rbp + 0x58], r10
mov qword [rbp + 0x10], rdx
mov r13, qword [rdi + rdx]
mov rax, qword [rbp + 0x18]
mov qword [rbp - 0x28], rcx
lea r15, [rax + rcx*8]
lea rdi, [r15 + r13*8]
mov r12, rsi
sub r12, r13
cmp r12, r13
jae 0x140189240
lea r8, [r12*8]
mov rsi, qword [rbp + 0x28]
mov rcx, rsi
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsi + r12*8]
test r13, r13
mov rsi, r13
jle 0x1401892c8
test r12, r12
mov r13, qword [rbp + 0x10]
jle 0x14018902e
mov rax, qword [rbp - 0x18]
lea rax, [rax + rbx*8]
mov r11, qword [rbp + 0x28]
mov r12, qword [rbp + 0x58]
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, r15
jbe 0x140189235
add rax, 0xfffffffffffffff8
cmp r8, r11
ja 0x1401891f0
mov r15, rdi
mov rdx, r11
jmp 0x140189040
lea r8, [r13*8]
mov r12, qword [rbp + 0x28]
mov rcx, r12
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
lea r8, [r12 + r13*8]
test r13, r13
jle 0x1401892dc
cmp rsi, r13
mov rsi, r13
jle 0x1401892c3
mov rax, qword [rbp + 0x18]
lea rax, [rax + rbx*8]
mov rdx, r12
mov r12, qword [rbp + 0x58]
mov r13, qword [rbp + 0x10]
nop dword [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 [r15], r11
add r15, 8
lea rdx, [rdx + r10*8]
cmp rdx, r8
jae 0x140189040
mov cl, r9b
lea rdi, [rdi + rcx*8]
cmp rdi, rax
jb 0x140189280
jmp 0x140189040
mov rdx, r12
jmp 0x1401892cf
mov r15, rdi
mov rdx, qword [rbp + 0x28]
mov r12, qword [rbp + 0x58]
mov r13, qword [rbp + 0x10]
jmp 0x140189040
mov rdx, r12
mov r12, qword [rbp + 0x58]
mov rsi, r13
mov r13, qword [rbp + 0x10]
jmp 0x140189040
mov r8d, 2
cmp rax, 2
je 0x140188eaf
mov r9d, edx
movzx edx, byte [rcx + r8*8]
cmp dl, r9b
jb 0x140188eaf
inc r8
cmp rax, r8
jne 0x140189300
jmp 0x140188eac
mov qword [rbp + 0x38], rbx
mov qword [rbp + 0x58], r12
lea rax, [rcx + r8*8]
mov rdx, r8
shr rdx, 1
lea r9, [rdx*8]
sub rax, r9
cmp rdx, 1
mov qword [rbp + 0x20], r14
jne 0x14018935c
xor r9d, r9d
jmp 0x1401893ed
mov r12d, 2
mov r14, qword [rbp + 0x38]
jmp 0x140188e8a
mov r10, rdx
and r10, 0xfffffffffffffffe
mov r9, qword [rbp - 0x10]
lea r11, [r9 + r14*8]
mov r9, qword [rbp - 8]
mov rsi, qword [rbp + 0x38]
lea rsi, [r9 + rsi*8]
xor r9d, r9d
movabs r12, 0x1ffffffffffffffe
nop word cs:[rax + 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
xor rdi, r12
add rdi, rdx
movzx ebx, byte [r11 + r9*8 - 4]
mov r14d, dword [r11 + r9*8]
movzx r15d, byte [rax + rdi*8]
mov r13d, dword [rax + rdi*8 + 4]
mov byte [r11 + r9*8 - 4], r15b
mov dword [r11 + r9*8], r13d
mov byte [rax + rdi*8], bl
mov dword [rax + rdi*8 + 4], r14d
add r9, 2
add rsi, 0xfffffffffffffff0
cmp r10, r9
jne 0x140189390
test r8b, 2
je 0x140189420
mov r10, r9
not r10
add rdx, r10
movzx r10d, byte [rcx + r9*8]
mov r11d, dword [rcx + r9*8 + 4]
movzx ebx, byte [rax + rdx*8]
mov esi, dword [rax + rdx*8 + 4]
mov byte [rcx + r9*8], bl
mov dword [rcx + r9*8 + 4], esi
mov byte [rax + rdx*8], r10b
mov dword [rax + rdx*8 + 4], r11d
mov r15, qword [rbp + 8]
mov r12, qword [rbp + 0x58]
mov rbx, qword [rbp + 0x38]
mov r14, qword [rbp + 0x20]
jmp 0x140188eb3
mov r12d, 3
mov r14, qword [rbp + 0x38]
jmp 0x140188e8a
mov r14, qword [rbp + 0x38]
jmp 0x140188e8a
mov rdx, qword [rbp + 0x50]
shl rdx, 4
mov r8d, 8
mov rcx, rdi
call fcn.140019a00
mov r8d, 4
mov rcx, qword [rbp + 0x28]
mov rdx, qword [rbp]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.140019a00
nop
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rax, str.Index_out_of_bounds
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
lea rax, str._rustc_6672c16afcd4db8acdf08a6984fd4107bf07632clibrarycore_src_slice_sort.rs
mov qword [rbp - 0x50], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp + 0x48], rdi
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x40], rax
lea rdx, str._rustc_6672c16afcd4db8acdf08a6984fd4107bf07632clibrarycore_src_slice_sort.rs
lea rcx, [rbp - 0x60]
call fcn.1401cacd0
jmp 0x140189611
lea rax, str.Index_out_of_bounds
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], 1
lea rax, str._rustc_6672c16afcd4db8acdf08a6984fd4107bf07632clibrarycore_src_slice_sort.rs
mov qword [rbp - 0x50], rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp + 0x48], rdi
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x40], rax
lea rdx, str._rustc_6672c16afcd4db8acdf08a6984fd4107bf07632clibrarycore_src_slice_sort.rs
lea rcx, [rbp - 0x60]
call fcn.1401cacd0
jmp 0x140189611
mov qword [rbp + 0x48], rdi
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x40], rax
lea r8, str._rustc_6672c16afcd4db8acdf08a6984fd4107bf07632clibrarycore_src_slice_sort.rs
mov rdx, rbx
call fcn.1401cb230
jmp 0x140189611
mov qword [rbp + 0x48], rdi
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x40], rax
lea r8, str._rustc_6672c16afcd4db8acdf08a6984fd4107bf07632clibrarycore_src_slice_sort.rs
mov rcx, rbx
mov rdx, r15
call fcn.1401cb220
jmp 0x140189611
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x40], rax
lea rcx, str.assertion_failed:_end___start__end___len
lea r8, str._rustc_6672c16afcd4db8acdf08a6984fd4107bf07632clibrarycore_src_slice_sort.rs
mov edx, 0x2c
call fcn.1401cada0
jmp 0x140189611
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x40], rax
lea rcx, str._rustc_6672c16afcd4db8acdf08a6984fd4107bf07632clibrarycore_src_slice_sort.rs
call fcn.1401cac90
jmp 0x140189611
mov qword [rbp + 0x48], rdi
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x40], rax
lea r8, str._rustc_6672c16afcd4db8acdf08a6984fd4107bf07632clibrarycore_src_slice_sort.rs
mov rcx, r14
mov rdx, rbx
call fcn.1401cb230
jmp 0x140189611
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0x50]
mov qword [rbp + 0x40], rax
lea r8, str._rustc_6672c16afcd4db8acdf08a6984fd4107bf07632clibrarycore_src_slice_sort.rs
mov rcx, rbx
mov rdx, r15
call fcn.1401cb220
jmp 0x140189611
lea rcx, str._rustc_6672c16afcd4db8acdf08a6984fd4107bf07632clibrarycore_src_slice_sort.rs
call fcn.1401cac90
lea rcx, str._rustc_6672c16afcd4db8acdf08a6984fd4107bf07632clibrarycore_src_slice_sort.rs
call fcn.1401cac90
ud2