Function at 0x140001bc8
Capabilities:
Acquire debug privileges
Execute command
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
call sym.__main
mov dword [rbp - 0x34], 0xffffffff
lea rax, str.pid:
mov rcx, rax
call sym.printf
lea rax, [rbp - 0x34]
mov rdx, rax
lea rax, [0x14000d026]
mov rcx, rax
call sym.scanf
mov qword [rbp - 8], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x38], 0
lea rax, str.injection.dll
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], pe_nt_image_headers64
mov dword [rsp + 0x20], 3
mov r9d, 0
mov r8d, 0
mov edx, 0x80000000
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateFileA]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0xffffffffffffffff
jne 0x140001c9b
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, str.Failed_to_open_the_DLL_file
mov rdx, rax
lea rax, str._____s._Error_d_n
mov rcx, rax
call sym.printf
jmp 0x140001f6f
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp - 0x1c], eax
cmp dword [rbp - 0x1c], 0xffffffff
je 0x140001cbf
cmp dword [rbp - 0x1c], 0
jne 0x140001ce9
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, str.Failed_to_get_the_DLL_file_size
mov rdx, rax
lea rax, str._____s._Error_d_n
mov rcx, rax
call sym.printf
jmp 0x140001f6f
mov ebx, dword [rbp - 0x1c]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov r8, rbx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapAlloc]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x140001d3e
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, str.Failed_to_get_the_DLL_file_size
mov rdx, rax
lea rax, str._____s._Error_d_n
mov rcx, rax
call sym.printf
jmp 0x140001f6f
lea r8, [rbp - 0x38]
mov ecx, dword [rbp - 0x1c]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8d, ecx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ReadFile]
call rax
test eax, eax
jne 0x140001d96
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, str.Failed_to_alloc_a_buffer_
mov rdx, rax
lea rax, str._____s._Error_d_n
mov rcx, rax
call sym.printf
jmp 0x140001f6f
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x40], 0
pxor xmm0, xmm0
movaps xmmword [rbp - 0x50], xmm0
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
lea rdx, [rbp - 0x40]
mov r8, rdx
mov edx, 0x28
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call rax
test eax, eax
je 0x140001e54
mov dword [rbp - 0x50], 1
mov dword [rbp - 0x44], 2
lea rax, [rbp - 0x50]
add rax, 4
mov r8, rax
lea rax, str.SeDebugPrivilege
mov rdx, rax
mov ecx, 0
mov rax, qword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
call rax
test eax, eax
je 0x140001e44
mov rax, qword [rbp - 0x40]
lea rdx, [rbp - 0x50]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, 0
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call rax
mov rax, qword [rbp - 0x40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0x34]
mov r8d, eax
mov edx, 0
mov ecx, 0x43a
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
jne 0x140001ea2
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, str.Failed_to_open_the_target_process
mov rdx, rax
lea rax, str._____s._Error_d_n
mov rcx, rax
call sym.printf
jmp 0x140001f6f
mov ecx, dword [rbp - 0x1c]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x30]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
call sym.LoadRemoteLibraryR
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x140001ef0
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, str.Failed_to_inject_the_DLL
mov rdx, rax
lea rax, str._____s._Error_d_n
mov rcx, rax
call sym.printf
jmp 0x140001f6f
mov eax, dword [rbp - 0x34]
mov edx, eax
lea rax, str.___Injected_the_DLL_into_process__lu._n
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x28]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessHeap]
call rax
mov rdx, qword [rbp - 0x10]
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_HeapFree]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rax, str.succeed_n
mov rcx, rax
call sym.printf
lea rax, str.pause
mov rcx, rax
call sym.system
mov eax, 0
jmp 0x140001f6f
add rsp, 0x98
pop rbx
pop rbp
ret