Function at 0x401570
Capabilities:
Acquire debug privileges
Enumerate processes
Get file system object information
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x401f76
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3b4
push ebp
push esi
lea ecx, [esp + 8]
xor ebp, ebp
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov dword [esp + 0x3c4], ebp
call sub.MFC42.DLL_CString::CString
push ebp
push 2
mov byte [esp + 0x3cc], 1
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
test eax, eax
mov dword [esp + 0x14], eax
je 0x4017b9
lea ecx, [esp + 0x30]
mov dword [esp + 0x30], 0x128
push ecx
push eax
call sub.KERNEL32.dll_Process32First
lea edx, [esp + 0x10]
mov esi, eax
push edx
push 0xf01ff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401648
lea eax, [esp + 0x18]
push eax
push str.SeDebugPrivilege
push ebp
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40163d
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
push ebp
push ebp
lea eax, [esp + 0x28]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0x18]
push ebp
push eax
push ebp
push ecx
mov dword [esp + 0x38], 1
mov dword [esp + 0x44], 2
mov dword [esp + 0x40], edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4017b9
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_TerminateProcess]
push edi
push 0x101
lea eax, [esp + 0x268]
push 0x160
push eax
lea ecx, [esp + 0x68]
push 0
push ecx
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea edx, [esp + 0x5c]
lea ecx, [esp + 0x14]
push edx
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x3d4]
lea ecx, [esp + 0x10]
push eax
call sub.MFC42.DLL_CString::operator
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4016f4
mov ecx, dword [esp + 0x14]
push ecx
push eax
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4016e8
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebp, ebp
mov edx, dword [esp + 0x40]
push edx
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4017a0
push 1
push esi
call ebx
push esi
mov ebp, eax
call edi
test ebp, ebp
je 0x4016b9
jmp 0x4017a0
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4017a0
mov eax, dword [esp + 0x3d8]
test eax, eax
je 0x4017a0
mov eax, dword [esp + 0x40]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4017a0
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x160]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x164]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [esp + 0x3d8]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
lea edx, [esp + 0x168]
push edx
call dword [sym.imp.MSVCRT.dll__strnicmp]
add esp, 0xc
test eax, eax
jne 0x4017a0
lea edi, [esp + 0x160]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
call sub.MFC42.DLL_operatornew
mov ecx, dword [esp + 0x3e0]
add esp, 4
mov dword [ecx], eax
push 1
push esi
call ebx
mov ebp, eax
test ebp, ebp
je 0x40178e
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x1c]
lea edx, [esp + 0x38]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401658
pop edi
pop ebx
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
lea ecx, [esp + 0xc]
mov byte [esp + 0x3c4], 0
call fcn.00401d58
lea ecx, [esp + 8]
mov dword [esp + 0x3c4], 0xffffffff
call fcn.00401d58
mov ecx, dword [esp + 0x3bc]
mov eax, ebp
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c0
ret