Function at 0x180012df0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push r13
push r14
lea rbp, [rsp - 0x3f]
sub rsp, 0xb8
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 7], rax
mov rsi, rdx
mov dword [rbp - 0x55], r9d
lea r10d, [r9 + r9]
mov qword [rbp - 0x51], rcx
xor r9d, r9d
lea edx, [r10 - 1]
shl rdx, 6
mov r13, r8
mov dword [rbp - 0x59], r9d
movups xmm0, xmmword [rdx + rsi]
movups xmm1, xmmword [rdx + rsi + 0x10]
movups xmmword [rbp - 0x49], xmm0
movups xmm0, xmmword [rdx + rsi + 0x20]
movups xmmword [rbp - 0x39], xmm1
movups xmm1, xmmword [rdx + rsi + 0x30]
movups xmmword [rbp - 0x29], xmm0
movups xmmword [rbp - 0x19], xmm1
test r8, r8
je 0x180012ef1
add rdx, r8
lea rcx, [rbp - 0x49]
lea rax, [rdx + 0x3c]
cmp rcx, rax
ja 0x180012ea1
lea rax, [rbp - 0xd]
cmp rax, rdx
jb 0x180012ea1
lea rax, [rbp - 0x49]
mov r8d, 0x10
sub rdx, rax
lea rcx, [rbp - 0x49]
nop dword [rax + rax]
mov eax, dword [rdx + rcx]
xor dword [rcx], eax
lea rcx, [rcx + 4]
sub r8, 1
jne 0x180012e90
jmp 0x180012ef1
lea rcx, [rbp - 0x39]
sub rdx, rcx
lea rax, [rbp - 0x39]
mov ecx, 2
nop dword [rax]
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [rdx + rax]
movdqu xmm2, xmmword [rdx + rax + 0x10]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x20], xmm2
sub rcx, 1
jne 0x180012ec0
mov r14d, r9d
test r10d, r10d
je 0x1800130e8
mov qword [rsp + 0xb0], rbx
lea rax, [rbp - 0x49]
mov qword [rsp + 0xa8], rdi
lea rcx, [rbp - 0x49]
sub rsi, r13
mov qword [rsp + 0xa0], r12
mov rdi, r13
mov qword [rsp + 0x98], r15
sub rdi, rax
lea r12, [r13 + 0x3c]
lea rax, [rbp - 0x39]
mov rbx, r13
sub rbx, rax
mov r15, r13
lea rax, [rbp - 0xd]
add rbx, 0x10
add rax, rsi
add rcx, rsi
nop dword [rax]
add rax, rbx
lea rdx, [rbp - 0x49]
cmp rdx, rax
ja 0x180012f88
lea rax, [rdi + rcx]
lea rcx, [rbp - 0xd]
cmp rcx, rax
jb 0x180012f88
lea rdx, [rbp - 0x49]
mov r8d, 0x10
lea rax, [rsi + rbx]
mov ecx, dword [rax + rdx]
xor dword [rdx], ecx
lea rdx, [rdx + 4]
sub r8, 1
jne 0x180012f73
jmp 0x180012fd6
lea rcx, [rbp - 0x39]
mov edx, 2
lea r8, [rsi + rbx]
nop word [rax + rax]
lea rax, [rsi + rbx]
movdqu xmm0, xmmword [rcx - 0x10]
movdqu xmm1, xmmword [rax + rcx - 0x10]
movdqu xmm2, xmmword [r8 + rcx]
lea rcx, [rcx + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rcx - 0x30], xmm1
movdqu xmm0, xmmword [rcx - 0x20]
pxor xmm2, xmm0
movdqu xmmword [rcx - 0x20], xmm2
sub rdx, 1
jne 0x180012fa0
test r13, r13
je 0x180013051
lea rax, [rbp - 0x49]
cmp rax, r12
ja 0x180013011
lea rax, [rbp - 0xd]
cmp rax, r15
jb 0x180013011
lea rax, [rbp - 0x49]
mov edx, 0x10
nop word [rax + rax]
mov ecx, dword [rdi + rax]
xor dword [rax], ecx
lea rax, [rax + 4]
sub rdx, 1
jne 0x180013000
jmp 0x180013051
lea rax, [rbp - 0x39]
mov ecx, 2
nop word [rax + rax]
movdqu xmm0, xmmword [rax - 0x10]
movdqu xmm1, xmmword [rdi + rax - 0x10]
movdqu xmm2, xmmword [rbx + rax]
lea rax, [rax + 0x20]
pxor xmm1, xmm0
movdqu xmmword [rax - 0x30], xmm1
movdqu xmm0, xmmword [rax - 0x20]
pxor xmm2, xmm0
movdqu xmmword [rax - 0x20], xmm2
sub rcx, 1
jne 0x180013020
lea rcx, [rbp - 0x49]
call fcn.180012b70
mov r9d, dword [rbp - 0x59]
mov ecx, r14d
mov r11d, dword [rbp - 0x55]
inc r14d
movaps xmm0, xmmword [rbp - 0x49]
add r15, 0x40
movaps xmm1, xmmword [rbp - 0x39]
add r12, 0x40
shr ecx, 1
add rbx, 0x40
add ecx, r9d
lea eax, [r11 + r11]
shl rcx, 6
xor r9d, r11d
add rcx, qword [rbp - 0x51]
add rdi, 0x40
cmp r14d, eax
mov dword [rbp - 0x59], r9d
lea rax, [rbp - 0xd]
lea rax, [rax + rsi]
movups xmmword [rcx], xmm0
movaps xmm0, xmmword [rbp - 0x29]
movups xmmword [rcx + 0x10], xmm1
movaps xmm1, xmmword [rbp - 0x19]
movups xmmword [rcx + 0x20], xmm0
movups xmmword [rcx + 0x30], xmm1
lea rcx, [rbp - 0x49]
lea rcx, [rcx + rsi]
jb 0x180012f50
mov r15, qword [rsp + 0x98]
mov r12, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xb0]
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.1800810a0
add rsp, 0xb8
pop r14
pop r13
pop rsi
pop rbp
ret