Function at 0x140006c00
Capabilities:
Create process on windows
Enumerate processes
Get common file path
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x190
mov rax, qword [0x140097080]
xor rax, rsp
mov qword [rsp + 0x188], rax
lea rdx, str._n____GkClean_n
mov rcx, qword [0x1400794c8]
call fcn.14000d080
lea rdx, [0x14000d250]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x1400887c0]
mov rcx, qword [0x1400794c8]
call fcn.14000d080
lea rdx, [0x14000d250]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor esi, esi
nop dword [rax]
lea rdx, [0x140088858]
mov rcx, qword [0x1400794c8]
call fcn.14000d080
mov dword [rsp + 0x160], esi
lea rdx, [rsp + 0x160]
mov rcx, qword [0x1400794e0]
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___int____ptr64____ptr64]
mov ecx, dword [rsp + 0x160]
sub ecx, 1
je 0x140006f38
sub ecx, 1
je 0x140006e19
sub ecx, 1
je 0x140006ce7
cmp ecx, 1
je 0x140006c70
lea rdx, [0x140088870]
mov rcx, qword [0x1400794c8]
call fcn.14000d080
lea rdx, [0x14000d250]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
jmp 0x140006c70
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
cmp rax, 0xffffffffffffffff
jne 0x140006d04
lea rdx, [0x1400886c0]
jmp 0x140006cc9
mov dword [rsp + 0x30], 0x130
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140006e0b
lea rdx, [0x140088748]
lea rcx, [rsp + 0x5c]
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140006df5
mov r8d, dword [rsp + 0x38]
xor edx, edx
lea ecx, [rax + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x140006dc3
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, qword [0x1400794c8]
test eax, eax
je 0x140006d8d
lea rdx, [0x1400886f8]
call fcn.14000d080
mov rcx, rax
lea rdx, [0x140088748]
call fcn.14000d080
lea rdx, [0x1400886e8]
jmp 0x140006da0
lea rdx, [0x140088708]
call fcn.14000d080
lea rdx, [0x140088748]
mov rcx, rax
call fcn.14000d080
lea rdx, [0x14000d250]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006df5
lea rdx, [0x140088728]
mov rcx, qword [0x1400794c8]
call fcn.14000d080
mov rcx, rax
lea rdx, [0x140088748]
call fcn.14000d080
lea rdx, [0x14000d250]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140006d22
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140006c70
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
xorps xmm0, xmm0
movups xmmword [rsp + 0x168], xmm0
mov qword [rsp + 0x178], rsi
mov qword [rsp + 0x180], rsi
lea rax, [rsp + 0x30]
mov r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], 0
jne 0x140006e50
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x168]
call fcn.14000db60
nop
mov r8d, ntohs
lea rdx, str.Discord.exe
lea rcx, [rsp + 0x168]
call fcn.14000c8c0
lea r8, [rsp + 0x168]
cmp qword [rsp + 0x180], 0x10
cmovae r8, qword [rsp + 0x168]
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], rsi
xor r9d, r9d
lea rdx, str.open
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteA]
mov rcx, qword [0x1400794c8]
cmp eax, 0x20
lea rdx, [0x140088778]
jle 0x140006eda
lea rdx, [0x1400887a0]
call fcn.14000d080
lea rdx, [0x14000d250]
mov rcx, rax
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___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rsp + 0x180]
cmp rdx, 0x10
jb 0x140006c70
inc rdx
mov rcx, qword [rsp + 0x168]
cmp rdx, 0x1000
mov rax, rcx
jb 0x140006f2e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006f42
call fcn.140075e2c
jmp 0x140006c70
call fcn.140006860
jmp 0x140006c70
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3