Function at 0x140012dd2
Capabilities:
Encode data using xor

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x7e8
mov qword [rsp + 0x38], r8
mov qword [rsp + 0x30], rdx
mov rsi, rcx
lea rdi, [rsp + 0x248]
mov ecx, 0xc
mov qword [rsp + 0x28], rsi
rep movsq qword [rdi], qword [rsi]
mov rbx, 0xfffffffffffffff2
lea r12, [rsp + 0x2a8]
lea rdx, [rbx + 0x10]
mov eax, edx
shr eax, 1
lea ecx, [rax - 1]
movsxd rcx, ecx
lea rcx, [rcx + rcx*2]
shl rcx, 5
lea rsi, [rsp + rcx]
add rsi, 0x248
mov ecx, 0xc
mov rdi, r12
rep movsq qword [rdi], qword [rsi]
test dl, 1
jne 0x140012e51
mov rcx, r12
call fcn.1400145dd
jmp 0x140012e6e
mov eax, eax
lea rax, [rax + rax*2]
shl rax, 5
lea rdx, [rsp + rax]
add rdx, 0x248
mov rcx, r12
call fcn.140013cfa
add r12, 0x60
inc rbx
jne 0x140012e16
lea rsi, [rsp + 0x220]
mov ebx, 1
lea rdi, [rsp + 0x40]
lea r12, [rsp + 0x2e8]
lea rdx, [r12 - 0x60]
movups xmm0, xmmword [r12 - 0x60]
movups xmm1, xmmword [r12 - 0x50]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
movups xmm0, xmmword [r12]
movups xmm1, xmmword [r12 + 0x10]
movups xmmword [r12 - 0x60], xmm0
movups xmmword [r12 - 0x50], xmm1
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [r12], xmm0
movups xmmword [r12 + 0x10], xmm1
mov rcx, rdi
mov r8, r12
call fcn.140015546
add rbx, 2
add rdi, 0x20
add r12, 0xc0
cmp rbx, 0xf
jb 0x140012e91
lea rax, [rsp + 0x288]
movups xmm0, xmmword [rax + 0x540]
movups xmm1, xmmword [rax + 0x550]
lea rcx, [rsp + 0x40]
movaps xmmword [rcx + 0xf0], xmm1
movaps xmmword [rcx + 0xe0], xmm0
movaps xmm0, xmmword [0x140030420]
movups xmmword [rax + 0x540], xmm0
movaps xmm0, xmmword [0x140030430]
movups xmmword [rax + 0x550], xmm0
mov edi, 1
mov r14d, 2
lea r12, [rsp + 0x288]
xor ebx, ebx
mov eax, ebx
mov ecx, edi
shr eax, cl
xor eax, 1
shl rax, 5
lea r8, [rsp + rax]
add r8, 0x40
mov rcx, r12
mov rdx, r12
call fcn.140015546
inc rbx
add r12, 0x60
cmp rbx, 0xf
jne 0x140012f4c
lea r15d, [r14 + 0xe]
mov ecx, edi
sar r15d, cl
mov ebx, r15d
sar ebx, 1
cmp r15d, 2
jl 0x140012fbc
cmp ebx, 2
mov ebp, 1
cmovge ebp, ebx
lea r13, [rsp + 0x40]
mov r12, r13
lea r8, [r13 + 0x20]
mov rcx, r12
mov rdx, r13
call fcn.140015546
add r13, 0x40
add r12, 0x20
dec rbp
jne 0x140012fa0
test r15b, 1
je 0x140012fe4
movsxd rax, ebx
shl rax, 5
movsxd rcx, r15d
shl rcx, 5
movaps xmm0, xmmword [rsp + rcx + 0x40]
movaps xmm1, xmmword [rsp + rcx + 0x50]
movaps xmmword [rsp + rax + 0x50], xmm1
movaps xmmword [rsp + rax + 0x40], xmm0
inc edi
add r14d, r14d
cmp edi, 4
jne 0x140012f42
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.140015460
lea rdi, [rsp + 0x1e0]
lea r12, [rsp + 0x200]
xor ebx, ebx
xor r14d, r14d
lea r13, [rsp + rbx]
add r13, 0x248
lea rdx, [rsp + rbx]
add rdx, 0x288
mov rcx, rdi
mov r8, rsi
call fcn.140015546
mov rcx, r12
mov rdx, rdi
mov r8, rdi
call fcn.140015546
mov rcx, rdi
mov rdx, rdi
mov r8, r12
call fcn.140015546
lea rcx, [rsp + r14]
add rcx, 0x248
mov rdx, r13
mov r8, r12
call fcn.140015546
lea rcx, [rsp + r14]
add rcx, 0x268
lea rdx, [rsp + rbx]
add rdx, 0x268
mov r8, rdi
call fcn.140015546
add r14, 0x40
add rbx, 0x60
cmp r14, 0x3c0
jne 0x140013014
lea rdx, [rsp + 0x248]
mov rcx, qword [rsp + 0x28]
mov r8, qword [rsp + 0x30]
mov r9, qword [rsp + 0x38]
call fcn.1400130cb
nop
add rsp, 0x7e8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret