Function at 0x101ad100
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x3c
mov esi, dword [0x1035648c]
mov eax, dword [esi]
test eax, eax
jne 0x101ad124
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ad336
mov dword [esi], eax
push 0x4000
push 8
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ad336
mov ebx, eax
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x18]
push eax
push 0x4000
push ebx
mov dword [ebp - 0x14], ebx
call sub.psapi.dll_EnumProcesses
test eax, eax
je 0x101ad1c6
mov edi, dword [0x103564a0]
movzx eax, byte [edi]
mov eax, dword [esi]
test eax, eax
jne 0x101ad176
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ad347
mov dword [esi], eax
push 0x4000
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ad347
push 0x4000
push ebx
mov dword [ebp - 0x10], eax
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov esi, dword [ebp - 0x18]
mov ebx, esi
shr ebx, 2
cmp esi, 0x4004
jae 0x101ad358
cmp esi, 4
jae 0x101ad27d
mov edi, 4
xor esi, esi
jmp 0x101ad2b6
call sub.KERNEL32.dll_GetLastError
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x34], 0x10352574
mov dword [ebp - 0x30], 2
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x38], 0x1002d590
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
lea esi, [ebp - 0x34]
lea eax, [ebp - 0x48]
push esi
push eax
call fcn.1001ac00
add esp, 8
mov eax, dword [ebp - 0x40]
movsd xmm0, qword [ebp - 0x48]
mov edi, dword [0x103564a0]
mov dword [ebp - 0x2c], eax
movsd qword [ebp - 0x34], xmm0
movzx eax, byte [edi]
mov eax, dword [0x1035648c]
mov eax, dword [eax]
test eax, eax
jne 0x101ad246
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ad36d
mov ecx, dword [0x1035648c]
mov dword [ecx], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ad36d
mov ebx, eax
mov eax, dword [ebp - 0x2c]
mov esi, dword [0x1035648c]
mov dword [ebx + 8], eax
movsd xmm0, qword [ebp - 0x34]
movsd qword [ebx], xmm0
movzx eax, byte [edi]
mov eax, dword [esi]
test eax, eax
je 0x101ad2e3
mov edi, dword [ebp + 8]
jmp 0x101ad2f5
movzx eax, byte [edi]
mov eax, dword [0x1035648c]
and esi, 0xfffffffc
mov eax, dword [eax]
test eax, eax
jne 0x101ad2a3
call sub.KERNEL32.dll_GetProcessHeap
test eax, eax
je 0x101ad389
mov ecx, dword [0x1035648c]
mov dword [ecx], eax
push esi
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ad389
mov edi, eax
push esi
mov esi, dword [ebp - 0x10]
push esi
push edi
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov edi, eax
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
push esi
push 0
mov esi, dword [0x1035648c]
push dword [esi]
call sub.KERNEL32.dll_HeapFree
jmp 0x101ad320
call sub.KERNEL32.dll_GetProcessHeap
mov edi, dword [ebp + 8]
test eax, eax
je 0x101ad37b
mov dword [esi], eax
push 0xc
push 0
push eax
call sub.KERNEL32.dll_HeapAlloc
test eax, eax
je 0x101ad37b
mov dword [eax], ebx
mov dword [eax + 4], 0x103507b8
mov byte [eax + 8], 0x27
mov dword [edi + 8], eax
mov dword [edi + 4], 3
mov dword [edi], 0
push dword [ebp - 0x14]
push 0
push dword [esi]
call sub.KERNEL32.dll_HeapFree
mov eax, edi
add esp, 0x3c
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x4000
push 4
call fcn.1001a7e0
add esp, 8
ud2
push 0x4000
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101ad394
push 0x103525b0
push 0x1000
push ebx
call fcn.1002a190
add esp, 0xc
jmp 0x101ad394
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101ad394
push 0xc
push 4
call fcn.1001a7e0
add esp, 8
jmp 0x101ad394
push esi
push 4
call fcn.1001a7e0
add esp, 8
ud2