Function at 0x2f1fe1504
Capabilities:
Acquire debug privileges
Get file size
Read file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x98
lea rbp, [rsp + 0x90]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov dword [rbp + 0x30], r8d
mov qword [rbp + 0x38], r9
mov qword [rbp - 0x18], 0
mov qword [rbp - 0x20], 0
mov qword [rbp - 8], 0
mov qword [rbp - 0x38], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x24], 0
mov dword [rbp - 0x3c], 0
mov dword [rbp - 0x28], 0
pxor xmm0, xmm0
movups xmmword [rbp - 0x50], xmm0
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov r9, qword [rax + 0x548]
mov rdx, qword [rbp + 0x38]
mov rax, qword [rbp + 0x20]
mov r8d, 0
mov rcx, rax
call r9
mov qword [rbp - 0x30], rax
mov eax, dword [rbp + 0x30]
mov dword [rbp - 0x28], eax
mov rax, qword [rbp - 0x30]
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 - 0x18], rax
cmp qword [rbp - 0x18], 0xffffffffffffffff
jne 0x2f1fe1605
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
mov rcx, rax
call sym.printf
jmp 0x2f1fe1868
mov rax, qword [rbp - 0x18]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFileSize]
call rax
mov dword [rbp - 0x24], eax
cmp dword [rbp - 0x24], 0xffffffff
je 0x2f1fe1629
cmp dword [rbp - 0x24], 0
jne 0x2f1fe1653
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
mov rcx, rax
call sym.printf
jmp 0x2f1fe1868
mov ebx, dword [rbp - 0x24]
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 0x2f1fe16a8
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
mov rcx, rax
call sym.printf
jmp 0x2f1fe1868
lea r8, [rbp - 0x3c]
mov ecx, dword [rbp - 0x24]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 0x18]
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 0x2f1fe1700
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
mov rcx, rax
call sym.printf
jmp 0x2f1fe1868
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
lea rdx, [rbp - 0x38]
mov r8, rdx
mov edx, 0x28
mov rcx, rax
mov rax, qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call rax
test eax, eax
je 0x2f1fe179e
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 0x2f1fe178e
mov rax, qword [rbp - 0x38]
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 - 0x38]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, dword [rbp - 0x28]
mov r8d, eax
mov edx, 0
mov ecx, 0x1fffff
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2f1fe17e9
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
mov rcx, rax
call sym.printf
jmp 0x2f1fe1868
mov ecx, dword [rbp - 0x24]
mov rdx, qword [rbp - 0x10]
mov rax, qword [rbp - 8]
mov r9d, 0
mov r8d, ecx
mov rcx, rax
call dbg.LoadRemoteLibraryR
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x2f1fe1837
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
mov r8d, eax
lea rax, str.Failed_to_inject_the_DLL_n
mov rdx, rax
lea rax, str._____s._Error_d
mov rcx, rax
call sym.printf
jmp 0x2f1fe1868
mov edx, dword [rbp - 0x28]
mov rax, qword [rbp - 0x30]
mov r8d, edx
mov rdx, rax
lea rax, str.___Injected_the__s_DLL_into_process__d._n
mov rcx, rax
call sym.printf
mov rax, qword [rbp - 0x20]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
cmp qword [rbp - 0x10], 0
je 0x2f1fe1890
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
cmp qword [rbp - 8], 0
je 0x2f1fe18a7
mov rax, qword [rbp - 8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rax, qword [rbp + 0x20]
mov rax, qword [rax]
mov r9, qword [rax + 0x550]
mov rcx, qword [rbp - 0x30]
mov rdx, qword [rbp + 0x38]
mov rax, qword [rbp + 0x20]
mov r8, rcx
mov rcx, rax
call r9
nop
add rsp, 0x98
pop rbx
pop rbp
ret