Function at 0x432370
Capabilities:
Enumerate processes
Get session information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533c90
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x57b270]
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.00432310
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 0x4323fe
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 0x4325e5
push 0x208
lea eax, [ebp - 0x230]
mov dword [ebp - 0x254], 0x22c
push 0
push eax
call fcn.004ed350
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4325e5
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 0x432460
sub esi, ecx
mov ecx, dword [ebp - 0x14]
sar esi, 1
mov dword [ebp - 0x264], ecx
cmp esi, ecx
ja 0x4324aa
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.004ecdd0
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov ebx, dword [ebp - 0x28]
jmp 0x432555
cmp esi, 0x7ffffffe
ja 0x43264e
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4324ca
mov edi, SysReAllocString
jmp 0x4324e8
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4324e0
mov edi, SysReAllocString
jmp 0x4324e8
lea eax, [edx + ecx]
cmp edi, eax
cmovb edi, eax
lea eax, [edi + 1]
push eax
lea ecx, [ebp - 0x28]
call fcn.00416d20
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.004ec850
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x432552
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x432548
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432649
push edx
push ecx
call fcn.00460b61
add esp, 8
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x5401bc
cmovae eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4325c9
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4325c9
mov eax, dword [ebp - 0x25c]
cmp dword [ebp - 0x268], eax
jne 0x4325c9
push dword [ebp - 0x24c]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4325c9
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 0x432613
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 0x432450
xor edi, edi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43262b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x432621
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x432649
jmp 0x432621
mov edi, dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4325e5
push edx
push ecx
call fcn.00460b61
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.00460b6f
mov esp, ebp
pop ebp
ret
call fcn.004f639a
call fcn.00404fd0
int3