Function at 0x4017cf
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 0x401841
lea rdx, str.Failed_to_allocate_memory_in_remote_process.
mov ecx, 0xc
call dbg.log
mov eax, 0
jmp 0x401aaa
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 0x4018b7
lea rdx, str.Failed_to_write_DLL_path_to_remote_process.
mov ecx, 0xc
call dbg.log
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 0x401aaa
lea rcx, str.Kernel32.dll
mov rax, qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call rax
lea rdx, str.LoadLibraryA
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetProcAddress]
call rax
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
jne 0x401920
lea rdx, str.Failed_to_find_LoadLibraryA_address.
mov ecx, 0xc
call dbg.log
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 0x401aaa
mov dword [rbp - 0x50], 0x1c
mov edx, 0
mov ecx, 4
call sym.CreateToolhelp32Snapshot
mov qword [rbp - 0x20], rax
cmp qword [rbp - 0x20], 0xffffffffffffffff
jne 0x40195c
lea rdx, str.Failed_to_get_thread_snapshot.
mov ecx, 0xc
call dbg.log
mov eax, 0
jmp 0x401aaa
mov dword [rbp - 4], 0
lea rax, [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
mov rdx, rax
call sym.Thread32First
mov dword [rbp - 8], eax
jmp 0x4019a7
mov ebx, dword [rbp - 0x44]
mov rcx, qword [rbp + 0x20]
mov rax, qword [sym.imp.KERNEL32.dll_GetProcessId]
call rax
cmp ebx, eax
jne 0x401994
mov eax, dword [rbp - 0x48]
mov dword [rbp - 4], eax
jmp 0x4019ad
lea rax, [rbp - 0x50]
mov rcx, qword [rbp - 0x20]
mov rdx, rax
call sym.Thread32Next
mov dword [rbp - 8], eax
cmp dword [rbp - 8], 0
jne 0x401978
mov rax, qword [rbp - 0x20]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
cmp dword [rbp - 4], 0
jne 0x4019de
lea rdx, str.Failed_to_find_a_thread_in_the_target_process.
mov ecx, 0xc
call dbg.log
mov eax, 0
jmp 0x401aaa
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 - 0x28], rax
cmp qword [rbp - 0x28], 0
jne 0x401a1d
lea rdx, str.Failed_to_open_target_thread.
mov ecx, 0xc
call dbg.log
mov eax, 0
jmp 0x401aaa
mov rcx, qword [rbp - 0x10]
mov rdx, qword [rbp - 0x28]
mov rax, qword [rbp - 0x18]
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_QueueUserAPC]
call rax
test eax, eax
jne 0x401a84
lea rdx, str.Failed_to_queue_APC.
mov ecx, 0xc
call dbg.log
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 - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
mov eax, 0
jmp 0x401aaa
mov rax, qword [rbp - 0x28]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CloseHandle]
call rax
lea rdx, str.APC_queued_successfully._DLL_injection_scheduled.
mov ecx, 0xb
call dbg.log
mov eax, 1
add rsp, 0x88
pop rbx
pop rbp
ret