Function at 0x140002410
Capabilities:
Check if file exists
Execute command
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rbx, rdx
mov esi, ecx
lea rdx, str._n_________________________________________________________________________________n______________________________________________________________________________n_____________________________________________________________________________n____________________________________________________________________________n___________________________________________________________________n___________________________________________________________________n_______________________________________________________________________n_______________________________________________________________________n________________________________________________________________________________n________________________________________________________________________________n_________________________________________________________________________________n
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003b10
lea rdx, [0x140003ce0]
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]
lea rdx, str._n_nManual_Map_Injector_Using_Handle_Hijack
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140003b10
lea rdx, [0x140003ce0]
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]
xor edi, edi
lea r15, [rdi - 1]
cmp esi, 3
jne 0x140002495
mov rsi, qword [rbx + 8]
mov rcx, qword [rbx + 0x10]
call fcn.140002040
mov ebx, eax
jmp 0x1400025bd
cmp esi, 2
jne 0x1400028c9
mov rsi, qword [rbx + 8]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], dil
lea rcx, str.Process_Name:
call fcn.140001020
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
mov rax, qword [rbx]
movsxd rcx, dword [rax + 4]
add rcx, rbx
mov dl, 0xa
call qword [sym.imp.MSVCP140.dll_public:_char___cdecl_std::basic_ios_char__struct_std::char_traits_char__::widen_char_const___ptr64]
movzx r8d, al
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.140003fa0
lea rbx, [rsp + 0x50]
cmp qword [rsp + 0x68], 0xf
cmova rbx, qword [rsp + 0x50]
mov rcx, r15
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140002507
inc rcx
mov eax, 2
mul rcx
cmovo rax, r15
mov rcx, rax
call fcn.1400041e0
mov r14, rax
mov rcx, r15
nop dword [rax]
inc rcx
cmp byte [rbx + rcx], 0
jne 0x140002530
mov r8, r15
nop dword [rax]
inc r8
cmp byte [rbx + r8], 0
jne 0x140002540
inc r8
mov qword [rsp + 0x20], rcx
mov r9, rbx
mov rdx, r14
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
mov rcx, r14
call fcn.140002040
mov ebx, eax
mov rdx, qword [rsp + 0x68]
cmp rdx, 0xf
jbe 0x1400025aa
inc rdx
mov rcx, qword [rsp + 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025a5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400025a5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14000419c
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x68], 0xf
mov byte [rsp + 0x50], 0
test ebx, ebx
jne 0x1400025e2
lea rcx, str.Process_not_found_n
call fcn.140001020
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, r15d
jmp 0x1400028f0
mov edx, ebx
lea rcx, str.Process_pid:__d_n
call fcn.140001020
mov ecx, ebx
call fcn.1400020f0
mov rbx, rax
test rax, rax
jne 0x140002628
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.OpenProcess_failed:_0x_X_n
call fcn.140001020
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea eax, [rbx - 2]
jmp 0x1400028f0
mov dword [rbp + 0xe8], edi
lea rdx, [rbp + 0xe8]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
test eax, eax
jne 0x140002658
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.Cant_confirm_target_process_architecture:_0x_X_n
call fcn.140001020
jmp 0x140002682
mov dword [rbp + 0xd0], edi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea rdx, [rbp + 0xd0]
call qword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [rbp + 0xd0]
cmp dword [rbp + 0xe8], eax
je 0x1400026ae
lea rcx, str.Invalid_Process_Architecture._n
call fcn.140001020
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xfffffffd
jmp 0x1400028f0
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400026e8
lea rcx, str.Dll_file_doesnt_exist_n
call fcn.140001020
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xfffffffc
jmp 0x1400028f0
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.1400035c0
nop
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
mov edx, dword [rbp + rcx - 0x60]
test dl, 6
je 0x14000275c
lea rcx, str.Opening_the_file_failed:__X_n
call fcn.140001020
lea rcx, [rbp - 0x60]
call fcn.140003a10
test rax, rax
jne 0x14000273c
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
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 rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edi, 0xfffffffb
jmp 0x1400028bc
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x70]
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 + 0x70]
add rcx, qword [rsp + 0x78]
cmp rcx, 0x1000
jge 0x1400027d4
lea rcx, str.Filesize_invalid._n
call fcn.140001020
lea rcx, [rbp - 0x60]
call fcn.140003a10
test rax, rax
jne 0x1400027b4
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
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 rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edi, 0xfffffffa
jmp 0x1400028bc
call fcn.1400041e0
mov rsi, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rbp - 0x70]
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 + 0x78]
add r8, qword [rsp + 0x70]
mov rdx, rsi
lea rcx, [rbp - 0x70]
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 - 0x60]
call fcn.140003a10
test rax, rax
jne 0x14000282c
mov rax, qword [rbp - 0x70]
movsxd rcx, dword [rax + 4]
lea rax, [rbp - 0x70]
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]
lea rcx, str.Mapping..._n
call fcn.140001020
mov r8, qword [rsp + 0x78]
add r8, qword [rsp + 0x70]
mov qword [rsp + 0x40], rdi
mov dword [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9b, 1
mov rdx, rsi
mov rcx, rbx
call fcn.140001080
mov rcx, rsi
test al, al
jne 0x1400028a1
call fcn.14000419c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Error_while_mapping._n
call fcn.140001020
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edi, 0xfffffff8
jmp 0x1400028bc
call fcn.14000419c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140005f78]
call fcn.140001020
nop
lea rcx, [rbp - 0x70]
call fcn.140002910
mov eax, edi
jmp 0x1400028f0
lea rcx, str.Invalid_Params_n
call fcn.140001020
lea rcx, str.Usage:_dll_path__process_name__n
call fcn.140001020
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
mov rbx, qword [rsp + 0x1d8]
add rsp, 0x1a0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret