Function at 0x140137490
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r13
push r14
push r15
lea rbp, [rsp - 0x190]
sub rsp, 0x290
mov rax, qword [0x140276168]
xor rax, rsp
mov qword [rbp + 0x160], rax
mov r15, qword [rbp + 0x200]
mov edi, edx
mov rbx, rcx
lea rdx, [rsp + 0x20]
mov ecx, dword [rbp + 0x1f8]
mov r14d, r9d
mov rsi, r8
call fcn.140127420
lea rcx, [rsp + 0x20]
call fcn.1401271a0
lea r8, [rsp + 0x20]
mov edx, edi
mov rcx, rbx
call fcn.140127460
lea rax, [rsp + 0x20]
mov edx, r14d
movups xmm0, xmmword [rax]
lea r8, [rbp + 0x80]
mov rcx, rsi
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r8], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r8 + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r8 + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [r8 + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [r8 + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [r8 + 0x50], xmm1
movups xmm1, xmmword [rax + 0x80]
movups xmmword [r8 + 0x60], xmm0
movups xmm0, xmmword [rax + 0x70]
movups xmmword [r8 + 0x70], xmm0
movups xmm0, xmmword [rax + 0x90]
movups xmmword [r8 + 0x80], xmm1
movups xmm1, xmmword [rax + 0xa0]
movups xmmword [r8 + 0x90], xmm0
movups xmmword [r8 + 0xa0], xmm1
lea r8, [rbp + 0x80]
call fcn.1401271c0
mov esi, dword [rbp + 0x208]
mov eax, 0xcccccccd
mov edi, 0
lea ecx, [rsi - 1]
mul ecx
mov r13d, edx
shr r13d, 4
add r13d, 1
je 0x1401377d6
mov qword [rsp + 0x288], r12
mov r12d, dword [rbp + 0x1f0]
movaps xmmword [rsp + 0x270], xmm6
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rbp - 0x30]
xor eax, eax
mov dword [rbp + 0x158], eax
lea r14d, [rdi + 1]
lea rax, [rbp + 0x80]
xorps xmm6, xmm6
movups xmm0, xmmword [rax]
mov r9d, 4
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx + 0x60], xmm0
movups xmm0, xmmword [rax + 0x80]
movups xmmword [rcx + 0x70], xmm1
movups xmm1, xmmword [rax + 0x90]
movups xmmword [rcx + 0x80], xmm0
movups xmm0, xmmword [rax + 0xa0]
mov eax, r14d
shr eax, 0x18
mov byte [rbp + 0x130], al
mov eax, r14d
shr eax, 0x10
mov byte [rbp + 0x131], al
mov eax, r14d
shr eax, 8
mov byte [rbp + 0x132], al
lea eax, [rdi + 1]
mov byte [rbp + 0x133], al
movups xmmword [rcx + 0x90], xmm1
movdqu xmmword [rbp + 0x148], xmm6
movups xmmword [rcx + 0xa0], xmm0
test r12d, r12d
je 0x14013778d
mov rbx, r12
nop dword [rax]
lea r8, [rbp - 0x30]
mov edx, r9d
lea rcx, [rbp + 0x130]
call fcn.1401271c0
lea r8, [rbp - 0x30]
mov edx, 0x14
lea rcx, [rbp + 0x130]
call fcn.1401272f0
movdqu xmm0, xmmword [rbp + 0x130]
mov eax, 0x10
pxor xmm6, xmm0
movdqu xmmword [rbp + 0x148], xmm6
lea edx, [rax - 0xc]
lea r9d, [rax + 4]
nop dword [rax + rax]
movzx ecx, byte [rbp + rax + 0x130]
xor byte [rbp + rax + 0x148], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x1401376f0
lea rax, [rsp + 0x20]
lea rcx, [rbp - 0x30]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [rcx + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [rcx + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [rcx + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [rcx + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [rcx + 0x50], xmm1
movups xmm1, xmmword [rax + 0x70]
movups xmmword [rcx + 0x60], xmm0
movups xmm0, xmmword [rax + 0x80]
movups xmmword [rcx + 0x70], xmm1
movups xmm1, xmmword [rax + 0x90]
movups xmmword [rcx + 0x80], xmm0
movups xmm0, xmmword [rax + 0xa0]
movups xmmword [rcx + 0x90], xmm1
movups xmmword [rcx + 0xa0], xmm0
sub rbx, 1
je 0x14013778d
movdqu xmm6, xmmword [rbp + 0x148]
jmp 0x1401376a0
lea edx, [rdi + rdi*4]
shl edx, 2
lea r9, [rbp + 0x148]
xor r8d, r8d
nop dword [rax]
cmp edx, esi
jae 0x1401377ba
movzx eax, byte [r9]
inc r8d
mov byte [rdx + r15], al
inc r9
inc edx
cmp r8d, 0x14
jb 0x1401377a0
mov edi, r14d
cmp r14d, r13d
jb 0x1401375d0
movaps xmm6, xmmword [rsp + 0x270]
mov r12, qword [rsp + 0x288]
mov rcx, qword [rbp + 0x160]
xor rcx, rsp
call fcn.1400c3d30
add rsp, 0x290
pop r15
pop r14
pop r13
pop rdi
pop rsi
pop rbx
pop rbp
ret