Function at 0x140004f40
Capabilities:
Acquire debug privileges
Execute command

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rdi
sub rsp, 0x100
mov dword [rsp + 0x110], 3
mov qword [rsp + 0xd0], 0
lea rcx, [0x14000cab0]
call fcn.1400021a0
xor eax, eax
cmp eax, 1
je 0x140005385
lea rcx, [rsp + 0x50]
call fcn.140003ed0
movzx eax, al
test eax, eax
je 0x140005380
cmp dword [rsp + 0x110], 3
jne 0x140004fa8
jmp 0x14000515e
cmp dword [rsp + 0x110], 2
jne 0x140005132
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rsp + 0x118]
mov rax, qword [rcx + rax]
mov qword [rsp + 0xd8], rax
lea rcx, [rsp + 0xe0]
call fcn.1400036d0
nop
lea rcx, str.Process_Name:_n
call fcn.1400021a0
lea rdx, [rsp + 0xe0]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
call fcn.140003480
lea rcx, [rsp + 0xe0]
call fcn.140004ae0
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x60], 0xffffffffffffffff
inc qword [rsp + 0x60]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x60]
cmp byte [rax + rcx], 0
jne 0x140005029
mov rax, qword [rsp + 0x60]
inc rax
mov qword [rsp + 0xb0], rax
mov eax, 2
mov rcx, qword [rsp + 0xb0]
mul rcx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.1400054ac
mov qword [rsp + 0xb8], rax
mov rax, qword [rsp + 0xb8]
mov qword [rsp + 0x90], rax
mov rax, qword [rsp + 0x78]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x68], 0xffffffffffffffff
inc qword [rsp + 0x68]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x68]
cmp byte [rax + rcx], 0
jne 0x1400050a2
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x78]
mov qword [rsp + 0xc8], rcx
mov qword [rsp + 0x70], 0xffffffffffffffff
inc qword [rsp + 0x70]
mov rcx, qword [rsp + 0xc8]
mov rdx, qword [rsp + 0x70]
cmp byte [rcx + rdx], 0
jne 0x1400050d5
mov rcx, qword [rsp + 0x70]
inc rcx
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
mov r8, rcx
mov rdx, qword [rsp + 0x90]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs_s]
mov rcx, qword [rsp + 0x90]
call fcn.1400040a0
mov dword [rsp + 0x50], eax
lea rcx, [rsp + 0xe0]
call fcn.140003b70
jmp 0x14000515e
lea rcx, str.Invalid_Params_n
call fcn.1400021a0
lea rcx, str.Usage:_dll_path__process_name__n
call fcn.1400021a0
lea rcx, [0x14000cb00]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor eax, eax
jmp 0x140005387
cmp dword [rsp + 0x50], 0
jne 0x140005188
lea rcx, str.Process_not_found_n
call fcn.1400021a0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xffffffff
jmp 0x140005387
mov edx, dword [rsp + 0x50]
lea rcx, str.Process_pid:__d_n
call fcn.1400021a0
lea rax, [rsp + 0x98]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov qword [rsp + 0x88], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x88]
mov edx, 0x28
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x14000525d
mov dword [rsp + 0x98], 1
mov eax, 0xc
imul rax, rax, 0
mov dword [rsp + rax + 0xa4], 2
mov eax, 0xc
imul rax, rax, 0
lea rax, [rsp + rax + 0x9c]
mov r8, rax
lea rdx, str.SeDebugPrivilege
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
test eax, eax
je 0x14000524f
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x98]
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x50]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x1400052b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x80], eax
mov edx, dword [rsp + 0x80]
lea rcx, str.OpenProcess_failed:_0x_X_n
call fcn.1400021a0
lea rcx, [0x14000cb84]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xfffffffe
jmp 0x140005387
mov rcx, qword [rsp + 0x58]
call fcn.140004130
movzx eax, al
test eax, eax
jne 0x1400052f2
lea rcx, str.Invalid_Process_Architecture._n
call fcn.1400021a0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x14000cbb0]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xfffffffd
jmp 0x140005387
lea rcx, str.Mapping..._n
call fcn.1400021a0
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 1
mov byte [rsp + 0x30], 1
mov byte [rsp + 0x28], 1
mov byte [rsp + 0x20], 1
mov r9b, 1
mov r8d, 0x5201
lea rdx, [0x1400077f0]
mov rcx, qword [rsp + 0x58]
call fcn.140001030
movzx eax, al
test eax, eax
jne 0x14000536a
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.Error_while_mapping._n
call fcn.1400021a0
lea rcx, str.PAUSE
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov eax, 0xfffffff8
jmp 0x140005387
xor edx, edx
mov ecx, dword [rsp + 0x50]
call fcn.1400041b0
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140004f79
xor eax, eax
add rsp, 0x100
pop rdi
ret