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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
push ebx
push esi
push edi
xor edi, edi
cmp dword [ebp + 0xc], edi
jne 0x4133f3
cmp dword [ebp + 0x10], edi
jne 0x4133f3
cmp dword [ebp + 0x14], edi
jne 0x4133f3
cmp dword [ebp + 0x18], edi
jne 0x4133f3
push dword [ebp + 8]
call fcn.0040b7b7
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 - 0x38], eax
mov eax, dword [ebp + 0xc]
and dword [ebp + 0xc], 1
and eax, 0x10
mov dword [ebp - 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [0x4a6e98], edi
mov dword [ebp - 0x1c], eax
jne 0x413441
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a6e98], eax
mov esi, 0x4a7658
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x4a7a4c], 4
jne 0x413470
cmp dword [ebp + 0x10], edi
je 0x413470
or byte [0x4a7a4c], 8
push 2
push str.SeDebugPrivilege
call fcn.0040f029
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x46e7
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], edi
call fcn.00433c42
mov eax, dword [ebp - 0x30]
lea edi, [eax + 0xa0]
mov dword [ebp - 0x28], eax
xor eax, eax
push eax
lea ebx, [edi + 0x8fa]
push 0x24
push ebx
mov word [ebx + 0x414], ax
push eax
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x34], 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 - 0x3c], eax
je 0x413562
and dword [ebp - 0x70], 0
push 7
pop ecx
xor eax, eax
push 0x4d
lea edi, [ebp - 0x6c]
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x2f4]
rep stosd dword es:[edi], eax
push 0x4e
pop ecx
lea edi, [ebp - 0x1c0]
rep stosd dword es:[edi], eax
xor edi, edi
cmp byte [0x4a6b85], 1
mov dword [ebp - 0x2f8], edi
mov dword [ebp - 0x2f4], edi
mov dword [ebp - 0xc], 0x138
jne 0x413518
mov dword [ebp - 0xc], 0x270
push edi
push 0x20
lea eax, [ebp - 0x70]
push eax
push 3
call dword [0x4a6e98]
push edi
push dword [ebp - 0xc]
lea eax, [ebp - 0x2f8]
push eax
push 2
call dword [0x4a6e98]
push dword [ebp - 0x2f4]
push dword [ebp - 0x2f8]
push dword [ebp - 0x28]
call fcn.00470db5
push dword [ebp - 0x64]
push dword [ebp - 0x68]
push dword [ebp - 0x10]
call fcn.00470db5
mov edi, dword [ebp - 0x10]
add esp, 0x18
cmp dword [ebp + 0xc], 0
jne 0x413640
mov eax, dword [ebp + 8]
cmp word [eax], 0
jne 0x413640
push dword [ebp - 0x28]
mov ecx, dword [ebp + 0x10]
call fcn.0043de31
mov ecx, dword [ebp + 0x10]
push 0x4968b8
call fcn.00433c92
push edi
mov edi, dword [ebp + 0x10]
mov ecx, edi
call fcn.00433c92
cmp byte [0x4a6bb0], 0
ja 0x4135aa
call fcn.00403be9
movzx eax, byte [0x4a6bb0]
push eax
lea eax, [ebp - 0x370]
push str._t_d_t
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x370]
push eax
mov ecx, edi
call fcn.00433c92
push dword [0x4a6c34]
lea eax, [ebp - 0x370]
push dword [0x4a6c30]
push eax
call fcn.00470db5
add esp, 0xc
lea eax, [ebp - 0x370]
push eax
mov ecx, edi
call fcn.00433c92
fild qword [0x4a6c30]
lea ecx, [ebp - 8]
fdivr qword [0x492000]
fstp qword [ebp - 0x24]
call fcn.00433c24
fld qword [ebp - 0x24]
push str._t_lf
push ecx
push ecx
lea eax, [ebp - 8]
fstp qword [esp]
push eax
call fcn.00470d28
add esp, 0x10
push dword [ebp - 8]
mov ecx, edi
call fcn.00433c92
lea ecx, [ebp - 8]
call fcn.0042eb98
push dword [ebp + 8]
call esi
push dword [ebp + 0x18]
mov esi, eax
push 2
mov dword [ebp - 0x40], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
xor edi, edi
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
jne 0x413663
mov dword [ebp - 0xc], edi
mov eax, edi
cmp eax, 0xffffffff
mov dword [ebp - 0x34], eax
je 0x413702
lea ecx, [ebp - 0x2b4]
push ecx
push eax
mov dword [ebp - 0x2b4], 0x22c
call sub.KERNEL32.dll_Process32FirstW
jmp 0x413997
mov eax, dword [ebp + 0x14]
cmp eax, edi
je 0x41369e
cmp eax, dword [ebp - 0x29c]
jne 0x413988
cmp dword [ebp + 0x18], edi
mov eax, dword [ebp - 0x2ac]
je 0x4136b2
cmp dword [ebp + 0x18], eax
jne 0x413988
cmp dword [ebp - 0x38], edi
je 0x41375d
cmp dword [ebp + 0xc], edi
je 0x41371a
cmp esi, edi
je 0x4136e8
push dword [ebp - 0x14]
lea eax, [ebp - 0x290]
push esi
push dword [ebp + 8]
push eax
call fcn.0040d914
add esp, 0x10
test al, al
je 0x413988
mov eax, dword [ebp - 0x2ac]
cmp dword [ebp + 0x10], edi
jne 0x4137d3
cmp dword [ebp - 0x2c], edi
je 0x4136ff
cmp dword [ebp - 0x1c], eax
je 0x413988
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x34]
call fcn.00402ac9
lea ecx, [ebp - 0x30]
call fcn.0042eb98
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
cmp esi, edi
jne 0x413730
cmp word [ebp - 0x290], di
jne 0x413988
jmp 0x4137d6
cmp dword [ebp - 0x14], edi
jne 0x413749
push dword [ebp + 8]
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4136e2
push dword [ebp + 8]
lea eax, [ebp - 0x290]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jmp 0x4137c8
cmp dword [ebp + 0xc], edi
je 0x413784
cmp esi, edi
je 0x4136e8
push dword [ebp - 0x14]
lea eax, [ebp - 0x290]
push esi
push dword [ebp + 8]
push eax
call fcn.0040d914
add esp, 0x10
test al, al
jne 0x4136e2
cmp esi, edi
je 0x413988
push dword [ebp - 0x14]
lea eax, [ebp - 0x290]
push esi
push dword [ebp + 8]
push eax
call fcn.0040d914
add esp, 0x10
test al, al
je 0x413988
cmp dword [ebp + 0xc], edi
jne 0x413988
mov ax, word [ebp + esi*2 - 0x290]
cmp ax, di
je 0x4136e2
cmp ax, 0x2e
jne 0x413988
jmp 0x4136e2
inc dword [ebp - 4]
push eax
push edi
push 0x400
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], edi
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, edi
je 0x41386e
push edi
push 0x4a6d84
push str.PSAPI.DLL
push str.GetProcessMemoryInfo
call fcn.0042fb47
add esp, 0x10
push 0x28
pop edx
mov dword [ebp - 0x74], edi
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x70]
mov dword [ebp - 0x78], edx
rep stosd dword es:[edi], eax
mov eax, dword [0x4a6d84]
test eax, eax
je 0x41382e
push edx
lea ecx, [ebp - 0x78]
push ecx
push esi
call eax
mov eax, dword [ebp - 0x6c]
shr eax, 0xa
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x413867
mov eax, dword [ebp - 0x48]
add eax, dword [ebp - 0x50]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x44]
adc eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edi, [ebx + 0x20a]
push edi
push dword [ebp - 0x2ac]
mov dword [ebp - 8], edi
call fcn.00403c5a
cmp word [edi], 0x5c
pop ecx
pop ecx
jne 0x4138b5
cmp word [edi + 2], 0x3f
jne 0x4138b5
cmp word [edi + 4], 0x3f
jne 0x4138b5
cmp word [edi + 6], 0x5c
jne 0x4138b5
lea eax, [edi + 8]
cmp word [eax], 0
je 0x4138b5
cmp word [edi + 0xa], 0x3a
jne 0x4138b5
mov dword [ebp - 8], eax
jmp 0x4138d7
push 0xc
push edi
push str.SystemRoot_
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4138d7
lea eax, [edi + 0x16]
push eax
push dword [ebp - 0x3c]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp - 8], ebx
push 0x8000
lea esi, [edi + 0x20a]
push esi
push dword [ebp - 0x2ac]
call fcn.0040a6f3
push dword [ebp - 0x20]
mov edi, dword [ebp - 0x10]
push dword [ebp - 0x24]
and word [esi + 0x8000], 0
add edi, 0x64
push edi
call fcn.00470db5
add esp, 0x18
cmp dword [ebp - 0x2ac], 0
mov eax, edi
jne 0x413919
mov eax, dword [ebp - 0x28]
push dword [ebp - 0x10]
add edi, 0x8c
push eax
push dword [ebp - 0x18]
mov dword [ebp - 0x18], edi
push dword [ebp - 0x29c]
push dword [ebp - 0x2ac]
push 0x491f98
push edi
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add esp, 0x1c
cmp word [eax], 0
je 0x41395b
push 0x48fce4
mov ecx, edi
call fcn.00433c92
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00433c92
push dword [ebp - 8]
mov ecx, edi
call fcn.00433c92
push 0x4968b8
mov ecx, edi
call fcn.00433c92
push esi
mov ecx, edi
call fcn.00433c92
mov esi, dword [ebp - 0x40]
xor edi, edi
lea eax, [ebp - 0x2b4]
push eax
push dword [ebp - 0xc]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x41368b
jmp 0x413702