Function at 0x1006c614
Capabilities:
Check mutex on windows
Create process on windows
Get common file path
Read file via mapping

Disassembly:
mov eax, dword [ecx]
cmp dword [eax], 0x80000003
je 0x1006c62a
cmp dword [eax], 0x80000004
jne 0x1007eb0b
xor eax, eax
ret
push ebp
mov ebp, esp
sub esp, 0x390
mov eax, dword [0x1014d250]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x208
xor esi, esi
mov dword [ebp - 0x33c], ecx
lea eax, [ebp - 0x310]
xor edi, edi
push esi
push eax
xor ebx, ebx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x334], 0xc
xor eax, eax
mov dword [ebp - 0x32c], 1
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x330], eax
push eax
push 0x9c9c
push eax
push 4
lea eax, [ebp - 0x334]
push eax
push 0xffffffffffffffff
call dword [sym.imp.kernel32.dll_CreateFileMappingA]
mov dword [ebp - 0x328], eax
test eax, eax
je 0x1007eeec
xor ecx, ecx
push ecx
push ecx
push ecx
push 6
push eax
call dword [sym.imp.kernel32.dll_MapViewOfFile]
mov dword [ebp - 0x314], eax
test eax, eax
je 0x1007eebf
push 0x9c9c
push ebx
push eax
call sub.VCRUNTIME140.dll_memset
mov esi, dword [sym.imp.kernel32.dll_CreateEventA]
lea eax, [ebp - 0x334]
add esp, 0xc
push ebx
push ebx
push ebx
push eax
call esi
push ebx
push ebx
mov dword [ebp - 0x320], eax
lea eax, [ebp - 0x334]
push ebx
push eax
call esi
push ebx
mov dword [ebp - 0x318], eax
lea eax, [ebp - 0x334]
push ebx
push eax
call dword [sym.imp.kernel32.dll_CreateMutexA]
mov esi, dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov dword [ebp - 0x31c], eax
call esi
mov ebx, eax
call esi
mov edi, eax
call esi
mov ecx, dword [ebp - 0x314]
push 0
push 1
push 0x120410
add ecx, 0x28
push ecx
push ebx
push edi
push eax
mov dword [ebp - 0x338], ecx
call dword [sym.imp.kernel32.dll_DuplicateHandle]
mov edi, dword [ebp - 0x318]
mov esi, dword [ebp - 0x31c]
test eax, eax
je 0x1007ee8f
cmp dword [ebp - 0x320], 0
je 0x1007ee8f
test edi, edi
je 0x1007ee8f
test esi, esi
je 0x1007ee8f
mov ebx, dword [ebp - 0x338]
cmp dword [ebx], 0
je 0x1007ee8f
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov ebx, dword [ebp - 0x314]
mov dword [ebx + 8], eax
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
mov dword [ebx + 0xc], eax
mov eax, dword [ebp - 0x320]
mov dword [ebx + 0x20], eax
mov eax, dword [ebp - 0x33c]
mov dword [ebx + 0x18], edi
mov dword [ebx + 0x24], esi
mov dword [ebx], 0x9c9c
mov dword [ebx + 4], 0x20000
mov dword [ebx + 0x14], eax
test eax, eax
je 0x1007ecaf
mov eax, dword [eax]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x10], eax
push 0x12
pop ecx
xor eax, eax
mov dword [ebx + 0x2c], 0x6e
inc eax
lea edi, [ebx + 0x7a4]
xor edx, edx
mov dword [ebx + 0x44], eax
mov dword [ebx + 0x4c], eax
mov esi, 0x100f8f18
mov dword [ebx + 0x30], eax
lea eax, [ebx + 0x258]
push 0x18
mov dword [ebx + 0x34], edx
mov dword [ebx + 0x38], edx
mov dword [ebx + 0x3c], edx
rep movsd dword es:[edi], dword [esi]
pop ecx
push 0xa
lea edi, [ebx + 0x50]
mov esi, str.Windows_SharePoint_Services_3.0_Error_Reporting
rep movsd dword es:[edi], dword [esi]
pop ecx
lea edi, [ebx + 0x21ac]
mov esi, str.Microsoft_SharePoint
rep movsd dword es:[edi], dword [esi]
push 0x104
push eax
push edx
movsw word es:[edi], word [esi]
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
push 0x44
pop esi
push esi
lea eax, [ebp - 0x390]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
xor eax, eax
mov dword [ebp - 0x390], esi
lea edi, [ebp - 0x34c]
add esp, 0xc
stosd dword es:[edi], eax
push 0x104
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.kernel32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1007ed77
push dword [ebp - 0x328]
lea eax, [ebp - 0x108]
push eax
push str.__sdwwin.exe___x__s__Iu
push 0xffffffffffffffff
lea eax, [ebp - 0x310]
push 0x208
push eax
call fcn.1004ba3f
xor eax, eax
add esp, 0x18
inc eax
test eax, eax
je 0x1007ee97
lea eax, [ebp - 0x34c]
push eax
lea eax, [ebp - 0x390]
push eax
push 0
push 0
push 0x4000020
push 1
push 0
push 0
lea eax, [ebp - 0x310]
push eax
push 0
call dword [sym.imp.kernel32.dll_CreateProcessA]
test eax, eax
je 0x1007ee97
push dword [ebp - 0x348]
call dword [sym.imp.kernel32.dll_CloseHandle]
push dword [ebp - 0x34c]
call dword [sym.imp.kernel32.dll_CloseHandle]
mov dword [ebp - 0x314], 1
mov edi, dword [ebp - 0x320]
push 0x4e20
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
jne 0x1007ee16
mov edi, dword [ebp - 0x318]
push 1
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x31c]
test eax, eax
jne 0x1007ee77
and dword [ebp - 0x314], eax
mov dword [ebp - 0x324], 1
jmp 0x1007ee77
mov esi, dword [ebp - 0x31c]
push 0x4e20
push esi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x1007ee9d
cmp eax, 0x80
je 0x1007ee86
push 1
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
mov edi, dword [ebp - 0x318]
test eax, eax
je 0x1007ee52
push edi
call dword [sym.imp.kernel32.dll_SetEvent]
jmp 0x1007ee69
push 1
push edi
call dword [sym.imp.kernel32.dll_WaitForSingleObject]
test eax, eax
jne 0x1007ee70
mov dword [ebp - 0x324], 1
and dword [ebp - 0x314], 0
push esi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
cmp dword [ebp - 0x314], 0
jne 0x1007edd5
jmp 0x1007eea3
push esi
call dword [sym.imp.kernel32.dll_ReleaseMutex]
jmp 0x1007ee9d
mov ebx, dword [ebp - 0x314]
jmp 0x1007eea3
mov esi, dword [ebp - 0x31c]
mov edi, dword [ebp - 0x318]
cmp dword [ebx + 0x28], 0
je 0x1007eeb2
push dword [ebx + 0x28]
call dword [sym.imp.kernel32.dll_CloseHandle]
push ebx
call dword [sym.imp.kernel32.dll_UnmapViewOfFile]
mov ebx, dword [ebp - 0x320]
push dword [ebp - 0x328]
call dword [sym.imp.kernel32.dll_CloseHandle]
test ebx, ebx
je 0x1007eed6
push ebx
call dword [sym.imp.kernel32.dll_CloseHandle]
test edi, edi
je 0x1007eee1
push edi
call dword [sym.imp.kernel32.dll_CloseHandle]
test esi, esi
je 0x1007eeec
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x324]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.100013fd
leave
ret