Function at 0x180018170
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 [0x1800ee0f8]
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.180010c10
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, [0x1800d5688]
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 0x1800181d1
mov rdx, r13
mov r15, qword [rbp - 0x11]
test r15, r15
je 0x180018237
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 0x180018201
lea rcx, [rbp - 0x21]
cmp rbx, 0x10
setae r14b
cmovae rcx, rsi
mov rdx, r15
call fcn.180036c10
cmp eax, dword [rbp - 0x29]
je 0x1800182e2
mov qword [rdi], r13
mov qword [rdi + 0x10], r13
mov qword [rdi + 0x18], 0xf
mov byte [rdi], 0
xor r8d, r8d
lea rdx, [0x1800d5433]
mov rcx, rdi
call fcn.1800111b0
nop
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x1800182b8
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800182b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800184e0
call fcn.1800b2e40
mov rax, rdi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800b2e20
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 0x18001837d
movabs rax, 0x7fffffffffffffff
cmp r14, rax
ja 0x1800184ed
cmp r14, 0x1000
jb 0x18001834c
lea rcx, [r14 + 0x27]
cmp rcx, r14
jbe 0x1800184e7
call fcn.1800b2e74
mov rcx, rax
test rax, rax
je 0x180018461
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x180018354
mov rcx, r14
call fcn.1800b2e74
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 [0x1800d8408]
movaps xmmword [rbp - 0x49], xmm0
movsd xmm1, qword [0x1800d8418]
movsd qword [rbp - 0x39], xmm1
lea rcx, [rbp - 0x49]
call fcn.180037800
mov rbx, rax
test rax, rax
je 0x180018403
mov eax, dword [rax + 0x7600]
cmp eax, 0xffffffff
je 0x1800183d9
cmp eax, 1
jne 0x180018468
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.1800381e0
mov rcx, rbx
call fcn.180037910
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 0x180018434
sub r8, rcx
mov rdx, rcx
mov rcx, rdi
call fcn.1800111b0
mov rcx, qword [rbp - 1]
test rcx, rcx
je 0x1800184a2
mov rdx, qword [rbp + 0xf]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180018491
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180018491
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
nop
mov rcx, qword [rbx + 0x75e8]
call fcn.18008d170
mov qword [rbx + 0x75e8], r13
mov qword [rbx + 0x75f0], r13
mov dword [rbx + 0x7600], r13d
mov rax, r13
jmp 0x1800183e0
call fcn.1800b2e40
xorps xmm0, xmm0
movdqu xmmword [rbp - 1], xmm0
mov qword [rbp + 0xf], r13
mov rdx, qword [rbp - 9]
cmp rdx, 0x10
jb 0x1800182b8
inc rdx
mov rcx, qword [rbp - 0x21]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800182b3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800182b3
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
nop
call fcn.1800026b0
int3
call fcn.180013d00
int3