Function at 0x18001cc38
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
push rbp
push rbx
push rdi
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x218
movaps xmmword [rax - 0x38], xmm6
movaps xmmword [rax - 0x48], xmm7
movaps xmmword [rax - 0x58], xmm8
mov rdi, rcx
and dword [rbp + 0x140], 0
mov rdx, qword [rcx]
mov edx, dword [rdx]
lea rcx, [rbp - 0x30]
call 0x180023df8
cmp byte [rbp - 0x30], 0
je 0x18001d01c
mov rax, qword [rdi + 8]
mov rcx, qword [rax]
add rcx, qword [0x180050530]
call fcn.180001434
lea rcx, [rax - 0x1000000]
movabs rbx, 0x7ffffef00000
cmp rcx, rbx
ja 0x18001d01c
test al, 7
jne 0x18001d01c
mov rcx, rax
call fcn.180001434
lea rcx, [rax - 0x1000000]
cmp rcx, rbx
ja 0x18001d01c
test al, 7
jne 0x18001d01c
mov rdx, qword [0x180050090]
add rdx, rax
lea rcx, [rsp + 0x30]
call fcn.180005b34
mov rax, qword [0x180051618]
movss xmm7, dword [rsp + 0x38]
movaps xmm2, xmm7
subss xmm2, dword [rax + 0x48]
movss xmm6, dword [rsp + 0x34]
movaps xmm1, xmm6
subss xmm1, dword [rax + 0x44]
movss xmm0, dword [rsp + 0x30]
subss xmm0, 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 + 0x158], 0
and dword [rbp + 0x15c], 0
movss xmm2, dword [rsp + 0x30]
unpcklps xmm2, xmm6
movsd qword [rsp + 0x30], xmm2
movsd qword [rsp + 0x60], xmm2
movss dword [rsp + 0x68], xmm7
lea rdx, [rbp + 0x158]
lea rcx, [rsp + 0x60]
call fcn.180013d30
test al, al
je 0x18001d01c
cmp byte [rbp + 0xd1], 0
je 0x18001cdd1
comiss xmm8, dword [0x18002e4b0]
ja 0x18001d01c
xorps xmm0, xmm0
movups xmmword [rbp - 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x60], xmm1
lea rcx, [rbp - 0x30]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x18001cdaa
mov r8, rax
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x70]
call fcn.180001494
lea rax, [rbp - 0x70]
mov ebx, 1
jmp 0x18001ce82
cvttss2si rax, xmm8
mov dword [rbp + 0x148], eax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x60], rax
mov dword [rbp + 0x140], 2
nop
mov dword [rbp + 0x150], 0xc683e8d8
nop
mov word [rbp + 0x154], 0x97ac
mov byte [rbp + 0x156], 0xa2
mov ecx, 0xc64efcc2
xor edx, edx
imul ecx, ecx, 0x343fd
add ecx, 0x269ec3
mov eax, ecx
shr eax, 0x10
xor byte [rbp + rdx + 0x150], al
inc rdx
cmp rdx, 7
jb 0x18001ce12
lea rax, [rbp + 0x150]
mov qword [rsp + 0x40], rax
lea rcx, [rbp + 0x150]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x18001ce4a
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea r9, [rbp + 0x148]
lea r8, [rsp + 0x60]
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x50]
call fcn.180017b6c
mov ebx, 6
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
and qword [rax + 0x10], 0
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov r15d, 0x1000
test bl, 4
je 0x18001cf0b
and ebx, 0xfffffffb
mov rdx, qword [rbp - 0x38]
cmp rdx, 0xf
jbe 0x18001cefa
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, r15
jb 0x18001cef5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001cef5
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 - 0x40], xmm0
mov byte [rbp - 0x50], 0
test bl, 2
je 0x18001cf13
and ebx, 0xfffffffd
test bl, 1
je 0x18001cf52
mov rdx, qword [rbp - 0x58]
cmp rdx, 0xf
jbe 0x18001cf52
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, r15
jb 0x18001cf4d
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001cf4d
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002ab28
lea rcx, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova rcx, qword [rsp + 0x70]
mov rax, qword [0x180051610]
movups xmm0, xmmword [rax + 0x1a0]
movdqu xmmword [rsp + 0x40], xmm0
movups xmm1, xmmword [rax]
movdqu xmmword [rsp + 0x60], xmm1
movss xmm1, dword [rbp + 0x15c]
addss xmm1, dword [0x18002e540]
mov qword [rsp + 0x28], rcx
mov byte [rsp + 0x20], 1
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
movd edx, xmm1
movss xmm0, dword [rbp + 0x158]
movd ecx, xmm0
call fcn.180005430
mov rcx, qword [rdi + 0x10]
mov rax, qword [rdi + 8]
lea rdx, [rbp + 0x158]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x40]
call fcn.180019934
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x18001d01c
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, r15
jb 0x18001d017
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18001d017
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18002ab28
lea r11, [rsp + 0x218]
movaps xmm6, xmmword [r11 - 0x18]
movaps xmm7, xmmword [r11 - 0x28]
movaps xmm8, xmmword [r11 - 0x38]
mov rsp, r11
pop r15
pop rdi
pop rbx
pop rbp
ret