Function at 0x10004dd0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x100190b4]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov dword [ebp - 0x444], edx
lea edi, [ecx + 1]
mov dword [ebp - 0x43c], 0
xor esi, esi
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10004e00
sub ecx, edi
lea eax, [ecx - 1]
mov dword [ebp - 0x440], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
lea eax, [ebp - 0x10c]
push 0x105
push 0
push eax
mov dword [ebp - 0x448], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x464]
xor ebx, ebx
mov dword [ebp - 0x438], ebx
push 0x1c
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
jne 0x10005043
nop dword [eax + eax]
cmp dword [ebp - 0x454], 0x1000
jne 0x1000505c
cmp dword [ebp - 0x450], 1
je 0x1000505c
push 0x105
lea eax, [ebp - 0x10c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x210]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edi, dword [ebp - 0x464]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0xf
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
mov dword [ebp - 0x434], 0x224
lea eax, [ebp - 0x434]
mov dword [ebp - 0x430], 1
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x10004f75
mov ecx, dword [ebp - 0x420]
cmp edi, ecx
jb 0x10004f17
mov eax, dword [ebp - 0x41c]
add eax, ecx
cmp edi, eax
ja 0x10004f17
xor ecx, ecx
mov al, byte [ebp + ecx - 0x314]
lea ecx, [ecx + 1]
mov byte [ebp + ecx - 0x10d], al
test al, al
jne 0x10004f00
jmp 0x10004f75
lea eax, [ebp - 0x434]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
je 0x10004f75
nop dword [eax]
mov ecx, dword [ebp - 0x420]
cmp edi, ecx
jb 0x10004f46
mov eax, dword [ebp - 0x41c]
add eax, ecx
cmp edi, eax
jbe 0x10004f5a
lea eax, [ebp - 0x434]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x10004f30
jmp 0x10004f75
xor eax, eax
nop dword [eax]
mov cl, byte [ebp + eax - 0x314]
lea eax, [eax + 1]
mov byte [ebp + eax - 0x10d], cl
test cl, cl
jne 0x10004f60
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathStripPathA]
lea eax, [ebp - 0x10c]
push eax
call ebx
lea eax, [ebp - 0x210]
push eax
call ebx
mov ecx, dword [ebp - 0x43c]
lea eax, [ebp - 0x210]
test ecx, ecx
cmovne eax, ecx
mov dword [ebp - 0x43c], eax
mov ecx, eax
lea eax, [ebp - 0x10c]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x10004fd3
test dl, dl
je 0x10004fcf
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x10004fd3
add eax, 2
add ecx, 2
test dl, dl
jne 0x10004fb3
xor eax, eax
jmp 0x10004fd8
sbb eax, eax
or eax, 1
test eax, eax
jne 0x10005056
mov ecx, dword [ebp - 0x464]
mov edi, dword [ebp - 0x458]
lea edx, [ecx + edi]
cmp ecx, edx
jae 0x10005016
mov ebx, dword [ebp - 0x444]
mov al, byte [ecx]
cmp al, byte [esi + ebx]
mov eax, dword [ebp + 8]
je 0x10005009
cmp byte [esi + eax], 0x3f
je 0x10005009
xor esi, esi
jmp 0x10005011
cmp byte [esi + eax + 1], 0
je 0x10005064
inc esi
inc ecx
cmp ecx, edx
jb 0x10004ff5
mov ebx, dword [ebp - 0x438]
push 0x1c
lea eax, [ebp - 0x464]
add ebx, edi
push eax
push ebx
push dword [ebp - 0x448]
mov dword [ebp - 0x438], ebx
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
cmp eax, 0x1c
je 0x10004e60
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000ca50
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 0x438]
mov edi, dword [ebp - 0x458]
jmp 0x1000501c
sub ecx, dword [ebp - 0x440]
mov eax, ecx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1000ca50
mov esp, ebp
pop ebp
ret