Function at 0x140005350
Capabilities:
Create thread
Inject dll
Inject thread

Disassembly:
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0xe8
mov r8d, dword [rsp + 0xf0]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400053db
lea rdx, str.Failed_to_open_process._Error:
lea rcx, [0x140048540]
call fcn.1400012f0
mov qword [rsp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x50], eax
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x80]
call fcn.1400049e0
mov qword [rsp + 0x88], rax
lea rdx, [0x140002e40]
mov rcx, qword [rsp + 0x88]
call fcn.140004c10
xor al, al
jmp 0x14000575e
mov rcx, qword [rsp + 0xf8]
call fcn.14001495c
lea rax, [rax + rax + 2]
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, rax
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x14000547c
lea rdx, str.Failed_to_allocate_memory_in_target_process._Error:
lea rcx, [0x140048540]
call fcn.1400012f0
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
mov edx, dword [rsp + 0x54]
mov rcx, qword [rsp + 0x90]
call fcn.1400049e0
mov qword [rsp + 0x98], rax
lea rdx, [0x140002e40]
mov rcx, qword [rsp + 0x98]
call fcn.140004c10
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000575e
mov rcx, qword [rsp + 0xf8]
call fcn.14001495c
lea rax, [rax + rax + 2]
mov qword [rsp + 0x20], 0
mov r9, rax
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140005533
lea rdx, str.Failed_to_write_memory_in_target_process._Error:
lea rcx, [0x140048540]
call fcn.1400012f0
mov qword [rsp + 0xa0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x58], eax
mov edx, dword [rsp + 0x58]
mov rcx, qword [rsp + 0xa0]
call fcn.1400049e0
mov qword [rsp + 0xa8], rax
lea rdx, [0x140002e40]
mov rcx, qword [rsp + 0xa8]
call fcn.140004c10
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000575e
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x70], rax
cmp qword [rsp + 0x70], 0
jne 0x1400055ca
lea rdx, str.Failed_to_get_Kernel32_module_handle._Error:
lea rcx, [0x140048540]
call fcn.1400012f0
mov qword [rsp + 0xb0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x5c], eax
mov edx, dword [rsp + 0x5c]
mov rcx, qword [rsp + 0xb0]
call fcn.1400049e0
mov qword [rsp + 0xb8], rax
lea rdx, [0x140002e40]
mov rcx, qword [rsp + 0xb8]
call fcn.140004c10
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000575e
lea rdx, str.LoadLibraryW
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rsp + 0x78], rax
cmp qword [rsp + 0x78], 0
jne 0x140005666
lea rdx, str.Failed_to_get_LoadLibraryW_address._Error:
lea rcx, [0x140048540]
call fcn.1400012f0
mov qword [rsp + 0xc0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x60], eax
mov edx, dword [rsp + 0x60]
mov rcx, qword [rsp + 0xc0]
call fcn.1400049e0
mov qword [rsp + 0xc8], rax
lea rdx, [0x140002e40]
mov rcx, qword [rsp + 0xc8]
call fcn.140004c10
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000575e
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x78]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rsp + 0x68], rax
cmp qword [rsp + 0x68], 0
jne 0x14000571d
lea rdx, str.Failed_to_create_remote_thread._Error:
lea rcx, [0x140048540]
call fcn.1400012f0
mov qword [rsp + 0xd0], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x64], eax
mov edx, dword [rsp + 0x64]
mov rcx, qword [rsp + 0xd0]
call fcn.1400049e0
mov qword [rsp + 0xd8], rax
lea rdx, [0x140002e40]
mov rcx, qword [rsp + 0xd8]
call fcn.140004c10
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x14000575e
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r9d, 0x8000
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
add rsp, 0xe8
ret