Function at 0x140042300
Capabilities:
Enumerate processes
Execute command
Terminate process

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x140057040]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rdi, rdx
mov r14, rcx
xor r13d, r13d
mov dword [rsp + 0x20], r13d
mov dword [rbp - 0x30], 0x238
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
cmp eax, 1
jne 0x1400423a3
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x1400423a3
nop dword [rax]
mov rdx, rdi
lea rcx, [rbp - 4]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
mov rcx, rbx
test eax, eax
je 0x14004240a
lea rdx, [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x140042380
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [r14 + 8], r13d
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Couldnt_get_process_id.
lea rcx, [rsp + 0x30]
call fcn.140043dc0
nop
mov rdx, rax
mov rcx, rbx
call fcn.140043e80
mov rcx, rax
call fcn.140043f30
nop
lea rcx, [rsp + 0x30]
call fcn.1400427a0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x14004f4e4]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [rbp - 0x28]
mov dword [r14 + 8], eax
test eax, eax
je 0x1400423b0
mov rdi, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x60], rax
lea rdx, [0x14004f3dc]
lea rcx, [rbp - 0x70]
call fcn.140043b10
mov rbx, rax
lea rdx, str.Got_process_id_:
lea rcx, [rbp - 0x50]
call fcn.140043b10
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400444d0
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x40], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
movaps xmm0, xmmword [rsp + 0x40]
movdqa xmmword [rsp + 0x40], xmm0
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x30]
call fcn.140044370
mov dword [rsp + 0x20], 1
lea r9, [0x1400420d0]
mov edx, 0x28
mov r8d, 1
lea rcx, [rsp + 0x68]
call fcn.140045674
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140043e80
mov r15, rax
mov edx, dword [r14 + 8]
lea rcx, [rsp + 0x50]
call fcn.1400440f0
nop
mov rdi, qword [rax]
mov rbx, qword [rdi]
cmp rbx, rdi
je 0x14004252f
mov r12d, 7
mov esi, dword [rbx + 0x14]
cmp esi, 0xff
ja 0x140042503
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, si
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov edx, dword [rbx + 0x10]
mov rcx, r15
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
movzx edx, r12w
call qword [sym.imp.KERNEL32.dll_SetConsoleTextAttribute]
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x1400424e1
mov rcx, r15
call fcn.140043f30
nop
mov rcx, qword [rsp + 0x50]
mov rax, qword [rcx + 8]
mov qword [rax], r13
mov rcx, qword [rcx]
test rcx, rcx
je 0x140042565
nop dword [rax]
mov rbx, qword [rcx]
mov edx, 0x18
call fcn.14004566c
mov rcx, rbx
test rbx, rbx
jne 0x140042550
mov edx, 0x18
mov rcx, qword [rsp + 0x50]
call fcn.14004566c
mov dword [rsp + 0x20], r13d
lea rcx, [rsp + 0x30]
call fcn.1400439f0
mov r8d, dword [r14 + 8]
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [r14], rax
cmp dword [r14 + 8], 0
je 0x140042685
mov rdi, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x40], rax
lea rdx, [0x14004f3dc]
lea rcx, [rbp - 0x50]
call fcn.140043b10
mov rbx, rax
lea rdx, str.Got_process_handle_
lea rcx, [rbp - 0x70]
call fcn.140043b10
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.1400444d0
nop
lea rax, [rsp + 0x68]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x70]
mov qword [rsp + 0x38], rax
movaps xmm0, xmmword [rsp + 0x30]
movdqa xmmword [rsp + 0x30], xmm0
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x50]
call fcn.140044370
mov dword [rsp + 0x20], 2
lea r9, [0x1400420d0]
mov edx, 0x28
mov r8d, 1
lea rcx, [rsp + 0x68]
call fcn.140045674
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.140043e80
mov rcx, rax
call fcn.140043f30
nop
lea rcx, [rsp + 0x50]
call fcn.1400439f0
mov rax, r14
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400454d0
mov rbx, qword [rsp + 0x370]
add rsp, 0x320
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov rbx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
lea rdx, str.Couldnt_get_process_handle.
lea rcx, [rsp + 0x30]
call fcn.140043dc0
nop
mov rdx, rax
mov rcx, rbx
call fcn.140043e80
mov rcx, rax
call fcn.140043f30
nop
lea rcx, [rsp + 0x30]
call fcn.1400427a0
lea rcx, str.pause
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [0x14004f4e4]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3