Function at 0x100282b0
Capabilities:
Enumerate process modules

Disassembly:
mov eax, 0x3830
call fcn.102244a0
mov eax, dword [0x107ab968]
push ebx
push ebp
push esi
cmp eax, 1
push edi
je 0x100286bd
mov ebp, dword [esp + 0x3850]
test ebp, ebp
je 0x100286bd
mov ebx, dword [esp + 0x3854]
test ebx, ebx
je 0x100286bd
mov eax, dword [esp + 0x384c]
test eax, eax
je 0x100286bd
mov edi, dword [esp + 0x385c]
test edi, edi
je 0x100286bd
mov esi, dword [esp + 0x3858]
cmp esi, 1
jl 0x100286bd
cmp esi, 5
jg 0x100286bd
mov ecx, dword [esp + 0x3844]
mov edx, dword [esp + 0x3848]
push edx
mov eax, dword [ecx]
call dword [eax + 0x20]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x38]
push eax
lea ecx, [esp + 0x844]
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
je 0x100286bd
mov ecx, esi
xor eax, eax
shl ecx, 0xa
mov edx, ecx
mov dword [edi], eax
mov edi, ebp
mov dword [esp + 0x20], eax
shr ecx, 2
mov dword [esp + 0x1c], eax
mov dword [esp + 0x34], 0
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, esi
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x38]
shr eax, 2
mov dword [esp + 0x3c], eax
je 0x100286bd
lea eax, [esp + 0x840]
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ebx
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
test eax, eax
jne 0x1002869c
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1002867c
lea eax, [esp + 0x40]
push 0x400
push eax
push 0
push edi
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
jne 0x100283f9
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002867c
mov eax, dword [esp + 0x384c]
lea esi, [esp + 0x40]
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x1002842c
test cl, cl
je 0x10028428
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x1002842c
add eax, 2
add esi, 2
test cl, cl
jne 0x10028404
xor eax, eax
jmp 0x10028431
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x10028441
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1002867c
lea eax, [esp + 0x440]
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 0x100286bd
mov esi, dword [sym.imp.MSVCRT.dll__stricmp]
lea ecx, [esp + 0x440]
push str.SYSTEM
push ecx
call esi
add esp, 8
test eax, eax
je 0x1002867c
lea edx, [esp + 0x440]
push str.LOCAL_SERVICE
push edx
call esi
add esp, 8
test eax, eax
je 0x1002867c
lea eax, [esp + 0x440]
push str.NETWORK_SERVICE
push eax
call esi
add esp, 8
test eax, eax
je 0x1002867c
mov ecx, dword [esp + 0x3844]
push 0
lea eax, [esp + 0x44]
push 0x8000
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x100286bd
mov ecx, dword [esp + 0x3844]
push ebp
mov edx, dword [ecx]
call dword [edx + 0x20]
mov ebx, eax
mov eax, dword [esp + 0x2c]
cmp ebx, eax
jne 0x1002866f
cmp ebx, 0x3000
ja 0x1002850f
mov ecx, dword [esp + 0x3844]
push ebp
mov eax, dword [ecx]
call dword [eax + 0x18]
jmp 0x1002867c
mov esi, 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x14], esi
mov edi, dword [esp + 0x3844]
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x1844]
push ecx
push edx
push 0x1000
push 0x1000
push esi
push ebx
push ebp
push edi
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x100285f6
cmp dword [esp + 0x18], 0x1000
jne 0x100285f6
mov edx, dword [esp + 0x2c]
lea eax, [esp + 0x18]
push 1
lea ecx, [esp + 0x2844]
push eax
mov eax, dword [esp + 0x3850]
push ecx
push 0x1000
push 0x1000
push esi
push edx
push eax
push edi
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x100285f6
mov eax, dword [esp + 0x18]
mov ecx, 0x1000
cmp eax, ecx
jne 0x100285f6
lea edi, [esp + 0x1840]
lea esi, [esp + 0x2840]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x100285bc
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x100285e5
mov ecx, dword [esp + 0x28]
mov eax, ebx
inc ecx
cdq
lea esi, [ecx + 1]
mov dword [esp + 0x28], ecx
idiv esi
cmp ecx, 3
mov esi, eax
jl 0x10028520
mov edi, dword [esp + 0x3844]
jmp 0x100285fe
mov edi, dword [esp + 0x3844]
mov dword [esp + 0x14], 0
jmp 0x100285fe
mov dword [esp + 0x14], 0
mov edx, dword [edi]
push ebp
mov ecx, edi
call dword [edx + 0x18]
cmp dword [esp + 0x14], 1
jne 0x1002867c
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x1c]
lea edi, [esp + 0x40]
inc ebx
mov ecx, dword [eax]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x1c], ebx
mov dword [eax], ecx
mov ecx, dword [esp + 0x24]
mov edx, ecx
add eax, 4
add ecx, 0x400
mov dword [esp + 0x30], eax
mov dword [esp + 0x24], ecx
or ecx, 0xffffffff
xor eax, eax
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
mov eax, dword [esp + 0x3858]
and ecx, 3
cmp eax, ebx
rep movsb byte es:[edi], byte [esi]
jne 0x1002867c
mov dword [esp + 0x20], 1
jmp 0x1002867c
mov ecx, dword [esp + 0x3844]
push ebp
mov edx, dword [ecx]
call dword [edx + 0x18]
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x3c]
inc eax
add edx, 4
cmp eax, ecx
mov dword [esp + 0x34], eax
mov dword [esp + 0x10], edx
jb 0x100283ad
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x100286bd
mov ecx, dword [esp + 0x385c]
pop edi
pop esi
pop ebp
mov dword [ecx], eax
mov eax, 1
pop ebx
add esp, 0x3830
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x3830
ret