Function at 0x415c84
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 0x415cb6
cmp dword [ebp + 0x74], ebx
jne 0x415cb6
cmp dword [ebp + 0x78], ebx
jne 0x415cb6
cmp dword [ebp + 0x7c], ebx
jne 0x415cb6
push dword [ebp + 0x6c]
call fcn.0040e25a
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 0x415d33
cmp dword [ebp + 0x34], ebx
je 0x415d33
mov eax, dword [ebp + 0x74]
push 0x1000
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x74], ebx
call fcn.0043d398
mov ecx, dword [ebp + 0x4c]
cmp esi, ebx
setne byte [ebp + 0x63]
cmp esi, ebx
mov dword [ebp + 0x38], ecx
je 0x415d59
cmp dword [ebp + 0x34], ebx
je 0x415d59
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
je 0x415d59
mov dword [ecx], eax
mov dword [ebp + 0x54], 1
mov byte [ebp + 0x63], 2
cmp dword [0x4bdf08], ebx
jne 0x415d7d
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [0x4bdf08], eax
push 4
push 2
push str.SeDebugPrivilege
call fcn.00411514
add esp, 0xc
push 0x46e7
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x58], ebx
call fcn.0043d49b
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 0x415e77
push 7
pop ecx
xor eax, eax
cmp byte [0x4bdbe5], 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 0x415e32
mov edi, 0x270
push ebx
push 0x20
lea eax, [ebp - 0x34]
push eax
push 3
call dword [0x4bdf08]
push ebx
push edi
lea eax, [ebp - 0x2bc]
push eax
push 2
call dword [0x4bdf08]
push dword [ebp - 0x2b8]
push dword [ebp - 0x2bc]
push dword [ebp + 0x3c]
call fcn.004842fa
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp + 0x48]
call fcn.004842fa
add esp, 0x18
cmp dword [ebp + 0x70], ebx
jne 0x415f52
mov eax, dword [ebp + 0x6c]
cmp word [eax], bx
jne 0x415f52
mov edi, dword [ebp + 0x74]
push dword [ebp + 0x3c]
mov ecx, edi
call fcn.0044584c
push 0x4a6d9c
mov ecx, edi
call fcn.0043d4e9
push dword [ebp + 0x48]
mov ecx, edi
call fcn.0043d4e9
cmp byte [0x4bdc18], bl
ja 0x415ebc
call fcn.004047a7
movzx eax, byte [0x4bdc18]
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.0043d4e9
push dword [0x4bdcac]
lea eax, [ebp - 0x334]
push dword [0x4bdca8]
push eax
call fcn.004842fa
add esp, 0xc
lea eax, [ebp - 0x334]
push eax
mov ecx, edi
call fcn.0043d4e9
fild qword [0x4bdca8]
lea ecx, [ebp + 0x5c]
fdivr qword [0x4a6d88]
fstp qword [ebp + 0x24]
call fcn.0043d47d
fld qword [ebp + 0x24]
push str._t_lf
push ecx
push ecx
lea eax, [ebp + 0x5c]
fstp qword [esp]
push eax
call fcn.0048426a
add esp, 0x10
push dword [ebp + 0x5c]
mov ecx, edi
call fcn.0043d4e9
lea ecx, [ebp + 0x5c]
call fcn.00437960
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 0x415f71
xor eax, eax
mov dword [ebp + 0x2c], eax
cmp eax, 0xffffffff
mov dword [ebp + 4], eax
je 0x4163ee
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 0x4163c6
cmp byte [ebp + 0x63], 2
jne 0x415fee
xor eax, eax
cmp dword [ebp + 0x54], ebx
jbe 0x415fc6
mov ecx, dword [ebp + 0x38]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [ebp - 0x270]
je 0x4163b7
inc eax
cmp eax, dword [ebp + 0x54]
jb 0x415fae
xor eax, eax
cmp dword [ebp + 0x54], ebx
jbe 0x4163b7
mov ecx, dword [ebp + 0x38]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [ebp - 0x260]
je 0x41610f
inc eax
cmp eax, dword [ebp + 0x54]
jb 0x415fd1
jmp 0x4163b7
mov eax, dword [ebp + 0x78]
cmp eax, ebx
je 0x416001
cmp eax, dword [ebp - 0x260]
jne 0x4163b7
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
je 0x416014
cmp eax, dword [ebp - 0x270]
jne 0x4163b7
cmp dword [ebp + 0x20], ebx
jne 0x41611b
cmp dword [ebp - 4], ebx
je 0x41609d
cmp dword [ebp + 0x70], ebx
je 0x416055
cmp dword [ebp + 0x5c], ebx
je 0x41610f
push dword [ebp + 0x44]
lea eax, [ebp - 0x254]
push dword [ebp + 0x5c]
push dword [ebp + 0x6c]
push eax
call fcn.0040fef1
add esp, 0x10
test al, al
je 0x4163b7
jmp 0x41610f
cmp dword [ebp + 0x5c], ebx
jne 0x41606c
cmp word [ebp - 0x254], bx
jne 0x4163b7
jmp 0x41611b
cmp dword [ebp + 0x44], ebx
jne 0x416089
push dword [ebp + 0x6c]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x41610f
push dword [ebp + 0x6c]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jmp 0x416109
cmp dword [ebp + 0x70], ebx
je 0x4160c3
cmp dword [ebp + 0x5c], ebx
je 0x41610f
push dword [ebp + 0x44]
lea eax, [ebp - 0x254]
push dword [ebp + 0x5c]
push dword [ebp + 0x6c]
push eax
call fcn.0040fef1
add esp, 0x10
test al, al
jne 0x41610f
cmp dword [ebp + 0x5c], ebx
je 0x4163b7
push dword [ebp + 0x44]
lea eax, [ebp - 0x254]
push dword [ebp + 0x5c]
push dword [ebp + 0x6c]
push eax
call fcn.0040fef1
add esp, 0x10
test al, al
je 0x4163b7
cmp dword [ebp + 0x70], ebx
jne 0x4163b7
mov eax, dword [ebp + 0x5c]
mov ax, word [ebp + eax*2 - 0x254]
cmp ax, bx
je 0x41610f
cmp ax, 0x2e
jne 0x4163b7
cmp dword [ebp + 0x74], ebx
je 0x416357
inc dword [ebp + 0x58]
cmp dword [ebp + 0x74], ebx
jne 0x416129
cmp dword [ebp + 0x20], ebx
je 0x4163b7
xor edi, edi
cmp dword [ebp + 0x74], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
je 0x4161ca
push dword [ebp - 0x270]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x4161ca
push ebx
push 0x4bddfc
push str.PSAPI.DLL
push str.GetProcessMemoryInfo
call fcn.00438bfe
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 [0x4bddfc]
cmp eax, ebx
je 0x416190
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 0x4161c3
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.00404818
mov eax, dword [ebp + 0x50]
add eax, 0xa14
cmp word [eax], 0x5c
pop ecx
pop ecx
jne 0x41622a
mov eax, dword [ebp + 0x50]
add eax, 0x80a
lea ecx, [eax + 0x20a]
cmp word [ecx + 2], 0x3f
jne 0x41622a
cmp word [ecx + 4], 0x3f
jne 0x41622a
cmp word [ecx + 6], 0x5c
jne 0x41622a
lea eax, [ecx + 8]
cmp word [eax], bx
je 0x41622a
cmp word [ecx + 0xa], 0x3a
jne 0x41622a
mov esi, eax
jmp 0x41625d
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 0x41625d
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 0x4162ac
cmp dword [ebp + 0x44], ebx
jne 0x416275
push dword [ebp + 0x6c]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x416287
push dword [ebp + 0x6c]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jne 0x4163b7
cmp dword [ebp + 0x74], ebx
jne 0x4162a9
cmp dword [ebp + 0x1c], ebx
mov eax, dword [ebp - 0x270]
je 0x4163d6
cmp dword [ebp + 0x18], eax
jne 0x4163d6
jmp 0x4163b7
inc dword [ebp + 0x58]
push 0x8000
push dword [ebp + 0x30]
push dword [ebp - 0x270]
call fcn.00407aa4
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.004842fa
add esp, 0x18
cmp dword [ebp - 0x270], ebx
je 0x4162ee
mov eax, dword [ebp + 0x48]
add eax, 0x64
jmp 0x4162f1
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 0x41632a
mov ecx, dword [ebp + 0x74]
push 0x4a3f34
call fcn.0043d4e9
mov edi, dword [ebp + 0x74]
push dword [ebp + 0x50]
mov ecx, edi
call fcn.0043d4e9
push esi
mov ecx, edi
call fcn.0043d4e9
push 0x4a6d9c
mov ecx, edi
call fcn.0043d4e9
push dword [ebp + 0x30]
mov ecx, edi
call fcn.0043d4e9
jmp 0x4163b7
cmp dword [ebp + 0x1c], ebx
je 0x416367
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x270]
je 0x4163b7
cmp dword [ebp + 0x10], ebx
je 0x4163d0
mov esi, dword [ebp + 0x54]
cmp dword [ebp + 0x40], esi
ja 0x41638a
add dword [ebp + 0x40], 0x400
mov eax, dword [ebp + 0x40]
shl eax, 2
push eax
lea ecx, [ebp + 0x4c]
call fcn.0043d398
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 0x4163b4
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x270]
call fcn.0040ff1a
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 0x415fa1
jmp 0x4163d9
mov eax, dword [ebp - 0x270]
mov dword [ebp + 0x58], eax
cmp dword [ebp + 0x10], ebx
mov byte [ebp + 0x63], 2
je 0x4163ee
mov eax, dword [ebp]
cmp dword [ebp + 0x54], eax
ja 0x415f7d
lea ecx, [ebp + 4]
call fcn.00402b5a
lea ecx, [ebp + 0xc]
call fcn.00437960
lea ecx, [ebp + 0x4c]
call fcn.00437960
mov eax, dword [ebp + 0x58]
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret