Function at 0x417c70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [0x4785d0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor esi, esi
push esi
push 2
mov dword [ebp - 0x350], ecx
mov byte [ebp - 0x349], 1
mov dword [ebp - 0x348], 0x128
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov ebx, eax
lea eax, [ebp - 0x348]
push eax
push ebx
mov dword [ebp - 0x354], ebx
call dword [sym.imp.KERNEL32.dll_Process32First]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x417f65
lea eax, [ebp - 0x348]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
jne 0x417f65
jmp 0x417cf0
cmp byte [ebp - 0x349], 0
je 0x417f5f
lea eax, [ebp - 0x324]
push str.explorer.exe
push eax
call fcn.0041cdb3
add esp, 8
test eax, eax
jne 0x417f40
push dword [ebp - 0x340]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x417f3b
lea eax, [ebp - 0x21c]
push eax
push 0x2000c
push edi
mov dword [ebp - 0x214], 0
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x417f2b
mov eax, dword [ebp - 0x21c]
mov ecx, dword [ebp - 0x350]
mov esi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
mov dword [ecx + 0x34], eax
lea ecx, [ebp - 0x214]
push ecx
push 0
push 0
push 1
push eax
call esi
push dword [ebp - 0x214]
call fcn.0041aa39
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x214]
push ebx
push 1
push dword [ebp - 0x21c]
call esi
test eax, eax
je 0x417f0c
mov esi, dword [ebx]
lea eax, [ebp - 0x218]
push eax
push esi
mov dword [ebp - 0x218], 0
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidA]
test eax, eax
je 0x417eed
mov edx, dword [ebp - 0x218]
cmp byte [edx], 0
jne 0x417de0
xor eax, eax
jmp 0x417dfd
mov eax, edx
lea ecx, [eax + 1]
mov dword [ebp - 0x358], ecx
jmp 0x417df0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417df0
sub eax, dword [ebp - 0x358]
mov ecx, dword [ebp - 0x350]
push eax
push edx
call fcn.00407c90
push 0xff
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00420820
push 0xff
lea eax, [ebp - 0x207]
push 0
push eax
mov byte [ebp - 0x208], 0
call fcn.00420820
add esp, 0x18
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push 0
mov dword [ebp - 0x20c], pe_nt_image_headers32
call dword [sym.imp.ADVAPI32.dll_LookupAccountSidA]
test eax, eax
je 0x417ec2
mov ecx, dword [ebp - 0x350]
lea eax, [ebp - 0x108]
push eax
lea ecx, [ecx + 0x18]
call fcn.00405280
push dword [ebp - 0x218]
mov byte [ebp - 0x349], 0
xor esi, esi
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call fcn.0041b043
mov ebx, dword [ebp - 0x354]
add esp, 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x417f46
push dword [ebp - 0x218]
mov esi, 5
call dword [sym.imp.KERNEL32.dll_LocalFree]
push ebx
call fcn.0041b043
mov ebx, dword [ebp - 0x354]
add esp, 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x417f46
push ebx
mov esi, 4
call fcn.0041b043
mov ebx, dword [ebp - 0x354]
add esp, 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x417f46
push ebx
mov esi, 3
call fcn.0041b043
mov ebx, dword [ebp - 0x354]
add esp, 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
jmp 0x417f46
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, 2
call edi
jmp 0x417f46
mov esi, 1
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x348]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_Process32Next]
cmp eax, 1
je 0x417cf0
jmp 0x417f65
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call edi
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.00419056
mov esp, ebp
pop ebp
ret