Function at 0x433050
Capabilities:
Enumerate processes
Get session information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53490c
mov eax, dword fs:[0]
push eax
sub esp, 0x264
mov eax, dword [0x57b300]
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.00432ff0
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 0x4330de
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 0x4332c5
push 0x208
lea eax, [ebp - 0x230]
mov dword [ebp - 0x254], 0x22c
push 0
push eax
call fcn.004edf00
add esp, 0xc
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4332c5
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 0x433140
sub esi, ecx
mov ecx, dword [ebp - 0x14]
sar esi, 1
mov dword [ebp - 0x264], ecx
cmp esi, ecx
ja 0x43318a
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.004ed980
add esp, 0xc
xor eax, eax
mov word [esi + edi], ax
mov ebx, dword [ebp - 0x28]
jmp 0x433235
cmp esi, 0x7ffffffe
ja 0x43332e
mov edi, esi
or edi, 7
cmp edi, 0x7ffffffe
jbe 0x4331aa
mov edi, SysReAllocString
jmp 0x4331c8
mov edx, ecx
mov eax, SysReAllocString
shr edx, 1
sub eax, edx
cmp ecx, eax
jbe 0x4331c0
mov edi, SysReAllocString
jmp 0x4331c8
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.004ed400
xor eax, eax
add esp, 0xc
mov word [esi + ebx], ax
mov eax, dword [ebp - 0x264]
cmp eax, 8
jb 0x433232
mov ecx, dword [ebp - 0x28]
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433228
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433329
push edx
push ecx
call fcn.00461701
add esp, 8
mov dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0x5403d4
cmovae eax, ebx
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpIW]
test eax, eax
jne 0x4332a9
lea eax, [ebp - 0x268]
push eax
push dword [ebp - 0x24c]
call dword [sym.imp.KERNEL32.dll_ProcessIdToSessionId]
test eax, eax
je 0x4332a9
mov eax, dword [ebp - 0x25c]
cmp dword [ebp - 0x268], eax
jne 0x4332a9
push dword [ebp - 0x24c]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4332a9
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 0x4332f3
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 0x433130
xor edi, edi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x43330b
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x433301
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433329
jmp 0x433301
mov edi, dword [ebp - 0x270]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x4332c5
push edx
push ecx
call fcn.00461701
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.0046170f
mov esp, ebp
pop ebp
ret
call fcn.004f6f4a
call fcn.00404fd0
int3