Function at 0x140049e40
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xa8
mov rsi, r8
mov rbx, rdx
cmp rdx, 0x21
jb 0x14004a422
mov r15, r9
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x40], rax
mov ebp, dword [rsp + 0x110]
lea rax, [rsi - 0x10]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r9
mov qword [rsp + 0x30], rcx
lea rax, [rcx + 0x10]
mov qword [rsp + 0x60], rax
mov r14, rbx
nop dword [rax]
sub ebp, 1
jb 0x14004a400
mov dword [rsp + 0x3c], ebp
mov r9, r14
shr r9, 3
mov r12, r9
shl r12, 6
mov r11, qword [rsp + 0x30]
add r12, r11
imul r8, r9, 0x70
add r8, r11
cmp r14, 0x40
jae 0x140049f00
mov rax, qword [r11]
mov rcx, qword [r12]
cmp rax, rcx
setb dl
mov r9, qword [r8]
cmp rax, r9
setb al
xor al, dl
cmp rcx, r9
setb cl
xor cl, dl
cmovne r12, r8
test al, al
cmovne r12, r11
jmp 0x140049f13
mov rcx, r11
mov rdx, r12
call fcn.14004b6f0
mov r11, qword [rsp + 0x30]
mov r12, rax
mov rax, r12
sub rax, r11
shr rax, 4
mov qword [rsp + 0x58], rax
mov rax, qword [r12]
mov ecx, dword [r12 + 8]
mov qword [rsp + 0x68], rax
mov dword [rsp + 0x70], ecx
cmp qword [rsp + 0x40], 0
je 0x140049f4a
mov rcx, qword [rsp + 0x40]
cmp qword [rcx], rax
jae 0x14004a1c0
cmp r14, r15
ja 0x14004a86c
mov r15, r14
shl r15, 4
lea rdi, [rsi + r15]
xor ebx, ebx
mov rax, r11
mov rcx, rdi
mov rdx, qword [rsp + 0x58]
nop dword [rax + rax]
mov r9, rdx
sub r9, 3
mov r8d, 0
cmovae r8, r9
shl r8, 4
add r8, r11
cmp rax, r8
jae 0x14004a045
nop word cs:[rax + rax]
mov r9, qword [rax]
lea r10, [rcx - 0x10]
xor r11d, r11d
cmp r9, qword [r12]
cmovb r10, rsi
setb r11b
mov r9, rbx
shl r9, 4
lea r13, [rbx + r11]
mov rbp, qword [rax + 0x10]
shl r13, 4
cmp rbp, qword [r12]
movups xmm0, xmmword [rax]
lea rbp, [rcx - 0x20]
cmovb rbp, rsi
movups xmmword [r10 + r9], xmm0
movups xmm0, xmmword [rax + 0x10]
adc rbx, r11
movups xmmword [rbp + r13], xmm0
mov r9, qword [rax + 0x20]
lea r10, [rcx - 0x30]
xor r11d, r11d
cmp r9, qword [r12]
cmovb r10, rsi
setb r11b
mov r9, rbx
shl r9, 4
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r10 + r9], xmm0
lea r9, [rbx + r11]
mov r10, qword [rax + 0x30]
add rcx, 0xffffffffffffffc0
shl r9, 4
cmp r10, qword [r12]
mov r10, rcx
cmovb r10, rsi
movups xmm0, xmmword [rax + 0x30]
movups xmmword [r10 + r9], xmm0
adc rbx, r11
add rax, 0x40
cmp rax, r8
jb 0x140049fa0
mov r8, rdx
shl r8, 4
mov r11, qword [rsp + 0x30]
add r8, r11
cmp rax, r8
jae 0x14004a08e
nop dword [rax]
mov r9, qword [rax]
add rcx, 0xfffffffffffffff0
mov r10, rbx
shl r10, 4
cmp r9, qword [r12]
mov r9, rcx
cmovb r9, rsi
movups xmm0, xmmword [rax]
movups xmmword [r9 + r10], xmm0
adc rbx, 0
add rax, 0x10
cmp rax, r8
jb 0x14004a060
cmp rdx, r14
je 0x14004a0c0
mov rdx, rbx
shl rdx, 4
movups xmm0, xmmword [rax]
movups xmmword [rcx + rdx - 0x10], xmm0
add rcx, 0xfffffffffffffff0
add rax, 0x10
mov rdx, r14
jmp 0x140049f70
mov r13, rbx
shl r13, 4
mov rcx, r11
mov rdx, rsi
mov r8, r13
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov r11, qword [rsp + 0x30]
mov rdx, r14
sub rdx, rbx
movabs r10, 0xffffffffffffffe
je 0x14004a16d
lea rax, [rbx + 1]
cmp r14, rax
jne 0x14004a100
xor eax, eax
jmp 0x14004a14d
mov rcx, rdx
and rcx, 0xfffffffffffffffe
mov rax, qword [rsp + 0x60]
lea r8, [rax + r13]
add r15, qword [rsp + 0x48]
xor r9d, r9d
nop dword [rax + rax]
movups xmm0, xmmword [r15]
movups xmmword [r8 - 0x10], xmm0
lea rax, [r9 + 2]
xor r9, r10
shl r9, 4
movups xmm0, xmmword [rdi + r9]
movups xmmword [r8], xmm0
add r8, 0x20
add r15, 0xffffffffffffffe0
mov r9, rax
cmp rcx, rax
jne 0x14004a120
test dl, 1
je 0x14004a16d
lea rcx, [r11 + r13]
mov r8, rax
not r8
shl r8, 4
shl rax, 4
movups xmm0, xmmword [rdi + r8]
movups xmmword [rcx + rax], xmm0
test rbx, rbx
mov r15, qword [rsp + 0x50]
je 0x14004a1c0
cmp r14, rbx
jb 0x14004a86e
add r13, r11
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov ebp, dword [rsp + 0x3c]
mov dword [rsp + 0x20], ebp
mov rcx, r13
mov r8, rsi
mov r9, r15
call fcn.140049e40
mov r14, rbx
cmp rbx, 0x21
jae 0x140049ea0
jmp 0x14004a41d
cmp r14, r15
ja 0x14004a86c
mov r15, r14
shl r15, 4
lea rbp, [rsi + r15]
xor r13d, r13d
mov rax, r11
mov rcx, rbp
mov rbx, qword [rsp + 0x58]
nop word cs:[rax + rax]
mov r8, rbx
sub r8, 3
mov edx, 0
cmovae rdx, r8
shl rdx, 4
add rdx, r11
cmp rax, rdx
jae 0x14004a2ae
mov r8, qword [r12]
lea r9, [rcx - 0x10]
mov r10, r13
shl r10, 4
cmp r8, qword [rax]
cmovae r9, rsi
sbb r13, 0xffffffffffffffff
mov r8, qword [r12]
mov r11, r13
shl r11, 4
cmp r8, qword [rax + 0x10]
movups xmm0, xmmword [rax]
lea r8, [rcx - 0x20]
cmovae r8, rsi
movups xmmword [r9 + r10], xmm0
sbb r13, 0xffffffffffffffff
mov r9, qword [r12]
mov r10, r13
shl r10, 4
cmp r9, qword [rax + 0x20]
movups xmm0, xmmword [rax + 0x10]
lea r9, [rcx - 0x30]
cmovae r9, rsi
movups xmmword [r8 + r11], xmm0
movups xmm0, xmmword [rax + 0x20]
sbb r13, 0xffffffffffffffff
movups xmmword [r9 + r10], xmm0
mov r8, qword [r12]
add rcx, 0xffffffffffffffc0
mov r9, r13
shl r9, 4
cmp r8, qword [rax + 0x30]
mov r8, rcx
cmovae r8, rsi
movups xmm0, xmmword [rax + 0x30]
movups xmmword [r8 + r9], xmm0
sbb r13, 0xffffffffffffffff
add rax, 0x40
cmp rax, rdx
jb 0x14004a210
mov rdx, rbx
shl rdx, 4
mov r11, qword [rsp + 0x30]
add rdx, r11
cmp rax, rdx
jae 0x14004a2fe
nop word cs:[rax + rax]
mov r8, qword [r12]
add rcx, 0xfffffffffffffff0
mov r9, r13
shl r9, 4
cmp r8, qword [rax]
mov r8, rcx
cmovae r8, rsi
movups xmm0, xmmword [rax]
movups xmmword [r8 + r9], xmm0
sbb r13, 0xffffffffffffffff
add rax, 0x10
cmp rax, rdx
jb 0x14004a2d0
cmp rbx, r14
je 0x14004a330
add rcx, 0xfffffffffffffff0
mov rdx, r13
shl rdx, 4
movups xmm0, xmmword [rax]
movups xmmword [rsi + rdx], xmm0
inc r13
add rax, 0x10
mov rbx, r14
jmp 0x14004a1f0
mov r12, r13
shl r12, 4
mov rcx, r11
mov rdx, rsi
mov r8, r12
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
movabs r9, 0xffffffffffffffe
mov rbx, r14
sub rbx, r13
je 0x14004a3d0
lea rax, [r13 + 1]
cmp r14, rax
jne 0x14004a364
xor eax, eax
jmp 0x14004a3ac
mov rcx, rbx
and rcx, 0xfffffffffffffffe
mov rax, qword [rsp + 0x30]
lea rdx, [rax + r12]
add rdx, 0x10
add r15, qword [rsp + 0x48]
xor r8d, r8d
movups xmm0, xmmword [r15]
movups xmmword [rdx - 0x10], xmm0
lea rax, [r8 + 2]
xor r8, r9
shl r8, 4
movups xmm0, xmmword [rbp + r8]
movups xmmword [rdx], xmm0
add rdx, 0x20
add r15, 0xffffffffffffffe0
mov r8, rax
cmp rcx, rax
jne 0x14004a380
test bl, 1
je 0x14004a3d0
mov rcx, qword [rsp + 0x30]
add rcx, r12
mov rdx, rax
not rdx
shl rdx, 4
shl rax, 4
movups xmm0, xmmword [rbp + rdx]
movups xmmword [rcx + rax], xmm0
cmp r14, r13
jb 0x14004a8b3
mov rcx, qword [rsp + 0x30]
add rcx, r12
mov eax, 0
mov qword [rsp + 0x40], rax
cmp rbx, 0x21
mov r15, qword [rsp + 0x50]
mov ebp, dword [rsp + 0x3c]
jae 0x140049e88
jmp 0x14004a422
mov byte [rsp + 0x20], 1
mov rcx, qword [rsp + 0x30]
mov rdx, r14
mov r8, rsi
mov r9, r15
call fcn.14004a8d0
jmp 0x14004a858
mov rcx, qword [rsp + 0x30]
cmp rbx, 2
jb 0x14004a858
mov r14, rbx
shr r14, 1
cmp rbx, 0xf
mov rdi, rcx
jbe 0x14004a488
mov r15, rbx
shl r15, 4
lea r8, [rsi + r15]
mov rdx, rsi
call fcn.140049030
mov rdx, r14
shl rdx, 4
lea rcx, [rdi + rdx]
add rdx, rsi
lea r8, [rsi + r15]
add r8, 0x80
call fcn.140049030
mov rcx, rdi
mov eax, 8
mov r13, rbx
sub r13, r14
cmp rax, r14
jb 0x14004a64b
jmp 0x14004a6c4
cmp rbx, 7
jbe 0x14004a626
mov rax, qword [rcx + 0x10]
mov r9, qword [rcx + 0x30]
xor r10d, r10d
xor r8d, r8d
cmp rax, qword [rcx]
setae r10b
setb r8b
xor edx, edx
cmp r9, qword [rcx + 0x20]
setb dl
shl r8d, 4
lea r13, [rcx + r8]
shl r10d, 4
lea rax, [rcx + r10]
mov r11d, edx
shl r11d, 4
lea r9, [rdi + r11]
add r9, 0x20
xor edx, 3
shl edx, 4
mov r11, qword [rdi + r11 + 0x20]
mov r15, qword [rdi + rdx]
mov r10, qword [rdi + r10]
cmp r15, r10
mov r12, rax
cmovb r12, r9
cmp r11, qword [rdi + r8]
cmovb r12, r13
cmovb r13, r9
lea rdx, [rdi + rdx]
cmovb r9, rax
cmp r15, r10
cmovae rax, rdx
mov qword [rsp + 0x30], rax
cmovb r9, rdx
mov rdx, qword [r9]
cmp rdx, qword [r12]
mov rdx, r12
cmovb rdx, r9
cmovb r9, r12
movups xmm0, xmmword [r13]
movups xmmword [rsi], xmm0
movups xmm0, xmmword [rdx]
movups xmmword [rsi + 0x10], xmm0
movups xmm0, xmmword [r9]
mov rdx, r14
shl rdx, 4
mov rcx, qword [rdi + rdx + 0x10]
mov r9, qword [rdi + rdx + 0x30]
xor r15d, r15d
xor r10d, r10d
cmp rcx, qword [rdi + rdx]
setae r15b
setb r10b
xor r8d, r8d
cmp r9, qword [rdi + rdx + 0x20]
lea r11, [rdi + rdx]
setb r8b
shl r10d, 4
shl r15d, 4
lea r13, [r11 + r15]
mov r12d, r8d
shl r12d, 4
lea r9, [r12 + r11]
add r9, 0x20
xor r8d, 3
shl r8d, 4
mov rax, qword [r8 + r11]
mov r15, qword [r15 + r11]
cmp rax, r15
mov rbp, r13
cmovb rbp, r9
mov r12, qword [r11 + r12 + 0x20]
cmp r12, qword [r10 + r11]
lea r10, [r11 + r10]
cmovb rbp, r10
cmovb r10, r9
lea r8, [r11 + r8]
mov rcx, rdi
cmovb r9, r13
cmp rax, r15
cmovae r13, r8
cmovb r9, r8
movups xmmword [rsi + 0x20], xmm0
mov r8, qword [r9]
cmp r8, qword [rbp]
mov rax, qword [rsp + 0x30]
movups xmm0, xmmword [rax]
mov rax, rbp
cmovb rax, r9
movups xmmword [rsi + 0x30], xmm0
cmovb r9, rbp
movups xmm0, xmmword [r10]
movups xmmword [rsi + rdx], xmm0
movups xmm0, xmmword [rax]
movups xmmword [rsi + rdx + 0x10], xmm0
movups xmm0, xmmword [r9]
movups xmmword [rsi + rdx + 0x20], xmm0
movups xmm0, xmmword [r13]
movups xmmword [rsi + rdx + 0x30], xmm0
mov eax, 4
mov r13, rbx
sub r13, r14
cmp rax, r14
jb 0x14004a64b
jmp 0x14004a6c4
movups xmm0, xmmword [rcx]
movups xmmword [rsi], xmm0
mov rax, r14
shl rax, 4
movups xmm0, xmmword [rcx + rax]
movups xmmword [rsi + rax], xmm0
mov eax, 1
mov r13, rbx
sub r13, r14
cmp rax, r14
jae 0x14004a6c4
mov edx, eax
shl edx, 4
mov r8, rax
jmp 0x14004a679
mov r11, rsi
mov qword [r11], r9
mov dword [r11 + 8], r10d
mov rcx, rdi
inc r8
add rdx, 0x10
cmp r8, r14
je 0x14004a6c4
mov r10, r8
shl r10, 4
movups xmm0, xmmword [rcx + r10]
movups xmmword [rsi + r10], xmm0
mov r9, qword [rsi + r10]
cmp r9, qword [rsi + r10 - 0x10]
jae 0x14004a66d
add r10, rsi
mov r10d, dword [r10 + 8]
mov r15, rdx
nop
movups xmm0, xmmword [rsi + r15 - 0x10]
movups xmmword [rsi + r15], xmm0
cmp r15, 0x10
je 0x14004a660
lea r11, [r15 - 0x10]
cmp r9, qword [rsi + r15 - 0x20]
mov r15, r11
jb 0x14004a6a0
add r11, rsi
jmp 0x14004a663
mov rdx, r14
shl rdx, 4
cmp rax, r13
jae 0x14004a755
lea r8, [rdi + rdx]
lea r9, [rsi + rdx]
mov r10d, eax
shl r10d, 4
jmp 0x14004a706
mov r15, r9
mov qword [r15], r11
mov dword [r15 + 8], ebp
inc rax
add r10, 0x10
cmp rax, r13
je 0x14004a755
mov r15, rax
shl r15, 4
movups xmm0, xmmword [r8 + r15]
movups xmmword [r9 + r15], xmm0
mov r11, qword [r9 + r15]
cmp r11, qword [r9 + r15 - 0x10]
jae 0x14004a6fa
add r15, r9
mov ebp, dword [r15 + 8]
mov r12, r10
nop dword [rax]
movups xmm0, xmmword [r9 + r12 - 0x10]
movups xmmword [r9 + r12], xmm0
cmp r12, 0x10
je 0x14004a6f0
lea r15, [r12 - 0x10]
cmp r11, qword [r9 + r12 - 0x20]
mov r12, r15
jb 0x14004a730
add r15, r9
jmp 0x14004a6f3
lea rax, [rsi + rdx]
add rdx, rsi
add rdx, 0xfffffffffffffff0
mov r8, rbx
shl r8, 4
lea rcx, [rsi + r8]
add rcx, 0xfffffffffffffff0
add r8, rdi
add r8, 0xfffffffffffffff0
jmp 0x14004a7c5
mov r10b, r12b
mov r14d, 0
sbb r14, r14
shl r10d, 4
add rax, r10
mov r9b, bpl
shl r9d, 4
add rsi, r9
add rdi, 0x10
movups xmm0, xmmword [r15]
movups xmmword [r8], xmm0
shl r11, 4
add rcx, r11
shl r14, 4
add rdx, r14
add r8, 0xfffffffffffffff0
mov r14, qword [rsp + 0x30]
dec r14
je 0x14004a814
mov qword [rsp + 0x30], r14
mov r15, qword [rax]
xor r9d, r9d
xor r10d, r10d
mov r11, rax
cmp r15, qword [rsi]
setae bpl
setb r12b
jb 0x14004a7e6
mov r11, rsi
movups xmm0, xmmword [r11]
movups xmmword [rdi], xmm0
mov r13, qword [rcx]
mov r14, qword [rdx]
cmp r13, r14
mov r11d, 0
adc r11, 0xffffffffffffffff
mov r15, rdx
cmp r13, r14
jb 0x14004a780
mov r15, rcx
jmp 0x14004a780
add rdx, 0x10
test bl, 1
je 0x14004a84a
xor r8d, r8d
xor r9d, r9d
cmp rsi, rdx
setae r8b
setb r9b
mov r10, rax
cmovb r10, rsi
movups xmm0, xmmword [r10]
movups xmmword [rdi], xmm0
shl r9d, 4
add rsi, r9
shl r8d, 4
add rax, r8
cmp rsi, rdx
jne 0x14004a8ae
add rcx, 0x10
cmp rax, rcx
jne 0x14004a8ae
add rsp, 0xa8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
ud2
lea rax, str.mid___len
mov qword [rsp + 0x78], rax
mov qword [rsp + 0x80], 1
mov qword [rsp + 0x88], 8
xorps xmm0, xmm0
movups xmmword [rsp + 0x90], xmm0
lea rdx, str.C:UsersUser.rustup_toolchains_nightly_x86_64_pc_windows_gnulib_rustlib_src_rustlibrarycore_src_slice_sort_stablequicksort.rs
lea rcx, [rsp + 0x78]
call fcn.140009c00
call fcn.14000e9b0
lea r8, str.C:UsersUser.rustup_toolchains_nightly_x86_64_pc_windows_gnulib_rustlib_src_rustlibrarycore_src_slice_sort_stablequicksort.rs
mov rcx, r13
mov rdx, r14
call fcn.140009a60
int3