Function at 0x30003550
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x26c
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x26c], 0x22c
push 0
mov eax, dword [ebp - 0x34]
push eax
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0xffffffff
jne 0x300035c0
mov eax, 1
jmp 0x30003840
lea ecx, [ebp - 0x26c]
push ecx
mov edx, dword [ebp - 0x18]
push edx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x300035de
mov eax, 1
jmp 0x30003840
lea eax, [ebp - 0x26c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x30003831
mov dword [ebp - 0x14], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov edx, dword [ebp - 0x264]
push edx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x30003822
push 0x103
lea eax, [ebp - 0x248]
push eax
imul ecx, dword [ebp - 4], 0x1fc
add ecx, dword [ebp + 8]
push ecx
call fcn.3000a462
add esp, 0xc
imul edx, dword [ebp - 4], 0x1fc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x264]
mov dword [eax + edx + 0x1f4], ecx
lea edx, [ebp - 0x20]
push edx
push 0x20008
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x38], 0
je 0x30003804
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
push 1
mov eax, dword [ebp - 0x20]
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0xc], eax
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
push 1
mov edx, dword [ebp - 0x20]
push edx
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x300037da
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x24], 0
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x10]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x28]
shl ecx, 1
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x24]
shl edx, 1
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x30]
push eax
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 8]
push edx
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [edx]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
mov ecx, 2
imul edx, ecx, 0
mov eax, dword [ebp - 8]
movzx ecx, word [eax + edx]
cmp ecx, 0x4e
jne 0x300037af
mov edx, 2
shl edx, 0
mov eax, dword [ebp - 8]
movzx ecx, word [eax + edx]
cmp ecx, 0x54
jne 0x300037af
mov edx, 2
imul eax, edx, 3
mov ecx, dword [ebp - 8]
movzx edx, word [ecx + eax]
cmp edx, 0x41
jne 0x300037af
imul eax, dword [ebp - 4], 0x1fc
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x1f8], 1
jmp 0x300037c4
imul edx, dword [ebp - 4], 0x1fc
mov eax, dword [ebp + 8]
mov dword [eax + edx + 0x1f8], 2
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x300037ef
imul eax, dword [ebp - 4], 0x1fc
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x1f8], 5
mov edx, dword [ebp - 0xc]
push edx
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x30003819
imul eax, dword [ebp - 4], 0x1fc
mov ecx, dword [ebp + 8]
mov dword [ecx + eax + 0x1f8], 0
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x300035de
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret