Function at 0x401280
Capabilities:
Enumerate processes
Get session user name
Terminate process
Terminate process by name

Disassembly:
sub esp, 0x72c
mov eax, dword [0x42e070]
xor eax, esp
mov dword [esp + 0x724], eax
push ebx
push ebp
push esi
push edi
push 0x228
lea eax, [esp + 0x20]
push 0
push eax
mov ebx, ecx
mov dword [esp + 0x24], 0
call fcn.00410d60
add esp, 0xc
mov ecx, 0x22
mov esi, str.CSRSS.EXE_WINLOGON.EXE_LSASS.EXE_SERVICES.EXE_SMSS.EXE_KERNEL32.DLL
lea edi, [esp + 0x4a0]
push ebx
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x24c]
push 0x64
push ecx
mov dword [esp + 0x20], 0x104
call fcn.0040ee2f
add esp, 0xc
lea edx, [esp + 0x248]
push 0x64
push edx
call fcn.0040f251
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
push 0x424e08
lea eax, [esp + 0x52c]
sbb esi, esi
push 0x104
push eax
neg esi
call fcn.0040ee2f
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x52c]
push edx
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x4a4]
push ecx
call fcn.0040f329
add esp, 8
test eax, eax
jne 0x4014fa
cmp esi, 1
jne 0x40135c
call fcn.00401520
push 0
push 2
mov dword [esp + 0x20], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
lea edx, [esp + 0x18]
mov ebp, eax
push edx
push ebp
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x4014fa
mov ebx, dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [esp + 0x14]
lea esp, [esp]
inc dword [0x430e18]
push 0x424e08
lea eax, [esp + 0x314]
push 0x64
push eax
call fcn.0040ee2f
mov ecx, dword [esp + 0x2c]
add esp, 0xc
push ecx
lea ecx, [esp + 0x314]
call fcn.004015f0
add esp, 4
lea edx, [esp + 0x3c]
push str.SVCHOST.EXE
push edx
call fcn.0040f49b
add esp, 8
test eax, eax
jne 0x4013f3
lea eax, [esp + 0x528]
push eax
lea ecx, [esp + 0x314]
push ecx
call fcn.0040f49b
add esp, 8
test eax, eax
jne 0x401470
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x3dc]
push 0x424e0c
push eax
call ebx
add esp, 0xc
test esi, esi
jne 0x401485
lea ecx, [esp + 0x3c]
push 0x5c
push ecx
call fcn.0040f554
mov edi, eax
add esp, 8
test edi, edi
je 0x401426
add edi, 2
lea edx, [esp + 0x248]
push edi
push edx
call fcn.0040f49b
add esp, 8
test eax, eax
je 0x4014ce
lea eax, [esp + 0x3d8]
push eax
lea ecx, [esp + 0x24c]
push ecx
call fcn.0040f49b
add esp, 8
test eax, eax
je 0x4014ce
lea edx, [esp + 0x248]
push edx
push edi
call fcn.0040f329
add esp, 8
test eax, eax
jne 0x4014ce
lea eax, [esp + 0x18]
push eax
push ebp
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x401390
jmp 0x4014f3
cmp esi, 1
jne 0x401426
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x24c]
push eax
call fcn.0040f49b
add esp, 8
test eax, eax
je 0x4014ce
lea ecx, [esp + 0x3d8]
push ecx
lea edx, [esp + 0x24c]
push edx
call fcn.0040f49b
add esp, 8
test eax, eax
je 0x4014ce
lea eax, [esp + 0x248]
push eax
lea ecx, [esp + 0x40]
push ecx
jmp 0x401464
mov ecx, dword [esp + 0x20]
push ecx
push 0
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4014f3
push 1
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x734]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040e6d9
add esp, 0x72c
ret