Function at 0x140002050
Capabilities:
Acquire debug privileges
Check if file exists
Execute command
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0xa0]
sub rsp, 0x1a0
mov rax, qword [0x140009040]
xor rax, rsp
mov qword [rbp + 0x98], rax
mov rdi, rdx
mov ebx, ecx
lea rdx, str.OMG_ITS_A_DINOSAUR
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400036a0
cmp ebx, 3
je 0x1400020ca
lea rdx, str.Invalid_number_of_arguments._Usage:_program_name_processId_dllPath
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400036a0
lea rdx, [0x140003870]
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 eax, 1
jmp 0x140002406
mov rsi, qword [rdi + 0x10]
xor edx, edx
lea r8d, [rdx + 0xa]
mov rcx, qword [rdi + 8]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_wcstoul]
mov edi, eax
test eax, eax
jne 0x1400020f8
lea rcx, str.Process_Not_found
call fcn.140001020
lea eax, [rdi - 1]
jmp 0x140002406
mov edx, edi
lea rcx, str.Process_pid:__d_n
call fcn.140001020
xorps xmm0, xmm0
movups xmmword [rbp + 0x70], xmm0
xor ebx, ebx
mov qword [rsp + 0x50], rbx
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
lea r8, [rsp + 0x50]
lea edx, [rbx + 0x28]
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000217d
mov dword [rbp + 0x70], 1
mov dword [rbp + 0x7c], 2
lea r8, [rbp + 0x74]
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x140002172
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
xor r9d, r9d
lea r8, [rbp + 0x70]
xor edx, edx
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, edi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rdi, rax
test rax, rax
jne 0x1400021be
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, [rdi - 2]
jmp 0x140002406
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x1400021f8
lea rcx, str.Dll_file_doesnt_exist_n
call fcn.140001020
mov rcx, rdi
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 0x140002406
xor edx, edx
mov r8d, 0x110
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memset
mov rdx, rsi
lea rcx, [rsp + 0x60]
call fcn.140003150
nop
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
mov edx, dword [rsp + rcx + 0x70]
test dl, 6
je 0x140002283
lea rcx, str.Opening_the_file_failed:__X_n
call fcn.140001020
lea rcx, [rsp + 0x70]
call fcn.140003570
test rax, rax
jne 0x140002263
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
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, rdi
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 ebx, 0xfffffffb
jmp 0x1400023fa
lea rdx, [rbp + 0x80]
lea rcx, [rsp + 0x60]
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 [rbp + 0x88]
add rcx, qword [rbp + 0x80]
cmp rcx, 0x1000
jge 0x140002305
lea rcx, str.Filesize_invalid._n
call fcn.140001020
lea rcx, [rsp + 0x70]
call fcn.140003570
test rax, rax
jne 0x1400022e5
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
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, rdi
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 ebx, 0xfffffffa
jmp 0x1400023fa
call fcn.140003c1c
mov rsi, rax
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x60]
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 [rbp + 0x80]
add r8, qword [rbp + 0x88]
mov rdx, rsi
lea rcx, [rsp + 0x60]
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, [rsp + 0x70]
call fcn.140003570
test rax, rax
jne 0x140002366
mov rax, qword [rsp + 0x60]
movsxd rcx, dword [rax + 4]
lea rax, [rsp + 0x60]
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 [rbp + 0x80]
add r8, qword [rbp + 0x88]
mov qword [rsp + 0x40], rbx
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, rdi
call fcn.140001080
mov rcx, rsi
test al, al
jne 0x1400023df
call fcn.140003bd0
mov rcx, rdi
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 ebx, 0xfffffff8
jmp 0x1400023fa
call fcn.140003bd0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140005ac0]
call fcn.140001020
nop
lea rcx, [rsp + 0x60]
call fcn.140002430
mov eax, ebx
mov rcx, qword [rbp + 0x98]
xor rcx, rsp
call fcn.140003bb0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret