Function at 0x140018d50
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x128
movaps xmmword [rsp + 0x110], xmm8
movaps xmmword [rsp + 0x100], xmm7
movaps xmmword [rsp + 0xf0], xmm6
mov rsi, rcx
lea r14, [rcx + 0x3c0]
mov qword [rsp + 0x90], r14
movups xmm0, xmmword [rdx]
movups xmmword [rsp + 0x98], xmm0
mov rax, qword [rdx + 0x10]
mov qword [rsp + 0xa8], rax
mov rax, qword [0x14031b5c8]
movzx eax, byte [rax]
cmp al, 1
jne 0x140018dc8
lea rdx, [rsp + 0x90]
mov rcx, rsi
call fcn.140018180
jmp 0x140018fdc
mov r15, qword [rsp + 0x98]
mov r12, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0xa8]
mov eax, ecx
and eax, 3
mov qword [rsp + 0x88], rax
mov qword [rsp + 0x28], rcx
cmp rcx, 4
jb 0x140018f36
mov rbp, qword [rsp + 0x28]
shr rbp, 2
lea rdi, [rsp + 0xc0]
lea rbx, [r15 + 0x30]
xor r13d, r13d
nop word cs:[rax + rax]
movups xmm0, xmmword [rbx + r13]
movaps xmmword [rsp + 0x70], xmm0
movups xmm6, xmmword [rbx + r13 - 0x30]
movups xmm7, xmmword [rbx + r13 - 0x20]
movups xmm8, xmmword [rbx + r13 - 0x10]
movups xmm0, xmmword [rbx + r13 - 0x30]
movaps xmmword [rsp + 0xb0], xmm0
movups xmm0, xmmword [rbx + r13 - 0x20]
movups xmmword [rdi], xmm0
movups xmm0, xmmword [rbx + r13 - 0x10]
movups xmmword [rdi + 0x10], xmm0
movups xmm0, xmmword [rbx + r13]
movups xmmword [rdi + 0x20], xmm0
movaps xmm0, xmmword [rsp + 0xb0]
movaps xmm1, xmmword [rsp + 0xc0]
movaps xmm2, xmmword [rsp + 0xd0]
movaps xmm3, xmmword [rsp + 0xe0]
movaps xmmword [rsp + 0x60], xmm3
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0xb0]
mov rdx, rsi
lea r8, [rsp + 0x30]
call fcn.140146ae0
movups xmm0, xmmword [rsp + 0xb0]
movups xmm1, xmmword [rsp + 0xc0]
movups xmm2, xmmword [rsp + 0xd0]
movups xmm3, xmmword [rsp + 0xe0]
movaps xmmword [rsp + 0x60], xmm3
movaps xmmword [rsp + 0x50], xmm2
movaps xmmword [rsp + 0x30], xmm0
xorps xmm0, xmmword [rsi + 0x3c0]
movaps xmmword [rsp + 0x40], xmm1
movaps xmmword [rsp + 0x30], xmm0
xorps xmm6, xmm1
movaps xmmword [rsp + 0x40], xmm6
xorps xmm7, xmm2
movaps xmmword [rsp + 0x50], xmm7
xorps xmm8, xmm3
movaps xmmword [rsp + 0x60], xmm8
movups xmmword [r12 + r13 + 0x30], xmm8
movups xmmword [r12 + r13 + 0x20], xmm7
movups xmmword [r12 + r13 + 0x10], xmm6
movups xmmword [r12 + r13], xmm0
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [r14], xmm0
add r13, 0x40
dec rbp
jne 0x140018e20
mov rdi, qword [rsp + 0x88]
test rdi, rdi
je 0x140018fdc
movabs rax, 0xffffffffffffffc
mov rdx, qword [rsp + 0x28]
and rdx, rax
shl rdx, 4
add r15, rdx
add r12, rdx
lea r13, [rsp + 0x40]
shl rdi, 4
xor ebp, ebp
xorps xmm6, xmm6
lea rbx, [rsp + 0x30]
nop word cs:[rax + rax]
movups xmm0, xmmword [r15 + rbp]
movaps xmmword [rsp + 0x70], xmm0
movups xmm0, xmmword [r15 + rbp]
movaps xmmword [r13 + 0x20], xmm6
movaps xmmword [r13 + 0x10], xmm6
movaps xmmword [r13], xmm6
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0xb0]
mov rdx, rsi
mov r8, rbx
call fcn.140146ae0
movaps xmm0, xmmword [rsp + 0xb0]
xorps xmm0, xmmword [rsi + 0x3c0]
movups xmmword [r12 + rbp], xmm0
movaps xmm0, xmmword [rsp + 0x70]
movups xmmword [r14], xmm0
add rbp, 0x10
cmp rdi, rbp
jne 0x140018f80
movaps xmm6, xmmword [rsp + 0xf0]
movaps xmm7, xmmword [rsp + 0x100]
movaps xmm8, xmmword [rsp + 0x110]
add rsp, 0x128
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret