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

Disassembly:
jmp 0x1400118c0
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x40]
lea rcx, [0x1400240a2]
call fcn.14001138e
cmp dword [rbp + 0x100], 2
jge 0x140011902
lea rcx, str.___Usage_:_dll_injection.exe__PID__n
call fcn.1400111a4
mov eax, 1
jmp 0x140011bcb
mov eax, 8
imul rax, rax, 1
mov rcx, qword [rbp + 0x108]
mov rcx, qword [rcx + rax]
call qword [sym.imp.ucrtbased.dll_atoi]
mov dword [0x14001e430], eax
mov edx, dword [0x14001e430]
lea rcx, str.___Trying_to_get_a_handle_to_process___ld__n
call fcn.1400111a4
mov r8d, dword [0x14001e430]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x14001e440], rax
cmp qword [0x14001e440], 0
jne 0x14001197e
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
mov edx, dword [0x14001e430]
lea rcx, str.____Failed_to_open_handle_to_process_with_PID___ld___error_:__ld_n
call fcn.1400111a4
mov eax, 1
jmp 0x140011bcb
mov r8d, dword [0x14001e430]
mov rdx, qword [0x14001e440]
lea rcx, str.___Got_a_handle_0x__p__to_the_process__PID_:__ld__n
call fcn.1400111a4
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, qword [0x14001e208]
xor edx, edx
mov rcx, qword [0x14001e440]
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov qword [0x14001e438], rax
cmp qword [0x14001e438], 0
jne 0x1400119eb
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Couldnt_allocate_bytes_to_lpBuffer__error_:___lp__n
call fcn.1400111a4
mov eax, 1
jmp 0x140011bcb
mov r8, qword [0x14001e438]
mov rdx, qword [0x14001e208]
lea rcx, str.___Allocated__ld_bytes_to_process_memory_with_READ_WRITE_permissions__at_address_0X_p_n
call fcn.1400111a4
mov qword [rsp + 0x20], 0
mov r9, qword [0x14001e208]
lea r8, str.D:MaldevmyDLL.dll
mov rdx, qword [0x14001e438]
mov rcx, qword [0x14001e440]
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r8d, dword [0x14001e430]
lea rdx, str.D:MaldevmyDLL.dll
lea rcx, str._______S_wrote_to_process_memory__PID_:__ld__n
call fcn.1400111a4
lea rcx, str.Kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [0x14001e450], rax
cmp qword [0x14001e450], 0
jne 0x140011a93
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Couldnt_get_handle_to_Kernel32__error_:___lp__n
call fcn.1400111a4
mov rcx, qword [0x14001e440]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140011bcb
mov rdx, qword [0x14001e450]
lea rcx, str.___Got_a_handle_to_Kernel32.dll_0x_p_n
call fcn.1400111a4
lea rdx, str.LoadLibraryW
mov rcx, qword [0x14001e450]
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [rbp + 8], rax
mov rdx, qword [rbp + 8]
lea rcx, str.___Address_of_LoadLibrary_is_0x_ld_n
call fcn.1400111a4
lea rax, [0x14001e434]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov rax, qword [0x14001e438]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 8]
xor r8d, r8d
xor edx, edx
mov rcx, qword [0x14001e440]
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov qword [0x14001e448], rax
cmp qword [0x14001e448], 0
jne 0x140011b40
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Couldnt_open_thread__error_:___lp__n
call fcn.1400111a4
mov rcx, qword [0x14001e440]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x140011bcb
mov r8, qword [0x14001e448]
mov edx, dword [0x14001e434]
lea rcx, str.___Thread_opened__TID_:__ld___handle_a_ladresse__0x_ld__n
call fcn.1400111a4
lea rcx, str.___Waiting_for_the_thread_to_finish_..._n
call fcn.1400111a4
mov edx, 0xffffffff
mov rcx, qword [0x14001e448]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.___Thread_finished_n
call fcn.1400111a4
lea rcx, str.___Nettoyage..._n
call fcn.1400111a4
cmp qword [0x14001e448], 0
je 0x140011ba6
mov rcx, qword [0x14001e448]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp qword [0x14001e440], 0
je 0x140011bbd
mov rcx, qword [0x14001e440]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.___Finished__enjoy___n
call fcn.1400111a4
xor eax, eax
lea rsp, [rbp + 0xe8]
pop rdi
pop rbp
ret