Function at 0x140001070
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push r12
lea rbp, [rsp - 0x1f8]
sub rsp, 0x2f8
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
xor r12d, r12d
lea r8, [rbp - 0x30]
mov r9, rdx
mov qword [rsp + 0x68], r12
mov r10d, ecx
mov qword [rsp + 0x70], r12
mov qword [rsp + 0x60], r12
lea rax, [0x140003320]
lea edx, [r12 + 3]
nop dword [rax]
lea r8, [r8 + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [r8 - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [r8 - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [r8 - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [r8 - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [r8 - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [r8 - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [r8 - 0x20], xmm0
movups xmmword [r8 - 0x10], xmm1
sub rdx, 1
jne 0x1400010c0
mov rcx, qword [rax + 0x70]
mov qword [rbp - 0x48], 0x1ff
mov qword [rbp - 0x40], r12
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [r8], xmm0
movups xmm0, xmmword [rax + 0x20]
movups xmmword [r8 + 0x10], xmm1
movups xmm1, xmmword [rax + 0x30]
movups xmmword [r8 + 0x20], xmm0
movups xmm0, xmmword [rax + 0x40]
movups xmmword [r8 + 0x30], xmm1
movups xmm1, xmmword [rax + 0x50]
movups xmmword [r8 + 0x40], xmm0
movups xmm0, xmmword [rax + 0x60]
movups xmmword [r8 + 0x50], xmm1
movups xmmword [r8 + 0x60], xmm0
mov qword [r8 + 0x70], rcx
mov ecx, dword [rax + 0x78]
mov dword [r8 + 0x78], ecx
movzx ecx, word [rax + 0x7c]
mov word [r8 + 0x7c], cx
movzx ecx, byte [rax + 0x7e]
mov byte [r8 + 0x7e], cl
cmp r10d, 2
jge 0x14000119e
mov rdx, qword [r9]
lea rcx, str.____usage:__s__PID__n
call fcn.140001010
jmp 0x140001492
mov rcx, qword [r9 + 8]
mov qword [rsp + 0x310], rbx
mov qword [rsp + 0x320], rsi
mov qword [rsp + 0x2f0], rdi
mov qword [rsp + 0x2e8], r14
mov qword [rsp + 0x2e0], r15
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_atoi]
lea rdx, str.NTDLL
mov esi, eax
lea rcx, str.___trying_to_get_handle_to_module:__S_n
call fcn.140001010
lea rcx, str.NTDLL
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x14000121b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r8d, eax
lea rdx, str.NTDLL
lea rcx, str.____error_getting_handle_to_module:__S__error:_0x_lx_n
call fcn.140001010
mov rdi, r12
jmp 0x14000123d
lea rcx, str.___got_module_to_handle__n
call fcn.140001010
mov r8, rdi
lea rdx, str.NTDLL
lea rcx, str.____S:__n_t___0x_p_n_n
call fcn.140001010
xorps xmm0, xmm0
mov dword [rbp - 0x78], 0x30
lea rcx, str.___populating_function_prototypes_n
mov qword [rbp - 0x70], r12
movups xmmword [rbp - 0x68], xmm0
mov qword [rsp + 0x78], rsi
movups xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x80], r12
call fcn.140001010
lea rdx, str.NtOpenProcess
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtCreateThreadEx
mov rcx, rdi
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtClose
mov rcx, rdi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtAllocateVirtualMemory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, str.NtWriteVirtualMemory
mov rcx, rdi
mov r15, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, str.___finished__beginning_injection_n
mov rdi, rax
call fcn.140001010
lea r9, [rsp + 0x78]
mov edx, 0x1fffff
lea r8, [rbp - 0x78]
lea rcx, [rsp + 0x60]
call rbx
mov rbx, qword [rsp + 0x310]
test eax, eax
je 0x140001304
mov edx, eax
lea rcx, str._____NtOpenProcess__failed_to_get_a_handle_on_the_process__error:_0x_lx_n
call fcn.140001010
jmp 0x14000142e
mov edx, esi
lea rcx, str.____NtOpenProcess__got_handle_to_process___ld__n
call fcn.140001010
mov rdx, qword [rsp + 0x60]
lea rcx, str.___hProcess:__n_t___0x_p_n_n
call fcn.140001010
mov rcx, qword [rsp + 0x60]
lea r9, [rbp - 0x48]
xor r8d, r8d
mov dword [rsp + 0x28], 0x40
lea rdx, [rsp + 0x68]
mov dword [rsp + 0x20], 0x3000
call r15
test eax, eax
je 0x14000135e
mov edx, eax
lea rcx, str._____NtAllocVirtualMemory__failed_to_allocate_memory__error:_0x_lx_n
call fcn.140001010
jmp 0x14000142e
mov rdx, qword [rbp - 0x48]
lea rcx, str.____NtAllocVirtualMemory__allocated__zu_bytes_to_rBuffer_n
call fcn.140001010
mov rdx, qword [rsp + 0x68]
lea rax, [rbp - 0x40]
mov rcx, qword [rsp + 0x60]
lea r8, [rbp - 0x30]
mov r9d, 0x1ff
mov qword [rsp + 0x20], rax
call rdi
test eax, eax
je 0x1400013a4
mov edx, eax
lea rcx, str._____NtWriteVirtualMemory__could_not_write_to_buffer__error:_0x_lx_n
call fcn.140001010
jmp 0x14000142e
mov rdx, qword [rbp - 0x40]
lea rcx, str.____NtWriteVirtualMemory__wrote__zu_bytes_to_rBuffer_n
call fcn.140001010
mov rax, qword [rsp + 0x68]
lea r8, [rbp - 0x78]
mov r9, qword [rsp + 0x60]
lea rcx, [rsp + 0x70]
mov qword [rsp + 0x50], r12
mov edx, 0x1fffff
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov qword [rsp + 0x38], r12
mov dword [rsp + 0x30], r12d
mov qword [rsp + 0x28], r12
mov qword [rsp + 0x20], rax
call r14
test eax, eax
je 0x140001406
mov edx, eax
lea rcx, str._____NtCreateThreadEx__failed_to_get_a_handle_on_the_thread__error_0x_lx_n
call fcn.140001010
jmp 0x14000142e
lea rcx, str.___thread_created__started_routine._waiting_for_thread_to_finish_execution_n
call fcn.140001010
mov rcx, qword [rsp + 0x70]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea rcx, str.___finished_execution__beginning_cleanup_n
call fcn.140001010
mov rcx, qword [rsp + 0x70]
mov r15, qword [rsp + 0x2e0]
mov r14, qword [rsp + 0x2e8]
mov rdi, qword [rsp + 0x2f0]
mov rsi, qword [rsp + 0x320]
test rcx, rcx
je 0x14000146a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.___closing_handle_to_thread_n
call fcn.140001010
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140001486
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, str.___closing_handle_to_process_n
call fcn.140001010
lea rcx, str.___finished_cleanup__exiting_n
call fcn.140001010
xor eax, eax
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400014c0
add rsp, 0x2f8
pop r12
pop rbp
ret