Function at 0x10027f40
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x3824
call fcn.102244a0
mov eax, dword [0x107ab968]
push ebx
push ebp
push esi
cmp eax, 1
push edi
je 0x1002829e
mov eax, dword [esp + 0x3844]
xor esi, esi
cmp eax, esi
je 0x1002829e
mov eax, dword [esp + 0x3848]
cmp eax, esi
je 0x1002829e
cmp dword [esp + 0x3840], esi
je 0x1002829e
mov ebp, dword [esp + 0x3838]
mov ecx, dword [esp + 0x383c]
mov dword [eax], esi
push ecx
mov eax, dword [ebp]
mov ecx, ebp
call dword [eax + 0x20]
lea edx, [esp + 0x2c]
mov dword [esp + 0x28], eax
push edx
lea eax, [esp + 0x838]
push 0x1000
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x1002829e
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x10], esi
shr eax, 2
mov dword [esp + 0x30], eax
mov dword [esp + 0x20], esi
je 0x1002829e
lea ecx, [esp + 0x834]
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x18]
mov eax, dword [edx]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x10028227
lea ecx, [esp + 0x434]
push 0x400
push ecx
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
jne 0x1002802c
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10028227
mov eax, dword [esp + 0x3840]
lea esi, [esp + 0x434]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x10028062
test cl, cl
je 0x1002805e
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x10028062
add eax, 2
add esi, 2
test cl, cl
jne 0x1002803a
xor eax, eax
jmp 0x10028067
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10028077
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10028227
lea eax, [esp + 0x34]
push eax
push edi
call fcn.10028b80
add esp, 8
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x1002829e
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea ecx, [esp + 0x34]
push str.SYSTEM
push ecx
call esi
add esp, 8
test eax, eax
je 0x10028227
lea edx, [esp + 0x34]
push str.LOCAL_SERVICE
push edx
call esi
add esp, 8
test eax, eax
je 0x10028227
lea eax, [esp + 0x34]
push str.NETWORK_SERVICE
push eax
call esi
add esp, 8
test eax, eax
je 0x10028227
mov edx, dword [ebp]
push 0
lea eax, [esp + 0x438]
push 0x8000
push eax
mov ecx, ebp
call dword [edx + 4]
mov edi, eax
cmp edi, 0xffffffff
mov dword [esp + 0x14], edi
je 0x1002829e
mov edx, dword [ebp]
push edi
mov ecx, ebp
call dword [edx + 0x20]
mov ebx, eax
mov eax, dword [esp + 0x28]
cmp ebx, eax
jne 0x1002821e
cmp ebx, 0x3000
jbe 0x1002821e
mov esi, 1
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], esi
lea ecx, [esp + 0x1c]
push 1
lea edx, [esp + 0x1838]
push ecx
push edx
push 0x1000
push 0x1000
push esi
push ebx
push edi
push ebp
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x10028204
cmp dword [esp + 0x1c], 0x1000
jne 0x10028204
mov edx, dword [esp + 0x28]
lea eax, [esp + 0x1c]
push 1
lea ecx, [esp + 0x2838]
push eax
mov eax, dword [esp + 0x3844]
push ecx
push 0x1000
push 0x1000
push esi
push edx
push eax
push ebp
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x10028204
mov eax, dword [esp + 0x1c]
mov ecx, 0x1000
cmp eax, ecx
jne 0x10028204
lea edi, [esp + 0x1834]
lea esi, [esp + 0x2834]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100281d0
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100281f6
mov ecx, dword [esp + 0x24]
mov eax, ebx
inc ecx
mov edi, dword [esp + 0x14]
cdq
lea esi, [ecx + 1]
mov dword [esp + 0x24], ecx
idiv esi
cmp ecx, 3
mov esi, eax
jl 0x1002813b
jmp 0x1002820c
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], 0
jmp 0x1002820c
mov dword [esp + 0x10], 0
mov edx, dword [ebp]
push edi
mov ecx, ebp
call dword [edx + 0x18]
cmp dword [esp + 0x10], 1
je 0x10028288
jmp 0x10028227
mov eax, dword [ebp]
push edi
mov ecx, ebp
call dword [eax + 0x18]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x30]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edx
jb 0x10027fe9
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1002829e
lea edi, [esp + 0x434]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, 1
mov edx, ecx
mov esi, edi
mov edi, dword [esp + 0x3844]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3824
ret
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x3848]
mov edx, dword [esp + ecx*4 + 0x834]
mov dword [eax], edx
jmp 0x1002824f
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3824
ret