Function at 0x140007610
Capabilities:
Set file attributes

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x2d0
mov rax, qword [0x1400840e0]
xor rax, rsp
mov qword [rsp + 0x2c0], rax
mov rdi, rdx
mov rbx, rcx
xor edx, edx
mov r8d, pe_nt_image_headers64
lea rcx, [rsp + 0x1b0]
call fcn.14003dc40
mov rdx, rbx
lea rcx, [rsp + 0x1b0]
call fcn.140008f30
nop
xor edx, edx
mov r8d, 0x108
lea rcx, [rsp + 0xa0]
call fcn.14003dc40
mov rdx, rdi
lea rcx, [rsp + 0xa0]
call fcn.1400081f0
nop
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0x1c0], 6
jne 0x1400079fe
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
test byte [rsp + rcx + 0xb0], 6
jne 0x1400079fe
lea rdx, [rsp + 0x1c0]
lea rcx, [rsp + 0xa0]
call fcn.14000c200
lea rcx, [rsp + 0x1c0]
call fcn.14000eee0
mov ebx, 6
lea esi, [rbx - 4]
test rax, rax
jne 0x140007723
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
mov eax, ebx
cmp qword [rsp + rcx + 0x1f8], 0
cmovne eax, esi
or eax, dword [rsp + rcx + 0x1c0]
and eax, 0x17
mov dword [rsp + rcx + 0x1c0], eax
mov edx, dword [rsp + rcx + 0x1c4]
and edx, eax
jne 0x140007b5c
lea rcx, [rsp + 0xa8]
call fcn.14000eee0
test rax, rax
jne 0x14000776d
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
cmp qword [rsp + rcx + 0xe8], 0
cmovne ebx, esi
or ebx, dword [rsp + rcx + 0xb0]
and ebx, 0x17
mov dword [rsp + rcx + 0xb0], ebx
mov eax, dword [rsp + rcx + 0xb4]
and eax, ebx
jne 0x140007baf
cmp qword [rdi + 0x18], 8
jb 0x140007777
mov rdi, qword [rdi]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x1400078c4
lea rdx, str.Failed_to_set_file_attributes_to_hidden.
lea rcx, [0x140086af0]
call fcn.1400127f0
mov rcx, rax
call fcn.140012d90
nop
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x9c], edx
lea rcx, [rsp + 0xa8]
call fcn.140008e80
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x9c], edx
lea rbx, vtable.std::ios_base.0
mov qword [rsp + 0x148], rbx
lea rcx, [rsp + 0x148]
call fcn.14001c290
nop
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x1ac], edx
lea rcx, [rsp + 0x1c0]
call fcn.140008e80
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x1ac], edx
mov qword [rsp + 0x260], rbx
lea rcx, [rsp + 0x260]
call fcn.14001c290
nop
xor al, al
jmp 0x140007b37
lea rdx, str.File_copied_and_set_to_hidden_successfully.
lea rcx, [0x140086840]
call fcn.1400127f0
mov rcx, rax
call fcn.140012d90
nop
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x9c], edx
lea rcx, [rsp + 0xa8]
call fcn.140008e80
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x9c], edx
lea rbx, vtable.std::ios_base.0
mov qword [rsp + 0x148], rbx
lea rcx, [rsp + 0x148]
call fcn.14001c290
nop
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x1ac], edx
lea rcx, [rsp + 0x1c0]
call fcn.140008e80
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x1ac], edx
mov qword [rsp + 0x260], rbx
lea rcx, [rsp + 0x260]
call fcn.14001c290
nop
mov al, 1
jmp 0x140007b37
lea rdx, str.Failed_to_open_files_for_copying.
lea rcx, [0x140086af0]
call fcn.1400127f0
mov rcx, rax
call fcn.140012d90
nop
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ofstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xa8]
mov dword [rsp + rcx + 0x9c], edx
lea rcx, [rsp + 0xa8]
call fcn.140008e80
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0xa0], rax
mov rax, qword [rsp + 0xa0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x10]
mov dword [rsp + rcx + 0x9c], edx
lea rbx, vtable.std::ios_base.0
mov qword [rsp + 0x148], rbx
lea rcx, [rsp + 0x148]
call fcn.14001c290
nop
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_ifstream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0xb0]
mov dword [rsp + rcx + 0x1ac], edx
lea rcx, [rsp + 0x1c0]
call fcn.140008e80
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea rax, vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov qword [rsp + rcx + 0x1b0], rax
mov rax, qword [rsp + 0x1b0]
movsxd rcx, dword [rax + 4]
lea edx, [rcx - 0x18]
mov dword [rsp + rcx + 0x1ac], edx
mov qword [rsp + 0x260], rbx
lea rcx, [rsp + 0x260]
call fcn.14001c290
nop
xor al, al
jmp 0x140007b37
mov rcx, qword [rsp + 0x2c0]
xor rcx, rsp
call fcn.14003b640
lea r11, [rsp + 0x2d0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
test dl, 4
je 0x140007b6a
lea rbx, str.ios_base::badbit_set
jmp 0x140007b7f
test sil, dl
lea rbx, str.ios_base::failbit_set
lea rax, str.ios_base::eofbit_set
cmove rbx, rax
mov edx, 1
lea rcx, [rsp + 0x38]
call fcn.140002a50
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x48]
call fcn.140003fe0
lea rdx, [0x140081dc0]
lea rcx, [rsp + 0x48]
call fcn.14003d4c4
test al, 4
je 0x140007bbc
lea rbx, str.ios_base::badbit_set
jmp 0x140007bd0
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 + 0x38]
call fcn.140002a50
mov r8, rax
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.140003fe0
lea rdx, [0x140081dc0]
lea rcx, [rsp + 0x70]
call fcn.14003d4c4
int3