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

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x3ac
push ebx
push esi
mov esi, dword [ebp + 0x70]
xor ebx, ebx
cmp esi, ebx
push edi
jne 0x417fb3
cmp dword [ebp + 0x74], ebx
jne 0x417fb3
cmp dword [ebp + 0x78], ebx
jne 0x417fb3
cmp dword [ebp + 0x7c], ebx
jne 0x417fb3
push dword [ebp + 0x6c]
call fcn.0040fbff
pop ecx
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x6c]
mov dword [ebp + 0x58], eax
push 0x7c
lea eax, [ebp + 0x58]
call fcn.004a3a6c
mov eax, dword [ebp + 0x58]
cmp word [eax], bx
pop ecx
je 0x417fd9
mov word [eax], bx
inc eax
inc eax
cmp word [eax], bx
mov dword [ebp + 0x58], eax
jne 0x417fdc
mov dword [ebp + 0x58], ebx
mov eax, esi
and eax, 0x10000
mov dword [ebp + 0x50], eax
mov eax, esi
and eax, 2
mov dword [ebp - 0x18], eax
mov eax, esi
and eax, 0x10
mov dword [ebp - 4], eax
mov eax, esi
and eax, 0x20
mov dword [ebp + 0x30], eax
mov eax, esi
and ax, 0x80
sub al, 0x80
mov edi, esi
and edi, 0x40
neg al
mov dword [ebp + 0x14], ebx
mov dword [ebp + 0xc], edi
sbb eax, eax
inc eax
mov dword [ebp + 0x44], eax
mov eax, esi
and eax, 0x100
mov dword [ebp - 0xc], eax
mov eax, esi
and eax, 0x80000
and esi, 1
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x70], esi
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcessId]
xor ecx, ecx
cmp dword [ebp + 0x44], ebx
mov dword [ebp + 0x10], eax
mov dword [ebp + 0x38], 0x400
mov dword [ebp + 0x4c], ebx
mov dword [ebp + 0x48], ecx
je 0x418059
mov eax, dword [ebp + 0x74]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x74], ebx
cmp edi, ebx
je 0x418075
cmp dword [ebp + 0x44], ebx
je 0x418075
push 0x1000
lea ecx, [ebp + 0x48]
mov dword [ebp + 0x74], ebx
call fcn.004448de
mov ecx, dword [ebp + 0x48]
cmp edi, ebx
setne byte [ebp + 0x63]
cmp edi, ebx
mov dword [ebp + 0x34], ecx
je 0x41809b
cmp dword [ebp + 0x44], ebx
je 0x41809b
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
je 0x41809b
mov dword [ecx], eax
mov dword [ebp + 0x4c], 1
mov byte [ebp + 0x63], 2
cmp dword [0x4db01c], ebx
jne 0x4180bf
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x4db01c], eax
push 4
push 2
push str.SeDebugPrivilege
call fcn.0041347b
add esp, 0xc
push 0x48f3
lea ecx, [ebp + 4]
mov dword [ebp + 0x5c], ebx
call fcn.00444a2e
mov eax, dword [ebp + 4]
lea edi, [eax + 0xa0]
mov dword [ebp + 0x28], eax
lea eax, [edi + 0xf0]
lea esi, [eax + 0xa16]
lea eax, [esi + 0x414]
push ebx
mov word [eax], 9
mov word [eax + 2], bx
push 0x24
mov dword [ebp + 0x2c], eax
add eax, 0x20c
push esi
mov word [eax], bx
push ebx
mov dword [ebp + 0x3c], edi
mov dword [ebp + 0x1c], esi
mov word [esi], bx
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathW]
push esi
mov esi, dword [sym.imp.KERNEL32.DLL_lstrlenW]
call esi
cmp dword [ebp + 0x74], ebx
mov ecx, dword [ebp + 0x1c]
lea eax, [ecx + eax*2]
mov dword [ebp - 0x14], eax
je 0x4181cb
push 7
pop ecx
xor eax, eax
cmp byte [0x4dac31], 1
push 0x4d
lea edi, [ebp - 0x44]
mov dword [ebp - 0x48], ebx
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x2cc]
rep stosd dword es:[edi], eax
push 0x4e
pop ecx
lea edi, [ebp - 0x198]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2d0], ebx
mov dword [ebp - 0x2cc], ebx
mov edi, 0x138
jne 0x418183
mov edi, 0x270
push ebx
push 0x20
lea eax, [ebp - 0x48]
push eax
push 3
call dword [0x4db01c]
push ebx
push edi
lea eax, [ebp - 0x2d0]
push eax
push 2
call dword [0x4db01c]
push dword [ebp - 0x2cc]
push dword [ebp - 0x2d0]
push dword [ebp + 0x28]
call fcn.0049a8ca
push dword [ebp - 0x3c]
push dword [ebp - 0x40]
push dword [ebp + 0x3c]
call fcn.0049a8ca
mov edi, dword [ebp + 0x3c]
add esp, 0x18
cmp dword [ebp + 0x70], ebx
jne 0x4182a7
mov eax, dword [ebp + 0x6c]
cmp word [eax], bx
jne 0x4182a7
push dword [ebp + 0x28]
mov ecx, dword [ebp + 0x74]
call fcn.0044dfe2
mov ecx, dword [ebp + 0x74]
push 0x4c31ec
call fcn.00444a7c
mov ecx, dword [ebp + 0x74]
push edi
call fcn.00444a7c
cmp byte [0x4dac78], bl
ja 0x41820e
call fcn.00404bbc
movzx eax, byte [0x4dac78]
push eax
lea eax, [ebp - 0x348]
push str._t_d_t
push eax
call dword [sym.imp.user32.dll_wsprintfW]
mov ecx, dword [ebp + 0x74]
add esp, 0xc
lea eax, [ebp - 0x348]
push eax
call fcn.00444a7c
push dword [0x4dad3c]
lea eax, [ebp - 0x348]
push dword [0x4dad38]
push eax
call fcn.0049a8ca
mov ecx, dword [ebp + 0x74]
add esp, 0xc
lea eax, [ebp - 0x348]
push eax
call fcn.00444a7c
fild qword [0x4dad38]
lea ecx, [ebp + 0x54]
fdivr qword [0x4c31d8]
fstp qword [ebp + 0x20]
call fcn.00444a10
fld qword [ebp + 0x20]
push str._t_lf
push ecx
push ecx
lea eax, [ebp + 0x54]
fstp qword [esp]
push eax
call fcn.0049a817
mov ecx, dword [ebp + 0x74]
add esp, 0x10
push dword [ebp + 0x54]
call fcn.00444a7c
lea ecx, [ebp + 0x54]
call fcn.0043e48d
push dword [ebp + 0x6c]
call esi
push dword [ebp + 0x7c]
mov edi, eax
push 2
mov dword [ebp + 8], edi
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp + 0x54], eax
jne 0x4182c6
mov dword [ebp + 0x54], ebx
mov eax, dword [ebp + 0x54]
cmp eax, 0xffffffff
mov dword [ebp - 0x10], eax
je 0x4187b7
mov eax, dword [ebp + 0x4c]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x28c]
push eax
push dword [ebp + 0x54]
mov dword [ebp - 0x28c], 0x22c
call sub.KERNEL32.DLL_Process32FirstW
jmp 0x41878f
cmp byte [ebp + 0x63], 2
jne 0x418345
mov ecx, dword [ebp + 0x4c]
xor eax, eax
cmp ecx, ebx
jbe 0x41831f
mov edx, dword [ebp + 0x34]
mov edx, dword [edx + eax*4]
cmp edx, dword [ebp - 0x284]
je 0x418780
inc eax
cmp eax, ecx
jb 0x418308
xor eax, eax
cmp ecx, ebx
jbe 0x418780
mov edx, dword [ebp + 0x34]
mov edx, dword [edx + eax*4]
cmp edx, dword [ebp - 0x274]
je 0x418498
inc eax
cmp eax, ecx
jb 0x418329
jmp 0x418780
mov eax, dword [ebp + 0x78]
cmp eax, ebx
je 0x418358
cmp eax, dword [ebp - 0x274]
jne 0x418780
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
je 0x41836b
cmp eax, dword [ebp - 0x284]
jne 0x418780
cmp dword [ebp + 0x30], ebx
jne 0x4183d9
cmp dword [ebp - 0xc], ebx
je 0x41838f
push dword [ebp + 0x6c]
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.shlwapi.dll_PathMatchSpecW]
test eax, eax
jne 0x418498
jmp 0x4183d9
cmp dword [ebp - 0x18], ebx
je 0x41842f
cmp dword [ebp + 0x70], ebx
je 0x4183c8
cmp edi, ebx
je 0x418498
push dword [ebp + 0x50]
lea eax, [ebp - 0x268]
push edi
push dword [ebp + 0x6c]
push eax
call fcn.00411cc4
add esp, 0x10
test al, al
je 0x418780
jmp 0x418498
cmp edi, ebx
jne 0x418403
cmp word [ebp - 0x268], bx
jne 0x418780
cmp dword [ebp + 0x58], ebx
je 0x4184de
push dword [ebp + 0x50]
push dword [ebp - 0x284]
push dword [ebp + 0x58]
call fcn.00411e3c
add esp, 0xc
test eax, eax
jne 0x4184de
jmp 0x418780
cmp dword [ebp + 0x50], ebx
push dword [ebp + 0x6c]
lea eax, [ebp - 0x268]
push eax
jne 0x41841a
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
jmp 0x418420
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
neg eax
sbb al, al
inc al
cmp al, bl
jne 0x418498
jmp 0x418780
cmp dword [ebp + 0x70], ebx
je 0x418452
cmp edi, ebx
je 0x418498
push dword [ebp + 0x50]
lea eax, [ebp - 0x268]
push edi
push dword [ebp + 0x6c]
push eax
call fcn.00411cc4
add esp, 0x10
test al, al
jne 0x418498
cmp edi, ebx
je 0x418780
push dword [ebp + 0x50]
lea eax, [ebp - 0x268]
push edi
push dword [ebp + 0x6c]
push eax
call fcn.00411cc4
add esp, 0x10
test al, al
je 0x418780
cmp dword [ebp + 0x70], ebx
jne 0x418780
mov ax, word [ebp + edi*2 - 0x268]
cmp ax, bx
je 0x418498
cmp ax, 0x2e
jne 0x418780
cmp dword [ebp + 0x74], ebx
jne 0x4184b1
cmp dword [ebp - 4], ebx
je 0x4184b1
mov eax, dword [ebp + 0x10]
cmp eax, dword [ebp - 0x284]
je 0x418780
cmp dword [ebp + 0x58], ebx
je 0x4184d2
push dword [ebp + 0x50]
push dword [ebp - 0x284]
push dword [ebp + 0x58]
call fcn.00411e3c
add esp, 0xc
test eax, eax
je 0x418780
cmp dword [ebp + 0x74], ebx
je 0x418728
inc dword [ebp + 0x5c]
cmp dword [ebp + 0x74], ebx
jne 0x4184ec
cmp dword [ebp + 0x30], ebx
je 0x418780
cmp dword [ebp + 0x74], ebx
mov dword [ebp + 0x20], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp], ebx
je 0x418594
push dword [ebp - 0x284]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x418594
push ebx
push 0x4daeac
push str.PSAPI.DLL
push str.GetProcessMemoryInfo
call fcn.0043f92c
add esp, 0x10
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x48]
mov dword [ebp - 0x50], 0x28
mov dword [ebp - 0x4c], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x4daeac]
cmp eax, ebx
je 0x418554
push 0x28
lea ecx, [ebp - 0x50]
push ecx
push esi
call eax
mov eax, dword [ebp - 0x44]
shr eax, 0xa
mov dword [ebp], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetProcessTimes]
test eax, eax
je 0x41858a
mov eax, dword [ebp - 0x28]
add eax, dword [ebp - 0x20]
mov dword [ebp + 0x20], eax
mov eax, dword [ebp - 0x24]
adc eax, dword [ebp - 0x1c]
mov dword [ebp + 0x24], eax
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0x1c]
add esi, 0x20a
push esi
push dword [ebp - 0x284]
mov dword [ebp + 0x40], esi
call fcn.00404c2d
cmp word [esi], 0x5c
pop ecx
pop ecx
jne 0x4185d8
cmp word [esi + 2], 0x3f
jne 0x4185d8
cmp word [esi + 4], 0x3f
jne 0x4185d8
cmp word [esi + 6], 0x5c
jne 0x4185d8
lea eax, [esi + 8]
cmp word [eax], bx
je 0x4185d8
cmp word [esi + 0xa], 0x3a
je 0x4185fa
push 0xc
push esi
push str.SystemRoot_
call dword [sym.imp.shlwapi.dll_StrCmpNIW]
test eax, eax
jne 0x4185fd
add esi, 0x16
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
mov eax, dword [ebp + 0x1c]
mov dword [ebp + 0x40], eax
cmp dword [ebp + 0x30], ebx
je 0x418650
cmp dword [ebp + 0x50], ebx
jne 0x418617
push dword [ebp + 0x6c]
push dword [ebp + 0x40]
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x41862b
push dword [ebp + 0x6c]
push dword [ebp + 0x40]
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jne 0x418780
cmp dword [ebp + 0x74], ebx
jne 0x41864d
cmp dword [ebp - 4], ebx
mov eax, dword [ebp - 0x284]
je 0x41879f
cmp dword [ebp + 0x10], eax
jne 0x41879f
jmp 0x418780
inc dword [ebp + 0x5c]
cmp dword [ebp + 0x18], ebx
je 0x418669
mov eax, dword [ebp + 0x2c]
add eax, 2
push eax
push dword [ebp - 0x284]
call fcn.00411ced
pop ecx
pop ecx
mov edi, dword [ebp + 0x2c]
push 0x8000
add edi, 0x20c
push edi
push dword [ebp - 0x284]
call fcn.004088bb
push dword [ebp + 0x24]
mov esi, dword [ebp + 0x3c]
push dword [ebp + 0x20]
add esi, 0x64
push esi
mov word [edi + 0x8000], bx
call fcn.0049a8ca
mov ecx, dword [ebp + 0x2c]
add esp, 0x18
cmp dword [ebp + 0x18], ebx
jne 0x4186ac
mov ecx, 0x4bfa2c
cmp dword [ebp - 0x284], ebx
mov eax, esi
jne 0x4186b9
mov eax, dword [ebp + 0x28]
push ecx
push dword [ebp + 0x3c]
add esi, 0x8c
push eax
push dword [ebp]
push dword [ebp - 0x274]
push dword [ebp - 0x284]
push 0x4c316c
push esi
call dword [sym.imp.user32.dll_wsprintfW]
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
add esp, 0x20
cmp word [eax], bx
je 0x4186f9
mov ecx, dword [ebp + 0x74]
push 0x4c00b0
call fcn.00444a7c
mov ecx, dword [ebp + 0x74]
push esi
call fcn.00444a7c
push dword [ebp + 0x40]
mov ecx, dword [ebp + 0x74]
call fcn.00444a7c
mov ecx, dword [ebp + 0x74]
push 0x4c31ec
call fcn.00444a7c
mov ecx, dword [ebp + 0x74]
push edi
call fcn.00444a7c
mov edi, dword [ebp + 8]
jmp 0x418780
mov eax, dword [ebp + 0x44]
or eax, dword [ebp + 0xc]
je 0x418799
cmp dword [ebp + 0x34], ebx
je 0x418766
mov esi, dword [ebp + 0x4c]
cmp dword [ebp + 0x38], esi
ja 0x418753
add dword [ebp + 0x38], 0x400
mov eax, dword [ebp + 0x38]
shl eax, 2
push eax
lea ecx, [ebp + 0x48]
call fcn.004448de
mov eax, dword [ebp + 0x48]
mov ecx, dword [ebp - 0x284]
mov dword [eax + esi*4], ecx
inc esi
mov dword [ebp + 0x34], eax
mov dword [ebp + 0x4c], esi
cmp dword [ebp + 0x44], ebx
je 0x41877d
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x284]
call fcn.00411ea0
add esp, 0xc
inc dword [ebp + 0x5c]
lea eax, [ebp - 0x28c]
push eax
push dword [ebp + 0x54]
call sub.KERNEL32.DLL_Process32NextW
test eax, eax
jne 0x4182f9
jmp 0x4187a2
mov eax, dword [ebp - 0x284]
mov dword [ebp + 0x5c], eax
cmp dword [ebp + 0xc], ebx
mov byte [ebp + 0x63], 2
je 0x4187b7
mov eax, dword [ebp - 8]
cmp dword [ebp + 0x4c], eax
ja 0x4182d5
lea ecx, [ebp - 0x10]
call fcn.00402cb5
lea ecx, [ebp + 4]
call fcn.0043e48d
lea ecx, [ebp + 0x48]
call fcn.0043e48d
mov eax, dword [ebp + 0x5c]
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret