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

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x39c
push ebx
push esi
mov esi, dword [ebp + 0x70]
xor eax, eax
cmp esi, eax
push edi
jne 0x4171eb
cmp dword [ebp + 0x74], eax
jne 0x4171eb
cmp dword [ebp + 0x78], eax
jne 0x4171eb
cmp dword [ebp + 0x7c], eax
jne 0x4171eb
push dword [ebp + 0x6c]
call fcn.0040ee1b
pop ecx
mov dword [ebp + 0x6c], eax
and dword [ebp + 0x28], 0
mov eax, esi
and eax, 0x10000
mov dword [ebp + 0x48], eax
mov eax, esi
and eax, 2
mov dword [ebp + 4], eax
mov eax, esi
and eax, 0x10
mov dword [ebp + 0x20], eax
mov eax, esi
and eax, 0x20
mov dword [ebp + 0x34], eax
mov eax, esi
and ax, 0x80
sub al, 0x80
mov edi, esi
and edi, 0x40
neg al
mov dword [ebp + 0x1c], edi
sbb eax, eax
inc eax
mov ebx, eax
mov eax, esi
and eax, 0x100
and esi, 1
mov dword [ebp + 0x2c], ebx
mov dword [ebp - 8], eax
mov dword [ebp + 0x70], esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor ecx, ecx
cmp ebx, ecx
mov dword [ebp + 0x24], eax
mov dword [ebp + 0x44], 0x400
mov dword [ebp + 0x5c], ecx
mov dword [ebp + 0x4c], ecx
je 0x417260
mov eax, dword [ebp + 0x74]
and dword [ebp + 0x74], ecx
mov dword [ebp + 0x28], eax
test edi, edi
je 0x41727c
test ebx, ebx
je 0x41727c
and dword [ebp + 0x74], 0
push 0x1000
lea ecx, [ebp + 0x4c]
call fcn.0043fc68
mov ecx, dword [ebp + 0x4c]
test edi, edi
setne byte [ebp + 0x63]
test edi, edi
mov dword [ebp + 0x40], ecx
je 0x4172a1
test ebx, ebx
je 0x4172a1
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x4172a1
mov dword [ecx], eax
mov dword [ebp + 0x5c], 1
mov byte [ebp + 0x63], 2
cmp dword [0x4c8f84], 0
jne 0x4172c6
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4c8f84], eax
push 4
push 2
push str.SeDebugPrivilege
call fcn.00412301
add esp, 0xc
xor esi, esi
push 0x46e7
lea ecx, [ebp + 0x14]
mov dword [ebp + 0x58], esi
call fcn.0043fdb8
mov eax, dword [ebp + 0x14]
lea ebx, [eax + 0xa0]
lea edi, [ebx + 0xf0]
push esi
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x30], edi
add edi, 0x80a
lea eax, [edi + 0x20a]
push 0x24
mov dword [ebp + 0x54], eax
add eax, 0x20a
push edi
mov word [eax], si
push esi
mov dword [ebp + 0x38], ebx
mov word [edi], si
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenW]
push edi
call esi
cmp dword [ebp + 0x74], 0
lea eax, [edi + eax*2]
mov dword [ebp], eax
je 0x4173c8
push 7
pop ecx
xor edx, edx
xor eax, eax
cmp byte [0x4c8be9], 1
push 0x4d
lea edi, [ebp - 0x34]
mov dword [ebp - 0x38], edx
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x2bc]
rep stosd dword es:[edi], eax
push 0x4e
pop ecx
lea edi, [ebp - 0x188]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2c0], edx
mov dword [ebp - 0x2bc], edx
mov edi, 0x138
jne 0x417383
mov edi, 0x270
push 0
push 0x20
lea eax, [ebp - 0x38]
push eax
push 3
call dword [0x4c8f84]
push 0
push edi
lea eax, [ebp - 0x2c0]
push eax
push 2
call dword [0x4c8f84]
push dword [ebp - 0x2bc]
push dword [ebp - 0x2c0]
push dword [ebp + 0x3c]
call fcn.0048ca08
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
push ebx
call fcn.0048ca08
add esp, 0x18
cmp dword [ebp + 0x70], 0
jne 0x4174a4
mov eax, dword [ebp + 0x6c]
cmp word [eax], 0
jne 0x4174a4
mov edi, dword [ebp + 0x74]
push dword [ebp + 0x3c]
mov ecx, edi
call fcn.00448401
push 0x4b1f64
mov ecx, edi
call fcn.0043fe06
push ebx
mov ecx, edi
call fcn.0043fe06
cmp byte [0x4c8c28], 0
ja 0x41740e
call fcn.00404a25
movzx eax, byte [0x4c8c28]
push eax
lea eax, [ebp - 0x338]
push str._t_d_t
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
mov ecx, edi
call fcn.0043fe06
push dword [0x4c8cec]
lea eax, [ebp - 0x338]
push dword [0x4c8ce8]
push eax
call fcn.0048ca08
add esp, 0xc
lea eax, [ebp - 0x338]
push eax
mov ecx, edi
call fcn.0043fe06
fild qword [0x4c8ce8]
lea ecx, [ebp + 0x50]
fdivr qword [0x4b1f50]
fstp qword [ebp + 0xc]
call fcn.0043fd9a
fld qword [ebp + 0xc]
push str._t_lf
push ecx
push ecx
lea eax, [ebp + 0x50]
fstp qword [esp]
push eax
call fcn.0048c978
add esp, 0x10
push dword [ebp + 0x50]
mov ecx, edi
call fcn.0043fe06
lea ecx, [ebp + 0x50]
call fcn.00439cfd
push dword [ebp + 0x6c]
call esi
push dword [ebp + 0x7c]
mov esi, eax
push 2
mov dword [ebp + 0x18], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp + 0x50], eax
jne 0x4174c5
xor eax, eax
mov dword [ebp + 0x50], eax
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x41795d
jmp 0x4174d6
mov esi, dword [ebp + 0x18]
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 8], eax
lea eax, [ebp - 0x27c]
push eax
push dword [ebp + 0x50]
mov dword [ebp - 0x27c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x417947
jmp 0x417502
mov esi, dword [ebp + 0x18]
cmp byte [ebp + 0x63], 2
jne 0x41754f
xor eax, eax
cmp dword [ebp + 0x5c], eax
jbe 0x417527
mov ecx, dword [ebp + 0x40]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [ebp - 0x274]
je 0x417925
inc eax
cmp eax, dword [ebp + 0x5c]
jb 0x41750f
xor eax, eax
cmp dword [ebp + 0x5c], eax
jbe 0x417925
mov ecx, dword [ebp + 0x40]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [ebp - 0x264]
je 0x417683
inc eax
cmp eax, dword [ebp + 0x5c]
jb 0x417532
jmp 0x417925
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x417562
cmp eax, dword [ebp - 0x264]
jne 0x417925
mov eax, dword [ebp + 0x7c]
test eax, eax
je 0x417575
cmp eax, dword [ebp - 0x274]
jne 0x417925
xor edi, edi
cmp dword [ebp + 0x34], edi
jne 0x417690
cmp dword [ebp - 8], edi
je 0x4175a2
push dword [ebp + 0x6c]
lea eax, [ebp - 0x258]
push eax
call dword [sym.imp.SHLWAPI.dll_PathMatchSpecW]
test eax, eax
jne 0x417683
jmp 0x417690
cmp dword [ebp + 4], edi
je 0x417619
cmp dword [ebp + 0x70], edi
je 0x4175d7
cmp esi, edi
je 0x417683
push dword [ebp + 0x48]
lea eax, [ebp - 0x258]
push esi
push dword [ebp + 0x6c]
push eax
call fcn.00410b9b
add esp, 0x10
test al, al
je 0x417925
jmp 0x417683
cmp esi, edi
jne 0x4175ed
cmp word [ebp - 0x258], di
jne 0x417925
jmp 0x417690
cmp dword [ebp + 0x48], edi
push dword [ebp + 0x6c]
lea eax, [ebp - 0x258]
push eax
jne 0x417604
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
jmp 0x41760a
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
neg eax
sbb al, al
inc al
test al, al
jne 0x417683
jmp 0x417925
cmp dword [ebp + 0x70], edi
je 0x41763c
cmp esi, edi
je 0x417683
push dword [ebp + 0x48]
lea eax, [ebp - 0x258]
push esi
push dword [ebp + 0x6c]
push eax
call fcn.00410b9b
add esp, 0x10
test al, al
jne 0x417683
cmp esi, edi
je 0x417925
push dword [ebp + 0x48]
lea eax, [ebp - 0x258]
push esi
push dword [ebp + 0x6c]
push eax
call fcn.00410b9b
add esp, 0x10
test al, al
je 0x417925
cmp dword [ebp + 0x70], 0
jne 0x417925
mov ax, word [ebp + esi*2 - 0x258]
test ax, ax
je 0x417683
cmp ax, 0x2e
jne 0x417925
cmp dword [ebp + 0x74], 0
je 0x4178ba
inc dword [ebp + 0x58]
cmp dword [ebp + 0x74], 0
jne 0x4176a0
cmp dword [ebp + 0x34], 0
je 0x417925
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 0x74], edi
mov dword [ebp + 0x10], edi
je 0x41773d
push dword [ebp - 0x274]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x41773d
push ebx
push 0x4c8e5c
push str.PSAPI.DLL
push str.GetProcessMemoryInfo
call fcn.0043afc7
and dword [ebp - 0x3c], ebx
add esp, 0x10
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x38]
mov dword [ebp - 0x40], 0x28
rep stosd dword es:[edi], eax
mov eax, dword [0x4c8e5c]
test eax, eax
je 0x417706
push 0x28
lea ecx, [ebp - 0x40]
push ecx
push esi
call eax
mov edi, dword [ebp - 0x34]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x50]
push eax
push esi
shr edi, 0xa
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x417736
mov ebx, dword [ebp - 0x18]
add ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
adc eax, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [ebp + 0x54]
push esi
push dword [ebp - 0x274]
call fcn.00404a96
mov eax, esi
cmp word [eax], 0x5c
pop ecx
pop ecx
jne 0x417781
mov ecx, esi
cmp word [ecx + 2], 0x3f
jne 0x417781
cmp word [ecx + 4], 0x3f
jne 0x417781
cmp word [ecx + 6], 0x5c
jne 0x417781
lea eax, [ecx + 8]
cmp word [eax], 0
je 0x417781
cmp word [ecx + 0xa], 0x3a
jne 0x417781
mov esi, eax
jmp 0x4177ae
push 0xc
push dword [ebp + 0x54]
push str.SystemRoot_
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4177ae
mov eax, dword [ebp + 0x54]
add eax, 0x16
push eax
push dword [ebp]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov esi, dword [ebp + 0x30]
add esi, 0x80a
cmp dword [ebp + 0x34], 0
je 0x417801
cmp dword [ebp + 0x48], 0
jne 0x4177c8
push dword [ebp + 0x6c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4177da
push dword [ebp + 0x6c]
push esi
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x417925
cmp dword [ebp + 0x74], 0
jne 0x4177fe
cmp dword [ebp + 0x20], 0
mov eax, dword [ebp - 0x274]
je 0x417944
cmp dword [ebp + 0x24], eax
jne 0x417944
jmp 0x417925
inc dword [ebp + 0x58]
mov eax, dword [ebp + 0x54]
push 0x8000
add eax, 0x20a
push eax
push dword [ebp - 0x274]
call fcn.00407f32
mov eax, dword [ebp + 0x54]
and word [eax + 0x820a], 0
push dword [ebp + 0x10]
add eax, 0x20a
mov eax, dword [ebp + 0x38]
add eax, 0x64
push ebx
push eax
call fcn.0048ca08
add esp, 0x18
cmp dword [ebp - 0x274], 0
je 0x41784e
mov eax, dword [ebp + 0x38]
add eax, 0x64
jmp 0x417851
mov eax, dword [ebp + 0x3c]
push dword [ebp + 0x38]
push eax
push edi
push dword [ebp - 0x264]
push dword [ebp - 0x274]
push str._lu_t_lu_t_lu_t_s_t_s_t
push dword [ebp + 0x30]
call dword [sym.imp.USER32.dll_wsprintfW]
mov edi, dword [ebp + 0x74]
mov eax, dword [edi]
add esp, 0x1c
cmp word [eax], 0
je 0x41788a
push 0x4b1ee0
mov ecx, edi
call fcn.0043fe06
push dword [ebp + 0x30]
mov ecx, edi
call fcn.0043fe06
push esi
mov ecx, edi
call fcn.0043fe06
push 0x4b1f64
mov ecx, edi
call fcn.0043fe06
mov eax, dword [ebp + 0x54]
add eax, 0x20a
push eax
mov ecx, edi
call fcn.0043fe06
jmp 0x417925
cmp dword [ebp + 0x20], 0
je 0x4178cb
mov eax, dword [ebp + 0x24]
cmp eax, dword [ebp - 0x274]
je 0x417925
mov eax, dword [ebp + 0x2c]
or eax, dword [ebp + 0x1c]
je 0x41793e
xor edi, edi
cmp dword [ebp + 0x40], edi
je 0x41790b
mov esi, dword [ebp + 0x5c]
cmp dword [ebp + 0x44], esi
ja 0x4178f8
add dword [ebp + 0x44], 0x400
mov eax, dword [ebp + 0x44]
shl eax, 2
push eax
lea ecx, [ebp + 0x4c]
call fcn.0043fc68
mov eax, dword [ebp + 0x4c]
mov ecx, dword [ebp - 0x274]
mov dword [eax + esi*4], ecx
inc esi
mov dword [ebp + 0x40], eax
mov dword [ebp + 0x5c], esi
cmp dword [ebp + 0x2c], edi
je 0x417922
push edi
push dword [ebp + 0x28]
push dword [ebp - 0x274]
call fcn.00410bc4
add esp, 0xc
inc dword [ebp + 0x58]
lea eax, [ebp - 0x27c]
push eax
push dword [ebp + 0x50]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4174ff
jmp 0x417947
mov eax, dword [ebp - 0x274]
mov dword [ebp + 0x58], eax
cmp dword [ebp + 0x1c], 0
mov byte [ebp + 0x63], 2
je 0x41795d
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x5c], eax
ja 0x4174d3
lea ecx, [ebp - 4]
call fcn.00402c5b
lea ecx, [ebp + 0x14]
call fcn.00439cfd
lea ecx, [ebp + 0x4c]
call fcn.00439cfd
mov eax, dword [ebp + 0x58]
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret