Function at 0x42e140
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49fb47
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x4ce4bc]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x250], eax
call fcn.0042e8b0
cmp eax, 1
jne 0x42e4d5
mov eax, dword [ebp + 0xc]
cmp eax, 2
je 0x42e196
cmp eax, 3
jne 0x42e4d5
xor ebx, ebx
mov dword [ebp - 0x24c], 0
xor edi, edi
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], edi
push 0x228
lea eax, [ebp - 0x238]
mov dword [ebp - 4], edi
push edi
push eax
mov dword [ebp - 0x23c], 0x22c
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 0x270], esi
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 1
mov dword [ebp - 0x240], eax
cmp esi, 0xffffffff
jne 0x42e217
xor ecx, ecx
mov dword [ebp - 0x248], ebx
xor eax, eax
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x254], eax
mov dword [ebp - 0x244], eax
jmp 0x42e2ef
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x42e260
xor ecx, ecx
mov dword [ebp - 0x254], eax
xor ebx, ebx
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], eax
test esi, esi
je 0x42e2ef
push esi
call dword [ebp - 0x240]
xor ecx, ecx
jmp 0x42e2ef
lea eax, [ebp - 0x218]
push str.explorer.exe
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x42e2af
cmp ebx, edi
je 0x42e290
mov eax, dword [ebp - 0x234]
mov dword [ebx], eax
add ebx, 4
mov dword [ebp - 0x248], ebx
jmp 0x42e2af
lea eax, [ebp - 0x234]
push eax
push ebx
lea ecx, [ebp - 0x24c]
call fcn.00401e60
mov edi, dword [ebp - 0x244]
mov ebx, dword [ebp - 0x248]
lea eax, [ebp - 0x23c]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42e260
mov ecx, dword [ebp - 0x24c]
mov dword [ebp - 0x254], edi
mov dword [ebp - 0x24c], ecx
mov dword [ebp - 0x248], ebx
mov dword [ebp - 0x244], edi
test esi, esi
je 0x42e2ef
push esi
call dword [ebp - 0x240]
mov ecx, dword [ebp - 0x24c]
mov edi, ecx
mov dword [ebp - 4], 2
cmp edi, ebx
je 0x42e450
push dword [edi]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x278], esi
test esi, esi
je 0x42e431
cmp esi, 0xffffffff
je 0x42e431
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x258], 0
lea eax, [ebp - 0x274]
push eax
push 0xf01ff
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x42e42b
mov eax, dword [ebp - 0x274]
mov dword [ebp - 0x26c], eax
mov dword [ebp - 0x25c], eax
test eax, eax
je 0x42e3a6
lea ecx, [ebp - 0x270]
mov dword [ebp - 0x268], 0xffffffff
push ecx
push 4
lea ecx, [ebp - 0x268]
mov dword [ebp - 0x270], 0
push ecx
push 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x42e3a6
mov eax, dword [ebp - 0x268]
jmp 0x42e3a9
or eax, 0xffffffff
cmp eax, dword [ebp + 8]
jne 0x42e41a
mov dword [ebp - 0x264], 0
mov dword [ebp - 0x260], 0
mov eax, dword [ebp + 0xc]
mov byte [ebp - 4], 5
cmp eax, 2
jne 0x42e3e2
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x25c]
call fcn.0042dff0
jmp 0x42e3f9
cmp eax, 3
jne 0x42e41a
lea eax, [ebp - 0x264]
push eax
lea ecx, [ebp - 0x25c]
call fcn.0042e600
test eax, eax
jne 0x42e487
mov eax, dword [ebp - 0x264]
test eax, eax
je 0x42e412
push eax
call dword [ebp - 0x240]
mov eax, dword [ebp - 0x25c]
jmp 0x42e420
mov eax, dword [ebp - 0x26c]
test eax, eax
je 0x42e42b
push eax
call dword [ebp - 0x240]
mov byte [ebp - 4], 2
jmp 0x42e43e
mov byte [ebp - 4], 2
test esi, esi
je 0x42e445
cmp esi, 0xffffffff
je 0x42e445
push esi
call dword [ebp - 0x240]
add edi, 4
cmp edi, ebx
jne 0x42e300
xor esi, esi
mov edx, dword [ebp - 0x24c]
test edx, edx
je 0x42e4d1
mov ecx, dword [ebp - 0x254]
mov eax, edx
sub ecx, edx
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x42e4c7
mov edx, dword [edx - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x42e4c7
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
mov ecx, dword [ebp - 0x250]
mov edi, dword [ebp - 0x264]
mov eax, dword [ecx]
test eax, eax
je 0x42e4a6
push eax
call dword [ebp - 0x240]
mov ecx, dword [ebp - 0x250]
mov dword [ecx], edi
mov eax, dword [ebp - 0x25c]
test eax, eax
je 0x42e4b9
push eax
call dword [ebp - 0x240]
push esi
call dword [ebp - 0x240]
mov esi, 1
jmp 0x42e452
push ecx
push edx
call fcn.0049995e
add esp, 8
mov eax, esi
jmp 0x42e4d7
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049996c
mov esp, ebp
pop ebp
ret 0xc