Function at 0x140011037
Capabilities:
Read file on windows
Write file on windows

Disassembly:
jmp 0x140012560
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
mov eax, 0x10788
call fcn.1400110d7
sub rsp, rax
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x4052
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x107a8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x10738], rax
lea rcx, [0x1400250f7]
call fcn.14001143d
cmp dword [rbp + 0x10760], 3
jge 0x1400125e3
lea rdx, str.Uasge_:_FileCopySync_SourceFile_TargetFile
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140011091
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
jmp 0x1400129a6
mov eax, 8
imul rax, rax, 1
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0x80000000
mov rcx, qword [rbp + 0x10768]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 8], rax
cmp qword [rbp + 8], 0xffffffffffffffff
jne 0x14001268e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x10734], eax
mov ecx, 8
imul rcx, rcx, 1
mov rdx, qword [rbp + 0x10768]
mov rdx, qword [rdx + rcx]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
lea rdx, str._open_failed__code_:
mov rcx, rax
call fcn.140011091
mov ecx, dword [rbp + 0x10734]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
jmp 0x1400129a6
mov eax, 8
imul rax, rax, 2
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x40000000
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
mov rcx, qword [rbp + 0x10768]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0xffffffffffffffff
jne 0x140012739
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x10734], eax
mov ecx, 8
imul rcx, rcx, 2
mov rdx, qword [rbp + 0x10768]
mov rdx, qword [rdx + rcx]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___void_const____ptr64____ptr64]
lea rdx, str._open_failed__code_:
mov rcx, rax
call fcn.140011091
mov ecx, dword [rbp + 0x10734]
mov edx, ecx
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
jmp 0x1400129a6
lea rax, [rbp + 0x48]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
lea rax, [rbp + 0x88]
mov rdi, rax
xor eax, eax
mov ecx, 0x20
rep stosb byte [rdi], al
mov dword [rbp + 0x9c], 0
mov eax, dword [rbp + 0x9c]
mov dword [rbp + 0x98], eax
mov eax, dword [rbp + 0x98]
mov dword [rbp + 0x5c], eax
mov eax, dword [rbp + 0x5c]
mov dword [rbp + 0x58], eax
mov qword [rbp + 0xa0], 0
mov rax, qword [rbp + 0xa0]
mov qword [rbp + 0x60], rax
mov dword [rbp + 0xc4], 0
xor eax, eax
cmp eax, 1
je 0x140012912
lea rax, [rbp + 0x48]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, 0x10000
lea rdx, [rbp + 0xf0]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [rbp + 0x10104], eax
cmp dword [rbp + 0x10104], 0
jne 0x1400127fb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xc4], eax
cmp dword [rbp + 0xc4], 0x3e5
je 0x1400127fb
jmp 0x140012912
mov edx, 0xffffffff
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rbp + 0x10124], eax
cmp dword [rbp + 0x10124], 0
je 0x14001282a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xc4], eax
jmp 0x140012912
cmp qword [rbp + 0x48], 0
je 0x140012856
mov eax, 0xc0000011
cmp qword [rbp + 0x48], rax
jne 0x140012848
mov dword [rbp + 0xc4], 0
jmp 0x140012851
mov eax, dword [rbp + 0x48]
mov dword [rbp + 0xc4], eax
jmp 0x140012912
mov eax, dword [rbp + 0x58]
add rax, qword [rbp + 0x50]
mov dword [rbp + 0x58], eax
mov edx, dword [rbp + 0x58]
lea rcx, str.___Read__bytes_:__d_n
call fcn.140011203
lea rax, [rbp + 0x88]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov r8d, dword [rbp + 0x50]
lea rdx, [rbp + 0xf0]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 0x10104], eax
cmp dword [rbp + 0x10104], 0
jne 0x1400128bc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xc4], eax
cmp dword [rbp + 0xc4], 0x3e5
je 0x1400128bc
jmp 0x140012912
mov edx, 0xffffffff
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [rbp + 0x10124], eax
cmp dword [rbp + 0x10124], 0
je 0x1400128e8
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0xc4], eax
jmp 0x140012912
mov eax, dword [rbp + 0x98]
add rax, qword [rbp + 0x90]
mov dword [rbp + 0x98], eax
mov edx, dword [rbp + 0x98]
lea rcx, str.___Wrote_bytes_:__d_n
call fcn.140011203
jmp 0x1400127a1
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 0xc4], 0
je 0x140012973
lea rdx, [0x140011041]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.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]
lea rdx, str.Error_occurred_in_file_copying__code
mov rcx, rax
call fcn.140011091
mov edx, dword [rbp + 0xc4]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
jmp 0x1400129a6
lea rdx, [0x140011041]
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call qword [sym.imp.MSVCP140D.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]
lea rdx, str.File_copy_successfully_completed...
mov rcx, rax
call fcn.140011091
lea rdx, [0x140011041]
mov rcx, rax
call qword [sym.imp.MSVCP140D.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]
xor eax, eax
mov edi, eax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001bd00]
call fcn.1400113c0
mov eax, edi
mov rcx, qword [rbp + 0x10738]
xor rcx, rbp
call fcn.140011221
lea rsp, [rbp + 0x10748]
pop rdi
pop rbp
ret