Function at 0x140013588
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x50
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x48], rax
mov bl, byte [r8 + 1]
mov al, 0xf
mov sil, bl
mov qword [rsp + 0x10], rdx
add sil, byte [r8]
mov r14, r8
add bl, byte [r8 + 2]
and sil, al
and bl, al
mov qword [rsp + 0x20], rcx
add sil, 0x40
add bl, al
xor r8d, r8d
movzx eax, sil
mov r12d, r8d
mov dword [rsp + 0x18], eax
mov rdx, rcx
mov byte [rsp], sil
mov byte [rsp + 1], bl
mov edi, r8d
lea r15, [rsp + 0x38]
lea eax, [rdi + r12]
mov sil, r8b
mov ebp, dword [rdx + rax*4]
test bl, bl
je 0x1400136b3
movzx r13d, bl
movzx eax, sil
mov edx, r13d
sub edx, eax
inc sil
dec edx
add edx, edi
add edx, r12d
mov eax, edx
and eax, 0x7f
movzx r10d, word [r14 + rax*2]
mov r11d, r10d
and r11d, 0x1f
lea eax, [r10 + rdx]
mov edx, ebp
and eax, 0x7f
movzx r9d, word [r14 + rax*2]
mov eax, ebp
mov r8d, r9d
shr r9d, 5
and r8d, 0x1f
and r9d, 0x1f
mov ecx, r8d
shr edx, cl
mov ecx, r9d
shr eax, cl
mov ecx, r8d
xor edx, eax
mov r8d, r10d
and edx, 1
shr r8d, 5
mov eax, edx
and r8d, 0x1f
shl eax, cl
mov ecx, r9d
shl edx, cl
mov ecx, r11d
or eax, edx
xor ebp, eax
mov edx, ebp
mov eax, ebp
shr edx, cl
mov ecx, r8d
shr eax, cl
mov ecx, r11d
xor edx, eax
and edx, 1
mov eax, edx
shl eax, cl
mov ecx, r8d
shl edx, cl
or eax, edx
xor ebp, eax
cmp sil, bl
jb 0x140013612
mov rdx, qword [rsp + 0x20]
xor r8d, r8d
mov dword [r15], ebp
inc edi
add r15, 4
cmp edi, 4
jb 0x1400135fc
movups xmm0, xmmword [rsp + 0x38]
mov sil, byte [rsp]
mov r15b, r8b
mov r13, qword [rsp + 0x10]
mov ebx, dword [rsp + 0x18]
movups xmmword [rsp + 0x28], xmm0
mov r10d, dword [rsp + 0x34]
mov edi, dword [rsp + 0x30]
mov r8d, dword [rsp + 0x2c]
mov r9d, dword [rsp + 0x28]
movzx eax, r15b
mov edx, ebx
sub edx, eax
add edx, r12d
lea ecx, [rdx - 1]
and edx, 0x3f
mov eax, ecx
and eax, 0x3f
mov ebp, dword [r14 + rdx*4]
mov dword [rsp + 0x10], ebp
mov eax, dword [r14 + rax*4]
mov dword [rsp + 8], eax
lea eax, [rcx + 2]
and eax, 0x3f
mov eax, dword [r14 + rax*4]
mov dword [rsp + 4], eax
lea eax, [rcx + 3]
and eax, 0x3f
mov eax, dword [r14 + rax*4]
mov r11d, eax
mov dword [rsp + 0xc], eax
and r11d, 0x1f
jne 0x140013744
mov edx, 0xb59fab54
jmp 0x14001375c
mov ecx, 0x20
mov eax, 0xb59fab54
sub cl, r11b
mov edx, eax
shl edx, cl
mov ecx, r11d
shr eax, cl
or edx, eax
mov ecx, dword [rsp + 8]
mov eax, r10d
sub eax, edx
xor ecx, r9d
mov r11d, 0x53d31818
lea r10d, [rcx - 0x4a6054ac]
xor r10d, eax
mov eax, dword [rsp + 4]
sub r10d, r11d
mov edx, eax
xor r10d, dword [rsp + 0xc]
and edx, 0x1f
je 0x1400137a5
mov ecx, 0x20
mov eax, 0x53d31818
sub cl, dl
shr r11d, cl
mov ecx, edx
shl eax, cl
or r11d, eax
mov eax, dword [rsp + 4]
sub edi, r11d
mov edx, r10d
xor edx, ebp
add edx, 0x6fed7901
xor edx, edi
lea edi, [rdx - 0x90dc0fb]
xor edi, eax
and ebp, 0x1f
jne 0x1400137ca
mov r11d, 0x90dc0fb
jmp 0x1400137e4
mov ecx, 0x20
mov eax, 0x90dc0fb
sub cl, bpl
mov r11d, eax
shl r11d, cl
mov ecx, ebp
shr eax, cl
or r11d, eax
mov ebp, dword [rsp + 8]
sub r8d, r11d
xor r8d, edx
mov r11d, ebp
mov edx, 0x6fed7901
sub r8d, edx
xor r8d, dword [rsp + 0x10]
and r11d, 0x1f
je 0x14001381a
mov ecx, 0x20
mov eax, 0x6fed7901
sub cl, r11b
shr edx, cl
mov ecx, r11d
shl eax, cl
or edx, eax
mov eax, r9d
mov ecx, r8d
xor ecx, dword [rsp + 0xc]
sub eax, edx
inc r15b
lea r9d, [rcx + 0x53d31818]
xor r9d, eax
add r9d, 0x4a6054ac
xor r9d, ebp
cmp r15b, sil
jb 0x1400136f2
mov bl, byte [rsp + 1]
xor eax, eax
mov rdx, qword [rsp + 0x20]
add r12d, 4
movd xmm0, r8d
mov r8d, 0
movd xmm2, edi
movd xmm1, eax
lea eax, [r10 + 0x4a6054ac]
movd xmm3, r9d
punpckldq xmm3, xmm0
punpckldq xmm2, xmm1
punpcklqdq xmm3, xmm2
psubd xmm3, xmmword [0x140046b00]
movdqa xmm0, xmm3
movd dword [r13], xmm3
psrldq xmm0, 4
psrldq xmm3, 8
movd dword [r13 + 4], xmm0
movd dword [r13 + 8], xmm3
mov dword [r13 + 0xc], eax
add r13, 0x10
mov qword [rsp + 0x10], r13
cmp r12d, 0x40
jb 0x1400135f4
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.140019540
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret