Function at 0x140022cd4
Capabilities:
Check mutex on windows
Check os version
Create process on windows

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r14
sub rsp, 0x50
xor r12d, r12d
mov r14, rcx
cmp qword [0x140068560], r12
mov qword [rax + 0x10], r12
je 0x140022d1e
lea eax, [r12 + 1]
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r12
pop rdi
ret
mov eax, dword [0x140067d4c]
mov edi, 1
test eax, eax
jle 0x140022d43
cmp eax, 2
jle 0x140022d4e
cmp eax, 3
jne 0x140022d43
call fcn.140022ae8
test al, al
sete al
jmp 0x140022d46
mov al, dil
test al, al
je 0x140022d4e
mov eax, edi
jmp 0x140022d04
cmp qword [0x140067d58], r12
mov dword [0x140067d68], 0x18
mov qword [0x140067d70], r12
mov dword [0x140067d78], edi
jne 0x140022d77
call fcn.140022c50
test al, al
je 0x140022d4a
lea rcx, [0x140068820]
call fcn.140022b94
test al, al
je 0x140022d4a
lea rbx, [0x140067d68]
xor r9d, r9d
mov rcx, rbx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [0x140068560], rax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
xor r8d, r8d
xor edx, edx
mov rcx, rbx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov dword [rsp + 0x30], r12d
lea r9, [rsp + 0x78]
mov r8, rax
mov dword [rsp + 0x28], edi
mov rdx, rax
mov dword [rsp + 0x20], 0x1fffff
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140023100
cmp qword [0x140068560], r12
je 0x140023100
test rbp, rbp
je 0x14002310e
test rsi, rsi
je 0x140023100
cmp qword [rsp + 0x78], r12
je 0x140023100
mov rbx, qword [0x140067d58]
xor edx, edx
mov rcx, rbx
mov r8d, 0x9cb8
call fcn.1400280e0
mov rax, qword [rsp + 0x78]
mov qword [rbx + 0x40], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov rcx, qword [0x140067d58]
mov dword [rcx + 8], eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov rdx, qword [0x140067d58]
mov dword [rdx + 0xc], eax
mov rax, qword [0x140068560]
mov qword [rdx + 0x30], rax
mov qword [rdx + 0x20], rbp
mov qword [rdx + 0x38], rsi
mov dword [rdx], 0x9cb8
mov dword [rdx + 4], 0x20000
mov qword [rdx + 0x18], r14
mov rax, qword [r14]
mov rcx, qword [rax + 0x10]
mov qword [rdx + 0x10], rcx
call qword [sym.imp.KERNEL32.dll_GetVersion]
mov ecx, dword [0x140067d4c]
cmp al, 6
setae dl
sub ecx, edi
je 0x140022ee7
sub ecx, edi
je 0x140022eca
cmp ecx, edi
jne 0x140023100
mov r8, qword [0x140067d58]
movzx eax, dl
xor eax, edi
mov dword [r8 + 0x48], r12d
jmp 0x140022ee1
mov r8, qword [0x140067d58]
test dl, dl
mov eax, r12d
sete al
mov dword [r8 + 0x48], 8
mov dword [r8 + 0x4c], eax
jmp 0x140022ef2
mov r8, qword [0x140067d58]
mov qword [r8 + 0x48], r12
mov dl, byte [0x140067b4d]
mov al, dl
mov dword [r8 + 0x50], r12d
neg al
mov dword [r8 + 0x58], r12d
mov dword [r8 + 0x60], edi
sbb ecx, ecx
not ecx
and ecx, 0x10
or ecx, 4
neg dl
mov dword [r8 + 0x54], ecx
lea rcx, [r8 + 0x21c8]
sbb eax, eax
or r14, 0xffffffffffffffff
and eax, 0x10
mov r9, r14
or eax, edi
mov dword [r8 + 0x68], eax
mov r8, qword [0x140065b58]
lea edx, [r14 + 0x39]
call fcn.14003326c
call fcn.14002fe78
mov rcx, qword [0x140067d58]
mov ebx, 0x104
add rcx, 0x274
mov r9, r14
mov edx, ebx
mov r8, qword [rax]
call fcn.14003326c
mov rcx, qword [0x140067d58]
movaps xmm1, xmmword [0x140054270]
movaps xmm2, xmmword [0x140054280]
movaps xmm3, xmmword [0x140054290]
movsd xmm4, qword [0x1400542a0]
lea rax, [rcx + 0x47c]
test rax, rax
jne 0x140022faf
call fcn.14002ed68
mov dword [rax], 0x16
call fcn.14002a3cc
mov rcx, qword [0x140067d58]
jmp 0x140022fca
movups xmm0, xmmword [str.HKLMSoftwareMicrosoftInternet_ExplorerRegistrationDigitalProductID]
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax + 0x20], xmm2
movups xmmword [rax + 0x30], xmm3
movsd qword [rax + 0x40], xmm4
mov r8, qword [0x140065b50]
add rcx, 0x7c0
mov r9, r14
mov rdx, rbx
call fcn.14003326c
mov r9, qword [0x140067d50]
lea r8, str.dw20.exe__x__s__I64u
mov rdx, rbx
lea rcx, [0x140068600]
call fcn.1400174a8
mov ebx, 0x68
lea r14, [0x140068590]
mov r8d, ebx
mov rcx, r14
xor edx, edx
call fcn.1400280e0
lea rax, [0x140068808]
mov dword [0x140068590], ebx
mov qword [rsp + 0x48], rax
lea rdx, [0x140068600]
mov qword [rsp + 0x40], r14
lea rcx, [0x140068820]
mov qword [rsp + 0x38], r12
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov dword [rsp + 0x28], 0x4000020
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140023100
mov rcx, qword [0x140068808]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140068810]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x4e20
mov rcx, qword [0x140068560]
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x1400230ab
mov edx, edi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140023100
jmp 0x140023087
mov edx, ebx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x140023100
cmp eax, 0x80
je 0x1400230f7
mov rcx, qword [0x140068560]
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rbp
test eax, eax
jne 0x1400230f1
mov edx, edi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, rsi
test eax, eax
je 0x1400230fa
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
jmp 0x140023087
call qword [sym.imp.KERNEL32.dll_SetEvent]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
test rbp, rbp
je 0x14002310e
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rsi, rsi
je 0x14002311c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x14002312c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [0x140068560]
test rcx, rcx
je 0x140023145
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140068560], r12
mov rcx, qword [0x140067d58]
test rcx, rcx
je 0x14002315e
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov qword [0x140067d58], r12
mov rcx, qword [0x140067d50]
test rcx, rcx
je 0x140023177
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x140067d50], r12
mov ecx, edi
call fcn.14002fc1c
int3