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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6c210d
mov eax, dword fs:[0]
push eax
sub esp, 0x3d8
mov eax, dword [0x78d5fc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x24
push 0
lea eax, [ebp - 0x3e4]
push eax
call fcn.00653fd0
add esp, 0xc
lea ecx, [ebp - 0x3e4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov dword [ebp - 0x378], 0x128
lea edx, [ebp - 0x378]
mov dword [ebp - 0x380], edx
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x384], eax
mov eax, dword [ebp - 0x380]
push eax
mov ecx, dword [ebp - 0x384]
push ecx
call sub.KERNEL32.dll_Process32First
mov dword [ebp - 0x398], eax
cmp dword [ebp - 0x398], 0
je 0x5048d8
mov edx, dword [ebp - 0x380]
mov eax, dword [edx + 8]
push eax
push 0
push 0x10
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x394], eax
cmp dword [ebp - 0x394], 0
je 0x5048ba
mov ecx, dword [ebp - 0x380]
mov edx, dword [ecx + 8]
push edx
push 8
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0xffffffff
je 0x5048ad
push 0x224
push 0
lea eax, [ebp - 0x250]
push eax
call fcn.00653fd0
add esp, 0xc
mov dword [ebp - 0x250], 0x224
lea ecx, [ebp - 0x250]
push ecx
mov edx, dword [ebp - 0x37c]
push edx
call sub.KERNEL32.dll_Module32First
mov dword [ebp - 0x390], eax
cmp dword [ebp - 0x390], 0
je 0x5048a0
lea eax, [ebp - 0x130]
push eax
call fcn.00664b40
add esp, 4
push eax
lea ecx, [ebp - 0x130]
push ecx
call fcn.0056bc20
add esp, 8
mov dword [ebp - 0x388], eax
lea edx, [ebp - 0x388]
push edx
lea eax, [ebp - 0x39c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00475f80
lea ecx, [ebp - 0x3a8]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0046fd40
mov dword [ebp - 0x3a0], eax
lea edx, [ebp - 0x39c]
push edx
mov ecx, dword [ebp - 0x3a0]
call fcn.0046f460
movzx eax, al
test eax, eax
je 0x50485a
lea ecx, [ebp - 0x130]
push ecx
call fcn.0056c240
add esp, 4
mov dword [ebp - 0x38c], eax
lea edx, [ebp - 0x38c]
push edx
lea eax, [ebp - 0x388]
push eax
lea ecx, [ebp - 0x3b0]
push ecx
call fcn.0046f1f0
add esp, 0xc
push eax
lea edx, [ebp - 0x3b8]
push edx
mov ecx, dword [ebp + 8]
call fcn.0047fd20
lea eax, [ebp - 0x130]
mov dword [ebp - 0x3a4], eax
lea ecx, [ebp - 0x3a4]
push ecx
lea edx, [ebp - 0x38c]
push edx
lea eax, [ebp - 0x3c0]
push eax
call fcn.0046f1f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x2c]
call fcn.00504a70
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, dword [ebp + 0xc]
call fcn.00505f60
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.004b37b0
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x224
push 0
lea edx, [ebp - 0x250]
push edx
call fcn.00653fd0
add esp, 0xc
mov dword [ebp - 0x250], 0x224
lea eax, [ebp - 0x250]
push eax
mov ecx, dword [ebp - 0x37c]
push ecx
call sub.KERNEL32.dll_Module32Next
mov dword [ebp - 0x390], eax
jmp 0x50474a
mov edx, dword [ebp - 0x37c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x394]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x380]
push ecx
mov edx, dword [ebp - 0x384]
push edx
call sub.KERNEL32.dll_Process32Next
mov dword [ebp - 0x398], eax
jmp 0x5046b9
mov eax, dword [ebp - 0x384]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0061abe2
mov esp, ebp
pop ebp
ret