Function at 0x76aa827f
Capabilities:
Check for peb beingdebugged flag
Check mutex on windows
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp edi, esi
mov dword [ebp - 4], esi
mov dword [ebp - 8], esi
jne 0x76aa82b3
mov dword [ebp - 4], 0x57
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [0x76aae54c], esi
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
jne 0x76aa82da
push esi
push esi
push 1
push esi
call ebx
cmp eax, esi
mov dword [0x76aae54c], eax
jne 0x76aa82da
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [0x76aae550], esi
jne 0x76aa82fb
push esi
push esi
push 1
push esi
call ebx
cmp eax, esi
mov dword [0x76aae550], eax
jne 0x76aa82fb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [0x76aae554], esi
jne 0x76aa833d
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, eax
cmp ebx, esi
jne 0x76aa831d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x76aa833d
push esi
push ebx
push 0x76aae554
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x76aa8337
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x76aa833d
mov dword [0x76aae554], ebx
cmp dword [ebp - 4], esi
jne 0x76aa82a0
mov eax, dword [0x76aae558]
cmp eax, esi
je 0x76aa8387
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, esi
mov dword [ebp - 4], eax
jne 0x76aa8375
push dword [0x76aae558]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x76aae558], esi
mov dword [ebp - 4], esi
jmp 0x76aa8387
cmp eax, 0x102
jne 0x76aa837f
mov dword [ebp - 4], esi
cmp dword [0x76aae558], esi
jne 0x76aa83a9
push esi
push esi
push esi
push 0x76aa80e5
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, esi
mov dword [0x76aae558], eax
jne 0x76aa83a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x76aa82a0
push dword [edi + 4]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
call esi
push dword [edi + 8]
lea ebx, [eax + eax + 2]
call esi
lea ecx, [ebx + eax*2 + 0x21]
and ecx, 0xfffffff8
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ecx
push 8
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
test esi, esi
jne 0x76aa83f4
mov dword [ebp - 4], 0xe
jmp 0x76aa82a0
lea eax, [esi + 0x18]
mov dword [esi + 4], eax
push dword [edi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [esi + 4]
add ebx, eax
mov dword [esi + 8], ebx
push dword [edi + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [edi + 0xc]
xor edx, edx
mov ecx, 0xc8
div ecx
test eax, eax
mov dword [esi + 0xc], eax
jne 0x76aa8430
mov dword [esi + 0xc], 1
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [0x76aae554]
test eax, eax
je 0x76aa8465
or dword [ebp - 0xc], 0xffffffff
lea ecx, [ebp - 0x10]
push ecx
push 0
push eax
mov dword [ebp - 0x10], 0xffc2f700
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
push eax
call fcn.76aa7e50
jmp 0x76aa8468
push 0x15
pop eax
test eax, eax
jne 0x76aa849e
mov eax, dword [0x76aae55c]
mov dword [esi], eax
push dword [0x76aae554]
mov dword [0x76aae55c], esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp dword [esi], 0
jne 0x76aa8496
push dword [0x76aae54c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov dword [ebp - 8], esi
jmp 0x76aa82a9
push eax
jmp 0x76aa82a3