Function at 0x14018df10
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x1401f12d8]
xor rax, rsp
mov qword [rbp + 0x38], rax
mov rsi, qword [rbp + 0xb8]
xor edi, edi
cmp qword [rbp + 0xa0], 0x1c
mov r13, r9
mov r14, qword [rbp + 0xa8]
mov r15, rdx
mov r12, rcx
jae 0x14018df60
xor eax, eax
jmp 0x14018e1af
mov eax, 0x20
mov qword [rsp + 0x190], rbx
mov rbx, qword [rbp + 0xb0]
lea r8, [rbp - 0x40]
cmp rbx, rax
mov rdx, r13
cmova rbx, rax
call fcn.140105010
test eax, eax
js 0x14018e1a5
xor eax, eax
mov byte [rsp + 0x30], 4
xorps xmm0, xmm0
mov qword [rsp + 0x64], rax
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x6c], eax
movups xmmword [rsp + 0x54], xmm0
mov byte [rsp + 0x70], al
movups xmmword [rsp + 0x71], xmm0
mov qword [rbp - 0x5f], rax
movups xmmword [rbp - 0x7f], xmm0
mov dword [rbp - 0x57], eax
movups xmmword [rbp - 0x6f], xmm0
mov word [rbp - 0x53], ax
mov byte [rbp - 0x51], al
mov dword [rsp + 0x34], 0x1000000
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rdi
mov dword [rsp + 0x50], edi
mov qword [rbp - 0x50], rdi
call fcn.1401036e0
mov r8d, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x40]
call fcn.140103730
mov r8d, 0x38
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.140103730
test rsi, rsi
je 0x14018e04d
mov dword [rsi + 0x1c], edi
mov dword [rsi + 0x3c], edi
movups xmm0, xmmword [rbp - 0x40]
mov eax, dword [rbp - 0x28]
movsd xmm1, qword [rbp - 0x30]
movups xmmword [rsi], xmm0
movups xmm0, xmmword [rbp - 0x24]
movsd qword [rsi + 0x10], xmm1
movsd xmm1, qword [rbp - 0x14]
movups xmmword [rsi + 0x20], xmm0
mov dword [rsi + 0x18], eax
mov eax, dword [rbp - 0xc]
movsd qword [rsi + 0x30], xmm1
mov dword [rsi + 0x38], eax
movups xmm0, xmmword [r15]
lea r9, [rbp + 0x18]
mov eax, dword [r15 + 0x18]
movsd xmm1, qword [r15 + 0x10]
lea r8, [rbp - 0x40]
movups xmmword [rbp - 0x40], xmm0
mov dword [rbp - 0x28], eax
mov rdx, r13
movups xmm0, xmmword [r15 + 0x20]
mov eax, dword [r15 + 0x38]
mov rcx, r12
movsd qword [rbp - 0x30], xmm1
movsd xmm1, qword [r15 + 0x30]
movups xmmword [rbp - 0x24], xmm0
mov dword [rbp - 0xc], eax
movsd qword [rbp - 0x14], xmm1
mov dword [rsp + 0x20], edi
call fcn.140104ca0
test eax, eax
je 0x14018e1a5
mov r8d, 0x1c
lea rdx, [rbp + 0x18]
lea rcx, [rsp + 0x40]
call fcn.140103730
mov r8d, 4
lea rdx, [rsp + 0x34]
lea rcx, [rsp + 0x40]
call fcn.140103730
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 8]
call fcn.1401035e0
test rbx, rbx
je 0x14018e1a0
cmp rbx, 0x40
jb 0x14018e181
lea rcx, [r14 - 1]
add rcx, rbx
lea rax, [rbp + rbx - 9]
cmp r14, rax
ja 0x14018e105
lea rax, [rbp - 8]
cmp rcx, rax
jae 0x14018e181
mov r8, rbx
and r8, 0xffffffffffffffc0
lea rcx, [rbp - 8]
sub rcx, r14
lea rdx, [rbp + 8]
sub rdx, r14
lea rax, [r14 + 0x20]
nop
movdqu xmm0, xmmword [rax - 0x20]
add rdi, 0x40
movdqu xmm1, xmmword [rcx + rax - 0x20]
movdqu xmm2, xmmword [rcx + rax]
lea rax, [rax + 0x40]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x60], xmm1
movdqu xmm0, xmmword [rax - 0x50]
movdqu xmm1, xmmword [rdx + rax - 0x60]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x50], xmm1
movdqu xmm0, xmmword [rax - 0x40]
movdqu xmm1, xmmword [rdx + rax - 0x40]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x40], xmm2
movdqu xmm0, xmmword [rax - 0x30]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
cmp rdi, r8
jb 0x14018e120
cmp rdi, rbx
jae 0x14018e1a0
lea rdx, [rbp - 8]
sub rdx, r14
lea rax, [r14 + rdi]
sub rbx, rdi
nop
movzx ecx, byte [rax + rdx]
xor byte [rax], cl
lea rax, [rax + 1]
sub rbx, 1
jne 0x14018e190
mov edi, 1
mov rbx, qword [rsp + 0x190]
mov eax, edi
mov rcx, qword [rbp + 0x38]
xor rcx, rsp
call fcn.140157e90
add rsp, 0x140
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret