Function at 0x140008560
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Terminate process
Terminate thread

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [rsp + 0x60]
mov r9, qword [rax + 0x88]
lea r8, [0x140041458]
xor edx, edx
xor ecx, ecx
call fcn.140008fe0
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x28]
inc eax
cdqe
mov rcx, rax
call fcn.1400180e8
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x88]
lea rdx, [0x140041468]
mov rcx, qword [rsp + 0x38]
call fcn.140009130
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x50]
test eax, eax
jne 0x140008798
mov r8, qword [rsp + 0x38]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x1400086fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0xb7
je 0x140008611
cmp dword [rsp + 0x24], 5
jne 0x140008651
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0xa8], 0
je 0x14000864c
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x14000864c
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x80]
lea rdx, [0x140041478]
mov rcx, qword [rsp + 0x60]
call fcn.140008050
jmp 0x1400086e3
lea rdx, [0x140041488]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x80]
call fcn.140008fb0
test rax, rax
je 0x1400086ab
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0xa8], 0
je 0x1400086a9
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x1400086a9
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x80]
lea rdx, [0x140041498]
mov rcx, qword [rsp + 0x60]
call fcn.140008050
jmp 0x1400086e3
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x80]
lea rdx, str.Log:keepalive_loop_break__if__ulLastError__ERROR_ALREADY_EXISTS__ulLastError__ERROR_ACCESS_DENIED__:_s__n
mov rcx, qword [rsp + 0x60]
call fcn.140008050
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008798
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x140008788
lea rdx, [0x140041520]
mov rax, qword [rsp + 0x60]
mov rcx, qword [rax + 0x80]
call fcn.140008fb0
test rax, rax
jne 0x14000872c
mov rcx, qword [rsp + 0x60]
call fcn.140008a20
movzx eax, al
test eax, eax
je 0x140008769
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0xa8], 0
je 0x140008767
mov rax, qword [rsp + 0x60]
cmp qword [rax + 0x80], 0
je 0x140008767
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x80]
lea rdx, str.KEEPALIVE:_s__n
mov rcx, qword [rsp + 0x60]
call fcn.140008050
jmp 0x140008788
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x80]
lea rdx, str.Log:keepalive_loop_break_if__HANDLE_hMutex__CreateMutexA_0__false__pszAttackMutex__:_s__n
mov rcx, qword [rsp + 0x60]
call fcn.140008050
jmp 0x140008798
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400085c5
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x80]
lea rdx, str.Log:keepalive_loop_finished:_s__n
mov rcx, qword [rsp + 0x60]
call fcn.140008050
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0x50]
test eax, eax
jne 0x140008877
mov rax, qword [rsp + 0x60]
mov r8, qword [rax + 0x80]
lea rdx, str.Log:keepalive_loop_terminating.._:_s__n
mov rcx, qword [rsp + 0x60]
call fcn.140008050
mov rax, qword [rsp + 0x60]
movzx eax, byte [rax + 0xa0]
test eax, eax
jne 0x140008817
lea rdx, str.Log:TerminateProcess_n
mov rcx, qword [rsp + 0x60]
call fcn.140008050
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x140008877
lea rdx, str.Log:FreeLibraryAndExitThread_FreeLibraryAndExitThreadReflected_n
mov rcx, qword [rsp + 0x60]
call fcn.140008050
mov rax, qword [rsp + 0x60]
add rax, 0x68
mov rcx, rax
call fcn.140008f80
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
mov dword [rsp + 0x2c], eax
mov eax, dword [rsp + 0x20]
dec eax
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x2c], 0
jbe 0x140008877
mov eax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x60]
add rcx, 0x68
mov edx, eax
call fcn.140008e50
xor edx, edx
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x14000883d
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x48], rax
mov edx, 1
mov rcx, qword [rsp + 0x48]
call fcn.1400180e0
add rsp, 0x58
ret