Function at 0x140210000
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
push rbp
push rsi
push rdi
push r14
sub rsp, 0x38
mov esi, dword [rsp + 0x90]
mov rdi, rcx
mov ecx, r9d
mov ebp, edx
call fcn.1401ccdf0
mov r14d, eax
test eax, eax
js 0x140210131
mov qword [rsp + 0x60], rbx
mov edx, 0xff
mov qword [rsp + 0x30], r15
lea r15d, [rsi - 1]
and r15d, 7
mov ecx, r15d
shl edx, cl
test byte [rdi], dl
jne 0x1402102bd
lea rbx, [rdi + 1]
test r15d, r15d
lea ecx, [rbp - 1]
cmovne ecx, ebp
cmovne rbx, rdi
mov edi, ecx
sub edi, eax
sub edi, 1
jns 0x140210075
mov eax, 0xffffff16
jmp 0x140210127
mov ebp, dword [rsp + 0x88]
cmp ebp, 0xffffffff
jne 0x140210098
mov ebp, r14d
cmp esi, 0x400
jne 0x1402100aa
cmp r14d, 0x40
jne 0x1402100aa
lea ebp, [r14 - 2]
jmp 0x1402100aa
cmp ebp, r14d
jg 0x1402102b3
cmp ebp, 0xffffffff
jl 0x1402102b3
lea eax, [rbp + 1]
cmp edi, eax
jl 0x1402102b3
lea eax, [rcx - 1]
cmp byte [rax + rbx], 0xbc
jne 0x1402102bd
mov qword [rsp + 0x68], r12
movsxd r12, edi
mov rcx, r12
call fcn.1401c5b90
mov rsi, rax
test rax, rax
jne 0x1402100df
lea eax, [rsi - 0x7d]
jmp 0x140210122
mov rax, qword [rsp + 0x98]
lea rdx, [rbx + r12]
mov ecx, dword [rsp + 0x80]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov r8d, r14d
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x78], r13
call fcn.14020ece0
mov r13d, eax
test eax, eax
je 0x14021013b
mov rcx, rsi
call fcn.1401c5b70
mov eax, r13d
mov r13, qword [rsp + 0x78]
mov r12, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x30]
add rsp, 0x38
pop r14
pop rdi
pop rsi
pop rbp
ret
mov eax, 1
xor edx, edx
mov ecx, r15d
shl al, cl
dec al
and byte [rsi], al
and byte [rbx], al
mov eax, edi
sub eax, ebp
dec eax
movsxd r9, eax
test eax, eax
jle 0x14021017c
mov r8, rsi
mov rcx, rbx
sub r8, rbx
movzx eax, byte [rcx]
cmp byte [r8 + rcx], al
jne 0x14021018a
inc rcx
inc edx
mov rax, rcx
sub rax, rbx
cmp rax, r9
jl 0x140210163
movsxd rcx, edx
movzx eax, byte [rbx + rcx]
xor al, 1
cmp byte [rcx + rsi], al
je 0x140210199
mov rcx, rsi
call fcn.1401c5b70
mov eax, 0xffffff06
jmp 0x14021011d
inc edx
mov r8d, edi
sub r8d, edx
mov r9d, edx
cmp edx, edi
jge 0x140210260
cmp r8d, 0x40
jb 0x140210260
movsxd r10, edx
lea eax, [rdi - 1]
movsxd rdx, eax
lea rcx, [rbx + r10]
lea rax, [rdx + rsi]
lea r11, [rbx + rdx]
lea r15, [r10 + rsi]
cmp rcx, rax
ja 0x1402101dd
cmp r11, r15
jae 0x140210260
and r8d, 0x8000003f
jge 0x1402101f0
dec r8d
or r8d, 0xffffffc0
inc r8d
sub edi, r8d
lea rcx, [rbx + r10]
mov rdx, rsi
movsxd r8, edi
sub rdx, rbx
movdqu xmm0, xmmword [rcx]
add r9d, 0x40
movdqu xmm1, xmmword [rcx + rdx]
pxor xmm1, xmm0
movdqu xmmword [rcx], xmm1
movdqu xmm0, xmmword [rcx + 0x10]
movdqu xmm1, xmmword [rdx + rcx + 0x10]
pxor xmm1, xmm0
movdqu xmmword [rcx + 0x10], xmm1
movdqu xmm0, xmmword [rcx + 0x20]
movdqu xmm1, xmmword [rdx + rcx + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rcx + 0x20], xmm1
movdqu xmm0, xmmword [rcx + 0x30]
movdqu xmm1, xmmword [rdx + rcx + 0x30]
pxor xmm1, xmm0
movdqu xmmword [rcx + 0x30], xmm1
add rcx, 0x40
mov rax, rcx
sub rax, rbx
cmp rax, r8
jl 0x140210200
movsxd rax, r9d
cmp rax, r12
jge 0x140210291
mov r8, rsi
lea rcx, [rbx + rax]
sub r8, rbx
mov rdx, r12
sub rdx, rax
nop dword [rax + rax]
movzx eax, byte [r8 + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x140210280
mov rcx, rsi
call fcn.1401c5b70
movsxd rax, ebp
sub rbx, rax
mov rax, qword [rsp + 0x70]
add rbx, r12
mov qword [rax], rbx
lea eax, [r14 + rbp]
jmp 0x14021011d
mov eax, 0xffffff06
jmp 0x140210127
mov eax, 0xffffff3f
jmp 0x140210127