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

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x398
push ebx
push esi
push edi
mov edi, dword [ebp + 0x70]
xor ebx, ebx
cmp edi, ebx
jne 0x416116
cmp dword [ebp + 0x74], ebx
jne 0x416116
cmp dword [ebp + 0x78], ebx
jne 0x416116
cmp dword [ebp + 0x7c], ebx
jne 0x416116
push dword [ebp + 0x6c]
call fcn.0040e69a
pop ecx
mov dword [ebp + 0x6c], eax
mov eax, edi
and eax, 0x10000
mov dword [ebp + 0x44], eax
mov eax, edi
and eax, 2
mov dword [ebp - 4], eax
mov eax, edi
and eax, 0x10
mov dword [ebp + 0x1c], eax
mov eax, edi
and eax, 0x20
mov dword [ebp + 0x20], eax
mov eax, edi
and ax, 0xc0
sub al, 0xc0
mov esi, edi
and esi, 0x40
neg al
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0x10], esi
sbb eax, eax
inc eax
and edi, 1
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x70], edi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
xor ecx, ecx
cmp esi, ebx
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x40], 0x400
mov dword [ebp + 0x54], ebx
mov dword [ebp + 0x4c], ecx
je 0x416193
cmp dword [ebp + 0x34], ebx
je 0x416193
mov eax, dword [ebp + 0x74]
push 0x1000
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x74], ebx
call fcn.0043dc99
mov ecx, dword [ebp + 0x4c]
cmp esi, ebx
setne byte [ebp + 0x63]
cmp esi, ebx
mov dword [ebp + 0x38], ecx
je 0x4161b9
cmp dword [ebp + 0x34], ebx
je 0x4161b9
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
je 0x4161b9
mov dword [ecx], eax
mov dword [ebp + 0x54], 1
mov byte [ebp + 0x63], 2
cmp dword [0x4c0f24], ebx
jne 0x4161dd
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x4c0f24], eax
push 4
push 2
push str.SeDebugPrivilege
call fcn.004119f4
add esp, 0xc
push 0x46e7
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x58], ebx
call fcn.0043dd9c
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x3c], eax
add eax, 0xa0
mov dword [ebp + 0x48], eax
add eax, 0x64
lea edi, [eax + 0x8c]
push ebx
push 0x24
mov dword [ebp + 0x50], edi
add edi, 0x80a
lea eax, [edi + 0x414]
push edi
mov word [eax], bx
push ebx
mov dword [ebp + 0x30], eax
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 + 0x74], ebx
lea eax, [edi + eax*2]
mov dword [ebp + 8], eax
je 0x4162d7
push 7
pop ecx
xor eax, eax
cmp byte [0x4c0be5], 1
push 0x4d
lea edi, [ebp - 0x30]
mov dword [ebp - 0x34], ebx
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x2b8]
rep stosd dword es:[edi], eax
push 0x4e
pop ecx
lea edi, [ebp - 0x184]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2bc], ebx
mov dword [ebp - 0x2b8], ebx
mov edi, 0x138
jne 0x416292
mov edi, 0x270
push ebx
push 0x20
lea eax, [ebp - 0x34]
push eax
push 3
call dword [0x4c0f24]
push ebx
push edi
lea eax, [ebp - 0x2bc]
push eax
push 2
call dword [0x4c0f24]
push dword [ebp - 0x2b8]
push dword [ebp - 0x2bc]
push dword [ebp + 0x3c]
call fcn.004878e2
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp + 0x48]
call fcn.004878e2
add esp, 0x18
cmp dword [ebp + 0x70], ebx
jne 0x4163b2
mov eax, dword [ebp + 0x6c]
cmp word [eax], bx
jne 0x4163b2
mov edi, dword [ebp + 0x74]
push dword [ebp + 0x3c]
mov ecx, edi
call fcn.004464ff
push 0x4a9c9c
mov ecx, edi
call fcn.0043ddea
push dword [ebp + 0x48]
mov ecx, edi
call fcn.0043ddea
cmp byte [0x4c0c24], bl
ja 0x41631c
call fcn.0040489d
movzx eax, byte [0x4c0c24]
push eax
lea eax, [ebp - 0x334]
push str._t_d_t
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x334]
push eax
mov ecx, edi
call fcn.0043ddea
push dword [0x4c0cbc]
lea eax, [ebp - 0x334]
push dword [0x4c0cb8]
push eax
call fcn.004878e2
add esp, 0xc
lea eax, [ebp - 0x334]
push eax
mov ecx, edi
call fcn.0043ddea
fild qword [0x4c0cb8]
lea ecx, [ebp + 0x5c]
fdivr qword [0x4a9c88]
fstp qword [ebp + 0x24]
call fcn.0043dd7e
fld qword [ebp + 0x24]
push str._t_lf
push ecx
push ecx
lea eax, [ebp + 0x5c]
fstp qword [esp]
push eax
call fcn.00487852
add esp, 0x10
push dword [ebp + 0x5c]
mov ecx, edi
call fcn.0043ddea
lea ecx, [ebp + 0x5c]
call fcn.00437e1a
push dword [ebp + 0x6c]
call esi
push dword [ebp + 0x7c]
mov dword [ebp + 0x5c], eax
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp + 0x2c], eax
jne 0x4163d1
xor eax, eax
mov dword [ebp + 0x2c], eax
cmp eax, 0xffffffff
mov dword [ebp + 4], eax
je 0x41684e
mov eax, dword [ebp + 0x54]
mov dword [ebp], eax
lea eax, [ebp - 0x278]
push eax
push dword [ebp + 0x2c]
mov dword [ebp - 0x278], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x416826
cmp byte [ebp + 0x63], 2
jne 0x41644e
xor eax, eax
cmp dword [ebp + 0x54], ebx
jbe 0x416426
mov ecx, dword [ebp + 0x38]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [ebp - 0x270]
je 0x416817
inc eax
cmp eax, dword [ebp + 0x54]
jb 0x41640e
xor eax, eax
cmp dword [ebp + 0x54], ebx
jbe 0x416817
mov ecx, dword [ebp + 0x38]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [ebp - 0x260]
je 0x41656f
inc eax
cmp eax, dword [ebp + 0x54]
jb 0x416431
jmp 0x416817
mov eax, dword [ebp + 0x78]
cmp eax, ebx
je 0x416461
cmp eax, dword [ebp - 0x260]
jne 0x416817
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
je 0x416474
cmp eax, dword [ebp - 0x270]
jne 0x416817
cmp dword [ebp + 0x20], ebx
jne 0x41657b
cmp dword [ebp - 4], ebx
je 0x4164fd
cmp dword [ebp + 0x70], ebx
je 0x4164b5
cmp dword [ebp + 0x5c], ebx
je 0x41656f
push dword [ebp + 0x44]
lea eax, [ebp - 0x254]
push dword [ebp + 0x5c]
push dword [ebp + 0x6c]
push eax
call fcn.004102e0
add esp, 0x10
test al, al
je 0x416817
jmp 0x41656f
cmp dword [ebp + 0x5c], ebx
jne 0x4164cc
cmp word [ebp - 0x254], bx
jne 0x416817
jmp 0x41657b
cmp dword [ebp + 0x44], ebx
jne 0x4164e9
push dword [ebp + 0x6c]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x41656f
push dword [ebp + 0x6c]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jmp 0x416569
cmp dword [ebp + 0x70], ebx
je 0x416523
cmp dword [ebp + 0x5c], ebx
je 0x41656f
push dword [ebp + 0x44]
lea eax, [ebp - 0x254]
push dword [ebp + 0x5c]
push dword [ebp + 0x6c]
push eax
call fcn.004102e0
add esp, 0x10
test al, al
jne 0x41656f
cmp dword [ebp + 0x5c], ebx
je 0x416817
push dword [ebp + 0x44]
lea eax, [ebp - 0x254]
push dword [ebp + 0x5c]
push dword [ebp + 0x6c]
push eax
call fcn.004102e0
add esp, 0x10
test al, al
je 0x416817
cmp dword [ebp + 0x70], ebx
jne 0x416817
mov eax, dword [ebp + 0x5c]
mov ax, word [ebp + eax*2 - 0x254]
cmp ax, bx
je 0x41656f
cmp ax, 0x2e
jne 0x416817
cmp dword [ebp + 0x74], ebx
je 0x4167b7
inc dword [ebp + 0x58]
cmp dword [ebp + 0x74], ebx
jne 0x416589
cmp dword [ebp + 0x20], ebx
je 0x416817
xor edi, edi
cmp dword [ebp + 0x74], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
je 0x41662a
push dword [ebp - 0x270]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x41662a
push ebx
push 0x4c0e18
push str.PSAPI.DLL
push str.GetProcessMemoryInfo
call fcn.004391ea
add esp, 0x10
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x34]
mov dword [ebp - 0x3c], 0x28
mov dword [ebp - 0x38], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x4c0e18]
cmp eax, ebx
je 0x4165f0
push 0x28
lea ecx, [ebp - 0x3c]
push ecx
push esi
call eax
mov edi, dword [ebp - 0x30]
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push esi
shr edi, 0xa
call dword [sym.imp.KERNEL32.DLL_GetProcessTimes]
test eax, eax
je 0x416623
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x14]
mov dword [ebp + 0x24], eax
mov eax, dword [ebp - 8]
adc eax, dword [ebp - 0x10]
mov dword [ebp + 0x28], eax
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [ebp + 0x50]
add eax, 0x80a
lea esi, [eax + 0x20a]
push esi
push dword [ebp - 0x270]
call fcn.0040490e
mov eax, dword [ebp + 0x50]
add eax, 0xa14
cmp word [eax], 0x5c
pop ecx
pop ecx
jne 0x41668a
mov eax, dword [ebp + 0x50]
add eax, 0x80a
lea ecx, [eax + 0x20a]
cmp word [ecx + 2], 0x3f
jne 0x41668a
cmp word [ecx + 4], 0x3f
jne 0x41668a
cmp word [ecx + 6], 0x5c
jne 0x41668a
lea eax, [ecx + 8]
cmp word [eax], bx
je 0x41668a
cmp word [ecx + 0xa], 0x3a
jne 0x41668a
mov esi, eax
jmp 0x4166bd
mov eax, dword [ebp + 0x50]
push 0xc
add eax, 0xa14
push eax
push str.SystemRoot_
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4166bd
mov esi, dword [ebp + 0x50]
add esi, 0x80a
lea eax, [esi + 0x220]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
cmp dword [ebp + 0x20], ebx
je 0x41670c
cmp dword [ebp + 0x44], ebx
jne 0x4166d5
push dword [ebp + 0x6c]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x4166e7
push dword [ebp + 0x6c]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jne 0x416817
cmp dword [ebp + 0x74], ebx
jne 0x416709
cmp dword [ebp + 0x1c], ebx
mov eax, dword [ebp - 0x270]
je 0x416836
cmp dword [ebp + 0x18], eax
jne 0x416836
jmp 0x416817
inc dword [ebp + 0x58]
push 0x8000
push dword [ebp + 0x30]
push dword [ebp - 0x270]
call fcn.00407c1e
mov eax, dword [ebp + 0x30]
push dword [ebp + 0x28]
mov word [eax + 0x8000], bx
mov eax, dword [ebp + 0x48]
push dword [ebp + 0x24]
add eax, 0x64
push eax
call fcn.004878e2
add esp, 0x18
cmp dword [ebp - 0x270], ebx
je 0x41674e
mov eax, dword [ebp + 0x48]
add eax, 0x64
jmp 0x416751
mov eax, dword [ebp + 0x3c]
push dword [ebp + 0x48]
push eax
push edi
push dword [ebp - 0x260]
push dword [ebp - 0x270]
push str._lu_t_lu_t_lu_t_s_t_s_t
push dword [ebp + 0x50]
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
add esp, 0x1c
cmp word [eax], bx
je 0x41678a
mov ecx, dword [ebp + 0x74]
push 0x4a9c18
call fcn.0043ddea
mov edi, dword [ebp + 0x74]
push dword [ebp + 0x50]
mov ecx, edi
call fcn.0043ddea
push esi
mov ecx, edi
call fcn.0043ddea
push 0x4a9c9c
mov ecx, edi
call fcn.0043ddea
push dword [ebp + 0x30]
mov ecx, edi
call fcn.0043ddea
jmp 0x416817
cmp dword [ebp + 0x1c], ebx
je 0x4167c7
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x270]
je 0x416817
cmp dword [ebp + 0x10], ebx
je 0x416830
mov esi, dword [ebp + 0x54]
cmp dword [ebp + 0x40], esi
ja 0x4167ea
add dword [ebp + 0x40], 0x400
mov eax, dword [ebp + 0x40]
shl eax, 2
push eax
lea ecx, [ebp + 0x4c]
call fcn.0043dc99
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp - 0x270]
mov dword [eax + esi*4], ecx
inc esi
cmp dword [ebp + 0x34], ebx
mov dword [ebp + 0x38], eax
mov dword [ebp + 0x54], esi
je 0x416814
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x270]
call fcn.00410309
add esp, 0xc
inc dword [ebp + 0x58]
lea eax, [ebp - 0x278]
push eax
push dword [ebp + 0x2c]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x416401
jmp 0x416839
mov eax, dword [ebp - 0x270]
mov dword [ebp + 0x58], eax
cmp dword [ebp + 0x10], ebx
mov byte [ebp + 0x63], 2
je 0x41684e
mov eax, dword [ebp]
cmp dword [ebp + 0x54], eax
ja 0x4163dd
lea ecx, [ebp + 4]
call fcn.00402b5a
lea ecx, [ebp + 0xc]
call fcn.00437e1a
lea ecx, [ebp + 0x4c]
call fcn.00437e1a
mov eax, dword [ebp + 0x58]
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret