Function at 0x42746d
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x460713
mov eax, dword fs:[0]
push eax
sub esp, 0x268
mov eax, dword [0x4a1d50]
xor eax, esp
mov dword [esp + 0x260], eax
push ebx
push esi
push edi
mov eax, dword [0x4a1d50]
xor eax, esp
push eax
lea eax, [esp + 0x278]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x2c], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x10]
push str.GetInteractiveUser...
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], eax
call fcn.0040130b
xor ebx, ebx
push ebx
lea eax, [esp + 0x18]
push eax
push 2
pop esi
push esi
mov dword [esp + 0x28c], ebx
call fcn.0040fcf3
or dword [esp + 0x28c], 0xffffffff
mov ecx, dword [esp + 0x20]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
push ebx
push esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x427542
push str.CreateToolhelp32Snapshot_failed:
lea ecx, [esp + 0x18]
call fcn.0040130b
xor esi, esi
inc esi
mov dword [esp + 0x280], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push eax
push esi
call fcn.0040fcf3
mov ecx, dword [esp + 0x20]
jmp 0x4276c9
lea ecx, [esp + 0x3c]
push ecx
push eax
mov dword [esp + 0x44], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x42757e
push str.Process32First_failed:
lea ecx, [esp + 0x18]
call fcn.0040130b
mov dword [esp + 0x280], esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x18]
push eax
push 1
jmp 0x427534
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x18]
call fcn.0040130b
lea edi, [esp + 0x14]
mov dword [esp + 0x280], 3
call fcn.00407729
push str.explorer.exe
mov ecx, edi
call fcn.00406240
test eax, eax
jne 0x427675
push dword [esp + 0x44]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
mov dword [esp + 0x34], edi
cmp edi, ebx
je 0x4277b3
cmp edi, 0xffffffff
je 0x4277b3
lea eax, [esp + 0x20]
push eax
push 0xa
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x427632
mov eax, 0x104
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x28]
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x34]
push dword [esp + 0x30]
call fcn.004277fa
add esp, 0x14
test eax, eax
jne 0x4276fa
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x42766e
push str.OpenProcessToken_explorer.exe_failed:
lea ecx, [esp + 0x20]
call fcn.0040130b
mov byte [esp + 0x280], 7
call esi
push eax
lea eax, [esp + 0x20]
push eax
push 1
call fcn.0040fcf3
mov byte [esp + 0x28c], 3
mov ecx, dword [esp + 0x28]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [esp + 0x280], 0xffffffff
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004017c4
lea eax, [esp + 0x3c]
push eax
push dword [esp + 0x1c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x427584
push str.explorer.exe_not_found
lea ecx, [esp + 0x1c]
call fcn.0040130b
push ebx
lea eax, [esp + 0x1c]
push eax
push 2
mov dword [esp + 0x28c], 8
call fcn.0040fcf3
mov ecx, dword [esp + 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
xor eax, eax
mov ecx, dword [esp + 0x278]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x260]
xor ecx, esp
call fcn.004472d5
mov esp, ebp
pop ebp
ret
push dword [esp + 0x2c]
xor edi, edi
inc edi
push edi
push edi
push ebx
push 0x2000000
push dword [esp + 0x34]
mov dword [esp + 0x30], ebx
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
lea ecx, [esp + 0x1c]
test eax, eax
je 0x42775f
push str.DuplicateTokenEx_success:
call fcn.0040130b
push ebx
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push edi
mov byte [esp + 0x290], 5
call fcn.0040f821
mov byte [esp + 0x290], 3
mov ecx, dword [esp + 0x2c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
mov dword [esp + 0x18], edi
jmp 0x42779b
push str.DuplicateTokenEx_failed:
call fcn.0040130b
mov byte [esp + 0x280], 6
call esi
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x24]
push eax
push edi
call fcn.0040f821
mov byte [esp + 0x290], 3
mov ecx, dword [esp + 0x2c]
add esp, 0x10
add ecx, 0xfffffff0
call fcn.004017c4
push dword [esp + 0x20]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [esp + 0x34]
call esi
mov ebx, dword [esp + 0x18]
jmp 0x4277e7
push str.OpenProcess_explorer.exe_failed:
lea ecx, [esp + 0x1c]
call fcn.0040130b
mov byte [esp + 0x280], 4
call esi
push eax
lea eax, [esp + 0x1c]
push eax
push 1
call fcn.0040fcf3
mov ecx, dword [esp + 0x24]
add esp, 0xc
add ecx, 0xfffffff0
call fcn.004017c4
mov ecx, dword [esp + 0x14]
add ecx, 0xfffffff0
call fcn.004017c4
mov eax, ebx
jmp 0x4276d6