Function at 0x14018e2d0
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x68]
mov eax, 0x168
call fcn.14009cc40
sub rsp, rax
mov rax, qword [0x1402a61f0]
xor rax, rsp
mov qword [rbp + 0x48], rax
mov rax, qword [rbp + 0xd0]
mov r14, r8
mov r12, qword [rbp + 0xc0]
mov r15, r9
mov r13, qword [rbp + 0xe8]
mov rbx, rdx
mov qword [rbp - 0x40], rax
mov rax, qword [rbp + 0xe0]
shr r14, 3
mov qword [rbp - 0x48], rax
xor eax, eax
mov dword [rsp + 0x34], eax
mov dword [rsp + 0x30], eax
mov qword [rsp + 0x38], rax
lea eax, [r14 - 0x14]
mov qword [rbp - 0x58], rcx
mov rcx, qword [rbp + 0xd8]
mov qword [rsp + 0x40], r9
mov qword [rbp - 0x78], r12
mov qword [rbp - 0x50], rcx
mov qword [rsp + 0x58], r13
mov qword [rbp - 0x68], 2
test eax, 0xfffffff3
jne 0x14018eb36
cmp r14d, 0x18
je 0x14018eb36
mov qword [rsp + 0x160], rsi
test r9, r9
jne 0x14018e3bf
cmp r14d, 0x14
jne 0x14018e39b
call fcn.14012f410
mov r15, rax
mov qword [rsp + 0x40], rax
jmp 0x14018e3ca
cmp r14d, 0x1c
jne 0x14018e3b0
call fcn.14012f420
mov r15, rax
mov qword [rsp + 0x40], rax
jmp 0x14018e3ca
call fcn.14012f430
mov r15, rax
mov qword [rsp + 0x40], rax
jmp 0x14018e3ca
mov rcx, r9
call fcn.14013bc80
mov r14d, eax
mov eax, 0x200
movsxd rsi, r14d
cmp rbx, rax
cmovae rax, rbx
add rax, 0x3f
and rax, 0xffffffffffffffc0
mov qword [rsp + 0x78], rax
test r12, r12
je 0x14018e44f
mov r8, qword [rbp + 0xc8]
cmp r8, rsi
jae 0x14018e43f
mov edx, 0x7d
mov dword [rsp + 0x20], 0x55
lea r9, [0x140254240]
lea ecx, [rdx - 0x73]
lea r8d, [rdx - 0xf]
call fcn.140138c80
xor eax, eax
mov rsi, qword [rsp + 0x160]
mov rcx, qword [rbp + 0x48]
xor rcx, rsp
call fcn.14009c7d0
add rsp, 0x168
pop r15
pop r14
pop r13
pop r12
pop rbx
pop rbp
ret
cmova r8, rsi
lea rcx, [rbp + 0x28]
mov rdx, r12
call fcn.14009e510
call fcn.140174790
mov qword [rsp + 0x70], rax
test rax, rax
je 0x14018eb0f
call fcn.14014b770
mov qword [rsp + 0x38], rax
mov rbx, rax
test rax, rax
je 0x14018eb0f
mov rcx, rax
mov qword [rsp + 0x158], rdi
call fcn.14014b860
mov rcx, rbx
call fcn.14014b5c0
mov rcx, rbx
mov rdi, rax
call fcn.14014b5c0
mov rcx, rbx
mov qword [rsp + 0x68], rax
call fcn.14014b5c0
mov rcx, rbx
mov qword [rbp - 0x80], rax
call fcn.14014b5c0
mov rcx, rbx
mov qword [rsp + 0x48], rax
call fcn.14014b5c0
mov rcx, rbx
mov qword [rsp + 0x50], rax
call fcn.14014b5c0
mov rcx, rbx
mov qword [rbp - 0x60], rax
call fcn.14014b5c0
mov rcx, rbx
mov qword [rsp + 0x60], rax
call fcn.14014b5c0
mov qword [rbp - 0x70], rax
mov rbx, rax
test rax, rax
je 0x14018eb07
call fcn.14014afb0
mov r8, qword [rsp + 0x78]
mov rdx, rax
dec r8d
mov rcx, rbx
call fcn.140168ea0
test eax, eax
je 0x14018eb07
nop word [rax + rax]
mov r8d, dword [rsp + 0x30]
xor ebx, ebx
test r12, r12
mov rcx, r13
sete bl
xor edx, edx
call fcn.1401cf580
inc dword [rsp + 0x30]
test eax, eax
je 0x14018eb07
test r12, r12
jne 0x14018e55e
mov edx, r14d
lea rcx, [rbp + 0x28]
call fcn.140136cb0
test eax, eax
jle 0x14018eb07
jmp 0x14018e566
mov qword [rbp - 0x78], 0
mov r8, rsi
lea rdx, [rbp + 0x28]
lea rcx, [rbp + 8]
call fcn.14009e510
mov r8, rsi
lea rdx, [rbp + 0x28]
lea rcx, [rbp - 0x18]
call fcn.14009e510
lea r12, [rsi - 1]
mov rax, r12
test r12, r12
js 0x14018e59f
add byte [rbp + rax + 8], 1
jne 0x14018e59f
sub rax, 1
jns 0x14018e592
mov qword [rsp + 0x28], 0
lea r8, [rbp - 0x38]
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdx, rsi
lea rcx, [rbp + 0x28]
call fcn.14012d1f0
test eax, eax
je 0x14018eb07
mov qword [rsp + 0x28], 0
lea r8, [rbp - 0x18]
xor r9d, r9d
mov qword [rsp + 0x20], r15
mov rdx, rsi
lea rcx, [rbp + 8]
call fcn.14012d1f0
test eax, eax
je 0x14018eb07
xor ecx, ecx
test r14d, r14d
jle 0x14018e681
cmp r14d, 0x40
jb 0x14018e681
mov edx, r14d
and edx, 0x8000003f
jge 0x14018e614
dec edx
or edx, 0xffffffc0
inc edx
mov eax, r14d
sub eax, edx
movsxd rdx, eax
nop dword [rax]
movdqu xmm0, xmmword [rbp + rcx - 0x38]
movdqu xmm1, xmmword [rbp + rcx - 0x18]
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x38], xmm1
movdqu xmm0, xmmword [rbp + rcx - 0x28]
movdqu xmm1, xmmword [rbp + rcx - 8]
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x28], xmm1
movdqu xmm0, xmmword [rbp + rcx - 0x18]
movdqu xmm1, xmmword [rbp + rcx + 8]
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx - 0x18], xmm1
movdqu xmm0, xmmword [rbp + rcx - 8]
movdqu xmm1, xmmword [rbp + rcx + 0x18]
pxor xmm1, xmm0
movdqu xmmword [rbp + rcx - 8], xmm1
add rcx, 0x40
cmp rcx, rdx
jl 0x14018e620
cmp rcx, rsi
jge 0x14018e6a1
nop word [rax + rax]
movzx eax, byte [rbp + rcx - 0x18]
xor byte [rbp + rcx - 0x38], al
inc rcx
cmp rcx, rsi
jl 0x14018e690
or byte [rbp - 0x38], 0x80
lea rcx, [rbp - 0x38]
mov r8, qword [rsp + 0x48]
mov edx, r14d
or byte [rbp + rsi - 0x39], 1
call fcn.14014a1c0
test rax, rax
je 0x14018eb07
mov r8, qword [rsp + 0x38]
mov r9d, ebx
mov rcx, qword [rsp + 0x48]
mov edx, 0x40
mov qword [rsp + 0x20], r13
call fcn.1401cfb10
test eax, eax
jg 0x14018e6f3
jne 0x14018eb07
mov r12, qword [rbp - 0x78]
jmp 0x14018e520
xor r8d, r8d
mov rcx, r13
lea edx, [r8 + 2]
call fcn.1401cf580
test eax, eax
je 0x14018eb07
xor r8d, r8d
mov rcx, r13
lea edx, [r8 + 3]
call fcn.1401cf580
test eax, eax
je 0x14018eb07
mov rcx, qword [rsp + 0x78]
movabs rax, 0xcccccccccccccccd
mov rbx, qword [rbp - 0x80]
dec rcx
mul rcx
xor r13d, r13d
mov r15, rdx
shr r15, 7
test r13d, r13d
je 0x14018e760
mov rcx, qword [rsp + 0x58]
mov r8d, r13d
xor edx, edx
call fcn.1401cf580
test eax, eax
je 0x14018eb07
xor edx, edx
mov rcx, rbx
call fcn.14014aec0
xor ebx, ebx
test r15d, r15d
js 0x14018e814
mov rax, r12
test r12, r12
js 0x14018e78d
nop dword [rax]
add byte [rbp + rax + 8], 1
jne 0x14018e78d
sub rax, 1
jns 0x14018e780
mov rax, qword [rsp + 0x40]
lea r8, [rbp - 0x38]
mov qword [rsp + 0x28], 0
lea rcx, [rbp + 8]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov rdx, rsi
call fcn.14012d1f0
test eax, eax
je 0x14018eb07
mov r8, rdi
lea rcx, [rbp - 0x38]
mov edx, r14d
call fcn.14014a1c0
test rax, rax
je 0x14018eb07
lea r8d, [r14*8]
mov rdx, rdi
imul r8d, ebx
mov rcx, rdi
call fcn.140168ea0
test eax, eax
je 0x14018eb07
mov rdx, qword [rbp - 0x80]
mov r8, rdi
mov rcx, rdx
call fcn.140175360
test eax, eax
je 0x14018eb07
inc ebx
cmp ebx, r15d
jle 0x14018e775
mov rdx, qword [rsp + 0x78]
mov rbx, qword [rbp - 0x80]
dec edx
mov rcx, rbx
call fcn.14014aa60
test eax, eax
je 0x14018eb07
mov rcx, qword [rsp + 0x50]
mov rdx, rbx
call fcn.14014a750
test rax, rax
je 0x14018eb07
mov rdx, qword [rsp + 0x50]
mov r8, qword [rbp - 0x70]
mov rcx, rdx
call fcn.140175360
test eax, eax
je 0x14018eb07
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call fcn.140169030
test eax, eax
je 0x14018eb07
mov rax, qword [rsp + 0x38]
mov r9, rdi
mov r8, qword [rsp + 0x50]
xor ecx, ecx
mov rdx, qword [rbp - 0x60]
mov qword [rsp + 0x20], rax
call fcn.140175680
test eax, eax
je 0x14018eb07
call fcn.14014afb0
mov rdx, qword [rbp - 0x60]
mov r8, rax
mov rcx, rdi
call fcn.140175400
test eax, eax
je 0x14018eb07
mov rdx, qword [rsp + 0x50]
mov r8, rdi
mov rcx, qword [rsp + 0x60]
call fcn.140175400
test eax, eax
je 0x14018eb07
mov rdx, qword [rbp - 0x70]
mov rcx, qword [rsp + 0x60]
call fcn.14014a550
test eax, eax
js 0x14018e90d
mov rax, qword [rsp + 0x58]
mov r9d, 1
mov r8, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea edx, [r9 + 0x3f]
call fcn.1401cfb10
test eax, eax
jg 0x14018e930
jne 0x14018eb07
inc r13d
cmp r13d, 0x1000
jl 0x14018e744
mov r15, qword [rsp + 0x40]
mov r13, qword [rsp + 0x58]
mov r12, qword [rbp - 0x78]
jmp 0x14018e520
mov rbx, qword [rsp + 0x58]
mov edx, 2
mov rcx, rbx
lea r8d, [rdx - 1]
call fcn.1401cf580
test eax, eax
je 0x14018eb07
call fcn.14014afb0
mov r15, qword [rsp + 0x60]
mov r8, rax
mov r12, qword [rbp - 0x70]
mov rdx, r15
mov rcx, r12
call fcn.140175400
test eax, eax
je 0x14018eb07
mov r14, qword [rsp + 0x38]
mov r8, r12
mov r9, qword [rsp + 0x48]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], r14
call fcn.140175680
test eax, eax
je 0x14018eb07
mov edx, 2
mov rcx, r12
call fcn.14014aec0
test eax, eax
je 0x14018eb07
mov rcx, qword [rsp + 0x70]
mov r8, r14
mov rdx, r15
call fcn.140174830
test eax, eax
je 0x14018eb07
mov rax, qword [rsp + 0x70]
mov r9, r15
mov rcx, qword [rsp + 0x68]
mov r8, rdi
mov qword [rsp + 0x28], rax
mov rdx, r12
mov qword [rsp + 0x20], r14
call fcn.140175ce0
test eax, eax
je 0x14018eb07
nop dword [rax]
mov rcx, qword [rsp + 0x68]
call fcn.14014aa00
test eax, eax
je 0x14018ea47
call fcn.14014afb0
mov r8, rax
mov rdx, r12
mov rcx, r12
call fcn.140175360
test eax, eax
je 0x14018eb07
mov rax, qword [rsp + 0x70]
mov r9, r15
mov rcx, qword [rsp + 0x68]
mov r8, rdi
inc dword [rbp - 0x68]
mov rdx, r12
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r14
call fcn.140175ce0
test eax, eax
jne 0x14018e9f0
jmp 0x14018eb07
mov edx, 3
mov rcx, rbx
lea r8d, [rdx - 2]
call fcn.1401cf580
test eax, eax
je 0x14018eb07
mov dword [rsp + 0x34], 1
nop dword [rax + rax]
mov rbx, qword [rbp - 0x58]
mov rcx, qword [rbx + 8]
call fcn.14014a8f0
mov rcx, qword [rbx + 0x10]
call fcn.14014a8f0
mov rcx, qword [rbx + 0x18]
call fcn.14014a8f0
mov rcx, r15
call fcn.14014a7e0
mov rcx, qword [rsp + 0x48]
mov qword [rbx + 8], rax
call fcn.14014a7e0
mov rcx, qword [rsp + 0x68]
mov qword [rbx + 0x10], rax
call fcn.14014a7e0
cmp qword [rbx + 8], 0
mov qword [rbx + 0x18], rax
je 0x14018eaff
cmp qword [rbx + 0x10], 0
je 0x14018eaff
test rax, rax
je 0x14018eaff
mov rax, qword [rbp - 0x50]
test rax, rax
je 0x14018ead6
mov dword [rax], r13d
mov rdx, qword [rbp - 0x48]
test rdx, rdx
je 0x14018eae5
mov rax, qword [rbp - 0x68]
mov dword [rdx], eax
mov rax, qword [rbp - 0x40]
test rax, rax
je 0x14018eb07
mov r8, rsi
lea rdx, [rbp + 0x28]
mov rcx, rax
call fcn.14009e510
jmp 0x14018eb07
mov dword [rsp + 0x34], 0
mov rdi, qword [rsp + 0x158]
mov rcx, qword [rsp + 0x38]
call fcn.14014b480
mov rcx, qword [rsp + 0x38]
call fcn.14014b500
mov rcx, qword [rsp + 0x70]
call fcn.140174730
mov eax, dword [rsp + 0x34]
jmp 0x14018e419
xor eax, eax
jmp 0x14018e421