Function at 0x401141
Capabilities:
Terminate process

Disassembly:
push ebp
sub esp, 0x6ac
lea ebp, [esp - 4]
mov eax, dword [0x40e13c]
xor eax, ebp
mov dword [ebp + 0x6ac], eax
push 0x38
mov eax, 0x40aaeb
call fcn.00409c2a
and dword [ebp - 4], 0
mov eax, dword [0x40ed8c]
mov edi, 0x40ed8c
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov byte [ebp - 4], 1
mov eax, dword [0x40ed8c]
mov ecx, edi
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x30], eax
lea esi, [ebp]
call fcn.004024cb
mov byte [ebp - 4], 3
and dword [ebp - 0x24], 0
xor eax, eax
mov word [ebp - 0x20], ax
mov eax, dword [0x40ed8c]
mov ecx, edi
mov dword [ebp - 0x2c], vtable.CEnumProcess::CProcessEntry.0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x1c], eax
mov ebx, 0x200
push ebx
mov byte [ebp - 4], 4
call fcn.00403038
pop ecx
mov dword [ebp - 0x28], eax
mov esi, 0x40cc78
push esi
lea eax, [ebp - 0x1c]
push eax
call fcn.00401c56
mov byte [ebp - 4], 5
mov eax, dword [0x40ed8c]
and dword [ebp - 0x3c], 0
and dword [ebp - 0x38], 0
mov ecx, edi
mov dword [ebp - 0x44], vtable.CEnumProcess::CModuleEntry.0
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x34], eax
push ebx
mov byte [ebp - 4], 6
call fcn.00403038
pop ecx
mov dword [ebp - 0x40], eax
push esi
lea eax, [ebp - 0x34]
push eax
call fcn.00401c56
xor ebx, ebx
mov byte [ebp - 4], 7
cmp dword [ebp + 8], ebx
jne 0x401296
xor esi, esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.00401035
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 3
call fcn.00401000
lea ecx, [ebp]
mov byte [ebp - 4], 2
call fcn.0040262f
mov eax, dword [ebp - 0x30]
add eax, 0xfffffff0
call fcn.00402447
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
call fcn.00402447
mov eax, dword [ebp + 0x6b8]
add eax, 0xfffffff0
call fcn.00402447
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x6ac]
xor ecx, ebp
call fcn.00403029
add ebp, 0x6b0
leave
ret
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp]
call fcn.004026cf
cmp eax, ebx
je 0x4013ce
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [ebp - 0x28]
lea eax, [ebp - 0x10]
push eax
call fcn.00401c56
mov edi, dword [ebp - 0x24]
lea eax, [ebp - 0x10]
call fcn.00401cb5
mov eax, dword [ebp + 0x6b8]
add eax, 0xfffffff0
call fcn.004020e5
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.00401cb5
push dword [ebp - 0x14]
lea esi, [ebp - 0x10]
call fcn.00401c8a
cmp eax, 0xffffffff
je 0x401358
lea eax, [ebp - 0x44]
push eax
push edi
lea ecx, [ebp]
call fcn.004027ab
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
call fcn.004020e5
add eax, 0x10
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.00401cb5
push edi
push ebx
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x40134d
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x401346
push ebx
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
add eax, 0xfffffff0
call fcn.00402447
mov byte [ebp - 4], 7
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
call fcn.00402447
cmp dword [ebp + 8], ebx
je 0x4013ce
xor eax, eax
mov word [ebp - 0x20], ax
mov eax, dword [ebp + 8]
or eax, 2
cmp eax, dword [ebp + 8]
jne 0x4013ad
lea eax, [ebp + 0x44]
push eax
push dword [ebp + 0x38]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x4013ce
mov eax, dword [ebp + 0x4c]
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
lea ecx, [ebp + 0x68]
movzx eax, word [ecx]
inc ecx
mov word [edx], ax
inc ecx
inc edx
inc edx
cmp ax, bx
jne 0x401399
jmp 0x4012aa
dec dword [ebp + 0x1c]
cmp dword [ebp + 0x1c], ebx
jle 0x4013ce
add dword [ebp + 0x18], 4
mov eax, dword [ebp + 0x18]
mov eax, dword [eax]
lea ecx, [ebp - 0x2c]
lea edi, [ebp]
call fcn.0040290c
jmp 0x4012aa
xor esi, esi
inc esi
jmp 0x401229