Function at 0x10040980
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x10117890
push 0x1006c2e0
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, 0x2c50
call fcn.1005a4d0
mov eax, dword [0x101237f8]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2c4c], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2c44], eax
push str.enter_KillMultiProcesses
call fcn.100350d0
add esp, 4
test edi, edi
je 0x10040d4d
mov esi, edi
lea ecx, [esi + 2]
nop dword [eax]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x100409f0
sub esi, ecx
sar esi, 1
mov dword [ebp - 0x2c50], esi
cmp esi, 4
jl 0x10040d4d
cmp esi, 0x104
jg 0x10040d4d
mov eax, dword [ebp - 0x2c44]
test eax, eax
je 0x10040a2a
mov dword [eax], 0
xor eax, eax
mov dword [ebp - 0x2c3c], eax
mov dword [ebp - 0x2c34], eax
mov dword [ebp - 4], eax
call fcn.100404b0
mov dword [ebp - 4], 0xfffffffe
jmp 0x10040a7e
push 0x800
push 0
lea eax, [ebp - 0xc2c]
push eax
call fcn.1006a830
mov dword [ebp - 0x2c40], 0
push 0x2000
push 0
lea eax, [ebp - 0x2c2c]
push eax
call fcn.1006a830
add esp, 0x18
lea eax, [ebp - 0x2c40]
push eax
push 0x800
lea eax, [ebp - 0x2c2c]
push eax
call sub.PSAPI.DLL_EnumProcesses
test eax, eax
jne 0x10040ae6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.EnumProcesses_fail_dwError___lu
call fcn.100350d0
add esp, 8
jmp 0x10040d4d
push 0x104
push edi
lea eax, [ebp - 0x42c]
push eax
call fcn.1008739c
lea eax, [ebp - 0x42c]
push eax
call fcn.10087b3f
add esp, 0x10
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x2c30], eax
xorps xmm0, xmm0
movups xmmword [ebp - 0x2c68], xmm0
movq qword [ebp - 0x2c58], xmm0
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
test edi, edi
jne 0x10040b44
or ecx, 0xffffffff
mov dword [ebp - 0x2c38], ecx
jmp 0x10040bdc
push str.NtQueryInformationProcess
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x2c34], eax
test eax, eax
jne 0x10040b6c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or ecx, 0xffffffff
mov dword [ebp - 0x2c38], ecx
jmp 0x10040bdc
push dword [ebp - 0x2c30]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x2c48], eax
test eax, eax
jne 0x10040b9b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
or ecx, 0xffffffff
mov dword [ebp - 0x2c38], ecx
jmp 0x10040bdc
push 0
push 0x18
lea ecx, [ebp - 0x2c68]
push ecx
push 0
push eax
call dword [ebp - 0x2c34]
test eax, eax
mov eax, 0xffffffff
cmove eax, dword [ebp - 0x2c54]
mov dword [ebp - 0x2c38], eax
push dword [ebp - 0x2c48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [ebp - 0x2c38]
xor eax, eax
mov dword [ebp - 0x2c34], eax
cmp dword [ebp - 0x2c40], eax
jbe 0x10040d2e
mov edx, dword [ebp - 0x2c30]
nop word [eax + eax]
lea eax, [ebp + eax*4 - 0x2c2c]
mov dword [ebp - 0x2c48], eax
mov eax, dword [eax]
cmp edx, eax
je 0x10040d09
cmp ecx, eax
je 0x10040d09
push 0x400
lea ecx, [ebp - 0xc2c]
push ecx
push eax
call fcn.100405e0
add esp, 0xc
test eax, eax
je 0x10040d03
lea eax, [ebp - 0xc2c]
push eax
call fcn.10087b3f
push esi
lea eax, [ebp - 0xc2c]
push eax
lea eax, [ebp - 0x42c]
push eax
call fcn.1009918f
add esp, 0x10
test eax, eax
jne 0x10040d03
xor esi, esi
nop dword [eax]
mov edi, dword [esi + 0x101226e0]
test edi, edi
je 0x10040cd4
push 0x208
push 0
lea eax, [ebp - 0x224]
push eax
call fcn.1006a830
push dword [ebp - 0x2c4c]
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.10086654
push edi
push 0x104
lea eax, [ebp - 0x224]
push eax
call fcn.10086654
lea eax, [ebp - 0xc2c]
push eax
lea eax, [ebp - 0x224]
push eax
call fcn.100874aa
add esp, 0x2c
test eax, eax
je 0x10040d6d
add esi, 4
cmp esi, 4
jb 0x10040c70
mov eax, dword [ebp - 0x2c48]
push dword [eax]
call fcn.100411a0
lea eax, [ebp - 0xc2c]
push eax
push str.Kill_process:__s
call fcn.100350d0
add esp, 8
inc dword [ebp - 0x2c3c]
mov edx, dword [ebp - 0x2c30]
mov eax, dword [ebp - 0x2c34]
inc eax
mov dword [ebp - 0x2c34], eax
cmp eax, dword [ebp - 0x2c40]
mov esi, dword [ebp - 0x2c50]
mov ecx, dword [ebp - 0x2c38]
jb 0x10040c00
mov ecx, dword [ebp - 0x2c44]
test ecx, ecx
je 0x10040d40
mov eax, dword [ebp - 0x2c3c]
mov dword [ecx], eax
push str.end_KillMultiProcesses
call fcn.100350d0
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1005a0a8
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0xc2c]
push eax
push str.Ignore_process_:__s
call fcn.100350d0
add esp, 8
jmp 0x10040d03