Function at 0x77c9b219
Capabilities:
Check mutex on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x77d1a0c4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
cmp dword [0x77d1e708], 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 0x77c9b3e4
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 0x77c9b456
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 0x77c9b456
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 0x77c9b456
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 0x77c9b403
push 0x14
push 0x40
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 0x2c], esi
je 0x77c9b456
push edi
push esi
call sym.ADVAPI32.dll_InitializeSecurityDescriptor
test eax, eax
je 0x77c9b456
push ebx
push dword [ebp - 0x1c]
push edi
push esi
call sym.ADVAPI32.dll_SetSecurityDescriptorDacl
test eax, eax
je 0x77c9b456
push 0x77c9b464
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 0x77cdfd40
push ebx
push esi
push 0x77d1e708
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
jne 0x77cdfd4e
cmp dword [0x77d1e708], ebx
je 0x77c9b403
push 0x1d4c0
push dword [0x77d1e708]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jne 0x77cdfd5a
mov dword [ebp - 0x18], ebx
cmp dword [ebp - 0x28], ebx
je 0x77c9b410
push dword [ebp - 0x28]
call sym.ADVAPI32.dll_FreeSid
cmp dword [ebp - 0x20], ebx
je 0x77c9b41d
push dword [ebp - 0x20]
call sym.ADVAPI32.dll_FreeSid
cmp dword [ebp - 0x24], ebx
je 0x77c9b42a
push dword [ebp - 0x24]
call sym.ADVAPI32.dll_FreeSid
cmp dword [ebp - 0x1c], ebx
mov esi, dword [sym.imp.KERNEL32.dll_LocalFree]
je 0x77c9b43a
push dword [ebp - 0x1c]
call esi
cmp dword [ebp - 0x2c], ebx
je 0x77c9b444
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.77cc744e
leave
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x77cdfd38
mov dword [ebp - 0x18], eax
jmp 0x77c9b403
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x77c9b3dc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x77c9b3dc
cmp eax, 0x80
je 0x77c9b400
cmp eax, 0x102
jne 0x77c9b456
jmp 0x77c9b403