Function at 0x40180e
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 sym.strlen
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 0x40187b
lea rcx, str.Failed_to_allocate_memory_in_remote_process.
call dbg.logError
mov eax, 0
jmp 0x401ae2
mov rax, qword [rbp + 0x28]
mov rcx, rax
call sym.strlen
lea rcx, [rax + 1]
mov rdx, qword [rbp + 0x28]
mov rax, qword [rbp - 0x10]
mov qword [rsp + 0x20], 0
mov r9, rcx
mov r8, rdx
mov rdx, rax
mov rcx, qword [rbp + 0x20]
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
test eax, eax
jne 0x4018ec
lea rcx, str.Failed_to_write_DLL_path_to_remote_process.
call dbg.logError
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 0x401ae2
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 0x401958
lea rcx, str.Failed_to_find_LoadLibraryA_address.
call dbg.logError
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 0x401ae2
mov qword [rbp - 0x50], 0
mov qword [rbp - 0x48], 0
mov qword [rbp - 0x40], 0
mov dword [rbp - 0x38], 0
mov dword [rbp - 0x50], 0x1c
mov edx, 0
mov ecx, 4
call sym.CreateToolhelp32Snapshot
mov qword [rbp - 0x28], rax
cmp qword [rbp - 0x28], 0xffffffffffffffff
jne 0x4019ae
lea rcx, str.Failed_to_get_thread_snapshot.
call dbg.logError
mov eax, 0
jmp 0x401ae2
mov dword [rbp - 4], 0
lea rax, [rbp - 0x50]
mov rcx, qword [rbp - 0x28]
mov rdx, rax
call sym.Thread32First
test eax, eax
je 0x4019f9
mov ebx, dword [rbp - 0x44]
mov rcx, qword [rbp + 0x20]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessId]
call rax
cmp ebx, eax
jne 0x4019e5
mov eax, dword [rbp - 0x48]
mov dword [rbp - 4], eax
jmp 0x4019f9
lea rax, [rbp - 0x50]
mov rcx, qword [rbp - 0x28]
mov rdx, rax
call sym.Thread32Next
test eax, eax
jne 0x4019c9
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
cmp dword [rbp - 4], 0
jne 0x401a25
lea rcx, str.Failed_to_find_a_thread_in_the_target_process.
call dbg.logError
mov eax, 0
jmp 0x401ae2
mov eax, dword [rbp - 4]
mov r8d, eax
mov edx, 0
mov ecx, 0x10
mov rax, qword [sym.imp.KERNEL32.dll_OpenThread]
call rax
mov qword [rbp - 0x30], rax
cmp qword [rbp - 0x30], 0
jne 0x401a5f
lea rcx, str.Failed_to_open_target_thread.
call dbg.logError
mov eax, 0
jmp 0x401ae2
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
jne 0x401ac1
lea rcx, str.Failed_to_queue_APC.
call dbg.logError
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 0x401ae2
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.logInfo
mov eax, 1
add rsp, 0x88
pop rbx
pop rbp
ret