Function at 0x140135270
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 0x1401352fd
cmp rbx, 2
jb 0x140135e50
lea rax, [rbx + 0x10]
cmp rax, qword [rsp + 0x38]
ja 0x140135e64
mov r14, rbx
shr r14, 1
cmp rbx, 0xf
jbe 0x14013595a
lea r8, [rsi + rbx*8]
mov rcx, rdi
mov rdx, rsi
call fcn.1401363e0
lea rcx, [rdi + r14*8]
lea rdx, [rsi + r14*8]
lea r8, [rsi + rbx*8]
add r8, 0x40
call fcn.1401363e0
mov eax, 8
mov rcx, rbx
sub rcx, r14
cmp rax, r14
jb 0x140135c10
jmp 0x140135cab
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
nop
sub eax, 1
jb 0x14013593d
mov dword [rsp + 0x4c], 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 0x1401353d0
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 0x1401353d8
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 0x1401353d8
mov rcx, rdi
call fcn.140130530
mov rcx, rax
sub rcx, rdi
shr rcx, 3
mov qword [rsp + 0x40], 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 0x140135421
xor edx, edx
mov r9, qword [rsp + 0x50]
cmp dword [r9 + 4], eax
setae dl
xor r8d, r8d
cmp dword [r9], ecx
setae r8b
cmove r8d, edx
test r8b, r8b
jne 0x1401356a0
cmp r15, qword [rsp + 0x38]
ja 0x140135e64
lea rdx, [rsi + r15*8]
xor ebx, ebx
mov r8, rdi
mov r9, qword [rsp + 0x40]
nop word [rax + rax]
mov r10, r9
sub r10, 3
mov r11d, 0
cmovae r11, r10
lea r10, [rdi + r11*8]
cmp r8, r10
jae 0x140135538
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 0x140135460
lea r10, [rdi + r9*8]
jmp 0x140135578
xor r11d, r11d
cmp dword [r8 + 4], eax
setb r11b
xor ebp, ebp
cmp dword [r8], ecx
setb bpl
cmove ebp, r11d
add rdx, 0xfffffffffffffff8
test bpl, bpl
mov r11, rdx
cmovne r11, rsi
mov r14, qword [r8]
mov qword [r11 + rbx*8], r14
movzx r11d, bpl
add rbx, r11
add r8, 8
cmp r8, r10
jb 0x140135540
cmp r9, r15
je 0x1401355a0
mov r9, qword [r8]
mov qword [rdx + rbx*8 - 8], r9
add rdx, 0xfffffffffffffff8
add r8, 8
mov r9, r15
jmp 0x140135440
lea r8, [rbx*8]
mov rcx, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov rdx, r15
sub rdx, rbx
je 0x140135653
cmp rdx, 4
jae 0x1401355d0
xor eax, eax
jmp 0x140135622
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 0x1401355f0
cmp rdx, rax
je 0x140135653
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 0x140135640
test rbx, rbx
je 0x1401356a0
cmp r15, rbx
jb 0x140135e66
lea rcx, [rdi + rbx*8]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x28], rax
mov ebp, dword [rsp + 0x4c]
mov dword [rsp + 0x20], ebp
mov r8, rsi
mov r9, qword [rsp + 0x38]
call fcn.140135270
mov eax, ebp
mov r15, rbx
cmp rbx, 0x21
jae 0x140135330
jmp 0x140135297
cmp r15, qword [rsp + 0x38]
ja 0x140135e64
lea rax, [rsi + r15*8]
xor r8d, r8d
mov rcx, rdi
mov rdx, qword [rsp + 0x40]
nop word [rax + rax]
mov r9, rdx
sub r9, 3
mov r10d, 0
cmovae r10, r9
lea r9, [rdi + r10*8]
cmp rcx, r9
jae 0x1401357c5
mov r11, qword [rsp + 0x40]
mov r10d, dword [rdi + r11*8]
mov r11d, dword [rdi + r11*8 + 4]
nop dword [rax]
xor ebx, ebx
cmp r11d, dword [rcx + 4]
setae bl
xor ebp, ebp
cmp r10d, dword [rcx]
setae bpl
cmove ebp, ebx
lea rbx, [rax - 8]
test bpl, bpl
cmovne rbx, rsi
movzx r14d, bpl
add r14, r8
xor ebp, ebp
cmp r11d, dword [rcx + 0xc]
setae bpl
xor r12d, r12d
cmp r10d, dword [rcx + 8]
mov r13, qword [rcx]
setae r12b
cmove r12d, ebp
lea rbp, [rax - 0x10]
test r12b, r12b
cmovne rbp, rsi
mov qword [rbx + r8*8], r13
mov r8, qword [rcx + 8]
mov qword [rbp + r14*8], r8
movzx r8d, r12b
add r8, r14
xor ebx, ebx
cmp r11d, dword [rcx + 0x14]
setae bl
xor ebp, ebp
cmp r10d, dword [rcx + 0x10]
setae bpl
cmove ebp, ebx
lea rbx, [rax - 0x18]
test bpl, bpl
cmovne rbx, rsi
movzx r14d, bpl
add r14, r8
xor ebp, ebp
cmp r11d, dword [rcx + 0x1c]
setae bpl
xor r12d, r12d
cmp r10d, dword [rcx + 0x18]
setae r12b
cmove r12d, ebp
mov r13, qword [rcx + 0x10]
mov qword [rbx + r8*8], r13
add rax, 0xffffffffffffffe0
test r12b, r12b
mov r8, rax
cmovne r8, rsi
mov rbx, qword [rcx + 0x18]
mov qword [r8 + r14*8], rbx
movzx r8d, r12b
add r8, r14
add rcx, 0x20
cmp rcx, r9
jb 0x1401356f0
lea r9, [rdi + rdx*8]
cmp rcx, r9
jae 0x140135830
mov r11, qword [rsp + 0x40]
mov r10d, dword [rdi + r11*8]
mov r11d, dword [rdi + r11*8 + 4]
nop dword [rax]
xor ebx, ebx
cmp r11d, dword [rcx + 4]
setae bl
xor ebp, ebp
cmp r10d, dword [rcx]
setae bpl
cmove ebp, ebx
add rax, 0xfffffffffffffff8
test bpl, bpl
mov rbx, rax
cmovne rbx, rsi
mov r14, qword [rcx]
mov qword [rbx + r8*8], r14
movzx r12d, bpl
add r12, r8
add rcx, 8
mov r8, r12
cmp rcx, r9
jb 0x1401357e0
cmp rdx, r15
jne 0x140135838
jmp 0x140135860
mov r12, r8
cmp rdx, r15
je 0x140135860
add rax, 0xfffffffffffffff8
mov rdx, qword [rcx]
mov qword [rsi + r12*8], rdx
inc r12
add rcx, 8
mov r8, r12
mov rdx, r15
jmp 0x1401356c0
lea r8, [r12*8]
mov rcx, rdi
mov rdx, rsi
call sub.msvcrt.dll_memcpy
mov rbx, r15
sub rbx, r12
je 0x140135913
cmp rbx, 4
jae 0x140135889
xor eax, eax
jmp 0x1401358e2
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 0x1401358b0
cmp rbx, rax
je 0x140135913
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 0x140135900
cmp r15, r12
jb 0x140135ea8
lea rdi, [rdi + r12*8]
mov eax, 0
mov qword [rsp + 0x50], rax
cmp rbx, 0x21
mov eax, dword [rsp + 0x4c]
jae 0x140135323
jmp 0x140135297
mov byte [rsp + 0x20], 1
mov rcx, rdi
mov rdx, r15
mov r8, rsi
mov r9, qword [rsp + 0x38]
call fcn.140130800
jmp 0x140135e50
cmp rbx, 7
jbe 0x140135bee
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 + 0x40], 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 + 0x38], 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 + 0x38]
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 + 0x40]
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
mov rcx, rbx
sub rcx, r14
cmp rax, r14
jb 0x140135c10
jmp 0x140135cab
mov rax, qword [rdi]
mov qword [rsi], rax
mov rax, qword [rdi + r14*8]
mov qword [rsi + r14*8], rax
mov eax, 1
mov rcx, rbx
sub rcx, r14
cmp rax, r14
jae 0x140135cab
lea edx, [rax*8]
mov r8, rax
jmp 0x140135c32
mov r11, rsi
mov qword [r11], r9
inc r8
add rdx, 8
cmp r8, r14
je 0x140135cab
mov r9, qword [rdi + r8*8]
mov qword [rsi + r8*8], r9
mov r10, r9
shr r10, 0x20
xor r11d, r11d
cmp dword [rsi + r8*8 - 4], r10d
seta r11b
xor ebp, ebp
cmp dword [rsi + r8*8 - 8], r9d
seta bpl
cmovne r11d, ebp
cmp r11b, 1
jne 0x140135c26
mov r11, rdx
nop word cs:[rax + rax]
mov r15, qword [rsi + r11 - 8]
mov qword [rsi + r11], r15
cmp r11, 8
je 0x140135c20
xor ebp, ebp
cmp dword [rsi + r11 - 0xc], r10d
seta bpl
xor r15d, r15d
cmp dword [rsi + r11 - 0x10], r9d
seta r15b
cmove r15d, ebp
add r11, 0xfffffffffffffff8
test r15b, r15b
jne 0x140135c70
add r11, rsi
jmp 0x140135c23
cmp rax, rcx
jae 0x140135d5b
lea rdx, [rdi + r14*8]
lea r8, [rsi + r14*8]
lea r9d, [rax*8]
jmp 0x140135ce2
mov r15, r8
mov qword [r15], r10
inc rax
add r9, 8
cmp rax, rcx
je 0x140135d5b
mov r10, qword [rdx + rax*8]
mov qword [r8 + rax*8], r10
mov r11, r10
shr r11, 0x20
xor ebp, ebp
cmp dword [r8 + rax*8 - 4], r11d
seta bpl
xor r15d, r15d
cmp dword [r8 + rax*8 - 8], r10d
seta r15b
cmovne ebp, r15d
cmp bpl, 1
jne 0x140135cd6
mov r15, r9
nop word cs:[rax + rax]
mov r12, qword [r8 + r15 - 8]
mov qword [r8 + r15], r12
cmp r15, 8
je 0x140135cd0
xor ebp, ebp
cmp dword [r8 + r15 - 0xc], r11d
seta bpl
xor r12d, r12d
cmp dword [r8 + r15 - 0x10], r10d
seta r12b
cmove r12d, ebp
add r15, 0xfffffffffffffff8
test r12b, r12b
jne 0x140135d20
add r15, r8
jmp 0x140135cd3
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]
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
shl r10d, 3
add rcx, r10
add rcx, 0xfffffffffffffff8
sub rdx, r10
dec r9
cmp r14, r9
jne 0x140135d80
add rdx, 8
test bl, 1
je 0x140135e42
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 0x140135eba
add rcx, 8
cmp rax, rcx
jne 0x140135eba
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._redacted_
lea rcx, [rsp + 0x78]
call fcn.1400567b0
lea r8, str._redacted_
mov rcx, r12
mov rdx, r15
call fcn.1400567f0
call fcn.14005e240
int3