Function at 0x10009310
Capabilities:
Enumerate process modules
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10045c00
push 0x10022208
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x274
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor ebx, ebx
mov dword [ebp - 0x44], ebx
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov esi, dword [ebp - 0x70]
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 0x28], eax
sub eax, esi
shr eax, 0x10
add eax, eax
add eax, eax
mov dword [ebp - 0x48], eax
push 4
push 0x1000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
mov edi, esi
mov dword [ebp - 0x24], ebx
cmp esi, dword [ebp - 0x28]
jae 0x10009460
nop
push 0x208
push ebx
lea ecx, [ebp - 0x284]
push ecx
call fcn.1001cc90
add esp, 0xc
xor eax, eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x54], ebx
lea edx, [ebp - 0x54]
push edx
push 0x1c
lea eax, [ebp - 0x44]
push eax
push ebx
push edi
mov ecx, dword [ebp + 8]
push ecx
call dword [0x100517e8]
cmp eax, ebx
jl 0x10009446
cmp dword [ebp - 0x2c], 0x1000000
jne 0x10009446
push 0x208
lea esi, [ebp - 0x284]
mov ebx, dword [ebp + 8]
call fcn.10009240
cmp eax, 0x208
ja 0x10009444
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10009421
sub eax, edx
je 0x10009444
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x1c]
je 0x10009444
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x24]
mov dword [edx + eax*4], ecx
inc eax
mov dword [ebp - 0x24], eax
xor ebx, ebx
mov eax, dword [ebp - 0x38]
cmp eax, 0x1000
ja 0x10009455
mov eax, 0x1000
add edi, eax
cmp edi, dword [ebp - 0x28]
jb 0x100093b0
mov ecx, dword [ebp - 0x24]
add ecx, ecx
add ecx, ecx
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x10009473
mov dword [eax], ecx
mov dword [ebp - 4], ebx
mov dword [ebp + 0x14], ebx
lea eax, [ebp - 0x48]
push eax
push 4
lea ecx, [ebp + 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call sub.PSAPI.DLL_EnumProcessModules
xor eax, eax
mov dword [ebp - 0x50], eax
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x24]
mov edi, dword [ebp - 0x20]
cmp eax, ecx
jae 0x100094bb
cmp edx, dword [edi + eax*4]
je 0x100094a9
inc eax
mov dword [ebp - 0x50], eax
jmp 0x10009494
cmp eax, ecx
jae 0x100094bb
cmp eax, ebx
je 0x100094bb
mov ecx, dword [edi]
mov dword [edi + eax*4], ecx
mov edx, dword [ebp + 0x14]
mov dword [edi], edx
mov esi, 1
mov dword [ebp - 0x4c], esi
mov eax, dword [ebp + 0x10]
cmp dword [ebp - 0x1c], eax
jbe 0x100094ce
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
push edi
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.10019650
add esp, 0xc
mov dword [ebp - 4], 0xffffffff
jmp 0x10009502
push 0x8000
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10