Function at 0x4653a0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5a8
mov eax, dword [0x566090]
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 0x465430
test eax, eax
je 0x465430
lea ecx, [ebp - 0x56c]
mov dword [ebp - 0x56c], 0x428
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Module32FirstW]
test eax, eax
je 0x465430
mov esi, dword [sym.imp.KERNEL32.dll_Module32NextW]
mov ecx, dword [ebp - 0x558]
cmp edi, ecx
jb 0x465420
mov eax, dword [ebp - 0x554]
add eax, ecx
cmp edi, eax
jb 0x4654f9
lea eax, [ebp - 0x56c]
push eax
push dword [ebx + 0x24]
call esi
test eax, eax
jne 0x465406
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 0x46569b
cmp dword [ebp - 0x5a4], edi
jne 0x46569b
lea eax, [edi - 1]
mov dword [ebp - 0x58c], eax
test eax, eax
js 0x46567c
xor edi, edi
test esi, esi
js 0x4654e3
mov ecx, eax
nop dword [eax]
test ecx, ecx
js 0x465661
movzx edx, word [esi*2 + 0x545ea0]
cmp dx, 0xffff
je 0x4654d6
mov eax, dword [ebx + 0x1c]
movzx eax, byte [ecx + eax]
cmp ax, dx
jne 0x46565c
dec edi
dec ecx
sub esi, 1
jns 0x4654b0
mov eax, dword [ebp - 0x58c]
add eax, edi
mov edi, dword [ebp - 0x584]
inc edi
add edi, eax
mov dword [ebp - 0x584], edi
jmp 0x4656a5
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 0x465510
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.00466280
push dword [ebp - 0x578]
lea eax, [ebp - 0x54c]
push esi
push eax
push dword [ebx + 8]
lea ecx, [ebx + 4]
call fcn.00466280
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.00466280
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.00466280
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 0x465628
cmp dword [ebp - 0x590], 0x40
jne 0x465628
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 0x465628
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.00466280
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004fc7af
mov esp, ebp
pop ebp
ret 4
mov esi, 0x1f
mov eax, dword [ebp - 0x58c]
sub eax, 1
mov dword [ebp - 0x58c], eax
jns 0x4654a5
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 0x46569b
mov edx, dword [ebp - 0x584]
jmp 0x465450
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 0x46579a
cmp dword [ebp - 0x578], edi
jne 0x46579a
xor ebx, ebx
test edi, edi
je 0x46575c
nop dword [eax]
xor edx, edx
cmp esi, 0x20
jae 0x465755
lea eax, [edx + ebx]
cmp eax, edi
jae 0x465757
movzx edi, word [esi*2 + str._r_nXMDend]
cmp di, 0xffff
je 0x465741
mov eax, dword [ebp - 0x594]
lea ecx, [edx + ebx]
mov eax, dword [eax + 0x1c]
movzx eax, byte [ecx + eax]
cmp ax, di
jne 0x46574b
mov edi, dword [ebp - 0x588]
inc esi
inc edx
jmp 0x465712
mov edi, dword [ebp - 0x588]
xor esi, esi
jmp 0x465757
je 0x465789
inc ebx
cmp ebx, edi
jb 0x465710
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 0x46579a
mov edx, dword [ebp - 0x58c]
jmp 0x4656c7
mov eax, dword [ebp - 0x58c]
lea esi, [ebx + eax]
mov ebx, dword [ebp - 0x594]
jmp 0x46579c
xor esi, esi
cmp dword [ebp - 0x584], 0
je 0x4658f9
push dword [ebp - 0x578]
lea ecx, [ebx + 4]
push 0x545ee0
push 0x545ea0
push dword [ebx + 8]
call fcn.00466280
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.00466280
push dword [ebp - 0x578]
lea ecx, [ebx + 4]
push 0x545ea0
push str._r_nXMDend
push dword [ebx + 8]
call fcn.00466280
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.00466280
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.00466280
test esi, esi
je 0x46587f
sub esi, dword [ebp - 0x584]
lea eax, [esi + 0x20]
cdq
mov dword [ebp - 0x57c], eax
mov dword [ebp - 0x578], edx
jmp 0x46588a
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.00466280
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 0x4658ea
cmp dword [ebp - 0x590], 4
je 0x465628
mov dword [ebp - 0x580], 0
jmp 0x465628
mov ecx, dword [ebp - 8]
xor al, al
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004fc7af
mov esp, ebp
pop ebp
ret 4