Function at 0x411480
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x62c
mov eax, dword [0x620514]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x208]
mov dword [ebp - 0x61c], ecx
push eax
push 0
push 0
mov dword [ebp - 0x208], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, dword [sym.imp.PSAPI.DLL_EnumProcessModules]
push eax
call edi
mov esi, dword [ebp - 0x208]
test esi, esi
je 0x411544
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
mov eax, 0x62623c
mov dword [ebp - 0x620], ebx
test ebx, ebx
je 0x4114ef
lock xadd dword [eax], esi
mov eax, dword [ebp - 0x208]
mov ecx, eax
shr ecx, 2
mov dword [ebp - 0x624], ecx
lea ecx, [ebp - 0x208]
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
jne 0x411557
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapSize]
push ebx
push 0
mov esi, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x411544
neg esi
mov eax, 0x62623c
lock xadd dword [eax], esi
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055e833
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x61c]
mov ebx, dword [esi]
lea ecx, [esi + 8]
mov dword [ebp - 0x618], ecx
mov edi, dword [ebx]
cmp edi, ebx
je 0x4115e8
jmp 0x411576
mov ecx, dword [ebp - 0x618]
mov esi, dword [ecx]
lea eax, [edi + 0x10]
push eax
call fcn.0041d6e0
mov ecx, dword [ebp - 0x618]
push eax
add eax, 0x10
push eax
push esi
lea eax, [ebp - 0x628]
push eax
call fcn.0041d760
mov eax, dword [edi + 8]
cmp byte [eax + 0xd], 0
je 0x4115c4
mov eax, dword [edi + 4]
cmp byte [eax + 0xd], 0
jne 0x4115c0
nop dword [eax + eax]
cmp edi, dword [eax + 8]
jne 0x4115c0
mov edi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x4115b0
mov edi, eax
jmp 0x4115dc
mov edi, eax
mov ecx, dword [edi]
cmp byte [ecx + 0xd], 0
jne 0x4115dc
nop
mov eax, dword [ecx]
mov edi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x4115d0
cmp edi, ebx
jne 0x411570
mov esi, dword [ebp - 0x61c]
mov ebx, dword [esi]
push dword [ebx + 4]
mov ecx, esi
call fcn.00416a30
mov eax, dword [esi]
mov dword [eax + 4], ebx
mov eax, dword [esi]
mov dword [eax], ebx
mov eax, dword [esi]
mov dword [eax + 8], ebx
mov dword [esi + 4], 0
xor esi, esi
cmp dword [ebp - 0x624], esi
jbe 0x41172d
mov edi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov ebx, dword [sym.imp.PSAPI.DLL_GetModuleInformation]
push 0x404
lea eax, [ebp - 0x60c]
mov dword [ebp - 0x614], 0
push 0
push eax
mov dword [ebp - 0x610], 0
call sub.VCRUNTIME140.dll_memset
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x18
lea eax, [ebp - 0x204]
push 0x200
push eax
mov eax, dword [ebp - 0x620]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
lea eax, [ebp - 0x204]
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__strlwr]
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x408]
push 0x100
push eax
call edi
lea eax, [ebp - 0x204]
push 0x5c
push eax
call dword [sym.imp.VCRUNTIME140.dll_strrchr]
add esp, 0x18
test eax, eax
je 0x4116bb
inc eax
jmp 0x4116c1
lea eax, [ebp - 0x204]
push eax
lea eax, [ebp - 0x608]
push 0x100
push eax
call edi
add esp, 0xc
lea eax, [ebp - 0x614]
push 0xc
push eax
mov eax, dword [ebp - 0x620]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebx
mov ecx, dword [ebp - 0x618]
lea eax, [ebp - 0x614]
push eax
call fcn.004153e0
push dword [ebp - 0x628]
lea eax, [ebp - 0x614]
push eax
push ecx
mov ecx, dword [ebp - 0x61c]
lea eax, [ebp - 0x62c]
push eax
call fcn.0041c2d0
inc esi
cmp esi, dword [ebp - 0x624]
jb 0x411621
mov ebx, dword [ebp - 0x620]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push ebx
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapSize]
push ebx
push 0
mov esi, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
test eax, eax
je 0x411762
neg esi
mov eax, 0x62623c
lock xadd dword [eax], esi
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0055e833
mov esp, ebp
pop ebp
ret