Function at 0x140123640
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 qword [rsp + 0x38], r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
cmp rdx, 0x21
jae 0x1401236be
cmp rbx, 2
jb 0x140124191
lea rax, [rbx + 0x10]
cmp rax, qword [rsp + 0x38]
ja 0x1401241a5
mov r14, rbx
shr r14, 1
cmp rbx, 0xf
jbe 0x140123cfa
lea r8, [rsi + rbx*8]
mov rcx, rdi
mov rdx, rsi
call fcn.14013c8e0
lea rcx, [rdi + r14*8]
lea rdx, [rsi + r14*8]
lea r8, [rsi + rbx*8]
add r8, 0x40
call fcn.14013c8e0
mov eax, 8
jmp 0x140123f93
mov rax, qword [rsp + 0x118]
mov qword [rsp + 0x50], rax
mov eax, dword [rsp + 0x110]
lea rcx, [rsi - 0x10]
mov qword [rsp + 0x58], rcx
lea rcx, [rsi - 8]
mov qword [rsp + 0x60], rcx
lea rcx, [rdi + 0x10]
mov qword [rsp + 0x70], rcx
mov r15, rbx
sub eax, 1
jb 0x140123cdd
mov dword [rsp + 0x40], eax
mov r9, r15
shr r9, 3
mov rdx, r9
shl rdx, 5
add rdx, rdi
imul r8, r9, 0x38
add r8, rdi
cmp r15, 0x40
jae 0x140123790
mov eax, dword [rdi]
mov r13d, dword [rdi + 4]
mov r9d, dword [rdx]
mov r10d, dword [rdx + 4]
xor r11d, r11d
cmp r13d, r10d
setb r11b
xor ecx, ecx
cmp eax, r9d
setb cl
cmove ecx, r11d
mov r11d, dword [r8]
mov ebx, dword [r8 + 4]
xor r14d, r14d
cmp r13d, ebx
setb r14b
xor r13d, r13d
cmp eax, r11d
setb r13b
cmove r13d, r14d
mov rax, rdi
cmp cl, r13b
jne 0x140123798
xor eax, eax
cmp r10d, ebx
setb al
xor r10d, r10d
cmp r9d, r11d
setb r10b
cmove r10d, eax
xor cl, r10b
cmovne rdx, r8
mov rax, rdx
jmp 0x140123798
mov rcx, rdi
call fcn.140124210
mov rcx, rax
sub rcx, rdi
shr rcx, 3
mov qword [rsp + 0x48], rcx
mov ecx, dword [rax]
mov eax, dword [rax + 4]
mov dword [rsp + 0x68], ecx
mov dword [rsp + 0x6c], eax
cmp qword [rsp + 0x50], 0
je 0x1401237e2
xor edx, edx
mov r9, qword [rsp + 0x50]
cmp dword [r9 + 4], eax
setb dl
xor r8d, r8d
cmp dword [r9], ecx
setb r8b
cmove r8d, edx
cmp r8b, 1
jne 0x140123a60
cmp r15, qword [rsp + 0x38]
ja 0x1401241a5
lea rdx, [rsi + r15*8]
xor ebx, ebx
mov r8, rdi
mov r9, qword [rsp + 0x48]
nop dword [rax + rax]
mov r10, r9
sub r10, 3
mov r11d, 0
cmovae r11, r10
lea r10, [rdi + r11*8]
cmp r8, r10
jae 0x1401238f8
nop
xor r11d, r11d
cmp dword [r8 + 4], eax
setb r11b
xor r14d, r14d
cmp dword [r8], ecx
setb r14b
cmove r14d, r11d
lea r11, [rdx - 8]
test r14b, r14b
cmovne r11, rsi
movzx r14d, r14b
add r14, rbx
xor r12d, r12d
cmp dword [r8 + 0xc], eax
setb r12b
xor ebp, ebp
cmp dword [r8 + 8], ecx
mov r13, qword [r8]
setb bpl
cmove ebp, r12d
lea r12, [rdx - 0x10]
test bpl, bpl
cmovne r12, rsi
mov qword [r11 + rbx*8], r13
mov r11, qword [r8 + 8]
mov qword [r12 + r14*8], r11
movzx r11d, bpl
add r11, r14
xor ebx, ebx
cmp dword [r8 + 0x14], eax
setb bl
xor ebp, ebp
cmp dword [r8 + 0x10], ecx
setb bpl
cmove ebp, ebx
lea rbx, [rdx - 0x18]
test bpl, bpl
cmovne rbx, rsi
movzx r14d, bpl
add r14, r11
xor ebp, ebp
cmp dword [r8 + 0x1c], eax
setb bpl
xor r12d, r12d
cmp dword [r8 + 0x18], ecx
setb r12b
cmove r12d, ebp
mov r13, qword [r8 + 0x10]
mov qword [rbx + r11*8], r13
add rdx, 0xffffffffffffffe0
test r12b, r12b
mov r11, rdx
cmovne r11, rsi
mov rbx, qword [r8 + 0x18]
mov qword [r11 + r14*8], rbx
movzx ebx, r12b
add rbx, r14
add r8, 0x20
cmp r8, r10
jb 0x140123820
lea r10, [rdi + r9*8]
jmp 0x14012393b
xor r11d, r11d
cmp dword [r8 + 4], eax
setb r11b
xor ebp, ebp
cmp dword [r8], ecx
setb bpl
cmove ebp, r11d
mov r11, rbx
add rdx, 0xfffffffffffffff8
test bpl, bpl
mov rbx, rdx
cmovne rbx, rsi
mov r14, qword [r8]
mov qword [rbx + r11*8], r14
movzx ebx, bpl
add rbx, r11
add r8, 8
cmp r8, r10
jb 0x140123900
cmp r9, r15
je 0x140123960
mov r9, qword [r8]
mov qword [rdx + rbx*8 - 8], r9
add rdx, 0xfffffffffffffff8
add r8, 8
mov r9, r15
jmp 0x140123800
lea r8, [rbx*8]
mov rcx, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov rdx, r15
sub rdx, rbx
je 0x140123a13
cmp rdx, 4
jae 0x140123990
xor eax, eax
jmp 0x1401239e2
mov rax, rdx
and rax, 0xfffffffffffffffc
mov rcx, qword [rsp + 0x58]
lea rcx, [rcx + r15*8]
mov r8, qword [rsp + 0x70]
lea r8, [r8 + rbx*8]
xor r9d, r9d
nop dword [rax]
movdqu xmm0, xmmword [rcx - 0x10]
movdqu xmm1, xmmword [rcx]
pshufd xmm1, xmm1, 0x4e
pshufd xmm0, xmm0, 0x4e
movdqu xmmword [r8 + r9*8 - 0x10], xmm1
movdqu xmmword [r8 + r9*8], xmm0
add r9, 4
add rcx, 0xffffffffffffffe0
cmp rax, r9
jne 0x1401239b0
cmp rdx, rax
je 0x140123a13
lea rcx, [rax + rbx]
lea r8, [r15*8]
shl rax, 3
sub r8, rax
add r8, qword [rsp + 0x60]
nop word [rax + rax]
mov rax, qword [r8]
mov qword [rdi + rcx*8], rax
inc rcx
add r8, 0xfffffffffffffff8
cmp r15, rcx
jne 0x140123a00
test rbx, rbx
je 0x140123a60
cmp r15, rbx
jb 0x1401241a7
lea rcx, [rdi + rbx*8]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov ebp, dword [rsp + 0x40]
mov dword [rsp + 0x20], ebp
mov r8, rsi
mov r9, qword [rsp + 0x38]
call fcn.140123640
mov eax, ebp
mov r15, rbx
cmp rbx, 0x21
jae 0x1401236f0
jmp 0x140123667
cmp r15, qword [rsp + 0x38]
ja 0x1401241a5
lea rax, [rsi + r15*8]
xor r12d, r12d
mov rcx, rdi
mov rdx, qword [rsp + 0x48]
nop word [rax + rax]
mov r8, rdx
sub r8, 3
mov r9d, 0
cmovae r9, r8
lea r8, [rdi + r9*8]
cmp rcx, r8
jae 0x140123b85
mov r10, qword [rsp + 0x48]
mov r9d, dword [rdi + r10*8]
mov r10d, dword [rdi + r10*8 + 4]
nop dword [rax]
xor r11d, r11d
cmp r10d, dword [rcx + 4]
setae r11b
xor ebx, ebx
cmp r9d, dword [rcx]
setae bl
cmove ebx, r11d
lea r11, [rax - 8]
test bl, bl
cmovne r11, rsi
movzx ebx, bl
add rbx, r12
xor ebp, ebp
cmp r10d, dword [rcx + 0xc]
setae bpl
xor r14d, r14d
cmp r9d, dword [rcx + 8]
mov r13, qword [rcx]
setae r14b
cmove r14d, ebp
lea rbp, [rax - 0x10]
test r14b, r14b
cmovne rbp, rsi
mov qword [r11 + r12*8], r13
mov r11, qword [rcx + 8]
mov qword [rbp + rbx*8], r11
movzx r11d, r14b
add r11, rbx
xor ebx, ebx
cmp r10d, dword [rcx + 0x14]
setae bl
xor ebp, ebp
cmp r9d, dword [rcx + 0x10]
setae bpl
cmove ebp, ebx
lea rbx, [rax - 0x18]
test bpl, bpl
cmovne rbx, rsi
movzx r14d, bpl
add r14, r11
xor ebp, ebp
cmp r10d, dword [rcx + 0x1c]
setae bpl
xor r12d, r12d
cmp r9d, dword [rcx + 0x18]
setae r12b
cmove r12d, ebp
mov r13, qword [rcx + 0x10]
mov qword [rbx + r11*8], r13
add rax, 0xffffffffffffffe0
test r12b, r12b
mov r11, rax
cmovne r11, rsi
mov rbx, qword [rcx + 0x18]
mov qword [r11 + r14*8], rbx
movzx r12d, r12b
add r12, r14
add rcx, 0x20
cmp rcx, r8
jb 0x140123ab0
lea r8, [rdi + rdx*8]
cmp rcx, r8
jae 0x140123bde
mov r10, qword [rsp + 0x48]
mov r9d, dword [rdi + r10*8]
mov r10d, dword [rdi + r10*8 + 4]
nop dword [rax]
xor r11d, r11d
cmp r10d, dword [rcx + 4]
setae r11b
xor ebx, ebx
cmp r9d, dword [rcx]
setae bl
cmove ebx, r11d
mov r11, r12
add rax, 0xfffffffffffffff8
test bl, bl
mov r14, rax
cmovne r14, rsi
mov r12, qword [rcx]
mov qword [r14 + r11*8], r12
movzx r12d, bl
add r12, r11
add rcx, 8
cmp rcx, r8
jb 0x140123ba0
cmp rdx, r15
je 0x140123c00
add rax, 0xfffffffffffffff8
mov rdx, qword [rcx]
mov qword [rsi + r12*8], rdx
inc r12
add rcx, 8
mov rdx, r15
jmp 0x140123a80
lea r8, [r12*8]
mov rcx, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov rbx, r15
sub rbx, r12
je 0x140123cb3
cmp rbx, 4
jae 0x140123c29
xor eax, eax
jmp 0x140123c82
mov rax, rbx
and rax, 0xfffffffffffffffc
mov rcx, qword [rsp + 0x58]
lea rcx, [rcx + r15*8]
lea rdx, [rdi + r12*8]
add rdx, 0x10
xor r8d, r8d
nop word cs:[rax + rax]
movdqu xmm0, xmmword [rcx - 0x10]
movdqu xmm1, xmmword [rcx]
pshufd xmm1, xmm1, 0x4e
pshufd xmm0, xmm0, 0x4e
movdqu xmmword [rdx + r8*8 - 0x10], xmm1
movdqu xmmword [rdx + r8*8], xmm0
add r8, 4
add rcx, 0xffffffffffffffe0
cmp rax, r8
jne 0x140123c50
cmp rbx, rax
je 0x140123cb3
lea rcx, [rax + r12]
shl rax, 3
mov rdx, qword [rsp + 0x60]
sub rdx, rax
lea rax, [rdx + r15*8]
nop word cs:[rax + rax]
mov rdx, qword [rax]
mov qword [rdi + rcx*8], rdx
inc rcx
add rax, 0xfffffffffffffff8
cmp r15, rcx
jne 0x140123ca0
cmp r15, r12
jb 0x1401241e9
lea rdi, [rdi + r12*8]
mov eax, 0
mov qword [rsp + 0x50], rax
cmp rbx, 0x21
mov eax, dword [rsp + 0x40]
jae 0x1401236e4
jmp 0x140123667
mov byte [rsp + 0x20], 1
mov rcx, rdi
mov rdx, r15
mov r8, rsi
mov r9, qword [rsp + 0x38]
call fcn.140129590
jmp 0x140124191
cmp rbx, 8
jb 0x140123f80
mov eax, dword [rdi + 8]
mov ecx, dword [rdi + 0xc]
xor edx, edx
cmp ecx, dword [rdi + 4]
setb dl
xor ecx, ecx
cmp eax, dword [rdi]
setb cl
cmove ecx, edx
mov eax, dword [rdi + 0x18]
mov edx, dword [rdi + 0x1c]
xor r8d, r8d
cmp edx, dword [rdi + 0x14]
setb r8b
xor r10d, r10d
cmp eax, dword [rdi + 0x10]
setb r10b
cmove r10d, r8d
movzx ecx, cl
mov eax, ecx
xor al, 1
movzx edx, al
lea r9, [rdi + rdx*8]
movzx eax, r10b
lea r8d, [rax + 2]
xor eax, 3
mov r11d, dword [rdi + r8*8]
mov r10d, dword [rdi + r8*8 + 4]
xor ebp, ebp
cmp r10d, dword [rdi + rcx*8 + 4]
setb bpl
xor r10d, r10d
cmp r11d, dword [rdi + rcx*8]
setb r10b
cmove r10d, ebp
mov r11d, dword [rdi + rax*8]
mov ebp, dword [rdi + rax*8 + 4]
xor r15d, r15d
cmp ebp, dword [rdi + rdx*8 + 4]
setb r15b
xor ebp, ebp
cmp r11d, dword [rdi + rdx*8]
lea r12, [rdi + r8*8]
setb bpl
cmove ebp, r15d
test r10b, r10b
mov r15, r12
cmovne r15, r9
mov r11d, r8d
cmovne r11d, edx
lea r13, [rdi + rax*8]
test bpl, bpl
cmovne r9, r12
cmovne r11d, eax
cmovne eax, edx
mov qword [rsp + 0x38], rax
cmovne edx, r8d
cmovne r15, r13
test r10b, r10b
lea r10, [rdi + rcx*8]
cmove r10, r9
mov r9d, dword [rdi + r11*8]
cmovne edx, ecx
cmovne ecx, r8d
mov r8d, dword [r15 + 4]
xor ebp, ebp
cmp r8d, dword [r10 + 4]
setb bpl
xor r8d, r8d
cmp r9d, dword [rdi + rdx*8]
setb r8b
cmove r8d, ebp
mov rcx, qword [rdi + rcx*8]
mov qword [rsi], rcx
test r8b, r8b
mov ecx, edx
cmovne ecx, r11d
mov r10, qword [rdi + rcx*8]
cmove edx, r11d
mov qword [rsp + 0x40], rdx
lea rcx, [rdi + r14*8]
mov r8d, dword [rdi + r14*8 + 8]
mov r9d, dword [rdi + r14*8 + 0xc]
xor r11d, r11d
cmp r9d, dword [rdi + r14*8 + 4]
setb r11b
xor r9d, r9d
cmp r8d, dword [rdi + r14*8]
setb r9b
cmove r9d, r11d
mov r8d, dword [rdi + r14*8 + 0x18]
mov r11d, dword [rdi + r14*8 + 0x1c]
xor ebp, ebp
cmp r11d, dword [rdi + r14*8 + 0x14]
setb bpl
xor r11d, r11d
cmp r8d, dword [rdi + r14*8 + 0x10]
setb r11b
cmove r11d, ebp
movzx r9d, r9b
mov r8d, r9d
xor r8b, 1
movzx r12d, r8b
lea r15, [rcx + r12*8]
movzx r8d, r11b
lea r11d, [r8 + 2]
xor r8d, 3
mov r13d, dword [rcx + r11*8]
mov ebp, dword [rcx + r11*8 + 4]
xor eax, eax
cmp ebp, dword [rcx + r9*8 + 4]
setb al
xor ebp, ebp
cmp r13d, dword [rcx + r9*8]
setb bpl
cmove ebp, eax
mov edx, dword [rcx + r8*8]
mov r13d, dword [rcx + r8*8 + 4]
xor eax, eax
cmp r13d, dword [rcx + r12*8 + 4]
setb al
xor r13d, r13d
cmp edx, dword [rcx + r12*8]
lea rdx, [rcx + r11*8]
setb r13b
cmove r13d, eax
test bpl, bpl
mov rax, rdx
cmovne rax, r15
mov qword [rsi + 8], r10
mov r10d, r11d
cmovne r10d, r12d
test r13b, r13b
cmovne r15, rdx
lea rdx, [rcx + r8*8]
cmovne r10d, r8d
cmovne r8d, r12d
mov r13, qword [rsp + 0x40]
mov r13, qword [rdi + r13*8]
cmovne r12d, r11d
mov qword [rsi + 0x10], r13
cmovne rax, rdx
test bpl, bpl
lea rdx, [rcx + r9*8]
cmove rdx, r15
mov ebp, dword [rcx + r10*8]
cmovne r12d, r9d
cmovne r9d, r11d
mov eax, dword [rax + 4]
xor r11d, r11d
cmp eax, dword [rdx + 4]
setb r11b
xor eax, eax
cmp ebp, dword [rcx + r12*8]
mov rdx, qword [rsp + 0x38]
mov rdx, qword [rdi + rdx*8]
setb al
cmove eax, r11d
mov qword [rsi + 0x18], rdx
mov rdx, qword [rcx + r9*8]
mov qword [rsi + r14*8], rdx
test al, al
mov eax, r12d
cmovne eax, r10d
mov rax, qword [rcx + rax*8]
mov qword [rsi + r14*8 + 8], rax
cmove r12d, r10d
mov rax, qword [rcx + r12*8]
mov qword [rsi + r14*8 + 0x10], rax
mov rax, qword [rcx + r8*8]
mov qword [rsi + r14*8 + 0x18], rax
mov eax, 4
jmp 0x140123f93
mov rax, qword [rdi]
mov qword [rsi], rax
mov rax, qword [rdi + r14*8]
mov qword [rsi + r14*8], rax
mov eax, 1
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], r14
mov rcx, rbx
sub rcx, r14
lea edx, [rax*8]
mov qword [rsp + 0x40], rdx
xor r8d, r8d
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x38], rcx
jmp 0x140123fda
mov r14, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x38]
cmp r8, 2
je 0x140124099
mov rdx, qword [rsp + r8*8 + 0x78]
inc r8
test rdx, rdx
mov r9, rcx
cmove r9, r14
cmp rax, r9
jae 0x140123fda
lea r10, [rdi + rdx*8]
lea r11, [rsi + rdx*8]
mov rdx, qword [rsp + 0x40]
mov r12, rax
jmp 0x140124022
mov r15, r11
mov qword [r15], r13
inc r12
add rdx, 8
cmp r12, r9
je 0x140123fd0
mov r13, qword [r10 + r12*8]
mov qword [r11 + r12*8], r13
mov rbp, r13
shr rbp, 0x20
xor r15d, r15d
cmp dword [r11 + r12*8 - 4], ebp
seta r15b
xor r14d, r14d
cmp dword [r11 + r12*8 - 8], r13d
seta r14b
cmovne r15d, r14d
cmp r15b, 1
jne 0x140124016
mov r15, rdx
nop word cs:[rax + rax]
mov r14, qword [r11 + r15 - 8]
mov qword [r11 + r15], r14
cmp r15, 8
je 0x140124010
xor r14d, r14d
cmp dword [r11 + r15 - 0xc], ebp
seta r14b
xor ecx, ecx
cmp dword [r11 + r15 - 0x10], r13d
seta cl
cmove ecx, r14d
add r15, 0xfffffffffffffff8
test cl, cl
jne 0x140124060
add r15, r11
jmp 0x140124013
lea rax, [rsi + r14*8]
lea rdx, [rsi + r14*8]
add rdx, 0xfffffffffffffff8
lea rcx, [rsi + rbx*8]
add rcx, 0xfffffffffffffff8
lea r8, [rdi + rbx*8]
add r8, 0xfffffffffffffff8
neg r14
xor r9d, r9d
nop dword [rax + rax]
mov r11d, dword [rax]
mov r10d, dword [rax + 4]
xor ebp, ebp
cmp r10d, dword [rsi + 4]
setb bpl
xor r10d, r10d
cmp r11d, dword [rsi]
setb r10b
cmove r10d, ebp
test r10b, r10b
mov r11, rsi
cmovne r11, rax
mov r11, qword [r11]
mov qword [rdi], r11
movzx r11d, r10b
xor r10b, 1
lea rax, [rax + r11*8]
add rdi, 8
mov r11d, dword [rcx]
mov ebp, dword [rcx + 4]
xor r15d, r15d
cmp ebp, dword [rdx + 4]
setb r15b
xor ebp, ebp
cmp r11d, dword [rdx]
movzx r10d, r10b
lea rsi, [rsi + r10*8]
setb bpl
cmove ebp, r15d
test bpl, bpl
mov r10, rcx
cmovne r10, rdx
mov r10, qword [r10]
mov qword [r8 + r9*8], r10
movzx r10d, bpl
lea rcx, [rcx + r10*8]
add rcx, 0xfffffffffffffff8
shl r10, 3
sub rdx, r10
dec r9
cmp r14, r9
jne 0x1401240c0
add rdx, 8
test bl, 1
je 0x140124183
xor r8d, r8d
xor r9d, r9d
cmp rsi, rdx
setae r8b
setb r9b
mov r10, rax
cmovb r10, rsi
mov r10, qword [r10]
mov qword [rdi], r10
lea rsi, [rsi + r9*8]
lea rax, [rax + r8*8]
cmp rsi, rdx
jne 0x1401241fb
add rcx, 8
cmp rax, rcx
jne 0x1401241fb
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
pxor xmm0, xmm0
movdqu xmmword [rsp + 0x90], xmm0
lea rdx, str._rustc_3cb521a4344f0b556b81c55eec8facddeb1ead83librarycore_src_slice_sort_stablequicksort.rs
lea rcx, [rsp + 0x78]
call fcn.1400467a0
lea r8, str._rustc_3cb521a4344f0b556b81c55eec8facddeb1ead83librarycore_src_slice_sort_stablequicksort.rs
mov rcx, r12
mov rdx, r15
call fcn.1400467e0
call fcn.14004baf0
int3