Function at 0x489d10
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a31d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xa0
push esi
mov dword [ebp - 0x20], 0x400
push 0x5c27e0
xor ecx, ecx
mov eax, dword [ebp - 0x20]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005714b4
add esp, 8
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x489d6d
xor al, al
jmp 0x48a0a2
mov ecx, dword [ebp - 0x20]
shl ecx, 2
mov dword [ebp - 0x18], ecx
lea edx, [ebp - 0x2c]
push edx
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [ebp - 0x14]
push ecx
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x489d92
xor al, al
jmp 0x48a0a2
mov byte [ebp - 0xd], 1
mov edx, dword [ebp - 0x2c]
cmp edx, dword [ebp - 0x18]
jne 0x489e61
movzx eax, byte [ebp - 0xd]
test eax, eax
je 0x489e61
mov ecx, dword [ebp - 0x18]
shl ecx, 1
mov dword [ebp - 0x18], ecx
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x48], edx
mov eax, dword [ebp - 0x48]
push eax
call fcn.0057145a
add esp, 4
push 0x5c27e0
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005714b4
add esp, 8
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x489e40
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
push edx
call fcn.0057145a
add esp, 4
mov eax, dword [ebp - 0x18]
shr eax, 1
mov dword [ebp - 0x18], eax
push 0x5c27e0
xor ecx, ecx
mov eax, dword [ebp - 0x18]
mov edx, 4
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.005714b4
add esp, 8
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0xd], 0
lea ecx, [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.dll_K32EnumProcesses
test eax, eax
jne 0x489e5c
xor al, al
jmp 0x48a0a2
jmp 0x489d96
mov ecx, dword [ebp - 0x2c]
shr ecx, 2
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x24], 0
jmp 0x489e7c
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp - 0x20]
jge 0x48a08e
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + ecx*4]
mov dword [ebp - 0x40], eax
mov ecx, dword [ebp - 0x40]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x48a089
lea ecx, [ebp - 0x1c]
call fcn.004129b0
mov dword [ebp - 4], 0
mov dword [ebp - 0x58], 0x104
lea edx, [ebp - 0x58]
push edx
push 1
push 0x104
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x94]
call fcn.004897c0
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
call fcn.004278d0
push eax
push 0
mov ecx, dword [ebp - 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
lea ecx, [ebp - 0x94]
call fcn.00489980
lea ecx, [ebp - 0x1c]
call fcn.004192d0
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
push eax
lea ecx, [ebp - 0x3c]
call fcn.004128a0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004129b0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004129b0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x38]
push edx
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call fcn.0048a260
add esp, 0xc
lea edx, [ebp - 0x3c]
push edx
lea ecx, [ebp - 0x28]
call fcn.00412760
mov byte [ebp - 4], 4
push ecx
mov esi, esp
mov dword [ebp - 0x78], esp
lea ecx, [ebp - 0x28]
call fcn.00420550
push eax
mov ecx, esi
call fcn.00412760
call fcn.00474950
add esp, 4
mov dword [ebp - 0x60], eax
mov eax, dword [ebp - 0x60]
push eax
push 0x5b5d60
lea ecx, [ebp - 0x28]
push ecx
call fcn.0041fe00
add esp, 0xc
lea edx, [ebp - 0x34]
push edx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x1c]
push ecx
lea edx, [ebp - 0x3c]
push edx
mov eax, dword [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
push ecx
lea ecx, [ebp - 0xac]
call fcn.004898c0
mov byte [ebp - 4], 5
lea edx, [ebp - 0x7c]
push edx
mov ecx, dword [ebp + 8]
call fcn.0042ce30
mov eax, dword [eax]
mov dword [ebp - 0x64], eax
lea ecx, [ebp - 0x80]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00428360
mov edx, dword [eax]
mov dword [ebp - 0x68], edx
lea eax, [ebp - 0xac]
push eax
mov ecx, dword [ebp - 0x64]
push ecx
mov edx, dword [ebp - 0x68]
push edx
lea eax, [ebp - 0x84]
push eax
call fcn.00489750
add esp, 0x10
mov dword [ebp - 0x70], eax
lea ecx, [ebp - 0x88]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0042ce30
mov dword [ebp - 0x6c], eax
mov edx, dword [ebp - 0x6c]
push edx
mov ecx, dword [ebp - 0x70]
call fcn.00418dc0
movzx eax, al
test eax, eax
je 0x48a031
lea ecx, [ebp - 0xac]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0048a7c0
mov edx, dword [ebp - 0x30]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 4
lea ecx, [ebp - 0xac]
call fcn.00417ff0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28]
call fcn.004168d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x34]
call fcn.004168d0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.004168d0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x3c]
call fcn.004168d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.004168d0
jmp 0x489e73
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x74], eax
mov ecx, dword [ebp - 0x74]
push ecx
call fcn.0057145a
add esp, 4
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret