Function at 0x77ca3643
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x77d260c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x77d2a740], ebx
push esi
push edi
mov dword [ebp - 0x2c], ebx
mov byte [ebp - 0xc], bl
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], bl
mov byte [ebp - 9], bl
mov byte [ebp - 8], bl
mov byte [ebp - 7], 5
mov byte [ebp - 0x14], bl
mov byte [ebp - 0x13], bl
mov byte [ebp - 0x12], bl
mov byte [ebp - 0x11], bl
mov byte [ebp - 0x10], bl
mov byte [ebp - 0xf], 1
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x1c], ebx
jne 0x77ca380e
push 0x60
lea eax, [ebp - 0x98]
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x28]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea eax, [ebp - 0xc]
push eax
call sym.ADVAPI32.dll_AllocateAndInitializeSid
test eax, eax
je 0x77ca3880
mov eax, dword [ebp - 0x28]
push 2
pop esi
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x20]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push esi
lea eax, [ebp - 0xc]
mov edi, 0x1f0001
push eax
mov dword [ebp - 0x98], edi
mov dword [ebp - 0x94], esi
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], 5
call sym.ADVAPI32.dll_AllocateAndInitializeSid
test eax, eax
je 0x77ca3880
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x5c], eax
lea eax, [ebp - 0x24]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [ebp - 0x78], edi
push ebx
push ebx
xor edi, edi
inc edi
push edi
lea eax, [ebp - 0x14]
push eax
mov dword [ebp - 0x74], esi
mov dword [ebp - 0x70], ebx
mov dword [ebp - 0x64], ebx
mov dword [ebp - 0x60], esi
call sym.ADVAPI32.dll_AllocateAndInitializeSid
test eax, eax
je 0x77ca3880
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x1c]
push eax
push ebx
lea eax, [ebp - 0x98]
push eax
push 3
mov dword [ebp - 0x58], 0x120001
mov dword [ebp - 0x54], esi
mov dword [ebp - 0x50], ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 0x40], 5
call sym.ADVAPI32.dll_SetEntriesInAclW
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x77ca382d
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2c], esi
je 0x77ca3880
push edi
push esi
call sym.ADVAPI32.dll_InitializeSecurityDescriptor
test eax, eax
je 0x77ca3880
push ebx
push dword [ebp - 0x1c]
push edi
push esi
call sym.ADVAPI32.dll_SetSecurityDescriptorDacl
test eax, eax
je 0x77ca3880
push 0x77ca388c
push ebx
lea eax, [ebp - 0x38]
push eax
mov dword [ebp - 0x38], 0xc
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov esi, eax
cmp esi, ebx
je 0x77cee620
push ebx
push esi
push 0x77d2a740
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x77cee62e
cmp dword [0x77d2a740], ebx
je 0x77ca382d
push 0x1d4c0
push dword [0x77d2a740]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x77cee63a
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x28], ebx
je 0x77ca383a
push dword [ebp - 0x28]
call sym.ADVAPI32.dll_FreeSid
cmp dword [ebp - 0x20], ebx
je 0x77ca3847
push dword [ebp - 0x20]
call sym.ADVAPI32.dll_FreeSid
cmp dword [ebp - 0x24], ebx
je 0x77ca3854
push dword [ebp - 0x24]
call sym.ADVAPI32.dll_FreeSid
cmp dword [ebp - 0x1c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x77ca3864
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x2c], ebx
je 0x77ca386e
push dword [ebp - 0x2c]
call esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.77cd6011
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77cee618
mov dword [ebp - 0x18], eax
jmp 0x77ca382d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x77ca3806
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x77ca3806
cmp eax, 0x80
je 0x77ca382a
cmp eax, 0x102
jne 0x77ca3880
jmp 0x77ca382d