Function at 0x4117bf
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 0x4117ee
cmp dword [ebp + 0x10], edi
jne 0x4117ee
cmp dword [ebp + 0x14], edi
jne 0x4117ee
cmp dword [ebp + 0x18], edi
jne 0x4117ee
push dword [ebp + 8]
call fcn.0040a22f
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 0x411832
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 0x411860
cmp dword [ebp + 0x10], edi
je 0x411860
or byte [0x4971a8], 8
push ebx
push str.SeDebugPrivilege
call fcn.0040d3a0
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.0042c415
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 0x41194b
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 0x411906
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.00435e84
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push esi
call fcn.00435e84
add esp, 0x18
xor edi, edi
cmp byte [ebp + 0xc], 0
jne 0x411a28
mov eax, dword [ebp + 8]
cmp word [eax], di
jne 0x411a28
mov edi, dword [ebp + 0x10]
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.00436246
push 0x483174
mov ecx, edi
call fcn.0042c465
push esi
mov ecx, edi
call fcn.0042c465
cmp byte [0x496bac], 0
ja 0x411990
call fcn.004039b3
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.0042c465
push dword [0x496c24]
lea eax, [ebp - 0x374]
push dword [0x496c20]
push eax
call fcn.00435e84
add esp, 0xc
lea eax, [ebp - 0x374]
push eax
mov ecx, edi
call fcn.0042c465
fild qword [0x496c20]
lea ecx, [ebp - 0xc]
fdivr qword [0x483160]
fstp qword [ebp - 0x38]
call fcn.0042c3f7
fld qword [ebp - 0x38]
push str._t_lf
push ecx
push ecx
lea eax, [ebp - 0xc]
fstp qword [esp]
push eax
call fcn.0043f2fe
add esp, 0x10
push dword [ebp - 0xc]
mov ecx, edi
call fcn.0042c465
lea ecx, [ebp - 0xc]
call fcn.0042704a
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 0x411a4a
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x411aef
lea ecx, [ebp - 0x2b8]
push ecx
push eax
mov dword [ebp - 0x2b8], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x411d1d
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x411a88
cmp eax, dword [ebp - 0x2a0]
jne 0x411d0e
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x411a9b
cmp eax, dword [ebp - 0x2b0]
jne 0x411d0e
cmp byte [ebp - 0xd], 0
je 0x411b53
cmp byte [ebp + 0xc], 0
je 0x411b07
cmp esi, edi
je 0x411ac8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x411d0e
cmp dword [ebp + 0x10], edi
jne 0x411bbe
cmp byte [ebp - 1], 0
je 0x411ae6
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2b0]
je 0x411d0e
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x14]
call fcn.0040296e
lea ecx, [ebp - 0x28]
call fcn.0042704a
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
cmp esi, edi
jne 0x411b1d
cmp word [ebp - 0x294], di
jne 0x411d0e
jmp 0x411bc1
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x411d0e
cmp dword [ebp + 0x10], edi
jne 0x411bbe
cmp byte [ebp - 1], al
mov eax, dword [ebp - 0x2b0]
je 0x411aec
cmp dword [ebp - 0x20], eax
jne 0x411aec
jmp 0x411d0e
cmp byte [ebp + 0xc], 0
je 0x411b7a
cmp esi, edi
je 0x411ac8
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x411ac8
cmp esi, edi
je 0x411d0e
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x411d0e
cmp byte [ebp + 0xc], al
jne 0x411d0e
mov ax, word [ebp + esi*2 - 0x294]
cmp ax, di
je 0x411ac8
cmp ax, 0x2e
jmp 0x411ac2
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 0x411c60
push esi
push 0x496d78
push str.PSAPI.DLL
push str.GetProcessMemoryInfo
call fcn.00427f74
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 0x411c1f
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 0x411c57
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.00403a24
mov edi, dword [ebp - 0x3c]
push 0x8000
push edi
push dword [ebp - 0x2b0]
call fcn.004090ce
push dword [ebp - 0x34]
and word [edi + 0x8000], 0
push ebx
push dword [ebp - 0x2c]
call fcn.00435e84
mov eax, dword [ebp - 0x2c]
add esp, 0x20
cmp dword [ebp - 0x2b0], 0
jne 0x411ca8
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 0x411ce1
push 0x480c6c
mov ecx, esi
call fcn.0042c465
push dword [ebp - 0x30]
mov ecx, esi
call fcn.0042c465
push dword [ebp - 0x24]
mov ecx, esi
call fcn.0042c465
push 0x483174
mov ecx, esi
call fcn.0042c465
push edi
mov ecx, esi
call fcn.0042c465
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 0x411a75
jmp 0x411aef