Function at 0x77d0cc56
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.77d0b97e
mov esi, dword [sym.imp.ntdll.dll_RtlAllocateHeap]
jmp 0x77d0ccca
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 0x77d0ccee
cmp eax, 0xc0000004
jne 0x77d0cf57
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 0x77d0cc82
mov dword [ebp - 0x18], 0xc0000017
jmp 0x77d0cf57
push 5
push ebx
push ebx
call sym.ADVAPI32.dll_OpenSCManagerA
cmp eax, ebx
mov dword [ebp - 0x34], eax
je 0x77d0cf57
mov dword [ebp - 8], ebx
mov edi, 0x1000
mov dword [ebp - 0x14], ebx
cmp dword [ebp - 8], ebx
mov dword [ebp - 0x24], ebx
je 0x77d0cd2b
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 0x77d0cf4f
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 0x77d0cda1
call dword [sym.imp.KERNEL32.dll_GetLastError]
add edi, dword [ebp - 0x38]
cmp eax, 0xea
mov dword [ebp - 0x24], ebx
jne 0x77d0cd99
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 2
jae 0x77d0cf34
jmp 0x77d0cd0d
cmp eax, ebx
jne 0x77d0cf34
cmp dword [ebp - 0xc], ebx
jbe 0x77d0cf34
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 0x77d0cdbb
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 0x77d0cdd5
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 0x77d0ce0d
push edx
push dword [ebp - 0x10]
call fcn.77d0b9ef
mov dword [ebp - 0x2c], eax
jmp 0x77d0ce11
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], 0x77ccac50
je 0x77d0ce5c
mov edx, dword [ebp - 0x28]
cmp dword [esi + 0x44], edx
je 0x77d0ce3c
add eax, dword [esi]
lea esi, [eax + ecx]
cmp dword [esi], 0
je 0x77d0ce5c
jmp 0x77d0ce28
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x77d0ce5c
push 0x5c
push eax
call dword [sym.imp.ntdll.dll_wcsrchr]
test eax, eax
pop ecx
pop ecx
je 0x77d0ce56
inc eax
inc eax
jmp 0x77d0ce59
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 0x77d0ce62
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 0x77d0cf2b
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 0x77d0cf34
jmp 0x77d0cdb3
mov dword [ebp - 0x18], 0xc0000017
xor ebx, ebx
cmp dword [ebp - 8], ebx
je 0x77d0cf4f
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 0x77d0cf72
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 0x77d0cf82
push dword [ebp - 0x10]
call fcn.77cc65bd
mov eax, dword [ebp - 0x18]
leave
ret 4