Function at 0x18001b548
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xf0
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
mov r12, rcx
and dword [rbp + 0x67], 0
mov rcx, qword [rcx]
mov rcx, qword [rcx]
call fcn.1800125bc
mov edx, eax
lea rcx, [rbp - 0x29]
call fcn.1800122d0
nop
xorps xmm0, xmm0
movups xmmword [rsp + 0x30], xmm0
movdqa xmm1, xmmword [0x18002d630]
movdqu xmmword [rsp + 0x40], xmm1
mov byte [rsp + 0x30], 0
mov dword [rbp + 0x67], 2
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x69]
call fcn.180029680
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x69], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x59], xmm1
mov r8d, 0x13
cmp qword [rbp - 0x19], r8
cmovb r8, qword [rbp - 0x19]
lea rdx, [rbp - 0x29]
cmp qword [rbp - 0x11], 0xf
cmova rdx, qword [rbp - 0x29]
lea rcx, [rbp - 0x69]
call fcn.180001494
lea rdx, [rsp + 0x30]
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x48]
cmp rsi, 0xf
cmova rdx, rbx
lea rcx, [rbp - 0x69]
mov rdi, qword [rbp - 0x69]
mov r15, qword [rbp - 0x51]
cmp r15, 0xf
cmova rcx, rdi
mov r8, qword [rbp - 0x59]
cmp r8, qword [rsp + 0x40]
jne 0x18001b635
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
jne 0x18001b635
mov r14b, 1
jmp 0x18001b638
xor r14b, r14b
cmp r15, 0xf
jbe 0x18001b67c
lea rdx, [r15 + 1]
mov rax, rdi
cmp rdx, 0x1000
jb 0x18001b66a
add rdx, 0x27
mov rdi, qword [rdi - 8]
sub rax, rdi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001b66a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rdi
call fcn.18002ab28
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x30]
cmp rsi, 0xf
jbe 0x18001b6b6
lea rdx, [rsi + 1]
mov rax, rbx
cmp rdx, 0x1000
jb 0x18001b6ae
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001b6ae
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
mov rcx, rbx
call fcn.18002ab28
test r14b, r14b
je 0x18001b8ce
mov rax, qword [0x180051620]
cmp byte [rax + 0x33], 0
je 0x18001b8ce
mov rdx, qword [r12]
mov rdx, qword [rdx]
lea rcx, [rbp - 0x79]
call fcn.18001291c
mov rax, qword [0x180051618]
movss xmm7, dword [rbp - 0x71]
movaps xmm2, xmm7
subss xmm2, dword [rax + 0x48]
movss xmm6, dword [rbp - 0x75]
movaps xmm0, xmm6
subss xmm0, dword [rax + 0x44]
movss xmm1, dword [rbp - 0x79]
subss xmm1, dword [rax + 0x40]
mulss xmm0, xmm0
mulss xmm1, xmm1
addss xmm0, xmm1
mulss xmm2, xmm2
addss xmm0, xmm2
call sub.api_ms_win_crt_math_l1_1_0.dll_sqrtf
movaps xmm8, xmm0
divss xmm8, dword [0x18002d678]
and dword [rbp + 0x7f], 0
and dword [rbp + 0x83], 0
movss xmm2, dword [rbp - 0x79]
unpcklps xmm2, xmm6
movsd qword [rbp - 0x79], xmm2
movsd qword [rsp + 0x30], xmm2
movss dword [rsp + 0x38], xmm7
lea rdx, [rbp + 0x7f]
lea rcx, [rsp + 0x30]
call fcn.180013d30
test al, al
je 0x18001b8ce
cvttss2si rax, xmm8
mov dword [rbp + 0x67], eax
nop
mov dword [rbp + 0x6f], 0x112d0a5e
nop
mov byte [rbp + 0x73], 0xb0
mov ecx, 0x989b03da
xor edx, edx
mov r8d, 0x269ec3
imul ecx, ecx, 0x343fd
add ecx, r8d
mov eax, ecx
shr eax, 0x10
xor byte [rbp + rdx + 0x6f], al
inc rdx
cmp rdx, 5
jb 0x18001b78d
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x30], rax
nop
mov dword [rbp + 0x77], 0x1dc290a2
nop
mov word [rbp + 0x7b], 0x1ecd
mov byte [rbp + 0x7d], 0x14
mov ecx, 0xc4c0e1ac
xor edx, edx
imul ecx, ecx, 0x343fd
add ecx, r8d
mov eax, ecx
shr eax, 0x10
xor byte [rbp + rdx + 0x77], al
inc rdx
cmp rdx, 7
jb 0x18001b7cb
lea rax, [rbp + 0x77]
mov qword [rbp - 0x69], rax
lea rcx, [rbp + 0x77]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x18001b7f6
mov qword [rbp - 0x61], rax
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
lea r9, [rbp + 0x67]
lea r8, [rsp + 0x30]
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x49]
call fcn.180017b6c
nop
lea rcx, [rbp - 0x49]
cmp qword [rbp - 0x31], 0xf
cmova rcx, qword [rbp - 0x49]
mov rax, qword [0x180051610]
movups xmm0, xmmword [rax + 0x1a0]
movdqu xmmword [rbp - 0x69], xmm0
movups xmm1, xmmword [rax + 0xf0]
movdqu xmmword [rsp + 0x30], xmm1
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x20], 1
lea r9, [rbp - 0x69]
lea r8, [rsp + 0x30]
movss xmm1, dword [rbp + 0x83]
movd edx, xmm1
movss xmm0, dword [rbp + 0x7f]
movd ecx, xmm0
call fcn.180005430
nop
mov rdx, qword [rbp - 0x31]
cmp rdx, 0xf
jbe 0x18001b8bd
inc rdx
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001b8b8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001b8b8
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002ab28
movdqa xmm0, xmmword [0x18002d630]
movdqu xmmword [rbp - 0x39], xmm0
mov byte [rbp - 0x49], 0
mov rdx, qword [rbp - 0x11]
cmp rdx, 0xf
jbe 0x18001b90c
inc rdx
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18001b907
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001b907
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002ab28
lea r11, [rsp + 0xf0]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret