Function at 0x77cffdf6
Capabilities:
Check for peb beingdebugged flag
Enumerate processes via ntquerysysteminformation
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
xor ebx, ebx
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0xc], ebx
mov edi, 0x10000
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ebx
call fcn.77cfeb1d
mov esi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x77cffe6a
push edi
push ebx
push dword [ebp - 4]
call sub.ntdll.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
push edi
push dword [ebp - 4]
push 5
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, ebx
mov dword [ebp - 0x18], eax
jge 0x77cffe8e
cmp eax, 0xc0000004
jne 0x77d000f7
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov edi, dword [ebp - 0x20]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 8
push dword [eax + 0x18]
call esi
cmp eax, ebx
mov dword [ebp - 4], eax
jne 0x77cffe22
mov dword [ebp - 0x18], 0xc0000017
jmp 0x77d000f7
push 5
push ebx
push ebx
call sym.ADVAPI32.dll_OpenSCManagerA
cmp eax, ebx
mov dword [ebp - 0x34], eax
je 0x77d000f7
mov dword [ebp - 8], ebx
mov edi, 0x1000
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x24], ebx
je 0x77cffecb
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push edi
push 8
push dword [eax + 0x18]
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x77d000ef
push edi
push ebx
push eax
call sub.ntdll.dll_memset
add esp, 0xc
push ebx
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x38]
push eax
push edi
push dword [ebp - 8]
push 3
push 0x30
push ebx
push dword [ebp - 0x34]
call sym.ADVAPI32.dll_EnumServicesStatusExW
test eax, eax
jne 0x77cfff41
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, dword [ebp - 0x38]
cmp eax, 0xea
mov dword [ebp - 0x24], ebx
jne 0x77cfff39
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jae 0x77d000d4
jmp 0x77cffead
cmp eax, ebx
jne 0x77d000d4
cmp dword [ebp - 0xc], ebx
jbe 0x77d000d4
mov edi, dword [ebp - 8]
mov dword [ebp - 0x18], ebx
add edi, 4
mov edx, dword [edi - 4]
mov eax, edx
lea esi, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
cmp cx, bx
jne 0x77cfff5b
sub eax, esi
sar eax, 1
lea eax, [eax + eax + 2]
mov dword [ebp - 0x1c], eax
mov eax, dword [edi]
lea ecx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
cmp si, bx
jne 0x77cfff75
mov esi, dword [ebp - 4]
sub eax, ecx
sar eax, 1
cmp dword [ebp - 0x10], 0
lea ebx, [eax + eax + 2]
mov eax, dword [edi + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [edi + 8]
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x3c], eax
je 0x77cfffad
push edx
push dword [ebp - 0x10]
call fcn.77cfeb8f
mov dword [ebp - 0x2c], eax
jmp 0x77cfffb1
and dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
lea ebx, [ebx + eax + 0xc]
xor eax, eax
cmp dword [ecx], eax
mov dword [ebp - 0x14], 0x77caf3e0
je 0x77cffffc
mov edx, dword [ebp - 0x28]
cmp dword [esi + 0x44], edx
je 0x77cfffdc
add eax, dword [esi]
lea esi, [eax + ecx]
cmp dword [esi], 0
je 0x77cffffc
jmp 0x77cfffc8
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x77cffffc
push 0x5c
push eax
call dword [sym.imp.ntdll.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x77cffff6
inc eax
inc eax
jmp 0x77cffff9
mov eax, dword [esi + 0x3c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x77d00002
sub eax, edx
sar eax, 1
lea eax, [eax + eax + 2]
lea ecx, [ebx + eax + 0x20]
mov dword [ebp - 0x40], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ecx
push 8
push dword [eax + 0x18]
mov dword [ebp - 0x44], ecx
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov ebx, eax
test ebx, ebx
je 0x77d000cb
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x1c]
mov word [ebx + 6], 0xb0f
lea esi, [ebx + 0x20]
mov dword [esi], eax
mov eax, dword [ebp - 0x3c]
add esi, 4
mov dword [esi], eax
mov eax, dword [ebp - 0x2c]
add esi, 4
mov dword [esi], eax
push dword [edi - 4]
add esi, 4
push esi
call sub.ntdll.dll_memcpy
push dword [ebp - 0x30]
add esi, dword [ebp - 0x1c]
push dword [edi]
push esi
call sub.ntdll.dll_memcpy
push dword [ebp - 0x40]
mov eax, dword [ebp - 0x30]
push dword [ebp - 0x14]
add eax, esi
push eax
call sub.ntdll.dll_memcpy
mov eax, dword [ebp - 0x44]
add esp, 0x24
push ebx
add eax, 0xffffffe0
push eax
movzx eax, word [ebp + 8]
push 0x40000004
push eax
call dword [sym.imp.ntdll.dll_NtTraceEvent]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push 0
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
dec dword [ebp - 0xc]
xor ebx, ebx
add edi, 0x2c
cmp dword [ebp - 0xc], ebx
jbe 0x77d000d4
jmp 0x77cfff53
mov dword [ebp - 0x18], 0xc0000017
xor ebx, ebx
cmp dword [ebp - 8], ebx
je 0x77d000ef
push dword [ebp - 8]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 0x34]
call sym.ADVAPI32.dll_CloseServiceHandle
cmp dword [ebp - 4], ebx
je 0x77d00112
push dword [ebp - 4]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
push ebx
push dword [eax + 0x18]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
cmp dword [ebp - 0x10], ebx
pop edi
pop esi
pop ebx
je 0x77d00122
push dword [ebp - 0x10]
call fcn.77cbb6cd
mov eax, dword [ebp - 0x18]
leave
ret 4