Function at 0x14000181a
Capabilities:
Create thread
Inject thread

Disassembly:
push rbp
push rdi
sub rsp, 0x188
lea rbp, [rsp + 0x80]
lea rax, str.Notepad.exe
mov qword [rbp + 0xf8], rax
mov rax, qword [rbp + 0xf8]
mov rcx, rax
call sym.getProcId_wchar_t_const_
mov dword [rbp + 0xf4], eax
cmp dword [rbp + 0xf4], 0
jne 0x14000188c
lea rax, str.Process_not_found
mov rdx, rax
mov rax, qword [0x1400e3370]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 1
jmp 0x140001bb8
movabs rax, 0x6c6c642e6b636168
mov qword [rbp + 0xcf], rax
mov byte [rbp + 0xd7], 0
lea rdx, [rbp - 0x40]
mov eax, 0
mov ecx, 0x20
mov rdi, rdx
rep stosq qword [rdi], rax
mov rdx, rdi
mov dword [rdx], eax
add rdx, 4
lea rdx, [rbp - 0x40]
lea rax, [rbp + 0xcf]
mov r9d, 0
mov r8, rdx
mov edx, 0x104
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
call rax
mov eax, dword [rbp + 0xf4]
mov r8d, eax
mov edx, 0
mov ecx, 0x43a
mov rax, qword [sym.imp.KERNEL32.dll_OpenProcess]
call rax
mov qword [rbp + 0xe8], rax
cmp qword [rbp + 0xe8], 0
jne 0x140001948
lea rax, str.Failed_to_open_process
mov rdx, rax
mov rax, qword [0x1400e3370]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov eax, 1
jmp 0x140001bb8
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.strlen
lea rdx, [rax + 1]
mov rax, qword [rbp + 0xe8]
mov dword [rsp + 0x20], 4
mov r9d, 0x3000
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp + 0xe0], rax
cmp qword [rbp + 0xe0], 0
jne 0x1400019da
lea rax, str.Failed_to_allocate_memory_in_the_remote_process
mov rdx, rax
mov rax, qword [0x1400e3370]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rax, qword [rbp + 0xe8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140001bb8
lea rax, [rbp - 0x40]
mov rcx, rax
call sym.strlen
lea r8, [rax + 1]
lea rcx, [rbp - 0x40]
mov rdx, qword [rbp + 0xe0]
mov rax, qword [rbp + 0xe8]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
sete al
test al, al
je 0x140001a8e
lea rax, str.Failed_to_write_to_process_memory
mov rdx, rax
mov rax, qword [0x1400e3370]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rdx, qword [rbp + 0xe0]
mov rax, qword [rbp + 0xe8]
mov r9d, 0x8000
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call rax
mov rax, qword [rbp + 0xe8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140001bb8
mov rcx, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rax, qword [rbp + 0xe8]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov rdx, qword [rbp + 0xe0]
mov qword [rsp + 0x20], rdx
mov r9, rcx
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
call rax
mov qword [rbp + 0xd8], rax
cmp qword [rbp + 0xd8], 0
jne 0x140001b4f
lea rax, str.Failed_to_create_remote_thread
mov rdx, rax
mov rax, qword [0x1400e3370]
mov rcx, rax
call method.std::basic_ostream_char__std::char_traits_char____std::operator____std.char_traits_char____std::basic_ostream_char__std::char_traits_char_____char_const_
mov rcx, rax
mov rax, qword [method.std::basic_ostream_char__std::char_traits_char____std::endl_char__std.char_traits_char____std::basic_ostream_char__std::char_traits_char____]
mov rdx, rax
call method.std::ostream.operator___std::ostream____std::ostream__
mov rdx, qword [rbp + 0xe0]
mov rax, qword [rbp + 0xe8]
mov r9d, 0x8000
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call rax
mov rax, qword [rbp + 0xe8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 1
jmp 0x140001bb8
mov rax, qword [rbp + 0xd8]
mov edx, 0xffffffff
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call rax
mov rax, qword [rbp + 0xd8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov rdx, qword [rbp + 0xe0]
mov rax, qword [rbp + 0xe8]
mov r9d, 0x8000
mov r8d, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call rax
mov rax, qword [rbp + 0xe8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
add rsp, 0x188
pop rdi
pop rbp
ret