Function at 0x140024d40
Capabilities:
Check mutex on windows
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x300
xor ebp, ebp
mov esi, ecx
mov rdi, r8
lea ecx, [rbp + 0x3a]
mov rbx, rdx
movzx r12d, bp
cmp rdx, rbp
je 0x140024d91
cmp word [rdx], bp
je 0x140024d91
cmp cx, word [rdx + 2]
jne 0x140024d91
cmp word [rdx + 4], bp
je 0x140024d8d
lea eax, [rbp + 0x5c]
cmp ax, word [rdx + 4]
jne 0x140024d91
cmp word [rdx + 6], bp
jne 0x140024d91
mov r12w, word [rdx]
mov eax, 0xff
mov word [rsp + 0x35a], cx
mov rcx, r8
mov word [rsp + 0x358], ax
mov word [rsp + 0x35c], bp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea edx, [rax + rax + 0x4a]
lea rcx, [rsp + 0x50]
call fcn.14004bc80
mov r13, qword [rsp + 0x50]
xor edx, edx
lea rcx, [rsp + 0x88]
lea r8d, [rdx + 0x60]
mov dword [rsp + 0x80], 0x68
call fcn.1400b93b0
or dword [rsp + 0xbc], 1
mov word [rsp + 0xc0], bp
movdqu xmm0, xmmword [str..D:]
movdqu xmmword [rsp + 0x70], xmm0
lea r8, str.ImDiskFormat
mov ebp, 8
xor edx, edx
xor ecx, ecx
mov r14d, ebp
call qword [sym.imp.KERNEL32.dll_CreateMutexW]
mov r15, rax
xor eax, eax
cmp r12w, ax
je 0x140024e37
mov word [rsp + 0x358], r12w
xor ebx, ebx
jmp 0x140024e68
mov rcx, rbx
call fcn.140016908
xor ebx, ebx
cmp eax, ebx
mov esi, eax
jge 0x140024e5a
lea rcx, [rsp + 0x50]
call fcn.140044f24
neg esi
mov eax, esi
jmp 0x140025105
call qword [0x1400f1dc8]
mov word [rsp + 0x358], ax
lea r8, str.DeviceImDisk_u
lea rcx, [rsp + 0xf0]
mov r9d, esi
mov edx, 0x103
call fcn.1400ba930
cmp word [rsp + 0x358], bx
je 0x1400250df
cmp r12w, bx
jne 0x140024ec2
lea rdx, [rsp + 0x358]
lea rcx, [rsp + 0xf0]
mov r9d, 1
xor r8d, r8d
mov byte [rsp + 0x20], bl
call fcn.1400512c8
cmp eax, ebx
je 0x1400250df
lea rdx, str.format.com
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
lea rdx, [rsp + 0x358]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1400d6d20]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, 0x22
cmp ax, word [rdi]
jne 0x140024f21
add rdi, 2
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, ebx
jle 0x140024f21
cdqe
mov ecx, 0x22
cmp cx, word [rdi + rax*2 - 2]
jne 0x140024f21
mov word [rdi + rax*2 - 2], bx
mov rdx, rdi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1400d9c0c]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, rbx
jne 0x140024f52
lea rdx, [0x1400d9c00]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea rdx, [0x1400d9c0c]
mov rcx, rdi
call qword [sym.imp.SHLWAPI.dll_StrStrIW]
cmp rax, rbx
jne 0x140024f77
lea rdx, str.__X
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_lstrcatW]
movzx eax, word [rsp + 0x358]
mov ebx, 0x12b
mov word [rsp + 0x78], ax
xor eax, eax
lea rcx, [rsp + 0x70]
xor r9d, r9d
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
xor r8d, r8d
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
cmp rax, 0xffffffffffffffff
jne 0x140024fd1
lea edx, [rax + 0x65]
lea rcx, [0x1400f1e30]
xor r8d, r8d
call fcn.140013908
sub ebx, 1
jns 0x140024f89
jmp 0x140024fda
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, 0x1d
lea edi, [rbx - 0x1b]
lea rax, [rsp + 0x58]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x80]
mov rdx, r13
mov qword [rsp + 0x40], rax
xor eax, eax
xor ecx, ecx
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
xor ecx, ecx
cmp eax, ecx
jne 0x14002503f
lea rcx, str.Cannot_format_drive:
call fcn.1400167b0
sub edi, 1
js 0x1400250f9
jmp 0x140025090
mov dword [rsp + 0x348], ecx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x58]
or edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x58]
lea rdx, [rsp + 0x348]
call qword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov rcx, qword [rsp + 0x58]
mov r14d, dword [rsp + 0x348]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [rsp + 0x348], eax
je 0x1400250ac
xor r8d, r8d
lea rcx, [0x1400f1e30]
lea edx, [r8 + 0x64]
call fcn.140013908
sub ebx, 1
jns 0x140024fe2
xor ebx, ebx
cmp r12w, bx
jne 0x1400250cd
lea r8, [rsp + 0xf0]
lea rdx, [rsp + 0x358]
lea ecx, [rbx + 7]
call qword [sym.imp.KERNEL32.dll_DefineDosDeviceW]
xor r9d, r9d
xor edx, edx
mov r8d, 0x10000
mov ecx, esi
call fcn.14001704c
cmp r15, rbx
je 0x1400250f6
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebp, r14d
lea rcx, [rsp + 0x50]
call fcn.140044f24
mov eax, ebp
mov rbx, qword [rsp + 0x340]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret