Function at 0x405430
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create process on windows
Create process suspended
Delete file
Generate random numbers via winapi
Resume thread
Suspend thread
Terminate process
Terminate thread
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54c
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004024d0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40573c
mov edx, dword [0x407b68]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [0x407b64]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [0x407b60]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 2
push 0xa
lea edx, [ebp - 0x28]
push edx
push 0
call sub.bcrypt.dll_BCryptGenRandom
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54c]
push ecx
push 0x406e7c
push 0x104
lea edx, [ebp - 0x344]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0
push 0xc000080
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x4054e4
jmp 0x405716
mov dword [ebp - 0x1c], 0
push 0
lea ecx, [ebp - 0x1c]
push ecx
mov edx, dword [ebp - 0x10]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x4000
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push 0x44
push 0
lea edx, [ebp - 0xbc]
push edx
call fcn.00401940
add esp, 0xc
push 0x10
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.00401940
add esp, 0xc
push 0x40
push 0
lea ecx, [ebp - 0x78]
push ecx
call fcn.00401940
add esp, 0xc
push 0x80
push 0
lea edx, [ebp - 0x13c]
push edx
call fcn.00401940
add esp, 0xc
push 2
push 0x40
lea eax, [ebp - 0x78]
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
push 0x407460
push str.UpdateMutex:
push str._s_s
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x40
lea edx, [ebp - 0x13c]
push edx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea ecx, [ebp - 0x78]
push ecx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0xbc]
push eax
push 0
push 0
push 0x8000088
push 1
push 0
push 0
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x344]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x405716
mov dword [ebp - 0xc], 0
cmp dword [ebp - 0xc], 0x3c
jae 0x405716
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea eax, [ebp - 0x78]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4056f3
push 0
mov ecx, dword [0x407b68]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
mov edx, dword [0x407b64]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
mov eax, dword [0x407b60]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov ecx, dword [0x4072b0]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14], eax
push 0
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x407700
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [0x4072a0]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40
push 0
lea eax, [ebp - 0x78]
push eax
call fcn.00401940
add esp, 0xc
mov ecx, dword [ebp - 0x30]
push ecx
push 0x407460
push str.UpdateMutex:
push str._s_s_d
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 0x78]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, 1
test ecx, ecx
je 0x4056f3
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4056dd
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4055f3
mov ecx, dword [0x407b68]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [0x407b64]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, dword [0x407b60]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret