Function at 0x140011456
Capabilities:
Check if file exists
Create thread
Get file attributes
Inject thread

Disassembly:
jmp 0x140015460
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x238
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x4e
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov ecx, dword [rsp + 0x258]
mov rax, qword [0x140023040]
xor rax, rbp
mov qword [rbp + 0x1e0], rax
lea rcx, [0x1400290f4]
call fcn.14001161d
nop
cmp dword [rbp + 0x210], 3
je 0x14001551a
mov eax, 8
imul rax, rax, 0
mov qword [rbp + 0x1d8], rax
lea rdx, str.Usage:
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110be
mov rcx, qword [rbp + 0x218]
mov rdx, qword [rbp + 0x1d8]
mov rdx, qword [rcx + rdx]
mov rcx, rax
call fcn.1400110be
lea rdx, str._inject.dll_targetprocess.exe
mov rcx, rax
call fcn.1400110be
lea rdx, [0x140011046]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
xor eax, eax
jmp 0x1400157bd
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x218]
mov rdx, qword [rcx + rax]
lea rcx, [rbp + 8]
call fcn.14001121c
nop
lea rcx, [rbp + 8]
call fcn.140011104
mov dword [rbp + 0x44], eax
cmp dword [rbp + 0x44], 0
jne 0x14001558c
lea rdx, str.____Process_not_found.
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110be
lea rdx, [0x140011046]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov dword [rbp + 0x184], 0xffffffff
lea rcx, [rbp + 8]
call fcn.140011587
mov eax, dword [rbp + 0x184]
jmp 0x1400157bd
mov eax, 8
imul rax, rax, 1
mov qword [rbp + 0x1d8], rax
lea rdx, str.__
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110be
mov rcx, qword [rbp + 0x218]
mov rdx, qword [rbp + 0x1d8]
mov rdx, qword [rcx + rdx]
mov rcx, rax
call fcn.1400110be
lea rdx, str._PID:
mov rcx, rax
call fcn.1400110be
mov edx, dword [rbp + 0x44]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x140011046]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x218]
mov rcx, qword [rcx + rax]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x140015656
lea rdx, str.____Could_not_open_DLL_file
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110be
lea rdx, [0x140011046]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov dword [rbp + 0x1a4], 0xffffffff
lea rcx, [rbp + 8]
call fcn.140011587
mov eax, dword [rbp + 0x1a4]
jmp 0x1400157bd
mov r8d, dword [rbp + 0x44]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
je 0x14001576e
cmp qword [rbp + 0x68], 0xffffffffffffffff
je 0x14001576e
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8d, 0x104
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [rbp + 0x88], rax
mov eax, 8
imul rax, rax, 2
mov rcx, qword [rbp + 0x218]
mov rcx, qword [rcx + rax]
call fcn.1400112cb
inc rax
mov ecx, 8
imul rcx, rcx, 2
mov qword [rsp + 0x20], 0
mov r9, rax
mov rax, qword [rbp + 0x218]
mov r8, qword [rax + rcx]
mov rdx, qword [rbp + 0x88]
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
nop
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rax, qword [rbp + 0x88]
mov qword [rsp + 0x20], rax
mov r9, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [rbp + 0xa8], rax
lea rdx, str.___DLL_Injection_successful
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110be
lea rdx, [0x140011046]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
cmp qword [rbp + 0xa8], 0
je 0x14001576c
mov rcx, qword [rbp + 0xa8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
jmp 0x140015792
lea rdx, str.____DLL_Injection_failed
mov rcx, qword [sym.imp.MSVCP140D.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.1400110be
lea rdx, [0x140011046]
mov rcx, rax
call qword [sym.imp.MSVCP140D.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
cmp qword [rbp + 0x68], 0
je 0x1400157a4
mov rcx, qword [rbp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov dword [rbp + 0x1c4], 0
lea rcx, [rbp + 8]
call fcn.140011587
mov eax, dword [rbp + 0x1c4]
mov rdi, rax
lea rcx, [rbp - 0x40]
lea rdx, [0x14001ee80]
call fcn.140011541
mov rax, rdi
mov rcx, qword [rbp + 0x1e0]
xor rcx, rbp
call fcn.140011316
lea rsp, [rbp + 0x1f8]
pop rdi
pop rbp
ret