Function at 0x428b70
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42c1d7
mov eax, dword fs:[0]
push eax
sub esp, 0x9a4
mov eax, dword [0x438c60]
xor eax, ebp
mov dword [ebp - 0x18], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x9a0], 0
mov dword [ebp - 0x254], 0
mov dword [ebp - 0x250], 0
lea ecx, [ebp - 0x258]
call fcn.00401dc0
mov dword [ebp - 4], 0
mov ecx, dword [ebp + 0xc]
call fcn.00402630
movzx eax, al
test eax, eax
jne 0x428bee
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x258]
call fcn.00401f20
jmp 0x428c6f
xor edx, edx
mov word [ebp - 0x4b4], dx
push 0x256
push 0
lea eax, [ebp - 0x4b2]
push eax
call fcn.00412a60
add esp, 0xc
lea ecx, [ebp - 0x4b4]
push ecx
call fcn.00428930
add esp, 4
test eax, eax
jne 0x428c5d
push 0
push 0x4328d4
push 0x4328d8
call fcn.004286e0
add esp, 0xc
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x980], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00401f00
mov eax, dword [ebp - 0x980]
jmp 0x429001
lea eax, [ebp - 0x4b4]
push eax
lea ecx, [ebp - 0x258]
call fcn.00401f40
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
jne 0x428cbe
push 0
push 0x432944
push 0x432948
call fcn.004286e0
add esp, 0xc
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x984], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00401f00
mov eax, dword [ebp - 0x984]
jmp 0x429001
mov dword [ebp - 0x24c], 0x22c
lea edx, [ebp - 0x24c]
push edx
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x428d19
push 0
push 0x432988
push 0x43298c
call fcn.004286e0
add esp, 0xc
mov ecx, dword [ebp - 0x254]
mov dword [ebp - 0x988], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00401f00
mov eax, dword [ebp - 0x988]
jmp 0x429001
mov edx, dword [ebp - 0x244]
mov dword [ebp - 0x4bc], edx
mov eax, dword [ebp - 0x4bc]
push eax
push 0
push 0x2000000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x4b8], eax
cmp dword [ebp - 0x4b8], 0
je 0x428faf
cmp dword [ebp - 0x4b8], 0xffffffff
je 0x428faf
lea ecx, [ebp - 0x14]
push ecx
push 0x20008
mov edx, dword [ebp - 0x4b8]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x428f9f
xor eax, eax
mov word [ebp - 0x974], ax
push 0x256
push 0
lea ecx, [ebp - 0x972]
push ecx
call fcn.00412a60
add esp, 0xc
xor edx, edx
mov word [ebp - 0x714], dx
push 0x256
push 0
lea eax, [ebp - 0x712]
push eax
call fcn.00412a60
add esp, 0xc
lea ecx, [ebp - 0x978]
push ecx
lea edx, [ebp - 0x714]
push edx
lea eax, [ebp - 0x718]
push eax
lea ecx, [ebp - 0x974]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call fcn.004282d0
add esp, 0x14
test eax, eax
jne 0x428de6
jmp 0x428fc5
lea eax, [ebp - 0x974]
push eax
lea ecx, [ebp - 0x990]
call fcn.00401e00
mov dword [ebp - 0x9a4], eax
mov ecx, dword [ebp - 0x9a4]
mov dword [ebp - 0x9a8], ecx
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x9a0]
or edx, 1
mov dword [ebp - 0x9a0], edx
mov eax, dword [ebp - 0x9a8]
push eax
lea ecx, [ebp - 0x258]
push ecx
call fcn.00402500
add esp, 8
movzx edx, al
test edx, edx
je 0x428e88
lea eax, [ebp - 0x228]
push eax
lea ecx, [ebp - 0x994]
call fcn.00401e00
mov dword [ebp - 0x9ac], eax
mov ecx, dword [ebp - 0x9a0]
or ecx, 2
mov dword [ebp - 0x9a0], ecx
push str.regedit.exe
mov edx, dword [ebp - 0x9ac]
push edx
call fcn.00402520
add esp, 8
movzx eax, al
test eax, eax
je 0x428e88
mov dword [ebp - 0x9b0], 1
jmp 0x428e92
mov dword [ebp - 0x9b0], 0
mov cl, byte [ebp - 0x9b0]
mov byte [ebp - 0x989], cl
mov edx, dword [ebp - 0x9a0]
and edx, 2
je 0x428ebb
and dword [ebp - 0x9a0], 0xfffffffd
lea ecx, [ebp - 0x994]
call fcn.00401f00
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x9a0]
and eax, 1
je 0x428edf
and dword [ebp - 0x9a0], 0xfffffffe
lea ecx, [ebp - 0x990]
call fcn.00401f00
movzx ecx, byte [ebp - 0x989]
test ecx, ecx
je 0x428f9f
mov edx, dword [ebp - 0x14]
push edx
call fcn.004283f0
add esp, 4
mov dword [ebp - 0x97c], eax
cmp dword [ebp - 0x97c], 0
jne 0x428f26
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [ebp - 0x228]
push eax
push str.GetLinkedToken_failed_for_process:
call fcn.004286e0
add esp, 0xc
jmp 0x428f9f
push 0
lea ecx, [ebp - 0x228]
push ecx
push str.Linked_token_created_for_process:
call fcn.004286e0
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
push 1
push 1
push 0
push 0x2000000
mov eax, dword [ebp - 0x97c]
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0x428f9f
push 0
push 0x432a60
push 0x432a68
call fcn.004286e0
add esp, 0xc
mov dword [ebp - 0x998], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00401f00
mov eax, dword [ebp - 0x998]
jmp 0x429001
cmp dword [ebp - 0x14], 0
je 0x428faf
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x4b8], 0
je 0x428fc5
mov edx, dword [ebp - 0x4b8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x24c]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x428d19
mov edx, dword [ebp - 0x254]
mov dword [ebp - 0x99c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x258]
call fcn.00401f00
mov eax, dword [ebp - 0x99c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.004124a8
mov esp, ebp
pop ebp
ret