Function at 0x140001340
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Execute command
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov rax, qword [0x140076070]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov byte [rsp + 0x28], 0x76
mov al, Ordinal_32
mov cl, 0x18
movzx edx, al
mov r8b, 2
mov r9b, reloc.WLDAP32.dll_Ordinal_41
mov r10b, reloc.WS2_32.dll_setsockopt
mov r11b, Ordinal_27
movzx ebx, cl
mov dil, reloc.WLDAP32.dll_Ordinal_30
movzx esi, r11b
mov r14b, 5
movzx r15d, r8b
xor r12d, r12d
xor al, 0x76
mov byte [rsp + 0x29], al
xor cl, 0x76
mov byte [rsp + 0x2a], cl
xor dl, 0x76
mov byte [rsp + 0x2b], dl
xor r8b, 0x76
mov byte [rsp + 0x2c], r8b
xor r9b, 0x76
mov byte [rsp + 0x2d], r9b
xor r10b, 0x76
mov byte [rsp + 0x2e], r10b
xor r11b, 0x76
mov byte [rsp + 0x2f], r11b
xor bl, 0x76
mov byte [rsp + 0x30], bl
xor dil, 0x76
mov byte [rsp + 0x31], dil
xor sil, 0x76
mov byte [rsp + 0x32], sil
xor r14b, 0x76
mov byte [rsp + 0x33], r14b
xor r15b, 0x76
mov byte [rsp + 0x34], r15b
mov byte [rsp + 0x35], r12b
lea r8, [rsp + 0x29]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x140001589
mov r8d, 0x104
lea rdx, [rbp + 0xe0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rbp - 0x20]
call fcn.140001900
lea rcx, [rbp - 0x20]
call fcn.140003500
nop
movdqa xmm1, xmmword [0x14006dd60]
movdqu xmmword [rsp + 0x48], xmm1
movdqa xmm2, xmmword [0x14006dd00]
movdqu xmmword [rsp + 0x58], xmm2
mov dl, 0x61
movdqa xmm0, xmm1
psrldq xmm0, 1
movd eax, xmm0
movd ecx, xmm1
xor al, cl
mov byte [rsp + 0x49], al
xor byte [rsp + 0x4a], cl
xor byte [rsp + 0x4b], cl
xor byte [rsp + 0x4c], cl
xor byte [rsp + 0x4d], cl
xor byte [rsp + 0x4e], cl
xor byte [rsp + 0x4f], cl
xor byte [rsp + 0x50], cl
xor byte [rsp + 0x51], cl
xor byte [rsp + 0x52], cl
xor byte [rsp + 0x53], cl
xor byte [rsp + 0x54], cl
xor byte [rsp + 0x55], cl
xor byte [rsp + 0x56], cl
xor byte [rsp + 0x57], cl
movd eax, xmm2
xor al, cl
mov byte [rsp + 0x58], al
xor byte [rsp + 0x59], cl
xor byte [rsp + 0x5a], cl
xor byte [rsp + 0x5b], cl
xor byte [rsp + 0x5c], cl
xor byte [rsp + 0x5d], cl
xor byte [rsp + 0x5e], cl
xor byte [rsp + 0x5f], cl
xor byte [rsp + 0x60], cl
xor byte [rsp + 0x61], cl
xor byte [rsp + 0x62], cl
xor byte [rsp + 0x63], cl
xor byte [rsp + 0x64], cl
xor byte [rsp + 0x65], cl
xor byte [rsp + 0x66], cl
xor byte [rsp + 0x67], cl
xor dl, cl
mov byte [rsp + 0x68], dl
mov byte [rsp + 0x69], r12b
lea rdx, [rsp + 0x49]
lea rcx, [rbp - 0x10]
call fcn.140004490
mov rbx, rax
lea rdx, [rbp + 0xe0]
lea rcx, [rsp + 0x28]
call fcn.140003d50
nop
mov rdx, rax
mov rcx, rbx
call fcn.140004660
nop
lea rcx, [rsp + 0x28]
call fcn.140003cf0
lea rdx, [rsp + 0x28]
lea rcx, [rbp - 0x20]
call fcn.140003440
mov rcx, rax
call fcn.140003bd0
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
lea rcx, [rsp + 0x28]
call fcn.140003cf0
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call qword [sym.imp.KERNEL32.dll_AllocConsole]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_AttachConsole]
mov ecx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov rbx, rax
mov byte [rsp + 0x20], 0x43
mov cl, 0x34
xor eax, eax
xor cl, 0x43
mov byte [rsp + 0x21], cl
mov byte [rsp + 0x22], al
mov byte [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_60
mov cl, 0x7f
mov dl, reloc.WS2_32.dll_WSAStartup
mov r8b, WSACleanup
movzx r9d, dl
mov al, 0x69
mov r10b, 0x68
mov r11b, Ordinal_26
xor edi, edi
xor cl, 0x3c
mov byte [rsp + 0x29], cl
xor dl, 0x3c
mov byte [rsp + 0x2a], dl
xor r8b, 0x3c
mov byte [rsp + 0x2b], r8b
xor r9b, 0x3c
mov byte [rsp + 0x2c], r9b
xor al, 0x3c
mov byte [rsp + 0x2d], al
xor r10b, 0x3c
mov byte [rsp + 0x2e], r10b
xor r11b, 0x3c
mov byte [rsp + 0x2f], r11b
mov byte [rsp + 0x30], dil
mov r9, rbx
lea r8, [rsp + 0x21]
lea rdx, [rsp + 0x29]
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
mov r11, rax
mov byte [rsp + 0x20], 0x56
mov cl, 0x24
xor eax, eax
xor cl, 0x56
mov byte [rsp + 0x21], cl
mov byte [rsp + 0x22], al
mov byte [rsp + 0x28], reloc.WS2_32.dll_listen
mov cl, Ordinal_79
mov dl, 0x42
mov r8b, 0x43
mov r9b, 0x44
movzx eax, r8b
mov r10b, reloc.WLDAP32.dll_Ordinal_41
xor ebx, ebx
xor cl, 0xd
mov byte [rsp + 0x29], cl
xor dl, 0xd
mov byte [rsp + 0x2a], dl
xor r8b, 0xd
mov byte [rsp + 0x2b], r8b
xor r9b, 0xd
mov byte [rsp + 0x2c], r9b
xor al, 0xd
mov byte [rsp + 0x2d], al
xor r10b, 0xd
mov byte [rsp + 0x2e], r10b
mov byte [rsp + 0x2f], bl
mov r9, r11
lea r8, [rsp + 0x21]
lea rdx, [rsp + 0x29]
lea rcx, [rsp + 0x70]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_freopen_s]
mov ecx, 0xfffffff6
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
mov rdi, rax
lea rdx, [rsp + 0x78]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetConsoleMode]
mov edx, dword [rsp + 0x78]
and edx, 0x80
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetConsoleMode]
mov edx, 0xfffffff0
mov rcx, rdi
call qword [sym.imp.USER32.dll_GetWindowLongA]
and eax, 0xfffaffff
mov r8d, eax
mov edx, 0xfffffff0
mov rcx, rdi
call qword [sym.imp.USER32.dll_SetWindowLongA]
movdqa xmm1, xmmword [str._B_KJ]
movdqu xmmword [rsp + 0x28], xmm1
mov cl, Ordinal_30
mov dl, reloc.WLDAP32.dll_Ordinal_26
mov r9b, reloc.WS2_32.dll_ntohs
mov r10b, 0x43
mov r11b, 0x46
mov bl, 0x41
mov dil, 0x4a
mov sil, 0x5c
mov r14b, reloc.WS2_32.dll_select
mov r15b, reloc.WLDAP32.dll_Ordinal_30
movzx r12d, r15b
movdqa xmm0, xmm1
psrldq xmm0, 1
movd eax, xmm0
movd r8d, xmm1
xor al, r8b
mov byte [rsp + 0x29], al
xor byte [rsp + 0x2a], r8b
xor byte [rsp + 0x2b], r8b
xor byte [rsp + 0x2c], r8b
xor byte [rsp + 0x2d], r8b
xor byte [rsp + 0x2e], r8b
xor byte [rsp + 0x2f], r8b
xor byte [rsp + 0x30], r8b
xor byte [rsp + 0x31], r8b
xor byte [rsp + 0x32], r8b
xor byte [rsp + 0x33], r8b
xor byte [rsp + 0x34], r8b
xor byte [rsp + 0x35], r8b
xor byte [rsp + 0x36], r8b
xor byte [rsp + 0x37], r8b
xor cl, r8b
mov byte [rsp + 0x38], cl
xor dl, r8b
mov byte [rsp + 0x39], dl
xor r9b, r8b
mov byte [rsp + 0x3a], r9b
xor r10b, r8b
mov byte [rsp + 0x3b], r10b
xor r11b, r8b
mov byte [rsp + 0x3c], r11b
xor bl, r8b
mov byte [rsp + 0x3d], bl
xor dil, r8b
mov byte [rsp + 0x3e], dil
xor sil, r8b
mov byte [rsp + 0x3f], sil
xor r14b, r8b
mov byte [rsp + 0x40], r14b
xor r15b, r8b
mov byte [rsp + 0x41], r15b
xor r12b, r8b
mov byte [rsp + 0x42], r12b
mov byte [rsp + 0x43], 0
lea rcx, [rsp + 0x29]
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_system]
mov edx, 1
lea rcx, [0x140001330]
call qword [sym.imp.KERNEL32.dll_SetConsoleCtrlHandler]
mov qword [rbp - 0x80], 0x54
mov qword [rbp - 0x78], 0x120000
mov dword [rbp - 0x70], 0x2bc
movups xmm0, xmmword [str.Cascadia_Code]
movups xmmword [rbp - 0x6c], xmm0
movsd xmm0, qword [0x14006db50]
movsd qword [rbp - 0x5c], xmm0
mov eax, dword [0x14006db58]
mov dword [rbp - 0x54], eax
mov ecx, 0xfffffff5
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov rcx, rax
lea r8, [rbp - 0x80]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetCurrentConsoleFontEx]
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140058ee0
lea r11, [rsp + 0x300]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret