Function at 0x18001bb88
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x198]
sub rsp, 0x260
movaps xmmword [rax - 0x48], xmm6
movaps xmmword [rax - 0x58], xmm7
movaps xmmword [rax - 0x68], xmm8
mov rdi, rcx
xor r13d, r13d
mov rax, qword [0x180051620]
cmp byte [rax + 0x1e], r13b
je 0x18001c1c2
mov rdx, qword [rcx]
mov edx, dword [rdx]
lea rcx, [rbp + 0x20]
call fcn.180026430
mov rdx, qword [0x180050558]
cmp dword [rbp + 0x124], r13d
cmove rdx, qword [0x180050550]
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
add rcx, rdx
call fcn.180001434
mov rbx, rax
lea rcx, [rax - 0x1000000]
movabs rax, 0x7ffffef00000
cmp rcx, rax
ja 0x18001c1c2
test bl, 7
jne 0x18001c1c2
mov rcx, qword [0x180050570]
add rcx, rbx
call fcn.180005ae4
movss dword [rbp + 0x1b0], xmm0
mov rcx, qword [0x180050578]
add rcx, rbx
call fcn.180005ae4
movss dword [rbp + 0x1b8], xmm0
mov rcx, qword [0x180050560]
add rcx, rbx
call fcn.180005ae4
movss dword [rsp + 0x40], xmm0
mov rcx, qword [0x180050568]
add rcx, rbx
call fcn.180005ae4
movss dword [rsp + 0x44], xmm0
mov rax, qword [rdi]
xorps xmm6, xmm6
cmp dword [rax], 0xac450d3f
jne 0x18001bc98
comiss xmm6, dword [rbp + 0x1b0]
jae 0x18001c1c2
cmp dword [rbp + 0x128], r13d
sete byte [rbp + 0x1a8]
mov rax, qword [0x180051610]
movdqu xmm7, xmmword [rax + 0x4e0]
cmp dword [rbp + 0x12c], 1
jne 0x18001bcc6
movdqu xmm7, xmmword [rax + 0xe0]
comiss xmm6, dword [rbp + 0x1b0]
jae 0x18001bcd6
comiss xmm6, dword [rsp + 0x40]
jb 0x18001bcde
movdqu xmm7, xmmword [rax + 0x1b0]
mov rdx, qword [rdi + 8]
mov rdx, qword [rdx]
lea rcx, [rsp + 0x78]
call fcn.18001291c
mov rax, qword [0x180051618]
movss xmm2, dword [rbp - 0x80]
subss xmm2, dword [rax + 0x48]
movss xmm0, dword [rsp + 0x7c]
subss xmm0, dword [rax + 0x44]
movss xmm1, dword [rsp + 0x78]
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]
mov rax, qword [0x180051620]
comiss xmm8, dword [rax + 0x50]
ja 0x18001c1c2
and dword [rsp + 0x38], r13d
and dword [rsp + 0x3c], r13d
movsd xmm1, qword [rsp + 0x78]
movsd qword [rbp - 0x70], xmm1
mov eax, dword [rbp - 0x80]
mov dword [rbp - 0x68], eax
lea rdx, [rsp + 0x38]
lea rcx, [rbp - 0x70]
call fcn.180013d30
test al, al
je 0x18001c1c2
cmp byte [rbp + 0x20], r13b
jne 0x18001c056
mov rcx, qword [rdi + 8]
mov rcx, qword [rcx]
call fcn.1800125bc
mov edx, eax
lea rcx, [rbp - 0x50]
call fcn.1800122d0
nop
mov edi, 0xf
mov esi, 0x1000
mov rax, qword [0x180051620]
cmp byte [rax + 0x15], r13b
je 0x18001c015
movss xmm0, dword [rsp + 0x44]
comiss xmm0, xmm6
jbe 0x18001c015
movss xmm0, dword [rbp + 0x1b8]
comiss xmm0, xmm6
jbe 0x18001c015
lea r14, [rbp - 0x50]
mov r15, qword [rbp - 0x38]
cmp r15, rdi
cmova r14, qword [rbp - 0x50]
or rbx, 0xffffffffffffffff
mov rax, qword [rbp - 0x40]
cmp rax, 7
jb 0x18001be45
lea r12, [rax + r14]
lea r8, [r12 - 6]
sub r8, r14
mov rcx, r14
jmp 0x18001be2f
cmp dword [rax], 0x74696d45
jne 0x18001be21
cmp word [rax + 4], 0x6574
jne 0x18001be21
cmp byte [rax + 6], 0x72
je 0x18001be40
inc rax
lea r8, [r12 - 6]
sub r8, rax
mov rcx, rax
mov edx, 0x45
call sub.VCRUNTIME140.dll_memchr
test rax, rax
jne 0x18001be0b
jmp 0x18001be51
sub rax, r14
jmp 0x18001be48
mov rax, rbx
cmp rax, rbx
jne 0x18001c019
cvttss2si edx, xmm8
lea rcx, [rbp - 0x30]
call fcn.1800097c0
nop
mov ebx, 2
mov r9d, ebx
lea r8, [0x18002e50c]
xor edx, edx
lea rcx, [rbp - 0x30]
call fcn.1800160c0
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x60], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rsp + 0x60], xmm1
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], r13
mov byte [rax], r13b
mov r8d, ebx
lea rdx, [0x18002e508]
lea rcx, [rsp + 0x50]
call fcn.180002d90
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x60], xmm1
mov qword [rax + 0x10], r13
mov qword [rax + 0x18], rdi
mov byte [rax], r13b
lea rdx, [rbp - 0x70]
movq rcx, xmm0
movdqa xmm0, xmm1
psrldq xmm0, 8
movq rax, xmm0
cmp rax, rdi
cmova rdx, rcx
movq r8, xmm1
lea rcx, [rbp - 0x50]
call fcn.180002d90
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, rdi
jbe 0x18001bf3c
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, rsi
jb 0x18001bf36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001bf36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002ab28
nop
mov rdx, qword [rsp + 0x68]
cmp rdx, rdi
jbe 0x18001bf77
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, rsi
jb 0x18001bf72
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001bf72
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 [rsp + 0x60], xmm0
mov byte [rsp + 0x50], r13b
mov rdx, qword [rbp - 0x18]
cmp rdx, rdi
jbe 0x18001bfc3
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, rsi
jb 0x18001bfbe
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001bfbe
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002ab28
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], rdi
cmova rcx, qword [rbp - 0x50]
mov rax, qword [0x180051610]
movups xmm0, xmmword [rax + 0x1a0]
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmmword [rbp - 0x70], xmm7
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x20], 1
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x70]
movss xmm1, dword [rsp + 0x3c]
movd edx, xmm1
movss xmm0, dword [rsp + 0x38]
movd ecx, xmm0
call fcn.180005430
mov r15, qword [rbp - 0x38]
cmp r15, rdi
jbe 0x18001c1c2
lea rdx, [r15 + 1]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, rsi
jb 0x18001c1bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001c1bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
cvttss2si rax, xmm8
mov dword [rsp + 0x70], eax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x70], rax
nop
mov dword [rsp + 0x30], 0xc683e8d8
nop
mov word [rsp + 0x34], 0x97ac
mov byte [rsp + 0x36], 0xa2
mov ecx, 0xc64efcc2
mov rdx, r13
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov eax, ecx
shr eax, 0x10
xor byte [rsp + rdx + 0x30], al
inc rdx
cmp rdx, 7
jb 0x18001c085
lea rax, [rsp + 0x30]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x30]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], r13b
jne 0x18001c0b6
mov qword [rsp + 0x58], rbx
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r9, [rsp + 0x70]
lea r8, [rbp - 0x70]
lea rdx, [rsp + 0x50]
lea rcx, [rbp]
call fcn.180017b6c
nop
lea rcx, [rbp]
mov edi, 0xf
cmp qword [rbp + 0x18], rdi
cmova rcx, qword [rbp]
mov rax, qword [0x180051610]
movups xmm0, xmmword [rax + 0x1a0]
movdqu xmmword [rsp + 0x50], xmm0
movdqa xmmword [rbp - 0x70], xmm7
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x20], 1
lea r9, [rsp + 0x50]
lea r8, [rbp - 0x70]
movss xmm1, dword [rsp + 0x3c]
movd edx, xmm1
movss xmm0, dword [rsp + 0x38]
movd ecx, xmm0
call fcn.180005430
lea rax, [rbp + 0x1a8]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x1b0]
mov qword [rbp - 0x28], rax
lea rax, [rbp + 0x1b8]
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x38]
mov qword [rbp - 0x18], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x10], rax
lea rax, [rsp + 0x44]
mov qword [rbp - 8], rax
lea rcx, [rbp - 0x30]
call fcn.1800195bc
nop
mov rdx, qword [rbp + 0x18]
cmp rdx, rdi
jbe 0x18001c1c2
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
mov esi, 0x1000
cmp rdx, rsi
jb 0x18001c1bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001c1bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002ab28
lea r11, [rsp + 0x260]
mov rbx, qword [r11 + 0x40]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret