Function at 0x140111470
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x48
test rcx, rcx
je 0x14011179c
mov r8, qword [0x1408a6930]
test r8, r8
je 0x14011179c
mov rax, qword [r8]
mov r13, qword [r8 + 8]
xor r15d, r15d
lea r12, [0x140713b6d]
cmp rax, r13
je 0x14011159d
mov r14d, r15d
movzx esi, byte [rax]
movzx edx, byte [rax + 1]
movzx r8d, byte [rax + 2]
movzx r9d, byte [rax + 3]
movzx r10d, byte [rax + 4]
movzx r11d, byte [rax + 5]
movzx ebx, byte [rax + 6]
movzx edi, byte [rax + 7]
mov rcx, r12
nop dword [rax]
xor sil, byte [rcx]
mov byte [rax], sil
xor dl, byte [rcx]
mov byte [rax + 1], dl
xor r8b, byte [rcx]
mov byte [rax + 2], r8b
xor r9b, byte [rcx]
mov byte [rax + 3], r9b
xor r10b, byte [rcx]
mov byte [rax + 4], r10b
xor r11b, byte [rcx]
mov byte [rax + 5], r11b
xor bl, byte [rcx]
mov byte [rax + 6], bl
xor dil, byte [rcx]
mov byte [rax + 7], dil
inc r14d
lea rcx, [rcx + 1]
cmp r14d, 1
jb 0x1401114f0
mov r14, qword [rax]
mov rcx, r12
cmp r14, qword [rbp + 0x48]
je 0x1401115f2
mov r14d, r15d
nop dword [rax]
nop word [rax + rax]
xor sil, byte [rcx]
mov byte [rax], sil
xor dl, byte [rcx]
mov byte [rax + 1], dl
xor r8b, byte [rcx]
mov byte [rax + 2], r8b
xor r9b, byte [rcx]
mov byte [rax + 3], r9b
xor r10b, byte [rcx]
mov byte [rax + 4], r10b
xor r11b, byte [rcx]
mov byte [rax + 5], r11b
xor bl, byte [rcx]
mov byte [rax + 6], bl
xor dil, byte [rcx]
mov byte [rax + 7], dil
inc r14d
lea rcx, [rcx + 1]
cmp r14d, 1
jb 0x140111550
add rax, 0x1a
cmp rax, r13
jne 0x1401114c0
mov qword [0x1408a8650], r15
mov rax, qword [rbp + 0x48]
mov qword [rbp - 0x28], rax
lea rcx, [rbp + 0x48]
call fcn.14010e7b0
test byte [rax], 1
je 0x140111653
lea rcx, [rbp + 0x58]
call fcn.14010e7b0
mov rcx, qword [rax]
movabs rax, 0x1c71c71c71c71c72
imul rcx
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movzx eax, dl
shl al, 3
add dl, al
sub cl, dl
dec cl
jmp 0x140111680
mov esi, r15d
nop word [rax + rax]
xor r14b, byte [rcx]
mov byte [rax], r14b
xor dl, byte [rcx]
mov byte [rax + 1], dl
xor r8b, byte [rcx]
mov byte [rax + 2], r8b
xor r9b, byte [rcx]
mov byte [rax + 3], r9b
xor r10b, byte [rcx]
mov byte [rax + 4], r10b
xor r11b, byte [rcx]
mov byte [rax + 5], r11b
xor bl, byte [rcx]
mov byte [rax + 6], bl
xor dil, byte [rcx]
mov byte [rax + 7], dil
inc esi
lea rcx, [rcx + 1]
cmp esi, 1
jb 0x140111600
mov qword [0x1408a8650], rax
test rax, rax
je 0x1401115a4
jmp 0x14011179e
lea rcx, [rbp + 0x60]
call fcn.14010e7b0
mov rcx, qword [rax]
movabs rax, 0x1c71c71c71c71c72
imul rcx
mov rax, rdx
shr rax, 0x3f
add rdx, rax
movzx eax, dl
shl al, 3
add dl, al
sub cl, dl
mov byte [rbp - 0x20], cl
mov byte [rbp - 0x1f], r15b
mov r14, qword [0x1408a6930]
mov rsi, qword [r14 + 8]
mov rcx, rsi
sub rcx, qword [r14]
movabs r13, 0x4ec4ec4ec4ec4ec5
mov rax, r13
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
mov qword [rbp - 0x1e], rdx
mov rax, qword [rbp + 0x50]
mov qword [rbp - 0x16], rax
movzx ecx, byte [rbp - 0x21]
movzx edx, byte [rbp - 0x22]
movzx r8d, byte [rbp - 0x23]
movzx r9d, byte [rbp - 0x24]
movzx r10d, byte [rbp - 0x25]
movzx r11d, byte [rbp - 0x26]
movzx ebx, byte [rbp - 0x27]
movzx edi, byte [rbp - 0x28]
nop word [rax + rax]
movzx eax, byte [r12]
xor dil, al
xor bl, al
xor r11b, al
xor r10b, al
xor r9b, al
xor r8b, al
xor dl, al
xor cl, al
inc r15d
lea r12, [r12 + 1]
cmp r15d, 1
jb 0x1401116f0
mov byte [rbp - 0x21], cl
mov byte [rbp - 0x22], dl
mov byte [rbp - 0x23], r8b
mov byte [rbp - 0x24], r9b
mov byte [rbp - 0x25], r10b
mov byte [rbp - 0x26], r11b
mov byte [rbp - 0x27], bl
mov byte [rbp - 0x28], dil
cmp rsi, qword [r14 + 0x10]
je 0x14011175b
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rsi], xmm0
movsd xmm1, qword [rbp - 0x18]
movsd qword [rsi + 0x10], xmm1
movzx eax, word [rbp - 0x10]
mov word [rsi + 0x18], ax
add qword [r14 + 8], 0x1a
jmp 0x14011176a
lea r8, [rbp - 0x28]
mov rdx, rsi
mov rcx, r14
call fcn.1400d3960
mov r8, qword [0x1408a6930]
mov rcx, qword [r8 + 8]
sub rcx, qword [r8]
mov rax, r13
imul rcx
sar rdx, 3
mov rax, rdx
shr rax, 0x3f
add rdx, rax
imul rcx, rdx, 0x1a
mov rax, qword [r8]
add rax, 0xffffffffffffffe6
add rax, rcx
jmp 0x14011179e
xor eax, eax
add rsp, 0x48
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret