Function at 0x10004630
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
push 0xffffffffffffffff
push 0x10018576
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x10020284]
xor eax, esp
mov dword [esp + 0x498], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x10020284]
xor eax, esp
push eax
lea eax, [esp + 0x4b0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x4c0]
xor edi, edi
push 0x206
lea ecx, [esp + 0x2aa]
push edi
push ecx
mov dword [esp + 0x30], eax
mov word [esp + 0x2b0], di
call fcn.10009ae0
add esp, 0xc
push edi
push 2
mov byte [esp + 0x23], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
mov dword [esp + 0x34], ebx
je 0x100046cc
lea edx, [esp + 0x74]
push edx
push ebx
mov dword [esp + 0x7c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x100046d3
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
jmp 0x100047d4
call fcn.100051b0
push edi
mov ebp, 7
push 0x1001ad58
lea esi, [esp + 0x60]
mov dword [esp + 0x28], eax
mov dword [esp + 0x78], ebp
mov dword [esp + 0x74], edi
mov word [esp + 0x64], di
call fcn.10003b10
mov dword [esp + 0x4b8], edi
push edi
push 0x1001ad58
lea esi, [esp + 0x44]
mov dword [esp + 0x5c], ebp
mov dword [esp + 0x58], edi
mov word [esp + 0x48], di
call fcn.10003b10
mov byte [esp + 0x4b8], 1
mov dword [esp + 0x1c], edi
lea esp, [esp]
mov ecx, dword [esp + 0x4c4]
lea eax, [esp + 0x98]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10004766
cmp dx, di
je 0x10004762
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10004766
add eax, 4
add ecx, 4
cmp dx, di
jne 0x10004740
xor eax, eax
jmp 0x1000476b
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, edi
je 0x100047fe
lea eax, [esp + 0x74]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10004730
lea ebp, [eax + 8]
mov ecx, dword [esp + 0x20]
push ecx
call fcn.10005330
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x54], ebp
jb 0x100047ac
mov edx, dword [esp + 0x40]
push edx
call fcn.10005c0d
add esp, 4
cmp dword [esp + 0x70], ebp
mov dword [esp + 0x54], 7
mov dword [esp + 0x50], edi
mov word [esp + 0x40], di
jb 0x100047d0
mov eax, dword [esp + 0x5c]
push eax
call fcn.10005c0d
add esp, 4
mov al, byte [esp + 0x1b]
mov ecx, dword [esp + 0x4b0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x498]
xor ecx, esp
call fcn.10005bfe
add esp, 0x4a8
ret 8
lea eax, [esp + 0x98]
lea edx, [eax + 2]
jmp 0x10004810
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x10004810
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x9c]
push ecx
lea esi, [esp + 0x60]
call fcn.10003b10
mov eax, dword [esp + 0x7c]
mov edx, dword [esp + 0x88]
mov ecx, dword [esp + 0x90]
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, dword [esp + 0x8c]
push eax
push 0
push 0x1f0fff
mov edi, eax
mov dword [esp + 0x34], edx
mov dword [esp + 0x3c], ecx
call ebp
mov esi, eax
test esi, esi
je 0x1000487c
push esi
call dword [sym.imp.KERNEL32.dll_GetPriorityClass]
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x8c]
push edx
push 0
push 0x410
call ebp
mov esi, eax
test esi, esi
je 0x100048dd
lea eax, [esp + 0x38]
push eax
push 4
lea ecx, [esp + 0x34]
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x100048d6
mov eax, dword [esp + 0x2c]
push 0x104
lea edx, [esp + 0x2a8]
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameW
test eax, eax
je 0x100048d6
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x2a8]
call fcn.10002d60
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x40]
mov ebp, 8
cmp dword [esp + 0x54], ebp
jae 0x100048f0
lea ecx, [esp + 0x40]
cmp dword [esp + 0x70], ebp
mov eax, dword [esp + 0x5c]
jae 0x100048fe
lea eax, [esp + 0x5c]
mov edx, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x20]
push edx
mov edx, dword [esp + 0x30]
push edx
push ebx
push ecx
mov ecx, dword [esi + 8]
push edi
push eax
mov eax, dword [esi + 0x10]
push str._Process_name__s__id__d__parentName__s__parentId__d__threadCount__d__priorityClass__d__priorityBase__d___r_n
shr eax, 1
push eax
push ecx
call fcn.10005c12
mov edi, dword [esp + 0x4c]
mov edx, dword [edi]
mov eax, dword [esi + 8]
push edx
push eax
call fcn.10006262
mov ecx, dword [esp + 0xac]
add esp, 0x30
push ecx
call fcn.10004980
test al, al
je 0x10004962
mov edx, dword [esp + 0x7c]
push edx
mov ecx, edi
call fcn.10004a50
test al, al
je 0x10004962
mov byte [esp + 0x1b], 1
mov eax, dword [edi]
push eax
push str.__Process__r_n
call fcn.10006262
mov ebx, dword [esp + 0x3c]
add esp, 8
xor edi, edi
jmp 0x10004785