Function at 0x140002160
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Enumerate processes
Terminate process

Disassembly:
push rbp
push r14
lea rbp, [rsp - 0x208]
sub rsp, 0x308
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
lea r8, str.MyUniqueProgramMutex
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r14, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1400021c4
xor eax, eax
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140002f10
add rsp, 0x308
pop r14
pop rbp
ret
mov qword [rsp + 0x320], rbx
lea rdx, str.MyCustomProgram.exe
mov qword [rsp + 0x328], rsi
lea rcx, [rsp + 0x30]
xorps xmm0, xmm0
mov qword [rsp + 0x330], rdi
xorps xmm1, xmm1
mov qword [rsp + 0x300], r15
mov r8d, 0x13
movups xmmword [rsp + 0x30], xmm0
movdqu xmmword [rsp + 0x40], xmm1
call fcn.1400027b0
lea rcx, [rsp + 0x30]
call fcn.140001ca0
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x140002258
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002253
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400025ed
call fcn.140002f6c
xor r15d, r15d
lea rdx, str.MyCustomProgram.exe
xorps xmm0, xmm0
mov qword [rsp + 0x60], r15
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x68], r15
movups xmmword [rsp + 0x50], xmm0
lea r8d, [r15 + 0x13]
call fcn.1400027b0
mov rcx, qword [rsp + 0x68]
lea rsi, str.C:Program_Files__x86_Windows_NTTableTextService_
mov r8, qword [rsp + 0x60]
mov rax, rcx
sub rax, r8
cmp rax, 0x33
jb 0x14000232f
lea rax, [r8 + 0x33]
cmp rcx, 7
lea rdi, [rsp + 0x50]
mov qword [rsp + 0x60], rax
cmova rdi, qword [rsp + 0x50]
lea rax, [0x140004506]
cmp rax, rdi
jbe 0x1400022e5
lea rax, [rdi + r8*2]
cmp rsi, rax
ja 0x1400022e5
cmp rdi, rsi
ja 0x1400022da
mov ebx, r15d
jmp 0x1400022ea
mov rbx, rdi
sub rbx, rsi
sar rbx, 1
jmp 0x1400022ea
mov ebx, 0x33
lea r8, [r8*2 + 2]
mov rdx, rdi
lea rcx, [rdi + 0x66]
call sub.VCRUNTIME140.dll_memmove
add rbx, rbx
mov rdx, rsi
mov r8, rbx
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov r8d, 0x66
lea rdx, [rsi + 0x66]
sub r8, rbx
lea rcx, [rbx + rdi]
add rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
lea rax, [rsp + 0x50]
jmp 0x14000234a
mov ebx, 0x33
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rbx
mov edx, ebx
mov qword [rsp + 0x20], rsi
call fcn.140002b80
xorps xmm0, xmm0
xorps xmm1, xmm1
movups xmmword [rsp + 0x70], xmm0
movdqu xmmword [rbp - 0x80], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rsp + 0x70], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x80], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 7
mov word [rax], r15w
mov rdx, qword [rsp + 0x68]
cmp rdx, 7
jbe 0x1400023bf
mov rcx, qword [rsp + 0x50]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400023ba
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400023ba
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002f6c
lea rcx, [rsp + 0x70]
call fcn.140001eb0
lea rsi, str.samp.exe
xor edx, edx
mov edi, r15d
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14000244f
lea rdx, [rbp - 0x50]
mov dword [rbp - 0x50], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x140002446
nop
lea rdx, [rbp - 0x24]
mov rax, 0xffffffffffffffff
nop dword [rax + rax]
movzx ecx, word [rdx + rax*2 + 2]
cmp cx, word [rsi + rax*2 + 2]
jne 0x140002430
add rax, 2
cmp rax, 9
je 0x140002443
movzx ecx, word [rdx + rax*2]
cmp cx, word [rsi + rax*2]
je 0x140002410
lea rdx, [rbp - 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140002400
jmp 0x140002446
mov edi, dword [rbp - 0x48]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x14000254b
mov edx, edi
lea rcx, [rbp - 0x70]
call fcn.1400011c0
cmp qword [rbp - 0x60], r15
je 0x1400024e1
xorps xmm0, xmm0
mov qword [rsp + 0x40], r15
mov r8d, 7
mov qword [rsp + 0x48], r15
lea rdx, str..newext
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
call fcn.1400027b0
lea rdx, [rsp + 0x30]
lea rcx, [rbp - 0x70]
call fcn.1400014a0
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400024e1
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024dc
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400025e6
call fcn.140002f6c
xor edx, edx
mov r8d, edi
lea ecx, [rdx + 1]
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rbx, rax
test rax, rax
je 0x14000250b
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x14000254b
mov rcx, qword [rbp - 0x70]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002546
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400025ed
call fcn.140002f6c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400023d0
xorps xmm0, xmm0
mov qword [rsp + 0x40], r15
lea r8d, [rax + 0x13]
mov qword [rsp + 0x48], r15
lea rdx, str.MyCustomProgram.exe
lea rcx, [rsp + 0x30]
movups xmmword [rsp + 0x30], xmm0
call fcn.1400027b0
lea rcx, [rsp + 0x30]
call fcn.140001ca0
mov rdx, qword [rsp + 0x48]
cmp rdx, 7
jbe 0x1400025d8
mov rcx, qword [rsp + 0x30]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025d3
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400025ed
call fcn.140002f6c
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x1400023d0
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3