Function at 0x1800023f0
Capabilities:
Check if file exists
Encode data using xor
Get file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
lea rbp, [rax - 0xb8]
sub rsp, 0x1b0
movaps xmmword [rax - 0x18], xmm6
movaps xmmword [rax - 0x28], xmm7
cmp edx, 1
jne 0x180002640
call fcn.180001fd0
test eax, eax
je 0x180002640
movups xmm0, xmmword [0x180005648]
movups xmmword [rsp + 0x58], xmm0
movups xmm1, xmmword [0x180005658]
movups xmmword [rsp + 0x68], xmm1
pextrw eax, xmm1, 7
test ax, ax
je 0x1800025b2
cmp dword [0x180008008], 2
jl 0x18000256f
movdqa xmm5, xmmword [0x180005670]
xor edx, edx
movdqa xmm4, xmmword [0x1800056a0]
movdqa xmm6, xmmword [str.8888]
movdqa xmm7, xmmword [0x180005690]
lea rcx, [rsp + 0x58]
nop
movd xmm2, edx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx]
xorps xmm3, xmm0
movq qword [rcx], xmm3
lea eax, [rdx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
paddd xmm1, xmm2
psrad xmm1, 5
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm6
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm3, xmm1, 0xd8
movq xmm2, xmm7
paddw xmm3, xmm2
movq xmm0, qword [rcx + 8]
xorps xmm3, xmm0
movq qword [rcx + 8], xmm3
add edx, 8
lea rcx, [rcx + 0x10]
cmp edx, 0x10
jl 0x180002480
jmp 0x1800025b2
lea r8, [rsp + 0x58]
xor ecx, ecx
nop word [rax + rax]
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
movzx eax, dx
imul edx, eax, 0x38
movzx eax, cx
sub ax, dx
add ax, 0x39
xor word [r8], ax
inc ecx
lea r8, [r8 + 2]
cmp ecx, 0x10
jl 0x180002580
lea rcx, [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x180002640
lea rdx, [rsp + 0x58]
lea rcx, [rbp - 0x80]
call fcn.180003310
nop
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_bool___cdecl_std::ios_base::fail_void_const___ptr64]
test al, al
jne 0x18000260c
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::fpos_struct__Mbstatet____cdecl_std::basic_istream_char__struct_std::char_traits_char__::tellg_void____ptr64]
mov rcx, qword [rsp + 0x40]
add rcx, qword [rsp + 0x48]
cmp rcx, 0x1000
jge 0x18000265d
lea rcx, [rbp - 0x70]
call fcn.180003710
test rax, rax
jne 0x180002637
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
xor r8d, r8d
lea edx, [r8 + 2]
add rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
nop
lea rcx, [rbp - 0x80]
call fcn.180001f10
mov al, 1
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
mov rsp, r11
pop rbp
ret
call fcn.18000405c
nop
mov rbx, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::seekg_long_long___int64___int____ptr64]
mov r8, qword [rsp + 0x48]
add r8, qword [rsp + 0x40]
mov rdx, rbx
lea rcx, [rbp - 0x80]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::read_char____ptr64__long_long___int64_____ptr64]
lea rcx, [rbp - 0x70]
call fcn.180003710
test rax, rax
jne 0x1800026b6
mov rax, qword [rbp - 0x80]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x80]
add rcx, rax
xor r8d, r8d
lea edx, [r8 + 2]
call qword [sym.imp.MSVCP140.dll_public:_void___cdecl_std::basic_ios_char__struct_std::char_traits_char__::setstate_int__bool____ptr64]
mov rdx, qword [rsp + 0x48]
add rdx, qword [rsp + 0x40]
mov qword [rsp + 0x38], 0
mov dword [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9b, 1
movzx r8d, r9b
mov rcx, rbx
call fcn.180001080
mov rcx, rbx
test al, al
jne 0x1800026fb
call fcn.180004018
jmp 0x180002637
call fcn.180004018
nop
lea rcx, [rbp - 0x80]
call fcn.180001f10
xor al, al
jmp 0x180002642