Function at 0x140018e20
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rsi
push rdi
push r13
push r14
mov rbp, rsp
sub rsp, 0x70
mov rax, qword [0x1400c9438]
xor rax, rsp
mov qword [rbp - 0x18], rax
mov r14, qword [rbp + 0x58]
mov rdi, rcx
mov qword [rbp - 0x28], rcx
mov r10, r8
mov rcx, qword [rbp + 0x68]
mov r13d, edx
mov qword [rbp - 0x48], rcx
mov dword [rbp - 0x4c], edx
test dl, 0xf
je 0x140018e68
mov esi, 1
jmp 0x14001919e
lea eax, [r9 - 0x10]
test eax, 0xffffffe7
jne 0x140019199
cmp r9d, 0x28
je 0x140019199
test rcx, rcx
jne 0x140018e94
cmp dword [rbp + 0x60], r13d
jae 0x140018ea6
lea esi, [rcx + 3]
jmp 0x14001919e
lea eax, [rdx - 0x10]
cmp dword [rbp + 0x60], eax
jae 0x140018ea6
mov esi, 3
jmp 0x14001919e
mov qword [rsp + 0xb0], rbx
lea rcx, [rbp - 0x40]
xorps xmm0, xmm0
mov qword [rsp + 0x68], r12
xor eax, eax
mov qword [rsp + 0x60], r15
mov r8d, r9d
mov qword [rbp - 0x30], rax
mov rdx, r10
movups xmmword [rbp - 0x40], xmm0
call fcn.140018240
mov r8, r14
lea rcx, [rbp - 0x40]
mov rdx, rdi
call fcn.1400187f0
mov r8, qword [rbp + 0x50]
xor esi, esi
lea r12d, [rsi + 0x10]
test r8, r8
je 0x140018f36
lea rax, [r8 + 0xf]
lea rcx, [r14 + 0xf]
cmp r14, rax
ja 0x140018f24
cmp rcx, r8
jb 0x140018f24
sub r8, r14
lea rax, [rsi + r14]
mov edx, r12d
sub rdx, rsi
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
lea rax, [rax + 1]
sub rdx, 1
jne 0x140018f11
jmp 0x140018f36
movdqu xmm1, xmmword [r14]
movdqu xmm0, xmmword [r8]
xorps xmm1, xmm0
movdqu xmmword [r14], xmm1
mov r15d, r13d
shr r15d, 4
dec r15d
cmp r15d, 1
jbe 0x140018ff6
lea r13d, [r15 - 1]
mov rsi, rdi
movsxd rax, r12d
lea rcx, [rbp - 0x40]
lea rdi, [rax + r14]
lea rbx, [rax + rsi]
mov r8, rdi
mov rdx, rbx
call fcn.1400187f0
movzx eax, byte [rbx - 0x10]
add r12d, 0x10
xor byte [rdi], al
movzx eax, byte [rbx - 0xf]
xor byte [rdi + 1], al
movzx eax, byte [rbx - 0xe]
xor byte [rdi + 2], al
movzx eax, byte [rbx - 0xd]
xor byte [rdi + 3], al
movzx eax, byte [rbx - 0xc]
xor byte [rdi + 4], al
movzx eax, byte [rbx - 0xb]
xor byte [rdi + 5], al
movzx eax, byte [rbx - 0xa]
xor byte [rdi + 6], al
movzx eax, byte [rbx - 9]
xor byte [rdi + 7], al
movzx eax, byte [rbx - 8]
xor byte [rdi + 8], al
movzx eax, byte [rbx - 7]
xor byte [rdi + 9], al
movzx eax, byte [rbx - 6]
xor byte [rdi + 0xa], al
movzx eax, byte [rbx - 5]
xor byte [rdi + 0xb], al
movzx eax, byte [rbx - 4]
xor byte [rdi + 0xc], al
movzx eax, byte [rbx - 3]
xor byte [rdi + 0xd], al
movzx eax, byte [rbx - 2]
xor byte [rdi + 0xe], al
movzx eax, byte [rbx - 1]
xor byte [rdi + 0xf], al
sub r13, 1
jne 0x140018f51
mov r13d, dword [rbp - 0x4c]
xor esi, esi
mov rdi, qword [rbp - 0x28]
lea r12d, [rsi + 0x10]
shl r15d, 4
xorps xmm0, xmm0
mov ebx, r15d
mov r15, qword [rsp + 0x60]
movups xmmword [rbp - 0x28], xmm0
cmp r13d, 0x10
jbe 0x1400190b0
lea rdx, [rbx + rdi]
lea r8, [rbp - 0x28]
lea rcx, [rbp - 0x40]
call fcn.1400187f0
lea eax, [rbx - 0x10]
mov ecx, eax
movzx eax, byte [rax + rdi]
xor byte [rbp - 0x28], al
movzx eax, byte [rcx + rdi + 1]
xor byte [rbp - 0x27], al
movzx eax, byte [rcx + rdi + 2]
xor byte [rbp - 0x26], al
movzx eax, byte [rcx + rdi + 3]
xor byte [rbp - 0x25], al
movzx eax, byte [rcx + rdi + 4]
xor byte [rbp - 0x24], al
movzx eax, byte [rcx + rdi + 5]
xor byte [rbp - 0x23], al
movzx eax, byte [rcx + rdi + 6]
xor byte [rbp - 0x22], al
movzx eax, byte [rcx + rdi + 7]
xor byte [rbp - 0x21], al
movzx eax, byte [rcx + rdi + 8]
xor byte [rbp - 0x20], al
movzx eax, byte [rcx + rdi + 9]
xor byte [rbp - 0x1f], al
movzx eax, byte [rcx + rdi + 0xa]
xor byte [rbp - 0x1e], al
movzx eax, byte [rcx + rdi + 0xb]
xor byte [rbp - 0x1d], al
movzx eax, byte [rcx + rdi + 0xc]
xor byte [rbp - 0x1c], al
movzx eax, byte [rcx + rdi + 0xd]
xor byte [rbp - 0x1b], al
movzx eax, byte [rcx + rdi + 0xe]
xor byte [rbp - 0x1a], al
movzx eax, byte [rbp - 0x19]
xor al, byte [rcx + rdi + 0xf]
mov edi, dword [rbp + 0x60]
mov byte [rbp - 0x19], al
jmp 0x1400190d3
mov r8d, r13d
lea rcx, [rbp - 0x28]
mov rdx, r14
call sub.VCRUNTIME140.dll_memcpy
mov edi, dword [rbp + 0x60]
xor edx, edx
mov r8d, edi
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
movzx eax, byte [rbp - 0x19]
mov rcx, qword [rbp - 0x48]
mov rdx, rbx
test rcx, rcx
je 0x140019140
movzx r8d, al
sub r12d, r8d
mov dword [rcx], r8d
cmp r8d, 0x10
ja 0x140019139
mov edx, esi
test al, al
je 0x140019118
nop word [rax + rax]
mov eax, select
sub eax, edx
movzx ecx, byte [rbp + rax - 0x28]
cmp ecx, r8d
jne 0x140019139
inc edx
cmp edx, r8d
jb 0x140019100
lea eax, [rbx + r12]
cmp edi, eax
jb 0x140019132
mov r8d, r12d
lea rcx, [r14 + rbx]
lea rdx, [rbp - 0x28]
call sub.VCRUNTIME140.dll_memcpy
jmp 0x140019149
mov esi, 3
jmp 0x140019149
mov esi, 4
jmp 0x140019149
movups xmm0, xmmword [rbp - 0x28]
movups xmmword [rdx + r14], xmm0
mov rcx, qword [rbp - 0x40]
mov r12, qword [rsp + 0x68]
mov rbx, qword [rsp + 0xb0]
test rcx, rcx
je 0x14001919e
mov rdx, qword [rbp - 0x30]
mov rax, rcx
sub rdx, rcx
and rdx, 0xfffffffffffffff0
cmp rdx, 0x1000
jb 0x140019192
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140019192
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140079384
jmp 0x14001919e
mov esi, 2
mov eax, esi
mov rcx, qword [rbp - 0x18]
xor rcx, rsp
call fcn.1400790d0
add rsp, 0x70
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret