Function at 0x14013e1b0
Capabilities:
Encode data using xor

Disassembly:
push rbp
sub rsp, 0xa0
lea rbp, [rsp + 0x80]
mov qword [rbp - 0x48], rdx
mov qword [rbp - 0x40], rcx
mov eax, 0x10
call fcn.1401ffc50
sub rsp, rax
mov rax, rsp
mov qword [rbp - 0x38], rax
sub rsp, 0x20
call fcn.14014305d
add rsp, 0x20
mov qword [rbp - 0x18], rax
add rax, 0x50
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x10]
add rax, 8
mov qword [rbp - 0x28], rax
mov qword [rbp + 0x10], 2
mov ecx, 2
mov r8d, 1
sub rsp, 0x20
mov rdx, r8
call fcn.14001b4c0
add rsp, 0x20
mov qword [rbp - 0x20], rax
mov qword [rbp + 0x18], rax
mov cx, 0xd963
xor cx, 0xdd88
sub rsp, 0x20
call fcn.140066dd0
add rsp, 0x20
mov cl, al
mov rax, qword [rbp - 0x18]
mov byte [rbp - 9], cl
cmp byte [rax + 0x50], 0
jne 0x14013e4b7
mov rax, qword [rbp - 0x20]
mov cl, byte [rbp - 9]
mov byte [rax + 8], cl
mov ecx, 0x1dc
sub rsp, 0x20
call fcn.140066dd0
add rsp, 0x20
mov cl, al
mov rax, qword [rbp - 0x30]
mov byte [rbp - 0x49], cl
cmp byte [rax], 0
jne 0x14013e4b7
mov ecx, dword [0x140209018]
xor ecx, 0x543d1949
mov edx, dword [0x14020901c]
mov r8d, ecx
xor r8d, 0xffffffff
mov eax, edx
and eax, r8d
mov r8d, 0xb10308fc
xor r8d, 0x4efcf703
xor edx, r8d
and ecx, edx
or eax, ecx
mov ecx, 0x1f1d238b
xor edx, edx
div ecx
add eax, 0x14f5fe49
imul eax, eax, 0xb7e51006
cmp eax, 0xfdfb5b81
ja 0x14013e4db
mov cl, byte [rbp - 0x49]
mov rax, qword [rbp - 0x28]
mov edx, dword [0x140209020]
or edx, dword [0x140209024]
mov r9d, 0xc1fea88e
xor r9d, 0xa4060979
mov r8d, 0x313bd55c
xor r8d, 0xcec42aa3
xor r9d, r8d
mov r8d, edx
and r8d, r9d
mov r9d, edx
xor r9d, 0x65f8a1f7
add edx, r9d
sub edx, r8d
mov r9d, edx
xor r9d, 0xffffffff
and r9d, 0x5140cb3e
mov r10d, 0xffffffff
xor r10d, 0x5140cb3e
mov r8d, edx
and r8d, r10d
imul r8d, r9d
mov r9d, edx
and r9d, 0x5140cb3e
or edx, 0x5140cb3e
imul edx, r9d
add edx, r8d
and edx, 0x117e720d
mov dword [rbp - 0x50], edx
mov rax, qword [rax]
mov byte [rax + 9], cl
sub rsp, 0x20
call fcn.14014305d
add rsp, 0x20
mov eax, dword [rbp - 0x50]
cmp eax, 0x6a60a377
jae 0x14013e4db
xor eax, eax
mov qword [rbp - 0x58], rax
jmp 0x14013e38b
mov rax, qword [rbp - 0x58]
mov qword [rbp - 0x60], rax
cmp rax, 8
je 0x14013e3dd
mov rax, qword [rbp - 0x60]
mov rcx, qword [rbp - 0x38]
mov byte [rcx + rax], 0
movabs rcx, 0x2cb93132bf581353
sub rax, rcx
add rax, 1
movabs rcx, 0xa628de940deb0aac
movabs rdx, 0x8a91efa6b2b319ff
xor rcx, rdx
add rax, rcx
mov qword [rbp - 0x58], rax
jmp 0x14013e38b
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x48]
mov qword [rbp + 8], rax
lea rdx, [rbp + 8]
mov r8d, 8
sub rsp, 0x20
call fcn.14013e4f0
add rsp, 0x20
xor eax, eax
mov qword [rbp - 0x68], rax
mov rcx, qword [rbp - 0x68]
mov rax, qword [rbp - 0x38]
mov qword [rbp - 0x70], rcx
mov dl, byte [rax + rcx]
lea rcx, [rbp + 0x10]
sub rsp, 0x20
call fcn.140024c70
mov rax, qword [rbp - 0x70]
add rsp, 0x20
add rax, 1
movabs rcx, 0x9071667e0b81f2c8
movabs rdx, 0x9071667e0b81f2c0
xor rcx, rdx
cmp rax, rcx
mov qword [rbp - 0x68], rax
jne 0x14013e406
mov ecx, 0x2ba
sub rsp, 0x20
call fcn.140066dd0
add rsp, 0x20
mov cl, al
mov rax, qword [rbp - 0x30]
mov byte [rbp - 0x71], cl
cmp byte [rax], 0
jne 0x14013e4b7
mov dl, byte [rbp - 0x71]
lea rcx, [rbp + 0x10]
sub rsp, 0x20
call fcn.140024c70
mov rax, qword [rbp - 0x28]
mov rcx, qword [rbp - 0x40]
add rsp, 0x20
mov r8, qword [rax]
mov rdx, r8
add rdx, 8
xor eax, eax
cmp r8, 0
cmove rdx, rax
mov r8, qword [rbp + 0x10]
sub rsp, 0x20
call fcn.14013dfe0
add rsp, 0x20
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x18]
mov qword [rbp], rax
lea rcx, [rbp - 8]
sub rsp, 0x20
call fcn.140024c16
nop
lea rsp, [rbp + 0x20]
pop rbp
ret
stosd dword [rdi], eax
mov ah, ch
mov ebx, 0xfffdf0e9
jmp qword [rsi + 0x66]