Function at 0x180018190
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xc0
mov rax, qword [0x1800ed0f8]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rdi, rcx
mov qword [rbp - 0x29], rcx
xor r13d, r13d
lea rcx, [rbp - 0x21]
call fcn.180010c30
nop
lea rax, [rbp - 0x21]
mov rsi, qword [rbp - 0x21]
mov rbx, qword [rbp - 9]
cmp rbx, 0x10
cmovae rax, rsi
mov eax, dword [rax]
mov dword [rbp - 0x29], eax
mov r8d, r13d
lea r9, [0x1800d4698]
movzx edx, byte [r8 + r9]
xor dl, byte [rbp + r8 - 0x29]
movsx eax, r8b
imul ecx, eax, 0x29
sub dl, cl
mov byte [rbp + r8 - 0x29], dl
inc r8
cmp r8, 4
jb 0x1800181f1
mov rdx, r13
mov r15, qword [rbp - 0x11]
test r15, r15
je 0x180018257
mov r8, r13
mov rax, rdx
and eax, 3
movsx rcx, byte [rbp + rax - 0x29]
add rcx, r8
lea rax, [rbp - 0x21]
cmp rbx, 0x10
cmovae rax, rsi
xor byte [rax + rdx], cl
inc rdx
add r8, 0x29
mov r15, qword [rbp - 0x11]
mov rbx, qword [rbp - 9]
mov rsi, qword [rbp - 0x21]
cmp rdx, r15
jb 0x180018221
lea rcx, [rbp - 0x21]
cmp rbx, 0x10
setae r14b
cmovae rcx, rsi
mov rdx, r15
call fcn.180035f60
cmp eax, dword [rbp - 0x29]
je 0x180018302
mov qword [rdi], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
xor r8d, r8d
lea rdx, [0x1800d434b]
mov rcx, rdi
call fcn.1800111d0
nop
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x1800182d8
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800182d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180018500
call fcn.1800b2190
mov rax, rdi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800b2170
mov rbx, qword [rsp + 0x110]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [rbp - 0x21]
test r14b, r14b
cmovne rax, rsi
movsxd rax, dword [rax + 4]
xorps xmm0, xmm0
mov r14, rax
movdqu xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r13
test eax, eax
je 0x18001839d
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x18001850d
cmp r14, 0x1000
jb 0x18001836c
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x180018507
call fcn.1800b21c4
mov rcx, rax
test rax, rax
je 0x180018481
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180018374
mov rcx, r14
call fcn.1800b21c4
mov qword [rbp - 1], rax
lea rbx, [rax + r14]
mov qword [rbp + 0xf], rbx
mov r8, r14
xor edx, edx
mov rcx, rax
call sub.vcruntime140.dll_memset
mov qword [rbp + 7], rbx
mov rbx, qword [rbp - 9]
mov r15, qword [rbp - 0x11]
mov rsi, qword [rbp - 0x21]
add r15, 0xfffffffffffffff8
lea rax, [rbp - 0x21]
cmp rbx, 0x10
cmovae rax, rsi
lea rsi, [rax + 8]
mov r12, qword [rbp - 1]
movups xmm0, xmmword [0x1800d7398]
movaps xmmword [rbp - 0x49], xmm0
movsd xmm1, qword [0x1800d73a8]
movsd qword [rbp - 0x39], xmm1
lea rcx, [rbp - 0x49]
call fcn.180036b50
mov rbx, rax
test rax, rax
je 0x180018423
mov eax, dword [rax + 0x7600]
cmp eax, 0xffffffff
je 0x1800183f9
cmp eax, 1
jne 0x180018488
mov dword [rbx + 0x7600], r13d
mov rax, qword [rbx + 0x75f0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x20], r15
mov r9, rsi
mov r8, r14
mov rdx, r12
mov rcx, rbx
call fcn.180037530
mov rcx, rbx
call fcn.180036c60
mov qword [rdi], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
mov rcx, qword [rbp - 1]
mov r8, qword [rbp + 7]
cmp rcx, r8
je 0x180018454
sub r8, rcx
mov rdx, rcx
mov rcx, rdi
call fcn.1800111d0
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x1800184c2
mov rdx, qword [rbp + 0xf]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800184b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800184b1
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbx + 0x75e8]
call fcn.18008c4c0
mov qword [rbx + 0x75e8], r13
mov qword [rbx + 0x75f0], r13
mov dword [rbx + 0x7600], r13d
mov rax, r13
jmp 0x180018400
call fcn.1800b2190
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r13
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x1800182d8
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800182d3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800182d3
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1800026b0
int3
call fcn.180013d20
int3