Function at 0x18004db20
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x108
mov r13, r9
mov rdi, r8
mov r12, rdx
mov qword [rsp + 0x38], rcx
mov rsi, qword [rsp + 0x180]
cmp rdx, 0x21
jae 0x18004db6c
mov qword [rsp + 0x20], rsi
mov rcx, qword [rsp + 0x38]
mov rdx, r12
mov r8, rdi
mov r9, r13
call fcn.180042eb0
jmp 0x18004e231
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov ebx, dword [rsp + 0x170]
lea rax, [rdi - 0x50]
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], r13
mov r14, r12
nop word cs:[rax + rax]
sub ebx, 1
jb 0x18004e214
mov dword [rsp + 0x44], ebx
mov rbx, qword [rsp + 0x38]
mov rcx, rbx
mov rdx, r14
mov r8, rsi
call fcn.180023e90
mov r15, rax
lea rax, [rax + rax*4]
shl rax, 4
lea rsi, [rbx + rax]
movaps xmm0, xmmword [rbx + rax + 0x40]
movaps xmmword [rsp + 0xf0], xmm0
movaps xmm0, xmmword [rbx + rax]
movaps xmm1, xmmword [rbx + rax + 0x10]
movaps xmm2, xmmword [rbx + rax + 0x20]
movaps xmm3, xmmword [rbx + rax + 0x30]
movaps xmmword [rsp + 0xe0], xmm3
movaps xmmword [rsp + 0xd0], xmm2
movaps xmmword [rsp + 0xc0], xmm1
movaps xmmword [rsp + 0xb0], xmm0
cmp qword [rsp + 0x48], 0
mov qword [rsp + 0x60], r14
je 0x18004dc51
mov rax, qword [rsp + 0x48]
mov rcx, qword [rax + 8]
mov rax, qword [rax + 0x10]
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
mov rbx, rax
sub rbx, r8
cmovb r8, rax
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne rbx, rax
test rbx, rbx
jns 0x18004df40
cmp r14, r13
ja 0x18004e246
lea rax, [r14 + r14*4]
shl rax, 4
mov qword [rsp + 0x78], rax
lea rbp, [rdi + rax]
xor r12d, r12d
mov r13, qword [rsp + 0x38]
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], r15
nop dword [rax]
lea rbx, [r15 + r15*4]
shl rbx, 4
add rbx, qword [rsp + 0x38]
cmp r13, rbx
jae 0x18004dd1e
nop word cs:[rax + rax]
mov rcx, qword [r13 + 8]
mov rax, qword [r13 + 0x10]
mov rdx, qword [rsi + 8]
mov r8, qword [rsi + 0x10]
mov r14, rax
sub r14, r8
cmovb r8, rax
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r14, rax
add rbp, 0xffffffffffffffb0
test r14, r14
mov rax, rbp
cmovs rax, rdi
lea rcx, [r12 + r12*4]
shl rcx, 4
movaps xmm0, xmmword [r13]
movaps xmm1, xmmword [r13 + 0x10]
movaps xmm2, xmmword [r13 + 0x20]
movaps xmm3, xmmword [r13 + 0x30]
movaps xmmword [rax + rcx], xmm0
movaps xmmword [rax + rcx + 0x10], xmm1
movaps xmmword [rax + rcx + 0x20], xmm2
movaps xmmword [rax + rcx + 0x30], xmm3
movaps xmm0, xmmword [r13 + 0x40]
movaps xmmword [rax + rcx + 0x40], xmm0
shr r14, 0x3f
add r12, r14
add r13, 0x50
cmp r13, rbx
jb 0x18004dca0
mov r14, qword [rsp + 0x60]
cmp r15, r14
je 0x18004dd80
lea rax, [r12 + r12*4]
shl rax, 4
movaps xmm0, xmmword [r13 + 0x40]
movaps xmmword [rbp + rax - 0x10], xmm0
movaps xmm0, xmmword [r13]
movaps xmm1, xmmword [r13 + 0x10]
movaps xmm2, xmmword [r13 + 0x20]
movaps xmm3, xmmword [r13 + 0x30]
movaps xmmword [rbp + rax - 0x20], xmm3
movaps xmmword [rbp + rax - 0x30], xmm2
movaps xmmword [rbp + rax - 0x40], xmm1
movaps xmmword [rbp + rax - 0x50], xmm0
add rbp, 0xffffffffffffffb0
add r13, 0x50
mov r15, r14
jmp 0x18004dc80
mov rax, r12
shl rax, 4
lea r8, [rax + rax*4]
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rdx, r14
sub rdx, r12
mov r13, qword [rsp + 0x70]
mov r15, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x50]
je 0x18004dede
lea rax, [r12 + r12*4]
shl rax, 4
add rax, qword [rsp + 0x38]
lea rcx, [r12 + 1]
cmp r14, rcx
movabs r11, 0xffffffffffffffe
jne 0x18004dde0
xor r9d, r9d
jmp 0x18004de91
mov rcx, rdx
and rcx, 0xfffffffffffffffe
mov rbp, qword [rsp + 0x78]
add rbp, qword [rsp + 0x68]
mov r8, rax
xor r10d, r10d
nop word [rax + rax]
movaps xmm0, xmmword [rbp + 0x40]
movaps xmmword [r8 + 0x40], xmm0
movaps xmm0, xmmword [rbp]
movaps xmm1, xmmword [rbp + 0x10]
movaps xmm2, xmmword [rbp + 0x20]
movaps xmm3, xmmword [rbp + 0x30]
movaps xmmword [r8 + 0x30], xmm3
movaps xmmword [r8 + 0x20], xmm2
movaps xmmword [r8 + 0x10], xmm1
movaps xmmword [r8], xmm0
lea r9, [r10 + 2]
xor r10, r11
lea r10, [r10 + r10*4]
shl r10, 4
movaps xmm0, xmmword [rbx + r10]
movaps xmm1, xmmword [rbx + r10 + 0x10]
movaps xmm2, xmmword [rbx + r10 + 0x20]
movaps xmm3, xmmword [rbx + r10 + 0x30]
movaps xmmword [r8 + 0x50], xmm0
movaps xmmword [r8 + 0x60], xmm1
movaps xmmword [r8 + 0x70], xmm2
movaps xmmword [r8 + 0x80], xmm3
movaps xmm0, xmmword [rbx + r10 + 0x40]
movaps xmmword [r8 + 0x90], xmm0
add r8, 0xa0
add rbp, 0xffffffffffffff60
mov r10, r9
cmp rcx, r9
jne 0x18004de00
test dl, 1
je 0x18004dede
lea rcx, [r9 + r9*4]
not r9
lea r8, [r9 + r9*4]
shl r8, 4
shl rcx, 4
movaps xmm0, xmmword [rbx + r8 + 0x40]
movaps xmmword [rax + rcx + 0x40], xmm0
movaps xmm0, xmmword [rbx + r8]
movaps xmm1, xmmword [rbx + r8 + 0x10]
movaps xmm2, xmmword [rbx + r8 + 0x20]
movaps xmm3, xmmword [rbx + r8 + 0x30]
movaps xmmword [rax + rcx + 0x30], xmm3
movaps xmmword [rax + rcx + 0x20], xmm2
movaps xmmword [rax + rcx + 0x10], xmm1
movaps xmmword [rax + rcx], xmm0
test r12, r12
je 0x18004df40
cmp r14, r12
jb 0x18004e248
lea rcx, [r12 + r12*4]
shl rcx, 4
add rcx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x180]
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x28], rax
mov ebx, dword [rsp + 0x44]
mov dword [rsp + 0x20], ebx
mov r8, rdi
mov r9, r13
call fcn.18004db20
mov r14, r12
cmp r12, 0x21
jae 0x18004dba0
jmp 0x18004db4f
cmp r14, r13
ja 0x18004e246
lea rax, [r14 + r14*4]
shl rax, 4
mov qword [rsp + 0x50], rax
lea r13, [rdi + rax]
xor ebp, ebp
mov r12, qword [rsp + 0x38]
mov qword [rsp + 0x58], r13
nop word cs:[rax + rax]
mov r14, r15
lea rbx, [r15 + r15*4]
shl rbx, 4
add rbx, qword [rsp + 0x38]
cmp r12, rbx
jae 0x18004e020
nop dword [rax]
mov rdx, qword [r12 + 8]
mov r8, qword [r12 + 0x10]
mov rcx, qword [rsi + 8]
mov rax, qword [rsi + 0x10]
mov r15, rax
sub r15, r8
cmovb r8, rax
call sub.VCRUNTIME140.dll_memcmp
cdqe
test eax, eax
cmovne r15, rax
add r13, 0xffffffffffffffb0
xor eax, eax
test r15, r15
mov rcx, r13
cmovns rcx, rdi
setns al
lea rdx, [rbp*4]
add rdx, rbp
shl rdx, 4
movaps xmm0, xmmword [r12]
movaps xmm1, xmmword [r12 + 0x10]
movaps xmm2, xmmword [r12 + 0x20]
movaps xmm3, xmmword [r12 + 0x30]
movaps xmmword [rcx + rdx], xmm0
movaps xmmword [rcx + rdx + 0x10], xmm1
movaps xmmword [rcx + rdx + 0x20], xmm2
movaps xmmword [rcx + rdx + 0x30], xmm3
movaps xmm0, xmmword [r12 + 0x40]
movaps xmmword [rcx + rdx + 0x40], xmm0
add rbp, rax
add r12, 0x50
cmp r12, rbx
jb 0x18004df90
mov r15, qword [rsp + 0x60]
cmp r14, r15
je 0x18004e080
add r13, 0xffffffffffffffb0
lea rax, [rbp*4]
add rax, rbp
shl rax, 4
movaps xmm0, xmmword [r12 + 0x40]
movaps xmmword [rdi + rax + 0x40], xmm0
movaps xmm0, xmmword [r12]
movaps xmm1, xmmword [r12 + 0x10]
movaps xmm2, xmmword [r12 + 0x20]
movaps xmm3, xmmword [r12 + 0x30]
movaps xmmword [rdi + rax + 0x30], xmm3
movaps xmmword [rdi + rax + 0x20], xmm2
movaps xmmword [rdi + rax + 0x10], xmm1
movaps xmmword [rdi + rax], xmm0
inc rbp
add r12, 0x50
jmp 0x18004df70
mov rax, rbp
shl rax, 4
lea r8, [rax + rax*4]
mov rcx, qword [rsp + 0x38]
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r12, r15
sub r12, rbp
mov r13, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x180]
mov ebx, dword [rsp + 0x44]
mov r11, qword [rsp + 0x58]
je 0x18004e1de
lea rax, [rbp*4]
add rax, rbp
shl rax, 4
add rax, qword [rsp + 0x38]
lea rcx, [rbp + 1]
cmp r15, rcx
jne 0x18004e0df
xor r8d, r8d
jmp 0x18004e18b
mov rcx, r12
and rcx, 0xfffffffffffffffe
mov r14, qword [rsp + 0x50]
add r14, qword [rsp + 0x68]
mov rdx, rax
xor r9d, r9d
movabs r10, 0xffffffffffffffe
movaps xmm0, xmmword [r14 + 0x40]
movaps xmmword [rdx + 0x40], xmm0
movaps xmm0, xmmword [r14]
movaps xmm1, xmmword [r14 + 0x10]
movaps xmm2, xmmword [r14 + 0x20]
movaps xmm3, xmmword [r14 + 0x30]
movaps xmmword [rdx + 0x30], xmm3
movaps xmmword [rdx + 0x20], xmm2
movaps xmmword [rdx + 0x10], xmm1
movaps xmmword [rdx], xmm0
lea r8, [r9 + 2]
xor r9, r10
lea r9, [r9 + r9*4]
shl r9, 4
movaps xmm0, xmmword [r11 + r9]
movaps xmm1, xmmword [r11 + r9 + 0x10]
movaps xmm2, xmmword [r11 + r9 + 0x20]
movaps xmm3, xmmword [r11 + r9 + 0x30]
movaps xmmword [rdx + 0x50], xmm0
movaps xmmword [rdx + 0x60], xmm1
movaps xmmword [rdx + 0x70], xmm2
movaps xmmword [rdx + 0x80], xmm3
movaps xmm0, xmmword [r11 + r9 + 0x40]
movaps xmmword [rdx + 0x90], xmm0
add rdx, 0xa0
add r14, 0xffffffffffffff60
mov r9, r8
cmp rcx, r8
jne 0x18004e100
test r12b, 1
mov r15, qword [rsp + 0x60]
je 0x18004e1de
lea rcx, [r8 + r8*4]
not r8
lea rdx, [r8 + r8*4]
shl rdx, 4
shl rcx, 4
movaps xmm0, xmmword [r11 + rdx + 0x40]
movaps xmmword [rax + rcx + 0x40], xmm0
movaps xmm0, xmmword [r11 + rdx]
movaps xmm1, xmmword [r11 + rdx + 0x10]
movaps xmm2, xmmword [r11 + rdx + 0x20]
movaps xmm3, xmmword [r11 + rdx + 0x30]
movaps xmmword [rax + rcx + 0x30], xmm3
movaps xmmword [rax + rcx + 0x20], xmm2
movaps xmmword [rax + rcx + 0x10], xmm1
movaps xmmword [rax + rcx], xmm0
cmp r15, rbp
jb 0x18004e28e
lea rax, [rbp*4]
add rax, rbp
shl rax, 4
add qword [rsp + 0x38], rax
mov eax, 0
mov qword [rsp + 0x48], rax
cmp r12, 0x21
jae 0x18004db8e
jmp 0x18004db4f
mov qword [rsp + 0x28], rsi
mov byte [rsp + 0x20], 1
mov rcx, qword [rsp + 0x38]
mov rdx, r14
mov r8, rdi
mov r9, r13
call fcn.180024dc0
nop
add rsp, 0x108
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rax, [0x180151048]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], 1
mov qword [rsp + 0x90], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x98], xmm0
lea rdx, str._rustc_1e4f10ba6476e48a42a79b9f846a2d9366525b9elibrarycore_src_slice_sort_stablequicksort.rsmid___len_
lea rcx, [rsp + 0x80]
call fcn.180149210
lea r8, str._rustc_1e4f10ba6476e48a42a79b9f846a2d9366525b9elibrarycore_src_slice_sort_stablequicksort.rsmid___len_
mov rcx, rbp
mov rdx, r15
call fcn.180149650
int3