Function at 0x140186480
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 + 0x28], rcx
cmp rdx, 0x15
jae 0x1401864df
cmp r15, 1
jbe 0x140186ba5
mov r8d, 1
mov rcx, qword [rbp + 0x28]
mov rdx, r15
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
jmp fcn.140187680
lea rax, [r15*4]
movabs rsi, 0x7ffffffffffffff8
and rsi, rax
movzx eax, byte [0x1402df001]
mov edx, 4
mov rcx, rsi
call fcn.140009000
test rax, rax
je 0x140186d2d
mov rbx, rax
mov qword [rbp], rsi
movzx eax, byte [0x1402df001]
mov ecx, 0x100
mov edx, 8
call fcn.140009000
test rax, rax
mov qword [rbp + 0x38], rbx
je 0x140186d39
mov rcx, qword [rbp + 0x28]
lea rdx, [rcx + 0xc]
mov qword [rbp - 0x10], rdx
lea rdx, [rcx - 4]
mov qword [rbp - 8], rdx
add rcx, 0xfffffffffffffff8
mov qword [rbp - 0x18], rcx
mov ecx, 0x10
mov qword [rbp + 0x58], rcx
xor r11d, r11d
movabs r13, 0x1ffffffffffffffe
xor esi, esi
mov qword [rbp + 8], r15
jmp 0x14018658a
mov r11d, 1
mov rsi, qword [rbp + 0x18]
mov r10, r15
sub r10, rsi
jbe 0x140186b6a
mov rcx, qword [rbp + 0x28]
lea rcx, [rcx + rsi*8]
cmp r10, 2
mov qword [rbp + 0x40], rsi
jae 0x1401866a0
mov r8, r10
lea r12, [r8 + rsi]
mov rdi, r12
sub rdi, rsi
jb 0x140186c89
cmp r12, r15
ja 0x140186c89
jae 0x140186730
cmp r8, 0xa
jae 0x140186730
lea r12, [rsi + 0xa]
cmp r12, r15
cmovae r12, r15
mov rdi, r12
sub rdi, rsi
jb 0x140186cb2
mov rbx, r11
cmp r8, 1
adc r8, 0
mov r14, rax
mov qword [rbp + 0x50], rax
mov rsi, qword [rbp + 0x58]
mov qword [rbp + 0x48], rsi
mov rdx, rdi
call fcn.140187680
mov r11, rbx
cmp r11, rsi
jne 0x140186740
mov rbx, r12
mov r12, r11
lea rax, [rsi + rsi]
mov qword [rbp + 0x30], rax
mov rcx, rsi
shl rcx, 5
mov r13, rsi
movzx eax, byte [0x1402df001]
mov edx, 8
call fcn.140009000
test rax, rax
je 0x140186cd3
mov rsi, rax
shl r13, 4
mov rcx, rax
mov rdx, r14
mov r8, r13
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 8
mov rcx, r14
mov rdx, r13
call fcn.140009010
mov rax, rsi
mov rcx, qword [rbp + 0x30]
mov qword [rbp + 0x58], rcx
movabs r13, 0x1ffffffffffffffe
mov r11, r12
mov r12, rbx
jmp 0x140186743
movzx edx, byte [rcx + 8]
cmp dl, byte [rcx]
jae 0x140186a40
mov r8d, 2
cmp r10, 2
je 0x1401866d8
nop dword [rax + rax]
mov r9d, edx
movzx edx, byte [rcx + r8*8]
cmp dl, r9b
jae 0x1401866d8
inc r8
cmp r10, r8
jne 0x1401866c0
mov r8, r10
mov r12, r8
add r12, rsi
jb 0x140186d0d
cmp r12, r15
ja 0x140186ced
cmp r8, 2
jb 0x1401865b3
mov qword [rbp + 0x30], r11
mov qword [rbp + 0x10], rax
mov rax, r8
shr rax, 1
lea rdx, [rcx + r8*8]
lea r9, [rax*8]
sub rdx, r9
cmp rax, 1
jne 0x140186a7d
xor r9d, r9d
jmp 0x140186b07
mov r14, rax
mov rsi, qword [rbp + 0x58]
cmp r11, rsi
je 0x14018661d
mov rax, r14
mov rcx, r11
shl rcx, 4
mov qword [rax + rcx], rdi
mov rdx, qword [rbp + 0x40]
mov qword [rax + rcx + 8], rdx
inc r11
mov rsi, r12
cmp r11, 2
mov rbx, qword [rbp + 0x38]
jb 0x14018658a
mov qword [rbp + 0x18], r12
mov qword [rbp + 0x10], rax
jmp 0x1401867de
mov r15, rdi
mov rbx, qword [rbp + 0x38]
mov rdx, rbx
movabs r13, 0x1ffffffffffffffe
mov rsi, qword [rbp + 0x20]
sub r8, rdx
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x20]
add rax, qword [rbp + 0x40]
mov qword [r14], rax
mov rax, qword [rbp - 0x28]
mov qword [r14 + 8], rax
lea rdx, [rsi + 0x10]
mov rax, qword [rbp - 0x30]
not rax
add r12, rax
shl r12, 4
mov rcx, rsi
mov r8, r12
call sub.VCRUNTIME140.dll_memmove
mov r11, qword [rbp + 0x30]
cmp r11, 1
mov r15, qword [rbp + 8]
mov rax, qword [rbp + 0x10]
jbe 0x140186580
mov r12, r11
dec r11
mov rcx, r11
shl rcx, 4
mov r10, qword [rax + rcx]
mov rcx, qword [rax + rcx + 8]
add rcx, r10
cmp rcx, r15
je 0x140186850
mov rdx, r12
shl rdx, 4
mov r8, qword [rdx + rax - 0x20]
cmp r8, r10
jbe 0x140186850
cmp r12, 2
jbe 0x140186a6e
lea rdi, [r12 - 3]
mov rcx, rdi
shl rcx, 4
mov rcx, qword [rax + rcx]
lea r9, [r8 + r10]
cmp rcx, r9
jbe 0x140186866
cmp r12, 3
jbe 0x140186b4f
add r8, rcx
cmp qword [rdx + rax - 0x40], r8
jbe 0x140186866
jmp 0x140186b5e
cmp r12, 3
jb 0x14018686b
lea rdi, [r12 - 3]
mov rcx, rdi
shl rcx, 4
mov rcx, qword [rax + rcx]
cmp rcx, r10
jb 0x140186870
lea rdi, [r12 - 2]
cmp r12, rdi
jbe 0x140186bba
lea r14, [rdi + 1]
cmp r12, r14
jbe 0x140186c00
mov rdx, rdi
shl rdx, 4
mov rcx, qword [rax + rdx + 8]
shl r14, 4
mov r8, qword [rax + r14]
mov r13, qword [rax + r14 + 8]
add r13, r8
mov rsi, r13
sub rsi, rcx
jb 0x140186c69
cmp r13, r15
ja 0x140186c46
mov qword [rbp - 0x20], r8
mov qword [rbp - 0x30], rdi
mov qword [rbp + 0x30], r11
lea r8, [rax + rdx]
mov qword [rbp + 0x20], r8
mov rdx, qword [rax + rdx]
add r14, rax
mov rax, qword [rbp + 0x28]
mov qword [rbp - 0x28], rcx
lea r15, [rax + rcx*8]
lea rdi, [r15 + rdx*8]
mov rbx, rsi
sub rbx, rdx
cmp rbx, rdx
mov qword [rbp + 0x40], rdx
jae 0x140186990
lea r8, [rbx*8]
mov rsi, qword [rbp + 0x38]
mov rcx, rsi
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
lea r8, [rsi + rbx*8]
cmp qword [rbp + 0x40], 0
jle 0x140186775
test rbx, rbx
mov rsi, qword [rbp + 0x20]
jle 0x140186a23
mov rax, qword [rbp - 0x18]
lea rax, [rax + r13*8]
mov rbx, qword [rbp + 0x38]
movabs r13, 0x1ffffffffffffffe
nop
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 0x140186985
add rax, 0xfffffffffffffff8
cmp r8, rbx
ja 0x140186940
mov r15, rdi
mov rdx, rbx
jmp 0x14018678d
lea r8, [rdx*8]
mov rbx, qword [rbp + 0x38]
mov rcx, rbx
mov rdx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp + 0x40]
lea r8, [rbx + rax*8]
test rax, rax
jle 0x14018677c
cmp rsi, rax
jle 0x14018677c
mov rax, qword [rbp + 0x28]
lea rax, [rax + r13*8]
mov rdx, rbx
movabs r13, 0x1ffffffffffffffe
mov rsi, qword [rbp + 0x20]
nop word [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 0x14018678d
mov cl, r9b
lea rdi, [rdi + rcx*8]
cmp rdi, rax
jb 0x1401869e0
jmp 0x14018678d
mov r15, rdi
mov rbx, qword [rbp + 0x38]
mov rdx, rbx
movabs r13, 0x1ffffffffffffffe
jmp 0x14018678d
mov r8d, 2
cmp r10, 2
je 0x1401865af
mov r9d, edx
movzx edx, byte [rcx + r8*8]
cmp dl, r9b
jb 0x1401865af
inc r8
cmp r10, r8
jne 0x140186a50
jmp 0x1401865ac
mov r11d, 2
mov rsi, qword [rbp + 0x18]
jmp 0x14018658a
mov r10, rax
and r10, 0xfffffffffffffffe
mov r9, qword [rbp - 0x10]
lea r11, [r9 + rsi*8]
mov r9, qword [rbp - 8]
lea rsi, [r9 + r12*8]
xor r9d, r9d
nop word [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, r13
add rdi, rax
movzx ebx, byte [r11 + r9*8 - 4]
mov r14d, dword [r11 + r9*8]
movzx r15d, byte [rdx + rdi*8]
mov r13d, dword [rdx + rdi*8 + 4]
mov byte [r11 + r9*8 - 4], r15b
mov dword [r11 + r9*8], r13d
movabs r13, 0x1ffffffffffffffe
mov byte [rdx + rdi*8], bl
mov dword [rdx + rdi*8 + 4], r14d
add r9, 2
add rsi, 0xfffffffffffffff0
cmp r10, r9
jne 0x140186aa0
test r8b, 2
je 0x140186b3a
mov r10, r9
not r10
add rax, r10
movzx r10d, byte [rcx + r9*8]
mov r11d, dword [rcx + r9*8 + 4]
movzx ebx, byte [rdx + rax*8]
mov esi, dword [rdx + rax*8 + 4]
mov byte [rcx + r9*8], bl
mov dword [rcx + r9*8 + 4], esi
mov byte [rdx + rax*8], r10b
mov dword [rdx + rax*8 + 4], r11d
mov r15, qword [rbp + 8]
mov rax, qword [rbp + 0x10]
mov r11, qword [rbp + 0x30]
mov rsi, qword [rbp + 0x40]
jmp 0x1401865b3
mov r11d, 3
mov rsi, qword [rbp + 0x18]
jmp 0x14018658a
mov r11, r12
mov rsi, qword [rbp + 0x18]
jmp 0x14018658a
mov rdx, qword [rbp + 0x58]
shl rdx, 4
mov r8d, 8
mov rcx, rax
call fcn.140009010
mov r8d, 4
mov rcx, rbx
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.140009010
nop
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
lea rcx, str.Index_out_of_bounds
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], 1
lea rcx, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_slice_sort.rs
mov qword [rbp - 0x50], rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea rdx, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_slice_sort.rs
lea rcx, [rbp - 0x60]
call fcn.1401c2140
jmp 0x140186d45
lea rcx, str.Index_out_of_bounds
mov qword [rbp - 0x60], rcx
mov qword [rbp - 0x58], 1
lea rcx, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_slice_sort.rs
mov qword [rbp - 0x50], rcx
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea rdx, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_slice_sort.rs
lea rcx, [rbp - 0x60]
call fcn.1401c2140
jmp 0x140186d45
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea r8, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_slice_sort.rs
mov rcx, r13
mov rdx, r15
call fcn.1401c2740
jmp 0x140186d45
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea r8, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_slice_sort.rs
mov rdx, r13
call fcn.1401c27c0
jmp 0x140186d45
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea rcx, str.assertion_failed:_end___start__end___len
lea r8, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_slice_sort.rs
mov edx, 0x2c
call fcn.1401c2210
jmp 0x140186d45
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea r8, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_slice_sort.rs
mov rcx, qword [rbp + 0x40]
mov rdx, r12
call fcn.1401c27c0
jmp 0x140186d45
mov qword [rbp + 0x50], r14
mov rax, qword [rbp + 0x30]
mov qword [rbp + 0x48], rax
lea rcx, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_slice_sort.rs
call fcn.1401c20b0
jmp 0x140186d45
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea r8, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_slice_sort.rs
mov rcx, r12
mov rdx, r15
call fcn.1401c2740
jmp 0x140186d45
mov qword [rbp + 0x50], rax
mov rax, qword [rbp + 0x58]
mov qword [rbp + 0x48], rax
lea r8, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_slice_sort.rs
mov rcx, rsi
mov rdx, r12
call fcn.1401c27c0
jmp 0x140186d45
lea rcx, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_slice_sort.rs
call fcn.1401c20b0
lea rcx, str._rustc_aedd173a2c086e558c2b66d3743b344f977621a7librarycore_src_slice_sort.rs
call fcn.1401c20b0
ud2