Function at 0x10028810
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x2814
call fcn.102244a0
mov eax, dword [esp + 0x2818]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
je 0x10028b1d
lea eax, [esp + 0x1c]
lea ecx, [esp + 0x1824]
push eax
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x10028b1d
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x2830]
shr ecx, 2
cmp eax, esi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x14], esi
mov byte [esp + 0x10], 0
je 0x1002886f
mov dword [eax], esi
cmp ecx, esi
mov dword [esp + 0x18], esi
jbe 0x10028b1d
lea ebx, [esp + 0x1824]
mov edx, dword [ebx]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, eax
test ebp, ebp
je 0x10028af8
lea eax, [esp + 0x24]
push 0x400
push eax
push 0
push ebp
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
je 0x10028af1
mov edi, str._systemroot
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
lea ecx, [esp + 0x28]
push str._systemroot
push ecx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x10028984
lea edx, [esp + 0x1424]
push 0x400
push edx
call fcn.10028cf0
or ecx, 0xffffffff
lea edi, [esp + 0x142c]
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x1024]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x1024]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str._systemroot
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + ecx + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x24]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1024]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x824]
push 0x400
lea edx, [esp + 0x28]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x100289c6
lea edi, [esp + 0x24]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x824]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x2828]
lea ecx, [esp + 0xc24]
push 0x400
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
jne 0x10028a07
or ecx, 0xffffffff
lea edx, [esp + 0xc24]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea ecx, [esp + 0x824]
lea edx, [esp + 0xc24]
push ecx
push edx
call esi
add esp, 8
test eax, eax
jne 0x10028af1
lea eax, [esp + 0x424]
push eax
push ebp
call fcn.10028b80
add esp, 8
test eax, eax
je 0x10028b2a
lea ecx, [esp + 0x424]
push str.SYSTEM
push ecx
call esi
add esp, 8
test eax, eax
je 0x10028af1
lea edx, [esp + 0x424]
push str.LOCAL_SERVICE
push edx
call esi
add esp, 8
test eax, eax
je 0x10028af1
lea eax, [esp + 0x424]
push str.NETWORK_SERVICE
push eax
call esi
add esp, 8
test eax, eax
je 0x10028af1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov cl, byte [esp + 0x282c]
and cl, 1
cmp cl, 1
jne 0x10028adc
mov eax, dword [ebx]
lea edx, [esp + 0x10]
push edx
push eax
mov byte [esp + 0x18], 0
call fcn.10025070
mov ecx, dword [esp + 0x2838]
add esp, 8
and eax, 0xff
test ecx, ecx
je 0x10028ad0
mov edx, dword [esp + 0x10]
and edx, 0xff
mov dword [ecx], edx
test eax, eax
je 0x10028af8
mov al, byte [esp + 0x10]
test al, al
je 0x10028af8
mov eax, dword [ebx]
push eax
call fcn.10028b40
add esp, 4
mov dword [esp + 0x14], eax
test eax, eax
je 0x10028b1d
jmp 0x10028af8
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
add ebx, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x10028882
mov ecx, dword [esp + 0x14]
mov eax, 1
cmp ecx, eax
je 0x10028b1f
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2814
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x2814
ret