Function at 0x401160
Capabilities:
Enumerate process modules
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x40cfe3
push eax
mov eax, 0x1270
mov dword fs:[0], esp
call fcn.00402af0
push esi
push edi
xor esi, esi
mov dword [esp + 0x1280], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [esp + 0x14], eax
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x175]
mov byte [esp + 0x174], 0
mov byte [esp + 0x70], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x71]
push 0x412edc
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0xc]
stosb byte es:[edi], al
call fcn.004029da
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0x70]
mov byte [esp + 0x1280], 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
lea ecx, [esp + 0x278]
push eax
push 0x1000
push ecx
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x401242
lea ecx, [esp + 8]
mov byte [esp + 0x1280], al
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1288]
mov dword [esp + 0x1280], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x1270]
mov dword fs:[0], ecx
add esp, 0x127c
ret
mov eax, dword [esp + 0x18]
mov dword [esp + 0x10], esi
shr eax, 2
je 0x40136c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_OpenProcess]
lea edi, [esp + 0x280]
mov dword [esp + 0x14], eax
mov edx, dword [edi]
push edx
push 0
push 0x411
call ebp
mov esi, eax
test esi, esi
je 0x401355
lea eax, [esp + 0x24]
lea ecx, [esp + 0x28]
push eax
push 0x50
push ecx
push esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
je 0x401355
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x17c]
push 0x104
push edx
push eax
push esi
call sub.PSAPI.DLL_GetModuleBaseNameA
lea ecx, [esp + 0x17c]
push ecx
lea ecx, [esp + 0x14]
call fcn.004029d4
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
lea ecx, [esp + 0x1290]
call sub.MFC42.DLL_CString::MakeUpper
mov edx, dword [esp + 0x1290]
mov eax, dword [esp + 0x10]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x401355
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x78]
push 0x104
push ecx
push edx
push esi
call sub.PSAPI.DLL_GetModuleFileNameExA
lea eax, [esp + 0x78]
lea ecx, [esp + 0x10]
push eax
call fcn.004029d4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx - 8]
test eax, eax
je 0x401355
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::MakeUpper
push str.NICS
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Find
cmp eax, 0xffffffff
je 0x401355
mov edx, dword [esp + 0x1c]
mov eax, dword [edi]
cmp edx, eax
je 0x401355
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov dword [esp + 0x18], eax
push esi
call ebx
mov eax, dword [esp + 0x14]
add edi, 4
dec eax
mov dword [esp + 0x14], eax
jne 0x40126c
pop ebp
pop ebx
lea ecx, [esp + 8]
mov byte [esp + 0x1280], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x1288]
mov dword [esp + 0x1280], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x1278]
mov eax, dword [esp + 0x10]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x127c
ret