Function at 0x4ebfe0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xac
mov eax, dword [0x62d040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
lea eax, [ebp - 0x20]
push dword [edi + 4]
mov esi, dword [edi]
mov ecx, esi
push 8
push eax
call dword [0x5a38e4]
call esi
test eax, eax
jns 0x4ec029
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret
mov ecx, dword ds:[ebp - 0x20]
lea ebx, [edi + 0x70]
push ebx
mov edx, 0x1e
mov dword [ebp - 0x84], ebx
call fcn.00514560
test eax, eax
js 0x4ec56e
lfence
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x78], ecx
cmp dword [eax], ecx
jbe 0x4ec56e
lea esi, [edi + 0x74]
mov dword [ebp - 0xc], ecx
mov word [ebp - 8], 0xf00
mov dword [ebp - 0x74], esi
mov edi, edi
push dword [eax + ecx*8 + 4]
call sym.SystemInformer.exe_PhSidToStringSid
push eax
xor edx, edx
mov ecx, esi
call fcn.004eba60
mov ecx, dword [ebx]
mov edi, eax
mov eax, dword [ebp - 0x78]
push 0
push 1
mov dword [ebp - 0x88], edi
push dword [ecx + eax*8 + 4]
call sym.SystemInformer.exe_PhGetSidFullName
mov esi, eax
test esi, esi
je 0x4ec0d8
push dword [esi + 4]
push str.FullName:__s
call sym.SystemInformer.exe_PhFormatString
mov ecx, dword ds:[ebp - 0x74]
add esp, 8
mov edx, edi
push eax
call fcn.004eba60
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4ec0d8
call fcn.004fbfa0
mov ecx, dword [ebx]
mov eax, dword [ebp - 0x78]
mov ecx, dword [ecx + eax*8 + 4]
call fcn.00531660
mov esi, eax
test esi, esi
je 0x4ec11a
push dword [esi + 4]
push str.Capability:__s
call sym.SystemInformer.exe_PhFormatString
mov ecx, dword [ebp - 0x74]
add esp, 8
mov edx, edi
push eax
call fcn.004eba60
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4ec11a
call fcn.004fbfa0
mov eax, dword [ebx]
mov esi, dword [ebp - 0x78]
mov ecx, dword [eax + esi*8 + 4]
lea esi, [ebp - 0xc]
mov eax, dword [ecx + 2]
cmp eax, dword [esi]
mov dl, byte [ecx + 1]
mov esi, dword [ebp - 0x78]
jne 0x4ec55a
movzx eax, word [ecx + 6]
lea ebx, [ebp - 0xc]
cmp ax, word [ebx + 4]
mov ebx, dword [ebp - 0x84]
jne 0x4ec55a
cmp dword [ecx + 8], 3
jne 0x4ec55a
jmp 0x4ec160
cmp dl, 8
jne 0x4ec2c5
lea eax, ds:[ebp - 0xac]
push eax
push 0x4c
lea eax, [ebp - 0x70]
push eax
push 0x1f
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtQueryInformationToken]
test eax, eax
js 0x4ec55a
mov edi, dword [ebp - 0x70]
test edi, edi
je 0x4ec55a
mov eax, dword [ebx]
lea ecx, [edi + 0xc]
mov edx, 1
mov esi, dword [eax + esi*8 + 4]
sub esi, edi
lea esp, [esp]
mov eax, dword [ecx]
cmp eax, dword [esi + ecx]
jne 0x4ec55a
inc edx
add ecx, 4
cmp edx, 7
jb 0x4ec1b0
mov ecx, dword [ebp - 0x20]
call fcn.00514a80
mov edi, eax
test edi, edi
je 0x4ec265
mov ecx, dword [edi]
lea eax, [ebp - 0x90]
add ecx, dword [0x630a78]
push 0
push 0
push eax
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x90], ecx
call sym.SystemInformer.exe_PhCreateString3
push dword [0x630a78]
mov esi, eax
push dword [0x630a7c]
push dword [esi + 4]
call fcn.005831c0
mov eax, dword [esi + 4]
add esp, 0xc
add eax, dword [0x630a78]
push dword [edi]
push dword [edi + 4]
push eax
call fcn.005831c0
mov edx, dword ds:[ebp - 0x88]
add esp, 0xc
push esi
mov esi, dword [ebp - 0x74]
mov ecx, esi
call fcn.004eba60
lea ecx, [edi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4ec55d
call fcn.004fbfa0
lea esp, [esp]
jmp 0x4ec55d
mov ecx, dword [0x630a78]
test ecx, ecx
jne 0x4ec28a
call sym.SystemInformer.exe_PhReferenceEmptyString
mov esi, dword [ebp - 0x74]
mov ecx, esi
mov edx, dword [ebp - 0x88]
push eax
call fcn.004eba60
jmp 0x4ec55d
mov eax, dword [str.Package:]
push 0
mov dword [ebp - 0x94], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [ebp - 0x98], ecx
call sym.SystemInformer.exe_PhCreateString3
mov esi, dword [ebp - 0x74]
mov ecx, esi
mov edx, dword [ebp - 0x88]
push eax
call fcn.004eba60
lea esp, [esp]
jmp 0x4ec55d
cmp dl, 5
jne 0x4ec55a
mov eax, dword [ecx + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x10]
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
call sym.SystemInformer.exe_PhFormatGuid
mov ebx, eax
test ebx, ebx
je 0x4ec554
mov ecx, dword ds:[ebx]
lea eax, [ebp - 0xa0]
add ecx, dword [0x630a2c]
push 0
push 0
push eax
mov dword [ebp - 0x9c], 0
mov dword [ebp - 0xa0], ecx
call sym.SystemInformer.exe_PhCreateString3
push dword [0x630a2c]
mov esi, eax
push dword [0x630a30]
push dword [esi + 4]
call fcn.005831c0
mov eax, dword [esi + 4]
add esp, 0xc
add eax, dword [0x630a2c]
push dword [ebx]
push dword [ebx + 4]
push eax
call fcn.005831c0
add esp, 0xc
mov edx, edi
push esi
mov esi, dword [ebp - 0x74]
mov ecx, esi
call fcn.004eba60
cmp dword [0x62dbb0], 0x3e
jb 0x4ec49a
test byte [0x6311c0], 1
jne 0x4ec465
mov edi, 0x6311c0
lock bts dword [edi], 0x1f
jb 0x4ec44f
push 0x320
push 4
push dword [0x6337d4]
mov dword [0x635a7c], 0
mov dword [0x635a80], 0x64
mov dword [0x635a84], 8
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push 0x6311b8
push 0xfffffffffffffffd
mov dword [0x635a88], eax
lea eax, [ebp - 0x80]
push 0x20019
push eax
call sym.SystemInformer.exe_PhOpenKey
test eax, eax
js 0x4ec406
push 0x635a7c
push 0x531860
push 0
push dword [ebp - 0x80]
call sym.SystemInformer.exe_PhEnumerateKey
push dword [ebp - 0x80]
call dword [sym.imp.ntdll.dll_NtClose]
push 0
push 0x6311a0
push 0xfffffffffffffffd
push 0x20019
lea eax, [ebp - 0x80]
push eax
call sym.SystemInformer.exe_PhOpenKey
lea ecx, [ecx]
test eax, eax
js 0x4ec446
push 0x635a7c
push 0x5319e0
push 0
push dword [ebp - 0x80]
call sym.SystemInformer.exe_PhEnumerateKey
push dword ds:[ebp - 0x80]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, edi
call sym.SystemInformer.exe_PhfEndInitOnce
jmp 0x4ec465
test byte [0x6311c0], 1
jne 0x4ec465
xor edx, edx
mov ecx, edi
call sym.SystemInformer.exe_PhfWaitForEvent
xor edi, edi
cmp dword [0x635a7c], edi
jbe 0x4ec49a
nop
mov esi, edi
imul esi, dword [0x635a84]
push 1
push ebx
add esi, dword [0x635a88]
push dword [esi + 4]
call sym.SystemInformer.exe_PhEqualStringRef
test al, al
jne 0x4ec4b8
inc edi
cmp edi, dword [0x635a7c]
jb 0x4ec470
mov esi, dword [ebp - 0x74]
lea ecx, [ebx - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4ec4ad
call fcn.004fbfa0
mov ebx, dword [ebp - 0x84]
jmp 0x4ec55d
mov edi, dword [esi]
lea eax, [edi - 4]
mov dword [ebp - 0x7c], eax
lock inc dword [eax]
test edi, edi
je 0x4ec497
mov eax, dword [edi]
add eax, dword [0x630a24]
push 0
mov dword [ebp - 0xa8], eax
lea eax, [ebp - 0xa8]
push 0
push eax
mov dword [ebp - 0xa4], 0
call sym.SystemInformer.exe_PhCreateString3
push dword [0x630a24]
mov esi, eax
push dword [0x630a28]
push dword [esi + 4]
call fcn.005831c0
mov eax, dword [esi + 4]
add esp, 0xc
add eax, dword [0x630a24]
push dword [edi]
push dword [edi + 4]
push eax
call fcn.005831c0
mov edx, dword [ebp - 0x88]
add esp, 0xc
push esi
mov esi, dword [ebp - 0x74]
mov ecx, esi
call fcn.004eba60
mov ecx, dword ds:[ebp - 0x7c]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x4ec49a
lea ecx, [edi - 8]
call fcn.004fbfa0
jmp 0x4ec49a
mov ebx, dword [ebp - 0x84]
mov esi, dword [ebp - 0x74]
mov ecx, dword [ebp - 0x78]
mov eax, dword [ebx]
inc ecx
mov dword [ebp - 0x78], ecx
cmp ecx, dword [eax]
jb 0x4ec070
push dword [ebp - 0x20]
call dword [sym.imp.ntdll.dll_NtClose]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0057fcaf
mov esp, ebp
pop ebp
ret