Function at 0x432450
Capabilities:
Enumerate processes
Get session information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53344c
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x579258]
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
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
xor edi, edi
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], edi
call fcn.004323f0
mov dword [ebp - 0x25c], eax
lea eax, [ebp - 0x260]
push eax
lea eax, [ebp - 0x258]
mov dword [ebp - 0x260], edi
push eax
push 4
push 0xffffffffffffffff
push edi
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
test eax, eax
je 0x4324de
mov eax, dword [ebp - 0x258]
push eax
mov ecx, dword [eax]
mov dword [ebp - 0x25c], ecx
call sub.WTSAPI32.dll_WTSFreeMemory
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
mov dword [ebp - 0x26c], ebx
cmp ebx, 0xffffffff
je 0x4326c5
push 0x208
lea eax, [ebp - 0x230]
mov dword [ebp - 0x254], 0x22c
push 0
push eax
call fcn.004ecad0
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4326c5
nop dword [eax]
lea esi, [ebp - 0x230]
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x432540
sub esi, ecx
mov ecx, dword [ebp - 0x14]
sar esi, 1
mov dword [ebp - 0x264], ecx
cmp esi, ecx
ja 0x43258a
cmp ecx, 8
mov dword [ebp - 0x18], esi
lea edi, [ebp - 0x28]
cmovae edi, dword [ebp - 0x28]
lea eax, [ebp - 0x230]
add esi, esi
push esi
push eax
push edi
call fcn.004ec550
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov ebx, dword [ebp - 0x28]
jmp 0x432635
cmp esi, 0x7ffffffe
ja 0x43272e
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4325aa
mov edi, SysReAllocString
jmp 0x4325c8
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4325c0
mov edi, SysReAllocString
jmp 0x4325c8
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.00416d10
mov dword [ebp - 0x18], esi
mov ebx, eax
add esi, esi
mov dword [ebp - 0x14], edi
push esi
lea eax, [ebp - 0x230]
push eax
push ebx
call fcn.004ebfd0
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x432632
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x432628
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432729
push edx
push ecx
call fcn.00460404
add esp, 8
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push str.explorer.exe
cmovae eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4326a9
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4326a9
mov eax, dword [ebp - 0x25c]
cmp dword [ebp - 0x268], eax
jne 0x4326a9
push dword [ebp - 0x24c]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4326a9
lea eax, [ebp - 0x270]
push eax
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
push esi
test eax, eax
jne 0x4326f3
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x254]
push eax
push dword [ebp - 0x26c]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x432530
xor edi, edi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43270b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x432701
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432729
jmp 0x432701
mov edi, dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4326c5
push edx
push ecx
call fcn.00460404
add esp, 8
mov eax, edi
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.00460412
mov esp, ebp
pop ebp
ret
call fcn.004f5b2a
call fcn.00404fc0
int3