Function at 0x1400170d0
Capabilities:
Print debug messages

Disassembly:
push r15
push r14
mov r14d, r8d
push r13
push r12
mov r12, rdx
push rbp
push rdi
push rsi
mov esi, r9d
push rbx
sub rsp, 0x58
test rdx, rdx
mov dword [rsp + 0x3c], ecx
mov rdi, qword [rsp + 0xe0]
sete bpl
mov dword [rsp + 0x4c], 0
test r8d, r8d
jne 0x140017117
mov ebx, 2
test bpl, bpl
jne 0x1400174c0
mov rax, qword [rsp + 0xc0]
or rax, qword [rsp + 0xc8]
mov ebx, 2
je 0x1400174c0
test r12, r12
lea r13, str.Inject
jne 0x1400171a7
mov edx, 0x1fffff
mov ecx, r14d
call sym.ProcessOpen
mov r12, rax
test rax, rax
jne 0x140017188
mov rax, qword [0x14002d650]
mov rdx, r13
xor r14d, r14d
xor r15d, r15d
mov r8d, 0x39
lea rcx, str._DEBUG::_s::_d___INJECT__Failed_to_open_process_handle:__d_n
mov rax, qword [rax]
mov rax, qword [rax + 0x8c2]
mov r9d, dword [rax + 0x68]
call sym.DbgPrint
jmp 0x1400173bc
mov qword [rsp + 0x20], rax
mov r9d, r14d
mov r8d, 0x3d
mov rdx, r13
lea rcx, str._DEBUG::_s::_d___INJECT__Opened_process_handle_to__d:__x_n
call sym.DbgPrint
jmp 0x1400171bf
mov r9, r12
mov r8d, 0x40
mov rdx, r13
lea rcx, str._DEBUG::_s::_d___INJECT__Using_specified_process_handle:__x_n
call sym.DbgPrint
test esi, esi
lea rbx, [0x14002c210]
je 0x1400171e8
mov rax, qword [0x14002d650]
lea r9, str.The_OS_is_x86_
mov r8d, 0x45
mov rax, qword [rax]
cmp word [rax + 0x58], 0
je 0x140017205
mov rcx, r12
call sym.ProcessIsWow
test esi, esi
je 0x140017226
test eax, eax
je 0x140017222
lea r9, str.The_process_target_process_is_x86_
mov r8d, 0x4d
mov rcx, rbx
mov rdx, r13
xor r14d, r14d
xor r15d, r15d
call sym.printf.constprop.0_8
xor esi, esi
mov ebx, 3
jmp 0x140017460
test esi, esi
jne 0x140017248
mov rdx, qword [0x14002d650]
mov rdx, qword [rdx]
cmp word [rdx + 0x58], 9
jne 0x140017248
lea r9, str.The_process_target_process_is_x64_
mov r8d, 0x51
test eax, eax
je 0x140017205
mov r8, qword [rsp + 0xc8]
mov r9d, 4
mov rdx, r12
xor ecx, ecx
call sym.MmVirtualAlloc
lea r9, str._INJECT__Failed_allocating_memory_in_remote_process
mov r8d, 0x58
mov r15, rax
test rax, rax
je 0x1400172b9
mov r9, rax
mov r8d, 0x5b
mov rdx, r13
lea rcx, str._DEBUG::_s::_d___INJECT__Allocated_memory_in_the_remote_process:__p_n
call sym.DbgPrint
mov r9, qword [rsp + 0xc8]
mov rdx, r15
mov rcx, r12
mov r8, qword [rsp + 0xc0]
call sym.MmVirtualWrite
test eax, eax
jne 0x1400172cc
lea r9, str._INJECT__Failed_to_write_payload_into_remote_process
mov r8d, 0x60
mov rdx, r13
mov rcx, rbx
xor r14d, r14d
call sym.printf.constprop.0_8
jmp 0x1400173bc
mov r8d, 0x63
mov r9, qword [rsp + 0xc8]
mov rdx, r13
lea rcx, str._DEBUG::_s::_d___INJECT__Wrote_payload_into_remote_process:__d_written_n
call sym.DbgPrint
mov r8, r15
mov rdx, r12
mov ecx, 2
mov dword [rsp + 0x20], 0x20
mov r9, qword [rsp + 0xc8]
call sym.MmVirtualProtect
lea r9, str._INJECT__Failed_to_change_memory_protection
mov r8d, 0x68
test eax, eax
je 0x1400172b9
lea r9, str._INJECT__Changed_memory_protection_from_RW_to_RX
mov r8d, 0x6b
mov rdx, r13
mov rcx, rbx
call sym.printf.constprop.0_8
cmp qword [rsp + 0xd8], 0
je 0x1400173dd
test rdi, rdi
je 0x1400173dd
mov r9d, 4
mov r8, rdi
mov rdx, r12
xor ecx, ecx
call sym.MmVirtualAlloc
lea r9, str._INJECT__Failed_allocating_argument_memory_in_remote_process
mov r8d, 0x73
mov r14, rax
test rax, rax
je 0x1400173b1
mov r9, rax
mov r8d, 0x76
mov rdx, r13
lea rcx, str._DEBUG::_s::_d___INJECT__Allocated_argument_memory_in_the_remote_process:__p_n
call sym.DbgPrint
mov r9, rdi
mov rdx, r14
mov rcx, r12
mov r8, qword [rsp + 0xd8]
call sym.MmVirtualWrite
test eax, eax
jne 0x1400173c3
lea r9, str._INJECT__Failed_to_write_argument_into_remote_process
mov r8d, 0x7b
mov rdx, r13
mov rcx, rbx
call sym.printf.constprop.0_8
xor esi, esi
jmp 0x14001745b
mov r9, rdi
mov r8d, 0x7e
mov rdx, r13
lea rcx, str._DEBUG::_s::_d___INJECT__Wrote_argument_into_remote_process:__d_written_n
call sym.DbgPrint
jmp 0x1400173e0
xor r14d, r14d
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x20], r14
mov r8d, esi
mov rdx, r12
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0xd0]
movzx ecx, byte [rsp + 0x3c]
lea r9, [r15 + rax]
call sym.ThreadCreate
mov rsi, rax
test rax, rax
je 0x140017431
mov r9d, dword [rsp + 0x4c]
mov r8d, 0x85
mov rdx, r13
xor ebx, ebx
lea rcx, str._DEBUG::_s::_d___INJECT__Successful_injected_code_into_remote_process:__Tid:__d__n
call sym.DbgPrint
jmp 0x140017460
mov rax, qword [0x14002d650]
mov r8d, 0x87
mov rdx, r13
lea rcx, str._DEBUG::_s::_d___INJECT__Failed_to_create_a_new_thread:__d_n
mov rax, qword [rax]
mov rax, qword [rax + 0x8c2]
mov r9d, dword [rax + 0x68]
call sym.DbgPrint
mov ebx, 1
lea r9, str._INJECT__End_of_function._Cleanup_start_now
mov r8d, 0x8b
mov rdx, r13
lea rcx, [0x14002c210]
call sym.printf.constprop.0_8
cmp ebx, 1
jne 0x1400174a1
test r15, r15
je 0x140017491
mov rdx, r15
mov rcx, r12
call sym.MmVirtualFree
test r14, r14
je 0x1400174a1
mov rdx, r14
mov rcx, r12
call sym.MmVirtualFree
test r12, r12
je 0x1400174b3
test bpl, bpl
je 0x1400174b3
mov rcx, r12
call sym.SysNtClose
test rsi, rsi
je 0x1400174c0
mov rcx, rsi
call sym.SysNtClose
add rsp, 0x58
mov eax, ebx
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret