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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x378
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
jne 0x413e2b
cmp dword [ebp + 0x10], ebx
jne 0x413e2b
cmp dword [ebp + 0x14], ebx
jne 0x413e2b
cmp dword [ebp + 0x18], ebx
jne 0x413e2b
push dword [ebp + 8]
call fcn.0040bfe2
pop ecx
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0xc]
and eax, 0x10000
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
and eax, 2
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0xc]
and eax, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0xc]
and dword [ebp + 0xc], 1
and eax, 0x20
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
cmp dword [0x4ace9c], ebx
mov dword [ebp - 0x10], eax
jne 0x413e82
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x4ace9c], eax
mov esi, 0x4ad684
push esi
call dword [sym.imp.KERNEL32.DLL_EnterCriticalSection]
test byte [0x4ada94], 4
jne 0x413eb1
cmp dword [ebp + 0x10], ebx
je 0x413eb1
or byte [0x4ada94], 8
push 2
push str.SeDebugPrivilege
call fcn.0040f24d
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.DLL_LeaveCriticalSection]
push 0x46e7
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], ebx
call fcn.00435d80
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], eax
add eax, 0xa0
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x3c], eax
add eax, 0x64
lea edi, [eax + 0x8c]
push ebx
push 0x24
mov dword [ebp - 0x20], edi
add edi, 0x80a
push edi
mov word [edi + 0x414], bx
push ebx
mov word [edi], bx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
push edi
call esi
cmp dword [ebp + 0x10], ebx
lea eax, [edi + eax*2]
mov dword [ebp - 0x48], eax
je 0x413f9f
push 7
pop ecx
xor eax, eax
cmp byte [0x4acb89], 1
push 0x4d
lea edi, [ebp - 0x74]
mov dword [ebp - 0x78], ebx
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x2fc]
rep stosd dword es:[edi], eax
push 0x4e
pop ecx
lea edi, [ebp - 0x1c8]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x300], ebx
mov dword [ebp - 0x2fc], ebx
mov edi, 0x138
jne 0x413f5a
mov edi, 0x270
push ebx
push 0x20
lea eax, [ebp - 0x78]
push eax
push 3
call dword [0x4ace9c]
push ebx
push edi
lea eax, [ebp - 0x300]
push eax
push 2
call dword [0x4ace9c]
push dword [ebp - 0x2fc]
push dword [ebp - 0x300]
push dword [ebp - 0x1c]
call fcn.004752d0
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push dword [ebp - 0x18]
call fcn.004752d0
add esp, 0x18
cmp dword [ebp + 0xc], ebx
jne 0x41407a
mov eax, dword [ebp + 8]
cmp word [eax], bx
jne 0x41407a
mov edi, dword [ebp + 0x10]
push dword [ebp - 0x1c]
mov ecx, edi
call fcn.0044042b
push 0x497394
mov ecx, edi
call fcn.00435dd0
push dword [ebp - 0x18]
mov ecx, edi
call fcn.00435dd0
cmp byte [0x4acbb4], bl
ja 0x413fe4
call fcn.00403d18
movzx eax, byte [0x4acbb4]
push eax
lea eax, [ebp - 0x378]
push str._t_d_t
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x378]
push eax
mov ecx, edi
call fcn.00435dd0
push dword [0x4acc34]
lea eax, [ebp - 0x378]
push dword [0x4acc30]
push eax
call fcn.004752d0
add esp, 0xc
lea eax, [ebp - 0x378]
push eax
mov ecx, edi
call fcn.00435dd0
fild qword [0x4acc30]
lea ecx, [ebp - 8]
fdivr qword [0x497380]
fstp qword [ebp - 0x28]
call fcn.00435d62
fld qword [ebp - 0x28]
push str._t_lf
push ecx
push ecx
lea eax, [ebp - 8]
fstp qword [esp]
push eax
call fcn.00475240
add esp, 0x10
push dword [ebp - 8]
mov ecx, edi
call fcn.00435dd0
lea ecx, [ebp - 8]
call fcn.0043092f
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
cmp eax, 0xffffffff
mov dword [ebp - 0x38], eax
jne 0x41409b
xor eax, eax
mov dword [ebp - 0x38], eax
cmp eax, 0xffffffff
mov dword [ebp - 0x3c], eax
je 0x414150
lea ecx, [ebp - 0x2bc]
push ecx
push eax
mov dword [ebp - 0x2bc], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
test eax, eax
je 0x414150
jmp 0x4140cb
mov esi, dword [ebp - 0x44]
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x4140de
cmp eax, dword [ebp - 0x2a4]
jne 0x41443d
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x4140f1
cmp eax, dword [ebp - 0x2b4]
jne 0x41443d
cmp dword [ebp - 0x34], ebx
jne 0x41424a
cmp dword [ebp - 0x40], ebx
je 0x4141cd
cmp dword [ebp + 0xc], ebx
je 0x414168
cmp esi, ebx
je 0x41412a
push dword [ebp - 0xc]
lea eax, [ebp - 0x298]
push esi
push dword [ebp + 8]
push eax
call fcn.0040def6
add esp, 0x10
test al, al
je 0x41443d
cmp dword [ebp + 0x10], ebx
jne 0x414247
cmp dword [ebp - 0x14], ebx
je 0x414147
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 0x2b4]
je 0x41443d
mov eax, dword [ebp - 0x2b4]
mov dword [ebp - 4], eax
lea ecx, [ebp - 0x3c]
call fcn.00402b27
lea ecx, [ebp - 0x2c]
call fcn.0043092f
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret
cmp esi, ebx
jne 0x41417e
cmp word [ebp - 0x298], bx
jne 0x41443d
jmp 0x41424a
cmp dword [ebp - 0xc], ebx
jne 0x414197
push dword [ebp + 8]
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x4141af
push dword [ebp + 8]
lea eax, [ebp - 0x298]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jne 0x41443d
cmp dword [ebp + 0x10], ebx
jne 0x414247
cmp dword [ebp - 0x14], ebx
mov eax, dword [ebp - 0x2b4]
je 0x41414d
cmp dword [ebp - 0x10], eax
jne 0x41414d
jmp 0x41443d
cmp dword [ebp + 0xc], ebx
je 0x4141f8
cmp esi, ebx
je 0x41412a
push dword [ebp - 0xc]
lea eax, [ebp - 0x298]
push esi
push dword [ebp + 8]
push eax
call fcn.0040def6
add esp, 0x10
test al, al
jne 0x41412a
cmp esi, ebx
je 0x41443d
push dword [ebp - 0xc]
lea eax, [ebp - 0x298]
push esi
push dword [ebp + 8]
push eax
call fcn.0040def6
add esp, 0x10
test al, al
je 0x41443d
cmp dword [ebp + 0xc], ebx
jne 0x41443d
mov ax, word [ebp + esi*2 - 0x298]
cmp ax, bx
je 0x41412a
cmp ax, 0x2e
jne 0x41443d
jmp 0x41412a
inc dword [ebp - 4]
push dword [ebp - 0x2b4]
mov dword [ebp - 0x28], ebx
push ebx
push 0x400
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x30], ebx
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4142f0
push ebx
push 0x4acd84
push str.PSAPI.DLL
push str.GetProcessMemoryInfo
call fcn.00431911
add esp, 0x10
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x78]
mov dword [ebp - 0x80], 0x28
mov dword [ebp - 0x7c], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x4acd84]
cmp eax, ebx
je 0x4142ad
push 0x28
lea ecx, [ebp - 0x80]
push ecx
push esi
call eax
mov eax, dword [ebp - 0x74]
shr eax, 0xa
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x90]
push eax
lea eax, [ebp - 0x88]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcessTimes]
test eax, eax
je 0x4142e9
mov eax, dword [ebp - 0x50]
add eax, dword [ebp - 0x58]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x4c]
adc eax, dword [ebp - 0x54]
mov dword [ebp - 0x24], eax
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp - 0x20]
add edi, 0x80a
lea esi, [edi + 0x20a]
push esi
push dword [ebp - 0x2b4]
mov dword [ebp - 8], esi
call fcn.00403d89
cmp word [esi], 0x5c
pop ecx
pop ecx
jne 0x41433f
cmp word [esi + 2], 0x3f
jne 0x41433f
cmp word [esi + 4], 0x3f
jne 0x41433f
cmp word [esi + 6], 0x5c
jne 0x41433f
lea eax, [esi + 8]
cmp word [eax], bx
je 0x41433f
cmp word [esi + 0xa], 0x3a
jne 0x41433f
mov dword [ebp - 8], eax
jmp 0x414361
push 0xc
push esi
push str.SystemRoot_
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x414361
lea eax, [esi + 0x16]
push eax
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov dword [ebp - 8], edi
cmp dword [ebp - 0x34], ebx
je 0x41439b
cmp dword [ebp - 0xc], ebx
jne 0x41437b
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x41438f
push dword [ebp + 8]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jne 0x41443d
cmp dword [ebp + 0x10], ebx
je 0x4141b8
inc dword [ebp - 4]
push 0x8000
add esi, 0x20a
push esi
push dword [ebp - 0x2b4]
call fcn.0040af3e
push dword [ebp - 0x24]
mov edi, dword [ebp - 0x18]
push dword [ebp - 0x28]
add edi, 0x64
push edi
mov word [esi + 0x8000], bx
call fcn.004752d0
add esp, 0x18
cmp dword [ebp - 0x2b4], ebx
mov eax, edi
jne 0x4143db
mov eax, dword [ebp - 0x1c]
push dword [ebp - 0x18]
push eax
push dword [ebp - 0x30]
push dword [ebp - 0x2a4]
push dword [ebp - 0x2b4]
push str._lu_t_lu_t_lu_t_s_t_s_t
push dword [ebp - 0x20]
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add esp, 0x1c
cmp word [eax], bx
je 0x414415
push 0x494d34
mov ecx, edi
call fcn.00435dd0
push dword [ebp - 0x20]
mov ecx, edi
call fcn.00435dd0
push dword [ebp - 8]
mov ecx, edi
call fcn.00435dd0
push 0x497394
mov ecx, edi
call fcn.00435dd0
push esi
mov ecx, edi
call fcn.00435dd0
lea eax, [ebp - 0x2bc]
push eax
push dword [ebp - 0x38]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4140c8
jmp 0x414150