Function at 0x432d30
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3ee0
mov eax, dword fs:[0]
push eax
sub esp, 0x284
mov eax, dword [0x616dec]
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 esi, ecx
mov dword [ebp - 0x28c], esi
mov dword [ebp - 0x290], 0
mov dword [ebp - 0x14], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
jne 0x432dce
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.ProcessIdToSessionId_getLoginUserPsid_Error:_d
push 2
call fcn.0043b3c0
add esp, 0xc
mov dword [esi + 0x14], 7
xor eax, eax
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
push eax
push 0x5fd6c8
call fcn.00424710
jmp 0x432fcc
xor eax, eax
mov dword [ebp - 0x288], 0x22c
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x30]
push eax
push 0x5fd6c8
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], eax
mov word [ebp - 0x30], ax
call fcn.00424710
push 0
push 2
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
lea eax, [ebp - 0x288]
push eax
push edi
mov dword [ebp - 0x28c], edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp eax, 1
jne 0x432f96
lea eax, [ebp - 0x288]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
jne 0x432f96
nop word [eax + eax]
lea eax, [ebp - 0x264]
push str.explorer.exe
push eax
call fcn.0056e531
add esp, 8
test eax, eax
jne 0x432f7f
push dword [ebp - 0x280]
push eax
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x432f79
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x280]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x432f6e
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jne 0x432f6e
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0
push eax
push 8
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x432f6e
lea eax, [ebp - 0x4c]
mov dword [ebp - 0x4c], 0
push eax
push 0
push 0
push 1
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
jne 0x432f05
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x432fea
push dword [ebp - 0x4c]
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
test edi, edi
je 0x432f5f
lea eax, [ebp - 0x4c]
push eax
push dword [ebp - 0x4c]
push edi
push 1
push dword [ebp - 0x50]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x432f4f
lea eax, [ebp - 0x54]
push eax
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x432f4f
push dword [ebp - 0x54]
lea ecx, [ebp - 0x30]
call fcn.00424160
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x28c]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
jmp 0x432f7f
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x288]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp eax, 1
je 0x432e60
push edi
call ebx
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov ecx, esi
mov word [esi], ax
lea eax, [ebp - 0x30]
push eax
call fcn.00424930
mov eax, dword [ebp - 0x1c]
cmp eax, 8
jb 0x432fcc
inc eax
lea ecx, [ebp - 0x30]
push eax
push dword [ebp - 0x30]
call fcn.00424d00
mov eax, esi
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.005540cc
mov esp, ebp
pop ebp
ret
push 0x5fd6c8
mov ecx, esi
call fcn.00424270
lea ecx, [ebp - 0x30]
call fcn.004241b0
lea ecx, [ebp - 0x48]
call fcn.004241b0
jmp 0x432fcc