Function at 0x1002f380
Capabilities:
Enumerate process modules
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4f0
mov eax, dword [ecx]
mov edi, edx
cmp byte [eax], 0
jne 0x1002f3a1
mov edx, dword [ecx + 4]
cmp dword [edx], 0x64
ja 0x1002f7d7
mov ebx, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [ebp - 0x88], ecx
mov ecx, dword [ecx + 0x10]
lea edx, [ebp - 0xd]
cmp dword [0x1036e084], 0
mov byte [ebp - 0xd], 0
mov byte [ebp - 0xe], 0
mov dword [ebp - 0xd4], edx
mov dword [ebp - 0xd0], eax
lea eax, [ebp - 0xe]
mov dword [ebp - 0xcc], ebx
mov dword [ebp - 0xc8], eax
mov dword [ebp - 0xc4], esi
mov dword [ebp - 0xc0], ecx
mov dword [ebp - 0x80], ecx
mov ecx, dword [edi + 8]
lea eax, [ebp - 0xd4]
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0xbc], edi
mov dword [ebp - 0xa8], eax
mov dword [ebp - 0xa4], 0x10367590
jne 0x1002f7be
mov dword [ebp - 0x7c], ecx
mov eax, dword [0x1036e078]
test eax, eax
jne 0x1002f438
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x1002f861
mov dword [0x1036e078], eax
push 0x220
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x1002f861
mov dword [ebp - 0x94], 4
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 4
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x28], 0
push 0
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
je 0x1002f769
mov esi, eax
mov dword [ebp - 0x78], edi
lea eax, [ebp - 0x4f8]
push 0x424
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x4fc], 0x428
lea eax, [ebp - 0x4fc]
push eax
push esi
call sub.KERNEL32.dll_Module32FirstW
cmp eax, 1
jne 0x1002f760
mov edi, 4
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x24], esi
nop dword [eax + eax]
mov eax, 0x208
xor esi, esi
nop word [eax + eax]
cmp word [ebp + esi*2 - 0x2dc], 0
je 0x1002f506
inc esi
add eax, 0xfffffffe
jne 0x1002f4f0
mov esi, 0x104
lea edx, [ebp - 0x2dc]
lea ecx, [ebp - 0x48]
push esi
call fcn.10012820
add esp, 4
mov esi, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x40]
mov edx, esi
lea ecx, [ebp - 0xb8]
push ebx
call fcn.10013890
add esp, 4
cmp dword [ebp - 0xb8], 0
je 0x1002f5e3
lea ecx, [ebp - 0xb4]
mov eax, dword [ecx + 8]
movsd xmm0, qword [ecx]
mov dword [ebp - 0x98], eax
movsd qword [ebp - 0xa0], xmm0
cmp eax, 0x40
mov ecx, dword [ebp - 0x9c]
mov dword [ebp - 0x14], ecx
jb 0x1002f5d0
cmp dword [ebp - 0x14], 0
je 0x1002f5d0
mov ecx, dword [ebp - 0x14]
movzx ecx, word [ecx]
cmp ecx, 0x5a4d
jne 0x1002f5d0
mov ecx, dword [ebp - 0x14]
mov edx, eax
mov ecx, dword [ecx + 0x3c]
sub edx, ecx
jb 0x1002f5d0
cmp edx, 0x78
jb 0x1002f5d0
mov edx, dword [ebp - 0x14]
cmp dword [edx + ecx], 0x4550
jne 0x1002f5d0
mov edx, dword [ebp - 0x14]
movzx edx, word [edx + ecx + 0x18]
cmp edx, 0x10b
jne 0x1002f5d0
mov edx, dword [ebp - 0x14]
movzx edx, word [edx + ecx + 0x14]
cmp dx, 0x60
jb 0x1002f5d0
movzx edx, dx
add edx, 0xffffffa0
mov dword [ebp - 0x1c], edx
mov edx, 0
adc edx, 0xffffffff
cmp ecx, 0xffffff87
jbe 0x1002f615
nop word [eax + eax]
push dword [ebp - 0x14]
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [ebp - 0xa0]
call sub.KERNEL32.dll_CloseHandle
cmp dword [ebp - 0x48], 0
je 0x1002f5f7
push esi
push 0
push dword [0x1036e078]
call sub.KERNEL32.dll_HeapFree
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x4fc]
push eax
push esi
call sub.KERNEL32.dll_Module32NextW
cmp eax, 1
je 0x1002f4e0
jmp 0x1002f760
test edx, edx
jne 0x1002f5d0
lea edx, [ecx + 0x78]
sub eax, edx
jb 0x1002f5d0
cmp eax, dword [ebp - 0x1c]
jb 0x1002f5d0
mov edx, dword [ebp - 0x14]
mov eax, 8
mul dword [edx + ecx + 0x74]
jo 0x1002f5d0
cmp eax, dword [ebp - 0x1c]
ja 0x1002f5d0
mov eax, dword [ebp - 0x14]
movsd xmm0, qword [ebp - 0x48]
movsd xmm1, qword [ebp - 0x40]
mov eax, dword [eax + ecx + 0x34]
movsd qword [ebp - 0xb0], xmm1
movsd qword [ebp - 0xb8], xmm0
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x4e8]
mov dword [ebp - 0x74], eax
mov ecx, 8
mov edx, 4
call fcn.10002820
test eax, eax
je 0x1002f872
mov edx, dword [ebp - 0x4e4]
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x70], eax
mov dword [eax], ecx
mov dword [eax + 4], edx
lea edx, [ebp - 0x3b]
movzx eax, word [edx]
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x6c], eax
movzx eax, byte [edx + 2]
mov byte [ebp - 0x1e], al
movzx eax, byte [ebp - 0x3c]
mov byte [ebp - 0x15], al
push dword [ebp - 0x14]
call sub.KERNEL32.dll_UnmapViewOfFile
push dword [ebp - 0xa0]
call sub.KERNEL32.dll_CloseHandle
movzx eax, byte [ebp - 0x15]
cmp al, 2
je 0x1002f5f7
mov ecx, dword [ebp - 0x6c]
mov edx, dword [ebp - 0x74]
mov dword [ebp - 0x68], ecx
mov dword [ebp - 0x64], esi
mov dword [ebp - 0x60], ebx
mov byte [ebp - 0x5c], al
movzx eax, word [ebp - 0x20]
lea ecx, [ebp - 0x5b]
sub edx, dword [ebp - 0x1c]
mov word [ecx], ax
movzx eax, byte [ebp - 0x1e]
mov byte [ecx + 2], al
mov dword [ebp - 0x58], edx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x54], 1
cmp edx, dword [ebp - 0x30]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], 1
jne 0x1002f71f
lea ecx, [ebp - 0x30]
call fcn.10014040
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x28]
jmp 0x1002f721
mov ecx, edx
movsd xmm0, qword [ebp - 0x50]
mov eax, ecx
mov esi, dword [ebp - 0x24]
inc ecx
shl eax, 5
mov dword [ebp - 0x34], ecx
movsd qword [edi + eax + 0x18], xmm0
movsd xmm0, qword [ebp - 0x58]
movsd qword [edi + eax + 0x10], xmm0
movsd xmm0, qword [ebp - 0x68]
movsd xmm1, qword [ebp - 0x60]
movsd qword [edi + eax + 8], xmm1
movsd qword [edi + eax], xmm0
mov dword [ebp - 0x28], ecx
jmp 0x1002f5fa
push esi
call sub.KERNEL32.dll_CloseHandle
mov edi, dword [ebp - 0x78]
mov eax, dword [ebp - 0x28]
movsd xmm1, qword [ebp - 0x94]
mov ecx, dword [ebp - 0x8c]
movsd xmm0, qword [ebp - 0x30]
mov dword [ebp - 0x4f4], eax
mov dword [ebp - 0x4e8], ecx
movsd qword [ebp - 0x4f0], xmm1
movsd qword [0x1036e080], xmm0
mov ecx, dword [ebp - 0x7c]
movsd xmm0, qword [ebp - 0x4f4]
movsd xmm1, qword [ebp - 0x4ec]
movsd qword [0x1036e088], xmm0
movsd qword [0x1036e090], xmm1
xor eax, eax
sub ecx, 1
cmovb ecx, eax
lea edx, [ebp - 0xa8]
call fcn.10014230
cmp byte [ebp - 0xe], 0
je 0x1002f7db
xor ecx, ecx
jmp 0x1002f854
cmp byte [ebp - 0xd], 0
jne 0x1002f840
mov eax, dword [ebp - 0x84]
cmp byte [eax], 0
je 0x1002f840
mov eax, dword [ebp - 0x80]
mov edx, dword [edi + 8]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x4fc], 3
mov dword [ebp - 0x64], eax
sub esp, 0x20
lea eax, [ebp - 0x4fc]
lea ecx, [ebp - 0x68]
mov dword [esp + 0x18], 0
mov dword [esp + 0x10], 0
mov dword [esp + 4], 2
mov dword [esp], eax
call fcn.1002d510
add esp, 0x20
mov ecx, dword [ebp - 0x38]
mov byte [ecx], al
mov eax, dword [ebp - 0x64]
inc dword [eax + 8]
mov eax, dword [ebp - 0x88]
mov ecx, dword [ebp - 0x38]
mov eax, dword [eax + 4]
inc dword [eax]
cmp byte [ecx], 0
sete cl
mov eax, ecx
add esp, 0x4f0
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, 0x220
mov edx, 8
call fcn.10002c00
ud2
mov ecx, 8
mov edx, 4
call fcn.10002c00
ud2