Function at 0x1400a3f20
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], r8
push rdi
push r14
sub rsp, 0x48
mov r11d, dword [rsp + 0x90]
mov r10, rcx
mov ecx, r9d
mov edi, edx
call fcn.140099750
mov r14d, eax
test eax, eax
js 0x1400a42a3
mov qword [rsp + 0x60], rbx
mov edx, 0xff
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r15
lea r15d, [r11 - 1]
and r15d, 7
mov ecx, r15d
shl edx, cl
test byte [r10], dl
jne 0x1400a4280
test r15d, r15d
lea ecx, [rdi - 1]
lea rbx, [r10 + 1]
cmovne ecx, edi
cmovne rbx, r10
mov esi, ecx
sub esi, eax
sub esi, 1
jns 0x1400a3fa9
mov eax, 0xffffff16
jmp 0x1400a4285
mov ebp, dword [rsp + 0x88]
cmp ebp, 0xffffffff
jne 0x1400a3fcd
mov ebp, r14d
cmp r11d, 0x400
jne 0x1400a3fdf
cmp r14d, 0x40
jne 0x1400a3fdf
lea ebp, [r14 - 2]
jmp 0x1400a3fdf
cmp ebp, r14d
jg 0x1400a40c9
cmp ebp, 0xffffffff
jl 0x1400a40c9
lea eax, [rbp + 1]
cmp esi, eax
jl 0x1400a40c9
lea eax, [rcx - 1]
cmp byte [rax + rbx], 0xbc
jne 0x1400a4280
mov rax, qword [0x1401bb498]
movsxd r12, esi
mov rcx, r12
test rax, rax
je 0x1400a400d
call rax
jmp 0x1400a4012
call fcn.1400d0660
mov rdi, rax
test rax, rax
jne 0x1400a4022
lea eax, [rdi - 0x7d]
jmp 0x1400a4285
mov ecx, dword [rsp + 0x80]
lea rdx, [rbx + r12]
mov r9, rdi
mov dword [rsp + 0x20], esi
mov r8d, r14d
call fcn.1400a3070
mov r13d, eax
test eax, eax
je 0x1400a4069
mov rdx, qword [0x1401bb488]
mov rcx, rdi
test rdx, rdx
je 0x1400a405c
call rdx
mov eax, r13d
jmp 0x1400a4285
call fcn.1400c734c
mov eax, r13d
jmp 0x1400a4285
mov eax, 1
xor edx, edx
mov ecx, r15d
mov r9, rdi
shl al, cl
sub r9, rbx
dec al
and byte [rdi], al
and byte [rbx], al
mov eax, esi
sub eax, ebp
dec eax
movsxd r8, eax
test eax, eax
jle 0x1400a40aa
mov rcx, rbx
movzx eax, byte [rcx]
cmp byte [r9 + rcx], al
jne 0x1400a40d3
inc rcx
inc edx
mov rax, rcx
sub rax, rbx
cmp rax, r8
jl 0x1400a4091
movsxd rcx, edx
movzx eax, byte [rbx + rcx]
xor al, 1
cmp byte [rcx + rdi], al
je 0x1400a40f1
mov rax, qword [0x1401bb488]
mov rcx, rdi
test rax, rax
je 0x1400a40e2
call rax
mov eax, 0xffffff06
jmp 0x1400a4285
mov rax, qword [0x1401bb488]
mov rcx, rdi
test rax, rax
jne 0x1400a40c7
call fcn.1400c734c
mov eax, 0xffffff06
jmp 0x1400a4285
inc edx
mov r8d, esi
sub r8d, edx
mov r10d, edx
cmp edx, esi
jge 0x1400a4224
cmp r8d, 8
jb 0x1400a4224
lea eax, [rsi - 1]
movsxd rdx, edx
movsxd rcx, eax
lea r11, [rbx + rdx]
add rdx, rdi
lea rax, [rcx + rdi]
lea r15, [rbx + rcx]
cmp r11, rax
ja 0x1400a4134
cmp r15, rdx
jae 0x1400a4224
cmp r8d, 0x40
jb 0x1400a41db
mov ecx, r8d
and ecx, 0x8000003f
jge 0x1400a4150
dec ecx
or ecx, 0xffffffc0
inc ecx
mov eax, esi
sub eax, ecx
lea rcx, [r11 + 0x10]
movsxd r15, eax
mov rdx, rdi
mov r11, 0xfffffffffffffff0
sub rdx, rbx
sub r11, rbx
nop dword [rax + rax]
movdqu xmm0, xmmword [rcx - 0x10]
add r10d, 0x40
movdqu xmm1, xmmword [rdx + rcx - 0x10]
movdqu xmm2, xmmword [rdx + rcx]
lea rcx, [rcx + 0x40]
pxor xmm1, xmm0
lea rax, [r11 + rcx]
movdqu xmmword [rcx - 0x50], xmm1
movdqu xmm0, xmmword [rcx - 0x40]
movdqu xmm1, xmmword [rdx + rcx - 0x30]
pxor xmm2, xmm0
movdqu xmmword [rcx - 0x40], xmm2
movdqu xmm0, xmmword [rcx - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
movdqu xmm0, xmmword [rcx - 0x20]
movdqu xmm1, xmmword [rdx + rcx - 0x20]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x20], xmm1
cmp rax, r15
jl 0x1400a4170
mov eax, r8d
and al, 0x3f
cmp al, 8
jb 0x1400a4224
jmp 0x1400a41e1
mov rdx, rdi
sub rdx, rbx
and r8d, 0x80000007
jge 0x1400a41f4
dec r8d
or r8d, 0xfffffff8
inc r8d
sub esi, r8d
movsxd rcx, r10d
add rcx, rbx
movsxd r8, esi
movq xmm0, qword [rcx]
add r10d, 8
movq xmm1, qword [rdx + rcx]
pxor xmm1, xmm0
movq qword [rcx], xmm1
add rcx, 8
mov rax, rcx
sub rax, rbx
cmp rax, r8
jl 0x1400a4200
movsxd rax, r10d
cmp rax, r12
jge 0x1400a4251
mov rdx, r12
lea rcx, [rbx + rax]
sub rdx, rax
nop word [rax + rax]
movzx eax, byte [r9 + rcx]
xor byte [rcx], al
lea rcx, [rcx + 1]
sub rdx, 1
jne 0x1400a4240
mov rax, qword [0x1401bb488]
mov rcx, rdi
test rax, rax
je 0x1400a4264
call rax
jmp 0x1400a4269
call fcn.1400c734c
movsxd rax, ebp
sub rbx, rax
mov rax, qword [rsp + 0x70]
add rbx, r12
mov qword [rax], rbx
lea eax, [r14 + rbp]
jmp 0x1400a4285
mov eax, 0xffffff3f
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
mov r15, qword [rsp + 0x30]
add rsp, 0x48
pop r14
pop rdi
ret