Function at 0x4af980
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5e4a9c
mov eax, dword fs:[0]
push eax
mov eax, 0x1838
call fcn.0054c3e0
mov eax, dword [0x661204]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x1834], ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1844]
push eax
push 0x1000
lea eax, [ebp - 0x17e0]
mov dword [ebp - 0x1838], ecx
push eax
call sub.PSAPI.DLL_EnumProcesses
mov edx, dword [ebp - 0x1844]
xor ecx, ecx
shr edx, 2
xor eax, eax
xor edi, edi
mov dword [ebp - 0x1840], edx
mov dword [ebp - 0x182c], ecx
mov dword [ebp - 0x1830], ecx
mov dword [ebp - 0x183c], eax
test edx, edx
je 0x4afdaf
nop dword [eax + eax]
push dword [ebp + eax*4 - 0x17e0]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4afd7e
push 0x7d0
lea eax, [ebp - 0x7e0]
push 0
push eax
call fcn.005b9c20
add esp, 0xc
lea eax, [ebp - 0x7e0]
xor esi, esi
push 0x7d0
push eax
push esi
push ebx
call sub.PSAPI.DLL_GetModuleFileNameExW
lea ecx, [ebp - 0x7e0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4afa62
sub ecx, edx
sar ecx, 1
jne 0x4afabc
test edi, edi
jne 0x4afa88
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
je 0x4afabc
mov eax, dword [ebp - 0x1830]
test eax, eax
jne 0x4afaa8
push str.GetProcessImageFileNameW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1830], eax
test eax, eax
je 0x4afabc
push 0x104
lea ecx, [ebp - 0x7e0]
push ecx
push ebx
call eax
mov esi, 1
lea ecx, [ebp - 0x7e0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4afac5
sub ecx, edx
sar ecx, 1
test ecx, ecx
jle 0x4afd7e
lea eax, [ebp - 0x7e0]
push eax
call fcn.005c2181
mov ecx, dword [ebp - 0x1834]
lea eax, [ebp - 0x7e0]
add esp, 4
push eax
call fcn.004af8c0
test al, al
je 0x4afd7e
xor eax, eax
mov dword [ebp - 0x182c], 1
mov dword [ebp - 0x17fc], 7
mov dword [ebp - 0x1800], 0
mov word [ebp - 0x1810], ax
cmp word [ebp - 0x7e0], ax
jne 0x4afb39
xor ecx, ecx
jmp 0x4afb51
lea ecx, [ebp - 0x7e0]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4afb42
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x7e0]
push eax
lea ecx, [ebp - 0x1810]
call fcn.0049ee20
xor eax, eax
mov dword [ebp - 4], 0
push eax
push 0x5ea980
lea ecx, [ebp - 0x17f8]
mov dword [ebp - 0x17e4], 7
mov dword [ebp - 0x17e8], 0
mov word [ebp - 0x17f8], ax
call fcn.0049ee20
mov byte [ebp - 4], 1
test esi, esi
je 0x4afcb4
mov ecx, dword [ebp - 0x1834]
lea eax, [ebp - 0x7e0]
push eax
lea eax, [ebp - 0x1828]
push eax
call fcn.004b0510
mov esi, eax
lea eax, [ebp - 0x17f8]
cmp eax, esi
je 0x4afc11
mov eax, dword [ebp - 0x17e4]
cmp eax, 8
jb 0x4afbe8
inc eax
lea ecx, [ebp - 0x17f8]
push eax
push dword [ebp - 0x17f8]
call fcn.0049ef70
xor eax, eax
mov dword [ebp - 0x17e4], 7
push esi
lea ecx, [ebp - 0x17f8]
mov dword [ebp - 0x17e8], 0
mov word [ebp - 0x17f8], ax
call fcn.0049e3e0
mov eax, dword [ebp - 0x1814]
mov byte [ebp - 4], 1
cmp eax, 8
jb 0x4afc33
inc eax
lea ecx, [ebp - 0x1828]
push eax
push dword [ebp - 0x1828]
call fcn.0049ef70
cmp dword [ebp - 0x17e4], 8
lea eax, [ebp - 0x17f8]
push 0
cmovae eax, dword [ebp - 0x17f8]
push 0x5ea980
push dword [ebp - 0x17e8]
push eax
call fcn.0049e760
add esp, 0x10
test eax, eax
jne 0x4afcca
cmp word [ebp - 0x7e0], ax
jne 0x4afc81
xor ecx, ecx
lea eax, [ebp - 0x7e0]
push ecx
push eax
lea ecx, [ebp - 0x17f8]
call fcn.0049ee20
jmp 0x4afcca
lea ecx, [ebp - 0x7e0]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4afc90
sub ecx, edx
lea eax, [ebp - 0x7e0]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x17f8]
call fcn.0049ee20
jmp 0x4afcca
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x1810]
push eax
lea ecx, [ebp - 0x17f8]
call fcn.0049ed00
mov eax, dword [ebp - 0x1838]
lea ecx, [ebp - 0x17f8]
push dword [ebp - 0x1840]
push ecx
mov esi, dword [eax + 4]
push esi
push dword [eax]
call fcn.004af440
add esp, 0x10
cmp eax, esi
jne 0x4afd01
mov ecx, dword [ebp - 0x1838]
lea eax, [ebp - 0x17f8]
push eax
call fcn.004a2eb0
mov eax, dword [ebp - 0x17e4]
cmp eax, 8
jb 0x4afd1f
inc eax
lea ecx, [ebp - 0x17f8]
push eax
push dword [ebp - 0x17f8]
call fcn.0049ef70
xor eax, eax
mov dword [ebp - 0x17e4], 7
mov word [ebp - 0x17f8], ax
mov eax, dword [ebp - 0x17fc]
mov dword [ebp - 0x17e8], 0
mov dword [ebp - 4], 0xffffffff
cmp eax, 8
jb 0x4afd61
inc eax
lea ecx, [ebp - 0x1810]
push eax
push dword [ebp - 0x1810]
call fcn.0049ef70
xor eax, eax
mov dword [ebp - 0x17fc], 7
mov dword [ebp - 0x1800], 0
mov word [ebp - 0x1810], ax
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x183c]
inc eax
mov dword [ebp - 0x183c], eax
cmp eax, dword [ebp - 0x1840]
jb 0x4afa10
test edi, edi
je 0x4afda9
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x182c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0054c3c9
mov esp, ebp
pop ebp
ret 4