Function at 0x456c90
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a8
mov eax, dword [0x534090]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
mov ebx, ecx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x594], ebx
mov dword [ebp - 0x598], edi
mov eax, dword [eax]
mov eax, dword [eax + 0x19904]
mov dword [ebp - 0x5a0], eax
mov eax, dword [ebx + 0x24]
cmp eax, 0xffffffff
je 0x456d20
test eax, eax
je 0x456d20
lea ecx, [ebp - 0x56c]
mov dword [ebp - 0x56c], 0x428
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x456d20
mov esi, dword [sym.imp.KERNEL32.dll_Module32NextW]
mov ecx, dword [ebp - 0x558]
cmp edi, ecx
jb 0x456d10
mov eax, dword [ebp - 0x554]
add eax, ecx
cmp edi, eax
jb 0x456de9
lea eax, [ebp - 0x56c]
push eax
push dword [ebx + 0x24]
call esi
test eax, eax
jne 0x456cf6
mov edx, edi
mov dword [ebp - 0x588], 0x400000
mov edi, dword [ebx]
mov esi, 0x1f
mov ecx, 0x400000
lea eax, [edi - 1]
and eax, edx
cmovne edi, eax
mov eax, dword [ebx + 0x20]
cmp ecx, edi
cmovb edi, ecx
lea ecx, [ebp - 0x5a4]
push ecx
mov eax, dword [eax]
sub edx, edi
push edi
push dword [ebx + 0x1c]
mov dword [ebp - 0x59c], edi
push edx
push dword [eax + 0x19904]
mov dword [ebp - 0x584], edx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x456f8b
cmp dword [ebp - 0x5a4], edi
jne 0x456f8b
lea eax, [edi - 1]
mov dword [ebp - 0x58c], eax
test eax, eax
js 0x456f6c
xor edi, edi
test esi, esi
js 0x456dd3
mov ecx, eax
nop dword [eax]
test ecx, ecx
js 0x456f51
movzx edx, word [esi*2 + 0x514600]
cmp dx, 0xffff
je 0x456dc6
mov eax, dword [ebx + 0x1c]
movzx eax, byte [ecx + eax]
cmp ax, dx
jne 0x456f4c
dec edi
dec ecx
sub esi, 1
jns 0x456da0
mov eax, dword [ebp - 0x58c]
add eax, edi
mov edi, dword [ebp - 0x584]
inc edi
add edi, eax
mov dword [ebp - 0x584], edi
jmp 0x456f95
lea eax, [ebp - 0x54c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea ecx, [ebp - 0x54c]
mov esi, eax
mov edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 2]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x456e00
push dword [ebp - 0x578]
lea eax, [ebp - 0x54b]
add esi, eax
lea ecx, [ebx + 4]
push esi
lea eax, [ebp - 0x54c]
push eax
push dword [ebx + 8]
call fcn.00457750
push dword [ebp - 0x578]
lea eax, [ebp - 0x54c]
push esi
push eax
push dword [ebx + 8]
lea ecx, [ebx + 4]
call fcn.00457750
push dword [ebp - 0x578]
mov eax, edi
lea ecx, [ebx + 4]
sub eax, dword [ebp - 0x558]
mov dword [ebp - 0x588], eax
lea eax, [ebp - 0x584]
push eax
lea eax, [ebp - 0x588]
push eax
push dword [ebx + 8]
call fcn.00457750
push dword [ebp - 0x578]
lea eax, [ebp - 0x550]
push eax
lea eax, [ebp - 0x554]
push eax
push dword [ebx + 8]
lea ecx, [ebx + 4]
call fcn.00457750
mov esi, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea eax, [ebp - 0x590]
push eax
push 0x40
lea eax, [ebp - 0x144]
mov dword [ebp - 0x580], 0
push eax
push dword [ebp - 0x558]
push dword [ebp - 0x5a0]
call esi
test eax, eax
je 0x456f18
cmp dword [ebp - 0x590], 0x40
jne 0x456f18
lea eax, [ebp - 0x590]
push eax
push 0xf8
lea eax, [ebp - 0x104]
push eax
mov eax, dword [ebp - 0x108]
add eax, dword [ebp - 0x558]
push eax
push dword [ebp - 0x5a0]
call esi
test eax, eax
je 0x456f18
mov eax, dword [ebp - 0x580]
cmp dword [ebp - 0x590], 0xf8
cmove eax, dword [ebp - 0xfc]
mov dword [ebp - 0x580], eax
push dword [ebp - 0x578]
lea eax, [ebp - 0x57c]
push eax
lea eax, [ebp - 0x580]
push eax
push dword [ebx + 8]
lea ecx, [ebx + 4]
call fcn.00457750
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004cb63e
mov esp, ebp
pop ebp
ret 4
mov esi, 0x1f
mov eax, dword [ebp - 0x58c]
sub eax, 1
mov dword [ebp - 0x58c], eax
jns 0x456d95
mov edi, dword [ebp - 0x59c]
mov eax, dword [ebp - 0x588]
sub eax, edi
mov edi, dword [ebx]
mov dword [ebp - 0x588], eax
mov ecx, eax
je 0x456f8b
mov edx, dword [ebp - 0x584]
jmp 0x456d40
mov dword [ebp - 0x584], 0
mov eax, dword [ebx]
mov ecx, 0x400000
mov edx, dword [ebp - 0x598]
dec eax
and eax, edx
mov dword [ebp - 0x59c], 0x400000
mov dword [ebp - 0x58c], edx
xor esi, esi
mov edi, dword [ebx]
sub edi, eax
mov eax, dword [ebx + 0x20]
cmp ecx, edi
cmovb edi, ecx
lea ecx, [ebp - 0x578]
mov eax, dword [eax]
push ecx
push edi
push dword [ebx + 0x1c]
mov dword [ebp - 0x588], edi
push edx
push dword [eax + 0x19904]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x45708a
cmp dword [ebp - 0x578], edi
jne 0x45708a
xor ebx, ebx
test edi, edi
je 0x45704c
nop dword [eax]
xor edx, edx
cmp esi, 0x20
jae 0x457045
lea eax, [edx + ebx]
cmp eax, edi
jae 0x457047
movzx edi, word [esi*2 + 0x5145c0]
cmp di, 0xffff
je 0x457031
mov eax, dword [ebp - 0x594]
lea ecx, [edx + ebx]
mov eax, dword [eax + 0x1c]
movzx eax, byte [ecx + eax]
cmp ax, di
jne 0x45703b
mov edi, dword [ebp - 0x588]
inc esi
inc edx
jmp 0x457002
mov edi, dword [ebp - 0x588]
xor esi, esi
jmp 0x457047
je 0x457079
inc ebx
cmp ebx, edi
jb 0x457000
mov edx, dword [ebp - 0x59c]
xor eax, eax
add dword [ebp - 0x58c], edi
sub edx, edi
mov ebx, dword [ebp - 0x594]
mov ecx, edx
mov dword [ebp - 0x59c], edx
test edx, edx
je 0x45708a
mov edx, dword [ebp - 0x58c]
jmp 0x456fb7
mov eax, dword [ebp - 0x58c]
lea esi, [ebx + eax]
mov ebx, dword [ebp - 0x594]
jmp 0x45708c
xor esi, esi
cmp dword [ebp - 0x584], 0
je 0x4571e9
push dword [ebp - 0x578]
lea ecx, [ebx + 4]
push 0x514640
push 0x514600
push dword [ebx + 8]
call fcn.00457750
push dword [ebp - 0x578]
lea eax, [ebp - 0x56c]
mov byte [ebp - 0x56d], 0
push eax
lea eax, [ebp - 0x56d]
push eax
push dword [ebx + 8]
lea ecx, [ebx + 4]
call fcn.00457750
push dword [ebp - 0x578]
lea ecx, [ebx + 4]
push 0x514600
push 0x5145c0
push dword [ebx + 8]
call fcn.00457750
push dword [ebp - 0x578]
lea eax, [ebp - 0x56c]
mov byte [ebp - 0x56d], 0
push eax
lea eax, [ebp - 0x56d]
push eax
push dword [ebx + 8]
lea ecx, [ebx + 4]
call fcn.00457750
mov eax, dword [ebp - 0x598]
lea ecx, [ebx + 4]
sub eax, dword [ebp - 0x584]
cdq
mov dword [ebp - 0x57c], eax
lea eax, [ebp - 0x574]
mov dword [ebp - 0x578], edx
push dword [ebp - 0x578]
push eax
lea eax, [ebp - 0x57c]
push eax
push dword [ebx + 8]
call fcn.00457750
test esi, esi
je 0x45716f
sub esi, dword [ebp - 0x584]
lea eax, [esi + 0x20]
cdq
mov dword [ebp - 0x57c], eax
mov dword [ebp - 0x578], edx
jmp 0x45717a
xorps xmm0, xmm0
movlpd qword [ebp - 0x57c], xmm0
push dword [ebp - 0x578]
lea eax, [ebp - 0x574]
push eax
lea eax, [ebp - 0x57c]
push eax
push dword [ebx + 8]
lea ecx, [ebx + 4]
call fcn.00457750
lea eax, [ebp - 0x590]
mov dword [ebp - 0x580], 0
push eax
push 4
lea eax, [ebp - 0x580]
push eax
mov eax, dword [ebp - 0x584]
add eax, 0x20
push eax
push dword [ebp - 0x5a0]
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x4571da
cmp dword [ebp - 0x590], 4
je 0x456f18
mov dword [ebp - 0x580], 0
jmp 0x456f18
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004cb63e
mov esp, ebp
pop ebp
ret 4