Function at 0x412e7d
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 0x412eac
cmp dword [ebp + 0x10], edi
jne 0x412eac
cmp dword [ebp + 0x14], edi
jne 0x412eac
cmp dword [ebp + 0x18], edi
jne 0x412eac
push dword [ebp + 8]
call fcn.0040afff
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 [0x49ae5c], edi
mov dword [ebp - 0x20], eax
jne 0x412ef0
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x49ae5c], eax
mov esi, 0x49b604
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x49b1c8], 4
jne 0x412f1e
cmp dword [ebp + 0x10], edi
je 0x412f1e
or byte [0x49b1c8], 8
push ebx
push str.SeDebugPrivilege
call fcn.0040e27e
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.0042e1e2
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 0x413009
mov dword [ebp - 0x74], edi
push 7
pop ecx
xor eax, eax
cmp byte [0x49ab85], 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 0x412fc4
mov edi, 0x270
push eax
push 0x20
lea eax, [ebp - 0x74]
push eax
push 3
call dword [0x49ae5c]
push 0
push edi
lea eax, [ebp - 0x2fc]
push eax
push ebx
call dword [0x49ae5c]
push dword [ebp - 0x2f8]
push dword [ebp - 0x2fc]
push dword [ebp - 0x1c]
call fcn.0042dbdb
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push esi
call fcn.0042dbdb
add esp, 0x18
xor edi, edi
cmp byte [ebp + 0xc], 0
jne 0x4130e6
mov eax, dword [ebp + 8]
cmp word [eax], di
jne 0x4130e6
mov edi, dword [ebp + 0x10]
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.0043a522
push 0x48b270
mov ecx, edi
call fcn.0042e232
push esi
mov ecx, edi
call fcn.0042e232
cmp byte [0x49abac], 0
ja 0x41304e
call fcn.00403b36
movzx eax, byte [0x49abac]
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.0042e232
push dword [0x49ac2c]
lea eax, [ebp - 0x374]
push dword [0x49ac28]
push eax
call fcn.0042dbdb
add esp, 0xc
lea eax, [ebp - 0x374]
push eax
mov ecx, edi
call fcn.0042e232
fild qword [0x49ac28]
lea ecx, [ebp - 0xc]
fdivr qword [0x487388]
fstp qword [ebp - 0x38]
call fcn.0042e1c4
fld qword [ebp - 0x38]
push str._t_lf
push ecx
push ecx
lea eax, [ebp - 0xc]
fstp qword [esp]
push eax
call fcn.00442af9
add esp, 0x10
push dword [ebp - 0xc]
mov ecx, edi
call fcn.0042e232
lea ecx, [ebp - 0xc]
call fcn.00428a48
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 0x413108
mov dword [ebp - 0x18], edi
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
je 0x4131ad
lea ecx, [ebp - 0x2b8]
push ecx
push eax
mov dword [ebp - 0x2b8], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4133db
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x413146
cmp eax, dword [ebp - 0x2a0]
jne 0x4133cc
mov eax, dword [ebp + 0x18]
cmp eax, edi
je 0x413159
cmp eax, dword [ebp - 0x2b0]
jne 0x4133cc
cmp byte [ebp - 0xd], 0
je 0x413211
cmp byte [ebp + 0xc], 0
je 0x4131c5
cmp esi, edi
je 0x413186
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4133cc
cmp dword [ebp + 0x10], edi
jne 0x41327c
cmp byte [ebp - 1], 0
je 0x4131a4
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x2b0]
je 0x4133cc
mov eax, dword [ebp - 0x2b0]
mov dword [ebp - 8], eax
lea ecx, [ebp - 0x14]
call fcn.00402abc
lea ecx, [ebp - 0x28]
call fcn.00428a48
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
leave
ret
cmp esi, edi
jne 0x4131db
cmp word [ebp - 0x294], di
jne 0x4133cc
jmp 0x41327f
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x4133cc
cmp dword [ebp + 0x10], edi
jne 0x41327c
cmp byte [ebp - 1], al
mov eax, dword [ebp - 0x2b0]
je 0x4131aa
cmp dword [ebp - 0x20], eax
jne 0x4131aa
jmp 0x4133cc
cmp byte [ebp + 0xc], 0
je 0x413238
cmp esi, edi
je 0x413186
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
je 0x413186
cmp esi, edi
je 0x4133cc
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4133cc
cmp byte [ebp + 0xc], al
jne 0x4133cc
mov ax, word [ebp + esi*2 - 0x294]
cmp ax, di
je 0x413186
cmp ax, 0x2e
jmp 0x413180
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 0x41331e
push esi
push 0x49ad80
push str.PSAPI.DLL
push str.GetProcessMemoryInfo
call fcn.004299ca
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 [0x49ad80]
test eax, eax
je 0x4132dd
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 0x413315
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.00403ba7
mov edi, dword [ebp - 0x3c]
push 0x8000
push edi
push dword [ebp - 0x2b0]
call fcn.00409ed7
push dword [ebp - 0x34]
and word [edi + 0x8000], 0
push ebx
push dword [ebp - 0x2c]
call fcn.0042dbdb
mov eax, dword [ebp - 0x2c]
add esp, 0x20
cmp dword [ebp - 0x2b0], 0
jne 0x413366
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 0x41339f
push 0x487330
mov ecx, esi
call fcn.0042e232
push dword [ebp - 0x30]
mov ecx, esi
call fcn.0042e232
push dword [ebp - 0x24]
mov ecx, esi
call fcn.0042e232
push 0x48b270
mov ecx, esi
call fcn.0042e232
push edi
mov ecx, esi
call fcn.0042e232
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 0x413133
jmp 0x4131ad