Function at 0x4017c1
Capabilities:
Enumerate threads
Inject apc

Disassembly:
push rbp
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov rax, qword [rbp + 0x28]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.size___const
add rax, 1
mov dword [rsp + 0x20], 4
mov r9d, 0x1000
mov r8, rax
mov edx, 0
mov rcx, qword [rbp + 0x20]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x40182e
lea rcx, str.Failed_to_allocate_memory_in_remote_process.
call dbg.void log<(ConsoleColor)12>(char const*)
mov eax, 0
jmp 0x401a9c
mov rax, qword [rbp + 0x28]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.size___const
lea rbx, [rax + 1]
mov rax, qword [rbp + 0x28]
mov rcx, rax
call method.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___.c_str___const
mov rdx, rax
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], 0
mov r9, rbx
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x20]
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
sete al
test al, al
je 0x4018af
lea rcx, str.Failed_to_write_DLL_path_to_remote_process.
call dbg.void log<(ConsoleColor)12>(char const*)
mov rax, qword [rbp - 0x10]
mov r9d, 0x8000
mov r8d, 0
mov rdx, rax
mov rcx, qword [rbp + 0x20]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call rax
mov eax, 0
jmp 0x401a9c
lea rcx, str.Kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
lea rdx, str.LoadLibraryA
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0
jne 0x40191b
lea rcx, str.Failed_to_find_LoadLibraryA_address.
call dbg.void log<(ConsoleColor)12>(char const*)
mov rax, qword [rbp - 0x10]
mov r9d, 0x8000
mov r8d, 0
mov rdx, rax
mov rcx, qword [rbp + 0x20]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call rax
mov eax, 0
jmp 0x401a9c
mov edx, 0
mov ecx, 4
call sym.CreateToolhelp32Snapshot
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0xffffffffffffffff
jne 0x40194b
lea rcx, str.Failed_to_get_thread_snapshot.
call dbg.void log<(ConsoleColor)12>(char const*)
mov eax, 0
jmp 0x401a9c
mov dword [rbp - 0x50], 0x1c
mov dword [rbp - 4], 0
lea rax, [rbp - 0x50]
mov rcx, qword [rbp - 0x28]
mov rdx, rax
call sym.Thread32First
test eax, eax
setne al
test al, al
je 0x4019ae
mov ebx, dword [rbp - 0x44]
mov rcx, qword [rbp + 0x20]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessId]
call rax
cmp ebx, eax
sete al
test al, al
je 0x401993
mov eax, dword [rbp - 0x48]
mov dword [rbp - 4], eax
jmp 0x4019ae
lea rax, [rbp - 0x50]
mov rcx, qword [rbp - 0x28]
mov rdx, rax
call sym.Thread32Next
test eax, eax
setne al
test al, al
je 0x4019ae
jmp 0x401972
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
cmp dword [rbp - 4], 0
jne 0x4019da
lea rcx, str.Failed_to_find_a_thread_in_the_target_process.
call dbg.void log<(ConsoleColor)12>(char const*)
mov eax, 0
jmp 0x401a9c
mov eax, dword [rbp - 4]
mov r8d, eax
mov edx, 0
mov ecx, 0x12
mov rax, qword [sym.imp.KERNEL32.dll_OpenThread]
call rax
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
jne 0x401a14
lea rcx, str.Failed_to_open_target_thread.
call dbg.void log<(ConsoleColor)12>(char const*)
mov eax, 0
jmp 0x401a9c
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x30]
mov rax, qword [rbp - 0x20]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_QueueUserAPC]
call rax
test eax, eax
sete al
test al, al
je 0x401a7b
lea rcx, str.Failed_to_queue_APC.
call dbg.void log<(ConsoleColor)12>(char const*)
mov rax, qword [rbp - 0x10]
mov r9d, 0x8000
mov r8d, 0
mov rdx, rax
mov rcx, qword [rbp + 0x20]
mov rax, qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call rax
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x401a9c
mov rax, qword [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rcx, str.APC_queued_successfully._DLL_injection_scheduled.
call dbg.void log<(ConsoleColor)11>(char const*)
mov eax, 1
add rsp, 0x88
pop rbx
pop rbp
ret