Function at 0x412089
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 0x4120b8
cmp dword [ebp + 0x10], edi
jne 0x4120b8
cmp dword [ebp + 0x14], edi
jne 0x4120b8
cmp dword [ebp + 0x18], edi
jne 0x4120b8
push dword [ebp + 8]
call fcn.00409e61
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 [0x48fe58], edi
mov dword [ebp - 0x20], eax
jne 0x4120fc
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x48fe58], eax
mov esi, 0x49062c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x4901c4], 4
jne 0x41212a
cmp dword [ebp + 0x10], edi
je 0x41212a
or byte [0x4901c4], 8
push ebx
push str.SeDebugPrivilege
call fcn.0040cf93
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.0042aed6
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 0x412215
mov dword [ebp - 0x74], edi
push 7
pop ecx
xor eax, eax
cmp byte [0x48fba5], 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 0x4121d0
mov edi, 0x270
push eax
push 0x20
lea eax, [ebp - 0x74]
push eax
push 3
call dword [0x48fe58]
push 0
push edi
lea eax, [ebp - 0x2fc]
push eax
push ebx
call dword [0x48fe58]
push dword [ebp - 0x2f8]
push dword [ebp - 0x2fc]
push dword [ebp - 0x1c]
call fcn.00434504
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push esi
call fcn.00434504
add esp, 0x18
xor edi, edi
cmp byte [ebp + 0xc], 0
jne 0x412304
mov eax, dword [ebp + 8]
cmp word [eax], di
jne 0x412304
mov eax, dword [0x48fc30]
or eax, dword [0x48fc34]
jne 0x41223d
call fcn.0040b957
mov edi, dword [ebp + 0x10]
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.004346c9
push 0x47d1b4
mov ecx, edi
call fcn.0042af26
push esi
mov ecx, edi
call fcn.0042af26
cmp byte [0x48fbc4], 0
ja 0x41226c
call fcn.00403879
movzx eax, byte [0x48fbc4]
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.0042af26
push dword [0x48fc34]
lea eax, [ebp - 0x374]
push dword [0x48fc30]
push eax
call fcn.00434504
add esp, 0xc
lea eax, [ebp - 0x374]
push eax
mov ecx, edi
call fcn.0042af26
fild qword [0x48fc30]
lea ecx, [ebp - 0xc]
fdivr qword [0x47d1a0]
fstp qword [ebp - 0x38]
call fcn.0042aeb8
fld qword [ebp - 0x38]
push str._t_lf
push ecx
push ecx
lea eax, [ebp - 0xc]
fstp qword [esp]
push eax
call fcn.004344a4
add esp, 0x10
push dword [ebp - 0xc]
mov ecx, edi
call fcn.0042af26
lea ecx, [ebp - 0xc]
call fcn.0042602e
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 0x412326
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4123cb
lea ecx, [ebp - 0x2b8]
push ecx
push eax
mov dword [ebp - 0x2b8], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4125f9
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x412364
cmp eax, dword [ebp - 0x2a0]
jne 0x4125ea
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x412377
cmp eax, dword [ebp - 0x2b0]
jne 0x4125ea
cmp byte [ebp - 0xd], 0
je 0x41242f
cmp byte [ebp + 0xc], 0
je 0x4123e3
cmp esi, edi
je 0x4123a4
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4125ea
cmp dword [ebp + 0x10], edi
jne 0x41249a
cmp byte [ebp - 1], 0
je 0x4123c2
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2b0]
je 0x4125ea
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x14]
call fcn.004029f8
lea ecx, [ebp - 0x28]
call fcn.0042602e
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
cmp esi, edi
jne 0x4123f9
cmp word [ebp - 0x294], di
jne 0x4125ea
jmp 0x41249d
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4125ea
cmp dword [ebp + 0x10], edi
jne 0x41249a
cmp byte [ebp - 1], al
mov eax, dword [ebp - 0x2b0]
je 0x4123c8
cmp dword [ebp - 0x20], eax
jne 0x4123c8
jmp 0x4125ea
cmp byte [ebp + 0xc], 0
je 0x412456
cmp esi, edi
je 0x4123a4
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x4123a4
cmp esi, edi
je 0x4125ea
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4125ea
cmp byte [ebp + 0xc], al
jne 0x4125ea
mov ax, word [ebp + esi*2 - 0x294]
cmp ax, di
je 0x4123a4
cmp ax, 0x2e
jmp 0x41239e
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 0x41253c
push esi
push 0x48fd8c
push str.PSAPI.DLL
push str.GetProcessMemoryInfo
call fcn.00426fd9
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 [0x48fd8c]
test eax, eax
je 0x4124fb
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 0x412533
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.004038ea
mov edi, dword [ebp - 0x3c]
push 0x8000
push edi
push dword [ebp - 0x2b0]
call fcn.00408d7e
push dword [ebp - 0x34]
and word [edi + 0x8000], 0
push ebx
push dword [ebp - 0x2c]
call fcn.00434504
mov eax, dword [ebp - 0x2c]
add esp, 0x20
cmp dword [ebp - 0x2b0], 0
jne 0x412584
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 0x4125bd
push 0x47ac0c
mov ecx, esi
call fcn.0042af26
push dword [ebp - 0x30]
mov ecx, esi
call fcn.0042af26
push dword [ebp - 0x24]
mov ecx, esi
call fcn.0042af26
push 0x47d1b4
mov ecx, esi
call fcn.0042af26
push edi
mov ecx, esi
call fcn.0042af26
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 0x412351
jmp 0x4123cb