Function at 0x4131ce
Capabilities:
Acquire debug privileges
Enumerate processes
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x374
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x4131fc
cmp dword [ebp + 0x10], edi
jne 0x4131fc
cmp dword [ebp + 0x14], edi
jne 0x4131fc
cmp dword [ebp + 0x18], edi
jne 0x4131fc
push dword [ebp + 8]
call fcn.0040b80d
pop ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
and eax, 0x10000
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
and eax, 2
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0xc]
and dword [ebp + 0xc], 1
and eax, 0x10
mov dword [ebp - 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [0x4a5e98], edi
mov dword [ebp - 0x20], eax
jne 0x41324a
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a5e98], eax
mov esi, 0x4a6658
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x4a6a4c], 4
jne 0x413279
cmp dword [ebp + 0x10], edi
je 0x413279
or byte [0x4a6a4c], 8
push 2
push str.SeDebugPrivilege
call fcn.0040ee29
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x46e7
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], edi
call fcn.00432cd5
mov eax, dword [ebp - 0x34]
lea edi, [eax + 0xa0]
mov dword [ebp - 0x18], eax
xor eax, eax
push eax
lea ebx, [edi + 0xf0]
push 0x24
mov dword [ebp - 0x2c], ebx
add ebx, 0x80a
push ebx
mov word [ebx + 0x414], ax
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x38], edi
mov word [ebx], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push ebx
call esi
cmp dword [ebp + 0x10], 0
lea eax, [ebx + eax*2]
mov dword [ebp - 0x40], eax
je 0x413374
and dword [ebp - 0x74], 0
push 7
pop ecx
xor eax, eax
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
xor edi, edi
cmp byte [0x4a5b85], 1
mov dword [ebp - 0x2fc], edi
mov dword [ebp - 0x2f8], edi
mov dword [ebp - 0xc], 0x138
jne 0x41332a
mov dword [ebp - 0xc], 0x270
push edi
push 0x20
lea eax, [ebp - 0x74]
push eax
push 3
call dword [0x4a5e98]
push edi
push dword [ebp - 0xc]
lea eax, [ebp - 0x2fc]
push eax
push 2
call dword [0x4a5e98]
push dword [ebp - 0x2f8]
push dword [ebp - 0x2fc]
push dword [ebp - 0x18]
call fcn.0046f8a5
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
push dword [ebp - 0x10]
call fcn.0046f8a5
mov edi, dword [ebp - 0x10]
add esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x413452
mov eax, dword [ebp + 8]
cmp word [eax], 0
jne 0x413452
push dword [ebp - 0x18]
mov ecx, dword [ebp + 0x10]
call fcn.0043cd64
mov ecx, dword [ebp + 0x10]
push 0x495798
call fcn.00432d25
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.00432d25
cmp byte [0x4a5bb0], 0
ja 0x4133bc
call fcn.00403bdc
movzx eax, byte [0x4a5bb0]
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.00432d25
push dword [0x4a5c34]
lea eax, [ebp - 0x374]
push dword [0x4a5c30]
push eax
call fcn.0046f8a5
add esp, 0xc
lea eax, [ebp - 0x374]
push eax
mov ecx, edi
call fcn.00432d25
fild qword [0x4a5c30]
lea ecx, [ebp - 8]
fdivr qword [0x491108]
fstp qword [ebp - 0x28]
call fcn.00432cb7
fld qword [ebp - 0x28]
push str._t_lf
push ecx
push ecx
lea eax, [ebp - 8]
fstp qword [esp]
push eax
call fcn.0046f818
add esp, 0x10
push dword [ebp - 8]
mov ecx, edi
call fcn.00432d25
lea ecx, [ebp - 8]
call fcn.0042dd2d
push dword [ebp + 8]
call esi
push dword [ebp + 0x18]
mov esi, eax
push 2
mov dword [ebp - 0x44], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor edi, edi
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x413475
mov dword [ebp - 0xc], edi
mov eax, edi
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
je 0x413514
lea ecx, [ebp - 0x2b8]
push ecx
push eax
mov dword [ebp - 0x2b8], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4137a3
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x4134b0
cmp eax, dword [ebp - 0x2a0]
jne 0x413794
cmp dword [ebp + 0x18], edi
mov eax, dword [ebp - 0x2b0]
je 0x4134c4
cmp dword [ebp + 0x18], eax
jne 0x413794
cmp dword [ebp - 0x3c], edi
je 0x41356f
cmp dword [ebp + 0xc], edi
je 0x41352c
cmp esi, edi
je 0x4134fa
push dword [ebp - 0x14]
lea eax, [ebp - 0x294]
push esi
push dword [ebp + 8]
push eax
call fcn.0040d4c4
add esp, 0x10
test al, al
je 0x413794
mov eax, dword [ebp - 0x2b0]
cmp dword [ebp + 0x10], edi
jne 0x4135e5
cmp dword [ebp - 0x1c], edi
je 0x413511
cmp dword [ebp - 0x20], eax
je 0x413794
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x38]
call fcn.00402ad9
lea ecx, [ebp - 0x34]
call fcn.0042dd2d
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
cmp esi, edi
jne 0x413542
cmp word [ebp - 0x294], di
jne 0x413794
jmp 0x4135e8
cmp dword [ebp - 0x14], edi
jne 0x41355b
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4134f4
push dword [ebp + 8]
lea eax, [ebp - 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jmp 0x4135da
cmp dword [ebp + 0xc], edi
je 0x413596
cmp esi, edi
je 0x4134fa
push dword [ebp - 0x14]
lea eax, [ebp - 0x294]
push esi
push dword [ebp + 8]
push eax
call fcn.0040d4c4
add esp, 0x10
test al, al
jne 0x4134f4
cmp esi, edi
je 0x413794
push dword [ebp - 0x14]
lea eax, [ebp - 0x294]
push esi
push dword [ebp + 8]
push eax
call fcn.0040d4c4
add esp, 0x10
test al, al
je 0x413794
cmp dword [ebp + 0xc], edi
jne 0x413794
mov ax, word [ebp + esi*2 - 0x294]
cmp ax, di
je 0x4134f4
cmp ax, 0x2e
jne 0x413794
jmp 0x4134f4
inc dword [ebp - 4]
push eax
push edi
push 0x400
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x30], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x413683
push edi
push 0x4a5d84
push str.PSAPI.DLL
push str.GetProcessMemoryInfo
call fcn.0042ed10
add esp, 0x10
push 0x28
pop edx
mov dword [ebp - 0x78], edi
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x74]
mov dword [ebp - 0x7c], edx
rep stosd dword es:[edi], eax
mov eax, dword [0x4a5d84]
test eax, eax
je 0x413640
push edx
lea ecx, [ebp - 0x7c]
push ecx
push esi
call eax
mov eax, dword [ebp - 0x70]
shr eax, 0xa
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x8c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x41367c
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x54]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x48]
adc eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebx + 0x20a]
push edi
push dword [ebp - 0x2b0]
mov dword [ebp - 8], edi
call fcn.00403c4d
cmp word [edi], 0x5c
pop ecx
pop ecx
jne 0x4136ca
cmp word [edi + 2], 0x3f
jne 0x4136ca
cmp word [edi + 4], 0x3f
jne 0x4136ca
cmp word [edi + 6], 0x5c
jne 0x4136ca
lea eax, [edi + 8]
cmp word [eax], 0
je 0x4136ca
cmp word [edi + 0xa], 0x3a
jne 0x4136ca
mov dword [ebp - 8], eax
jmp 0x4136ec
push 0xc
push edi
push str.SystemRoot_
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4136ec
lea eax, [edi + 0x16]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 8], ebx
push 0x8000
lea esi, [edi + 0x20a]
push esi
push dword [ebp - 0x2b0]
call fcn.0040a6d1
push dword [ebp - 0x24]
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x28]
and word [esi + 0x8000], 0
add edi, 0x64
push edi
call fcn.0046f8a5
add esp, 0x18
cmp dword [ebp - 0x2b0], 0
jne 0x41372c
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x10]
push edi
push dword [ebp - 0x30]
push dword [ebp - 0x2a0]
push dword [ebp - 0x2b0]
push str._lu_t_lu_t_lu_t_s_t_s_t
push dword [ebp - 0x2c]
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add esp, 0x1c
cmp word [eax], 0
je 0x413767
push 0x491098
mov ecx, edi
call fcn.00432d25
push dword [ebp - 0x2c]
mov ecx, edi
call fcn.00432d25
push dword [ebp - 8]
mov ecx, edi
call fcn.00432d25
push 0x495798
mov ecx, edi
call fcn.00432d25
push esi
mov ecx, edi
call fcn.00432d25
mov esi, dword [ebp - 0x44]
xor edi, edi
lea eax, [ebp - 0x2b8]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41349d
jmp 0x413514