Function at 0x14005b600
Capabilities:
Check internet connectivity via wininet
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Get token membership
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xd0
mov rax, qword [0x1400e8180]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov edx, 0x1f400000
xor ecx, ecx
mov r9d, 0x140
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
call qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
test rax, rax
je 0x14005b654
xor edx, edx
mov rcx, rax
call qword [sym.imp.USER32.dll_ShowWindow]
xor edi, edi
cmp byte [0x1400eddaa], 1
jne 0x14005b6ed
mov dword [rbp + 7], edi
mov dword [rbp + 0xb], edi
mov word [rbp + 0xf], 0x500
lea rax, [rbp + 0x37]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], edi
mov dword [rsp + 0x40], edi
mov dword [rsp + 0x38], edi
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov r9d, 0x220
lea r8d, [rdi + 0x20]
mov dl, 2
lea rcx, [rbp + 0xb]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x14005b6cf
lea r8, [rbp + 7]
mov rdx, qword [rbp + 0x37]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
mov ecx, dword [rbp + 7]
test eax, eax
cmove ecx, edi
mov dword [rbp + 7], ecx
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [rbp + 7], edi
jne 0x14005b6ed
xor r9d, r9d
lea r8, str.Program
lea rdx, str.Program_should_be_run_as_a_admin
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
cmp byte [0x1400eddab], dil
je 0x14005b730
lea rdx, [0x1400e91c0]
cmp qword [0x1400e91d8], 0x10
cmovae rdx, qword [0x1400e91c0]
mov r9d, 0x136
lea r8, str.System_Error
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
nop dword [rax]
nop word [rax + rax]
mov qword [rbp + 0x17], rdi
mov qword [rbp + 0x27], rdi
mov qword [rbp + 0x2f], 0xf
xor r8d, r8d
lea rdx, [0x1400cfb1b]
lea rcx, [rbp + 0x17]
call fcn.1400218a0
call qword [sym.imp.libcurl.dll_curl_easy_init]
mov rbx, rax
test rax, rax
je 0x14005b7fb
lea r8, str.https:__api.ipify.org
mov edx, 0x2712
mov rcx, rax
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea r8, [0x140037190]
mov edx, 0x4e2b
mov rcx, rbx
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
lea r8, [rbp + 0x17]
mov edx, 0x2711
mov rcx, rbx
call qword [sym.imp.libcurl.dll_curl_easy_setopt]
mov rcx, rbx
call qword [sym.imp.libcurl.dll_curl_easy_perform]
test eax, eax
je 0x14005b7f2
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0x10
jb 0x14005b730
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b7e8
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005ba6c
call fcn.140080f50
jmp 0x14005b730
mov rcx, rbx
call qword [sym.imp.libcurl.dll_curl_easy_cleanup]
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0x10
jb 0x14005b836
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b831
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005ba6c
call fcn.140080f50
lea rcx, str.ping__n_1_8.8.8.8
call fcn.140099ad0
cmp eax, 1
je 0x14005ba64
mov dword [rbp + 7], edi
xor edx, edx
lea rcx, [rbp + 7]
call qword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x14005ba64
lea r8, [0x1400e9260]
cmp qword [0x1400e9278], 0x10
cmovae r8, qword [0x1400e9260]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [0x1400ede88], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x14005b8bc
mov edx, 0x1f400000
xor ecx, ecx
mov r9d, 0x140
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.14005ae90
mov ecx, 8
call fcn.140080f58
lea rcx, [0x14003e360]
mov qword [rax], rcx
mov qword [rbp + 0x37], rax
lea rcx, [rbp + 0x1f]
mov qword [rsp + 0x28], rcx
mov dword [rsp + 0x20], edi
mov r9, rax
lea r8, [0x14005c0c0]
xor edx, edx
xor ecx, ecx
call fcn.14009a05c
mov qword [rbp + 0x17], rax
test rax, rax
je 0x14005ba56
cmp dword [rbp + 0x1f], 0
je 0x14005ba72
movaps xmm0, xmmword [rbp + 0x17]
movdqa xmmword [rbp + 0x37], xmm0
lea rcx, [rbp + 0x37]
call fcn.140084324
test eax, eax
jne 0x14005ba7d
call fcn.14005a1c0
call fcn.140071460
call fcn.140071ab0
call fcn.14003bc90
call fcn.140066210
call fcn.14004a370
call fcn.14004d010
call fcn.14004c450
call fcn.14004b260
call fcn.14004ead0
call fcn.14005c0f0
call fcn.14005e070
call fcn.140060ed0
call fcn.14005d110
call fcn.140018050
call fcn.14001a670
call fcn.140063e50
call fcn.140047ce0
cmp byte [0x1400edda8], 1
jne 0x14005b9fe
nop dword [rax]
cmp qword [0x1400e91b0], 0
je 0x14005b990
lea rdx, [0x1400e91a0]
lea rcx, [rbp - 0x19]
call fcn.14001f140
mov rdx, rax
lea rcx, [rbp + 0x17]
call fcn.1400390a0
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0x10
jb 0x14005b9f1
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14005b9ec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14005ba85
call fcn.140080f50
mov ecx, 0xc8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14005b990
cmp byte [0x1400edda9], 0
je 0x14005ba1e
mov rcx, qword [0x1400ede88]
test rcx, rcx
je 0x14005ba19
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.140045f70
mov rcx, qword [0x1400ede88]
test rcx, rcx
je 0x14005ba30
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140080f30
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret
mov dword [rbp + 0x1f], edi
mov ecx, 6
call fcn.140084678
nop
xor ecx, ecx
call fcn.140099ee8
int3
call fcn.1400996b0
nop
mov ecx, 1
call fcn.140084678
int3
mov ecx, eax
call fcn.14008463c
nop
call fcn.1400996b0
int3