Function at 0x415c08
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 0x415c3a
cmp dword [ebp + 0x74], ebx
jne 0x415c3a
cmp dword [ebp + 0x78], ebx
jne 0x415c3a
cmp dword [ebp + 0x7c], ebx
jne 0x415c3a
push dword [ebp + 0x6c]
call fcn.0040e1a6
pop ecx
mov dword [ebp + 0x6c], eax
mov eax, edi
and eax, 0x10000
mov dword [ebp + 0x48], 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 0x415cb7
cmp dword [ebp + 0x34], ebx
je 0x415cb7
mov eax, dword [ebp + 0x74]
push 0x1000
lea ecx, [ebp + 0x4c]
mov dword [ebp + 0x14], eax
mov dword [ebp + 0x74], ebx
call fcn.0043d2c0
mov ecx, dword [ebp + 0x4c]
cmp esi, ebx
setne byte [ebp + 0x63]
cmp esi, ebx
mov dword [ebp + 0x38], ecx
je 0x415cdd
cmp dword [ebp + 0x34], ebx
je 0x415cdd
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
je 0x415cdd
mov dword [ecx], eax
mov dword [ebp + 0x54], 1
mov byte [ebp + 0x63], 2
cmp dword [0x4bdf08], ebx
jne 0x415d01
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.0041147a
add esp, 0xc
push 0x46e7
lea ecx, [ebp + 0xc]
mov dword [ebp + 0x58], ebx
call fcn.0043d3c3
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x3c], eax
add eax, 0xa0
mov dword [ebp + 0x50], eax
add eax, 0x64
push ebx
lea edi, [eax + 0x8c]
add edi, 0x80a
push 0x24
lea eax, [edi + 0x414]
push edi
mov word [eax], bx
push ebx
mov dword [ebp + 0x44], edi
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 0x415dfb
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 0x415db6
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.00484286
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp + 0x50]
call fcn.00484286
add esp, 0x18
cmp dword [ebp + 0x70], ebx
jne 0x415ed6
mov eax, dword [ebp + 0x6c]
cmp word [eax], bx
jne 0x415ed6
mov edi, dword [ebp + 0x74]
push dword [ebp + 0x3c]
mov ecx, edi
call fcn.004457ae
push 0x4a6d4c
mov ecx, edi
call fcn.0043d411
push dword [ebp + 0x50]
mov ecx, edi
call fcn.0043d411
cmp byte [0x4bdc18], bl
ja 0x415e40
call fcn.0040478c
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.0043d411
push dword [0x4bdcac]
lea eax, [ebp - 0x334]
push dword [0x4bdca8]
push eax
call fcn.00484286
add esp, 0xc
lea eax, [ebp - 0x334]
push eax
mov ecx, edi
call fcn.0043d411
fild qword [0x4bdca8]
lea ecx, [ebp + 0x5c]
fdivr qword [0x4a6d38]
fstp qword [ebp + 0x24]
call fcn.0043d3a5
fld qword [ebp + 0x24]
push str._t_lf
push ecx
push ecx
lea eax, [ebp + 0x5c]
fstp qword [esp]
push eax
call fcn.004841f6
add esp, 0x10
push dword [ebp + 0x5c]
mov ecx, edi
call fcn.0043d411
lea ecx, [ebp + 0x5c]
call fcn.00437884
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 0x415ef5
xor eax, eax
mov dword [ebp + 0x2c], eax
cmp eax, 0xffffffff
mov dword [ebp + 4], eax
je 0x41636f
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 0x416347
cmp byte [ebp + 0x63], 2
jne 0x415f72
xor eax, eax
cmp dword [ebp + 0x54], ebx
jbe 0x415f4a
mov ecx, dword [ebp + 0x38]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [ebp - 0x270]
je 0x416338
inc eax
cmp eax, dword [ebp + 0x54]
jb 0x415f32
xor eax, eax
cmp dword [ebp + 0x54], ebx
jbe 0x416338
mov ecx, dword [ebp + 0x38]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [ebp - 0x260]
je 0x416093
inc eax
cmp eax, dword [ebp + 0x54]
jb 0x415f55
jmp 0x416338
mov eax, dword [ebp + 0x78]
cmp eax, ebx
je 0x415f85
cmp eax, dword [ebp - 0x260]
jne 0x416338
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
je 0x415f98
cmp eax, dword [ebp - 0x270]
jne 0x416338
cmp dword [ebp + 0x20], ebx
jne 0x41609f
cmp dword [ebp - 4], ebx
je 0x416021
cmp dword [ebp + 0x70], ebx
je 0x415fd9
cmp dword [ebp + 0x5c], ebx
je 0x416093
push dword [ebp + 0x48]
lea eax, [ebp - 0x254]
push dword [ebp + 0x5c]
push dword [ebp + 0x6c]
push eax
call fcn.0040fe3d
add esp, 0x10
test al, al
je 0x416338
jmp 0x416093
cmp dword [ebp + 0x5c], ebx
jne 0x415ff0
cmp word [ebp - 0x254], bx
jne 0x416338
jmp 0x41609f
cmp dword [ebp + 0x48], ebx
jne 0x41600d
push dword [ebp + 0x6c]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x416093
push dword [ebp + 0x6c]
lea eax, [ebp - 0x254]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jmp 0x41608d
cmp dword [ebp + 0x70], ebx
je 0x416047
cmp dword [ebp + 0x5c], ebx
je 0x416093
push dword [ebp + 0x48]
lea eax, [ebp - 0x254]
push dword [ebp + 0x5c]
push dword [ebp + 0x6c]
push eax
call fcn.0040fe3d
add esp, 0x10
test al, al
jne 0x416093
cmp dword [ebp + 0x5c], ebx
je 0x416338
push dword [ebp + 0x48]
lea eax, [ebp - 0x254]
push dword [ebp + 0x5c]
push dword [ebp + 0x6c]
push eax
call fcn.0040fe3d
add esp, 0x10
test al, al
je 0x416338
cmp dword [ebp + 0x70], ebx
jne 0x416338
mov eax, dword [ebp + 0x5c]
mov ax, word [ebp + eax*2 - 0x254]
cmp ax, bx
je 0x416093
cmp ax, 0x2e
jne 0x416338
cmp dword [ebp + 0x74], ebx
je 0x4162d8
inc dword [ebp + 0x58]
cmp dword [ebp + 0x74], ebx
jne 0x4160ad
cmp dword [ebp + 0x20], ebx
je 0x416338
xor edi, edi
cmp dword [ebp + 0x74], ebx
mov dword [ebp + 0x24], ebx
mov dword [ebp + 0x28], ebx
je 0x41614e
push dword [ebp - 0x270]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x41614e
push ebx
push 0x4bddfc
push str.PSAPI.DLL
push str.GetProcessMemoryInfo
call fcn.00438b10
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 0x416114
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 0x416147
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 esi, dword [ebp + 0x44]
add esi, 0x20a
push esi
push dword [ebp - 0x270]
call fcn.004047fd
mov eax, dword [ebp + 0x44]
add eax, 0x20a
cmp word [eax], 0x5c
pop ecx
pop ecx
jne 0x4161a4
mov ecx, dword [ebp + 0x44]
add ecx, 0x20a
cmp word [ecx + 2], 0x3f
jne 0x4161a4
cmp word [ecx + 4], 0x3f
jne 0x4161a4
cmp word [ecx + 6], 0x5c
jne 0x4161a4
lea eax, [ecx + 8]
cmp word [eax], bx
je 0x4161a4
cmp word [ecx + 0xa], 0x3a
jne 0x4161a4
mov esi, eax
jmp 0x4161d1
mov eax, dword [ebp + 0x44]
push 0xc
add eax, 0x20a
push eax
push str.SystemRoot_
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x4161d1
mov esi, dword [ebp + 0x44]
lea eax, [esi + 0x220]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_lstrcpyW]
cmp dword [ebp + 0x20], ebx
je 0x416220
cmp dword [ebp + 0x48], ebx
jne 0x4161e9
push dword [ebp + 0x6c]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x4161fb
push dword [ebp + 0x6c]
push esi
call dword [sym.imp.KERNEL32.DLL_lstrcmpW]
test eax, eax
jne 0x416338
cmp dword [ebp + 0x74], ebx
jne 0x41621d
cmp dword [ebp + 0x1c], ebx
mov eax, dword [ebp - 0x270]
je 0x416357
cmp dword [ebp + 0x18], eax
jne 0x416357
jmp 0x416338
inc dword [ebp + 0x58]
push 0x8000
push dword [ebp + 0x30]
push dword [ebp - 0x270]
call fcn.00407a14
mov eax, dword [ebp + 0x30]
push dword [ebp + 0x28]
mov word [eax + 0x8000], bx
mov eax, dword [ebp + 0x50]
push dword [ebp + 0x24]
add eax, 0x64
push eax
call fcn.00484286
add esp, 0x18
cmp dword [ebp - 0x270], ebx
je 0x416262
mov eax, dword [ebp + 0x50]
add eax, 0x64
jmp 0x416265
mov eax, dword [ebp + 0x3c]
mov ecx, dword [ebp + 0x50]
push ecx
push eax
push edi
push dword [ebp - 0x260]
lea eax, [ecx + 0x64]
push dword [ebp - 0x270]
add eax, 0x8c
push str._lu_t_lu_t_lu_t_s_t_s_t
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
mov eax, dword [ebp + 0x74]
mov eax, dword [eax]
add esp, 0x1c
cmp word [eax], bx
je 0x4162a5
mov ecx, dword [ebp + 0x74]
push 0x4a3f24
call fcn.0043d411
mov eax, dword [ebp + 0x50]
mov edi, dword [ebp + 0x74]
add eax, 0xf0
push eax
mov ecx, edi
call fcn.0043d411
push esi
mov ecx, edi
call fcn.0043d411
push 0x4a6d4c
mov ecx, edi
call fcn.0043d411
push dword [ebp + 0x30]
mov ecx, edi
call fcn.0043d411
jmp 0x416338
cmp dword [ebp + 0x1c], ebx
je 0x4162e8
mov eax, dword [ebp + 0x18]
cmp eax, dword [ebp - 0x270]
je 0x416338
cmp dword [ebp + 0x10], ebx
je 0x416351
mov esi, dword [ebp + 0x54]
cmp dword [ebp + 0x40], esi
ja 0x41630b
add dword [ebp + 0x40], 0x400
mov eax, dword [ebp + 0x40]
shl eax, 2
push eax
lea ecx, [ebp + 0x4c]
call fcn.0043d2c0
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 0x416335
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x270]
call fcn.0040fe66
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 0x415f25
jmp 0x41635a
mov eax, dword [ebp - 0x270]
mov dword [ebp + 0x58], eax
cmp dword [ebp + 0x10], ebx
mov byte [ebp + 0x63], 2
je 0x41636f
mov eax, dword [ebp]
cmp dword [ebp + 0x54], eax
ja 0x415f01
lea ecx, [ebp + 4]
call fcn.00402b8a
lea ecx, [ebp + 0xc]
call fcn.00437884
lea ecx, [ebp + 0x4c]
call fcn.00437884
mov eax, dword [ebp + 0x58]
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret