Function at 0x1801a9220
Capabilities:
Encode data using xor

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xf]
sub rsp, 0xe8
mov rax, qword [0x1802b7c00]
xor rax, rsp
mov qword [rbp - 0x19], rax
mov rax, qword [rbp + 0x7f]
mov rsi, rcx
mov rcx, qword [rcx]
mov r14, r9
mov qword [rsp + 0x28], rax
mov rdi, r8
mov qword [rsp + 0x30], r9
mov rbx, rdx
call fcn.1801946d0
mov dword [rsp + 0x20], 0
mov r8, rdi
mov rdx, rbx
movzx r15d, al
mov rcx, rsi
mov byte [rsp + 0x23], 1
call fcn.180194940
mov edi, eax
test eax, eax
jne 0x1801a94dc
mov qword [rsp + 0xd8], r13
mov r13d, dword [rbp + 0x77]
test r13d, r13d
je 0x1801a94b5
mov qword [rsp + 0xe0], r12
mov r12d, dword [rbp + 0x6f]
nop
mov r8, qword [rbp + 0x67]
mov rdx, r14
mov rcx, rsi
call fcn.180194c40
mov edi, eax
test eax, eax
jne 0x1801a94ad
lea r8d, [rax + 4]
mov rcx, rsi
lea rdx, [rsp + 0x20]
call fcn.180194c40
mov edi, eax
test eax, eax
jne 0x1801a94ad
lea rdx, [rsp + 0x40]
mov rcx, rsi
call fcn.1801946f0
mov edi, eax
test eax, eax
jne 0x1801a94ad
mov rcx, rsi
call fcn.1801948e0
mov edi, eax
test eax, eax
jne 0x1801a94ad
mov r8, r15
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x59]
call sub.VCRUNTIME140.dll_memcpy
mov ebx, 1
cmp r12d, ebx
jbe 0x1801a945c
nop dword [rax]
mov r8, r15
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.180194c40
mov edi, eax
test eax, eax
jne 0x1801a94ad
lea rdx, [rbp - 0x59]
mov rcx, rsi
call fcn.1801946f0
mov edi, eax
test eax, eax
jne 0x1801a94ad
mov rcx, rsi
call fcn.1801948e0
mov edi, eax
test eax, eax
jne 0x1801a94ad
xor eax, eax
mov edx, r15d
test r15b, r15b
je 0x1801a942e
cmp r15d, 8
jb 0x1801a942e
cmp r15d, 0x40
jb 0x1801a9408
mov ecx, edx
mov r9d, 0xffffffc0
and rcx, r9
nop word [rax + rax]
movdqu xmm0, xmmword [rsp + rax + 0x40]
movdqu xmm1, xmmword [rbp + rax - 0x59]
xorps xmm1, xmm0
movdqu xmmword [rsp + rax + 0x40], xmm1
movdqu xmm0, xmmword [rsp + rax + 0x50]
movdqu xmm1, xmmword [rbp + rax - 0x49]
xorps xmm1, xmm0
movdqu xmmword [rsp + rax + 0x50], xmm1
movdqu xmm0, xmmword [rbp + rax - 0x79]
movdqu xmm1, xmmword [rbp + rax - 0x39]
xorps xmm1, xmm0
movdqu xmmword [rbp + rax - 0x79], xmm1
movdqu xmm0, xmmword [rbp + rax - 0x69]
movdqu xmm1, xmmword [rbp + rax - 0x29]
xorps xmm1, xmm0
movdqu xmmword [rbp + rax - 0x69], xmm1
add rax, 0x40
cmp rax, rcx
jl 0x1801a93a0
mov ecx, r15d
and cl, 0x3f
cmp cl, 8
jb 0x1801a942e
mov ecx, 0xfffffff8
and rdx, rcx
movq xmm0, qword [rsp + rax + 0x40]
movq xmm1, qword [rbp + rax - 0x59]
xorps xmm1, xmm0
movq qword [rsp + rax + 0x40], xmm1
add rax, 8
cmp rax, rdx
jl 0x1801a9410
cmp rax, r15
jge 0x1801a9451
nop dword [rax]
nop word [rax + rax]
movzx ecx, byte [rbp + rax - 0x59]
xor byte [rsp + rax + 0x40], cl
inc rax
cmp rax, r15
jl 0x1801a9440
inc ebx
cmp ebx, r12d
jb 0x1801a9330
mov r14, qword [rsp + 0x28]
lea rdx, [rsp + 0x40]
mov eax, r15d
cmp r13d, r15d
mov rcx, r14
cmovb eax, r13d
mov r8d, eax
mov ebx, eax
call sub.VCRUNTIME140.dll_memcpy
sub r13d, ebx
mov edx, 4
add r14, rbx
mov qword [rsp + 0x28], r14
nop dword [rax]
lea eax, [rdx - 1]
add byte [rsp + rax + 0x20], 1
jne 0x1801a949f
add edx, 0xffffffff
jne 0x1801a9490
mov r14, qword [rsp + 0x30]
test r13d, r13d
jne 0x1801a92b0
mov r12, qword [rsp + 0xe0]
mov edx, 0x40
lea rcx, [rsp + 0x40]
call fcn.1801913a0
mov edx, 0x40
lea rcx, [rbp - 0x59]
call fcn.1801913a0
mov r13, qword [rsp + 0xd8]
mov eax, edi
mov rcx, qword [rbp - 0x19]
xor rcx, rsp
call fcn.1801fc6e0
add rsp, 0xe8
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret