Function at 0x411989
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
push ebx
push esi
push edi
xor edi, edi
cmp byte [ebp + 0xc], 0
jne 0x4119b8
cmp dword [ebp + 0x10], edi
jne 0x4119b8
cmp dword [ebp + 0x14], edi
jne 0x4119b8
cmp dword [ebp + 0x18], edi
jne 0x4119b8
push dword [ebp + 8]
call fcn.0040a3a5
pop ecx
mov dword [ebp + 8], eax
mov al, byte [ebp + 0xc]
push 2
pop ebx
and al, bl
mov byte [ebp - 0xd], al
mov al, byte [ebp + 0xc]
and byte [ebp + 0xc], 1
and al, 0x10
mov byte [ebp - 1], al
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [0x496e44], edi
mov dword [ebp - 0x20], eax
jne 0x4119fc
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x496e44], eax
mov esi, 0x4975e4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x4971a8], 4
jne 0x411a2a
cmp dword [ebp + 0x10], edi
je 0x411a2a
or byte [0x4971a8], 8
push ebx
push str.SeDebugPrivilege
call fcn.0040d55a
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x45e2
lea ecx, [ebp - 0x28]
mov dword [ebp - 8], edi
call fcn.0042c827
mov eax, dword [ebp - 0x28]
lea esi, [eax + 0xa0]
lea ecx, [eax + 0x104]
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x2c], ecx
lea ecx, [eax + 0x190]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x30], ecx
lea ecx, [eax + 0x99a]
mov dword [ebp - 0x1c], eax
add eax, 0xba4
cmp dword [ebp + 0x10], edi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x14], eax
mov word [eax], di
je 0x411b15
mov dword [ebp - 0x74], edi
push 7
pop ecx
xor eax, eax
cmp byte [0x496b85], 1
push 0x4d
lea edi, [ebp - 0x70]
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x2f8]
rep stosd dword es:[edi], eax
push 0x4e
pop ecx
lea edi, [ebp - 0x1c4]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2fc], eax
mov dword [ebp - 0x2f8], eax
mov edi, 0x138
jne 0x411ad0
mov edi, 0x270
push eax
push 0x20
lea eax, [ebp - 0x74]
push eax
push 3
call dword [0x496e44]
push 0
push edi
lea eax, [ebp - 0x2fc]
push eax
push ebx
call dword [0x496e44]
push dword [ebp - 0x2f8]
push dword [ebp - 0x2fc]
push dword [ebp - 0x1c]
call fcn.00436260
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push esi
call fcn.00436260
add esp, 0x18
xor edi, edi
cmp byte [ebp + 0xc], 0
jne 0x411bf2
mov eax, dword [ebp + 8]
cmp word [eax], di
jne 0x411bf2
mov edi, dword [ebp + 0x10]
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.00436622
push 0x48317c
mov ecx, edi
call fcn.0042c877
push esi
mov ecx, edi
call fcn.0042c877
cmp byte [0x496bac], 0
ja 0x411b5a
call fcn.00403a09
movzx eax, byte [0x496bac]
push eax
lea eax, [ebp - 0x374]
push str._t_d_t
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x374]
push eax
mov ecx, edi
call fcn.0042c877
push dword [0x496c24]
lea eax, [ebp - 0x374]
push dword [0x496c20]
push eax
call fcn.00436260
add esp, 0xc
lea eax, [ebp - 0x374]
push eax
mov ecx, edi
call fcn.0042c877
fild qword [0x496c20]
lea ecx, [ebp - 0xc]
fdivr qword [0x483168]
fstp qword [ebp - 0x38]
call fcn.0042c809
fld qword [ebp - 0x38]
push str._t_lf
push ecx
push ecx
lea eax, [ebp - 0xc]
fstp qword [esp]
push eax
call fcn.0043f6f6
add esp, 0x10
push dword [ebp - 0xc]
mov ecx, edi
call fcn.0042c877
lea ecx, [ebp - 0xc]
call fcn.00427365
xor edi, edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push dword [ebp + 0x18]
mov esi, eax
push ebx
mov dword [ebp - 0x44], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x18], eax
jne 0x411c14
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x411cb9
lea ecx, [ebp - 0x2b8]
push ecx
push eax
mov dword [ebp - 0x2b8], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x411ee7
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x411c52
cmp eax, dword [ebp - 0x2a0]
jne 0x411ed8
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x411c65
cmp eax, dword [ebp - 0x2b0]
jne 0x411ed8
cmp byte [ebp - 0xd], 0
je 0x411d1d
cmp byte [ebp + 0xc], 0
je 0x411cd1
cmp esi, edi
je 0x411c92
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x411ed8
cmp dword [ebp + 0x10], edi
jne 0x411d88
cmp byte [ebp - 1], 0
je 0x411cb0
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2b0]
je 0x411ed8
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x14]
call fcn.00402a26
lea ecx, [ebp - 0x28]
call fcn.00427365
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
cmp esi, edi
jne 0x411ce7
cmp word [ebp - 0x294], di
jne 0x411ed8
jmp 0x411d8b
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x411ed8
cmp dword [ebp + 0x10], edi
jne 0x411d88
cmp byte [ebp - 1], al
mov eax, dword [ebp - 0x2b0]
je 0x411cb6
cmp dword [ebp - 0x20], eax
jne 0x411cb6
jmp 0x411ed8
cmp byte [ebp + 0xc], 0
je 0x411d44
cmp esi, edi
je 0x411c92
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x411c92
cmp esi, edi
je 0x411ed8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x411ed8
cmp byte [ebp + 0xc], al
jne 0x411ed8
mov ax, word [ebp + esi*2 - 0x294]
cmp ax, di
je 0x411c92
cmp ax, 0x2e
jmp 0x411c8c
inc dword [ebp - 8]
push dword [ebp - 0x2b0]
xor esi, esi
push esi
push 0x400
xor ebx, ebx
mov dword [ebp - 0x34], esi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, esi
mov dword [ebp - 0xc], eax
je 0x411e2a
push esi
push 0x496d78
push str.PSAPI.DLL
push str.GetProcessMemoryInfo
call fcn.004282c3
add esp, 0x10
push 0x28
pop edx
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x74]
mov dword [ebp - 0x7c], edx
mov dword [ebp - 0x78], esi
rep stosd dword es:[edi], eax
mov eax, dword [0x496d78]
test eax, eax
je 0x411de9
push edx
lea ecx, [ebp - 0x7c]
push ecx
push dword [ebp - 0xc]
call eax
mov esi, dword [ebp - 0x70]
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x8c]
push eax
push dword [ebp - 0xc]
shr esi, 0xa
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x411e21
mov ebx, dword [ebp - 0x54]
add ebx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x50]
adc eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], eax
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
push dword [ebp - 0x2b0]
call fcn.00403a7a
mov edi, dword [ebp - 0x3c]
push 0x8000
push edi
push dword [ebp - 0x2b0]
call fcn.0040921a
push dword [ebp - 0x34]
and word [edi + 0x8000], 0
push ebx
push dword [ebp - 0x2c]
call fcn.00436260
mov eax, dword [ebp - 0x2c]
add esp, 0x20
cmp dword [ebp - 0x2b0], 0
jne 0x411e72
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x40]
push eax
push esi
push dword [ebp - 0x2a0]
push dword [ebp - 0x2b0]
push str._lu_t_lu_t_lu_t_s_t_s_t
push dword [ebp - 0x30]
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
add esp, 0x1c
cmp word [eax], 0
je 0x411eab
push 0x483110
mov ecx, esi
call fcn.0042c877
push dword [ebp - 0x30]
mov ecx, esi
call fcn.0042c877
push dword [ebp - 0x24]
mov ecx, esi
call fcn.0042c877
push 0x48317c
mov ecx, esi
call fcn.0042c877
push edi
mov ecx, esi
call fcn.0042c877
mov esi, dword [ebp - 0x44]
xor edi, edi
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp - 0x18]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x411c3f
jmp 0x411cb9