Function at 0x1000997f
Capabilities:
Enumerate processes

Disassembly:
push 0x278
mov eax, 0x10080e60
call fcn.1006a107
mov eax, dword [ebp + 8]
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x274], eax
mov eax, dword [ebp + 0x10]
push ebx
push 2
mov dword [ebp - 0x270], eax
mov byte [ebp - 0x23d], bl
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], ebx
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x264], esi
cmp esi, 0xffffffff
jne 0x100099d9
xor al, al
jmp 0x10009d5f
lea eax, [ebp - 0x23c]
push eax
push esi
mov dword [ebp - 0x23c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x100099fd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x100099d2
lea eax, [ebp - 0x254]
push eax
mov ecx, str.explorer.exe
call fcn.10002a34
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x254]
push eax
mov dword [ebp - 4], ebx
call fcn.1000a687
test eax, eax
jne 0x10009cd3
lea eax, [ebp - 0x268]
push eax
mov dword [ebp - 0x268], ebx
mov dword [ebp - 0x26c], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov esi, dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
push eax
call esi
lea eax, [ebp - 0x26c]
push eax
push dword [ebp - 0x234]
call esi
test eax, eax
mov eax, dword [ebp - 0x268]
setne byte [ebp - 0x23d]
cmp eax, dword [ebp - 0x26c]
jne 0x10009cd3
call fcn.1002e17d
push dword [ebp - 0x234]
push 1
test al, al
je 0x10009a90
push 0x400
jmp 0x10009a95
push 0x1000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, ebx
je 0x10009d0b
lea ecx, [ebp - 0x244]
push ecx
push 0x2000b
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
setne byte [ebp - 0x23d]
cmp byte [ebp - 0x23d], bl
je 0x10009cd3
xor eax, eax
lea edi, [ebp - 0x280]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
xor esi, esi
inc esi
push ebx
mov dword [ebp - 0x284], 0xc
mov dword [ebp - 0x27c], esi
mov dword [ebp - 0x280], ebx
call edi
push dword [ebp - 0x274]
lea eax, [ebp - 0x284]
push esi
push esi
push eax
push 0x2000000
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
setne byte [ebp - 0x23d]
call esi
cmp byte [ebp - 0x23d], bl
je 0x10009cd3
call fcn.1002e17d
test al, al
jne 0x10009b73
lea eax, [ebp - 0x24c]
push eax
push 4
push dword [ebp - 0x270]
mov dword [ebp - 0x24c], ebx
push 0x13
push dword [ebp - 0x244]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x10009b6c
mov eax, dword [ebp - 0x270]
mov dword [eax], ebx
mov byte [ebp - 0x23d], 1
cmp byte [ebp - 0x23d], bl
je 0x10009cd3
push ebx
mov dword [ebp - 0x250], ebx
call edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x250]
push eax
push ebx
push dword [ebp - 0x248]
push 1
push dword [ebp - 0x244]
call edi
call esi
cmp eax, 0x7a
jne 0x10009cd3
push dword [ebp - 0x250]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x248], eax
cmp eax, ebx
je 0x10009cd3
lea eax, [ebp - 0x250]
push eax
push dword [ebp - 0x250]
push dword [ebp - 0x248]
push 1
push dword [ebp - 0x244]
call edi
test eax, eax
setne byte [ebp - 0x23d]
cmp byte [ebp - 0x23d], bl
je 0x10009cd3
mov edi, dword [sym.imp.ADVAPI32.dll_LookupAccountSidW]
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
push ebx
lea eax, [ebp - 0x25c]
push eax
mov eax, dword [ebp - 0x248]
push ebx
push dword [eax]
mov dword [ebp - 0x25c], ebx
push ebx
mov dword [ebp - 0x260], ebx
call edi
mov eax, dword [0x100b27b4]
mov ecx, 0x100b27b4
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x24c], eax
lea eax, [ebp - 0x278]
push eax
lea eax, [ebp - 0x260]
push eax
mov byte [ebp - 4], 1
push dword [ebp - 0x260]
lea esi, [ebp - 0x24c]
call fcn.10002938
mov esi, dword [ebp - 0x258]
push eax
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x25c]
call fcn.10002938
push eax
mov eax, dword [ebp - 0x248]
push dword [eax]
push ebx
call edi
test eax, eax
setne byte [ebp - 0x23d]
call fcn.10002668
lea esi, [ebp - 0x24c]
call fcn.10002668
push 0x1009a18c
push dword [ebp - 0x258]
call fcn.1000a687
test eax, eax
mov eax, dword [ebp - 0x24c]
jne 0x10009d01
add eax, 0xfffffff0
call fcn.10002b29
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x254]
add eax, 0xfffffff0
call fcn.10002b29
lea eax, [ebp - 0x23c]
push eax
push dword [ebp - 0x264]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x100099fd
jmp 0x10009d1f
add eax, 0xfffffff0
call fcn.10002b29
jmp 0x10009d11
mov byte [ebp - 0x23d], bl
mov eax, dword [ebp - 0x254]
add eax, 0xfffffff0
call fcn.10002b29
push dword [ebp - 0x264]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 0x248], ebx
je 0x10009d49
push dword [ebp - 0x248]
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x244], ebx
je 0x10009d59
push dword [ebp - 0x244]
call esi
mov al, byte [ebp - 0x23d]
call fcn.1006a18a
ret