Function at 0x2ca5b1d03
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 - 8], 0
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x34], 0
mov rax, qword [rbp + 0x38]
mov rdx, rax
mov rcx, qword [rbp + 0x20]
call sym.jstringToChar
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 0x2ca5b1dbe
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 0x2ca5b2076
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 0x2ca5b1de2
cmp dword [rbp - 0x1c], 0
jne 0x2ca5b1e0c
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 0x2ca5b2076
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 0x2ca5b1e61
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 0x2ca5b2076
lea r8, [rbp - 0x34]
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 0x2ca5b1eb9
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 0x2ca5b2076
mov qword [rbp - 0x28], 0
mov qword [rbp - 0x30], 0
mov qword [rbp - 0x40], 0
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
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 0x2ca5b1f7f
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 0x2ca5b1f6f
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 + 0x30]
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 0x2ca5b1fcd
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 0x2ca5b2076
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 0x2ca5b201b
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 0x2ca5b2076
mov eax, dword [rbp + 0x30]
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
nop
add rsp, 0x98
pop rbx
pop rbp
ret