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

Disassembly:
push ebp
lea ebp, [esp - 0x64]
sub esp, 0x37c
push ebx
xor ebx, ebx
cmp dword [ebp + 0x70], ebx
push esi
push edi
jne 0x414922
cmp dword [ebp + 0x74], ebx
jne 0x414922
cmp dword [ebp + 0x78], ebx
jne 0x414922
cmp dword [ebp + 0x7c], ebx
jne 0x414922
push dword [ebp + 0x6c]
call fcn.0040c3c3
pop ecx
mov dword [ebp + 0x6c], eax
mov eax, dword [ebp + 0x70]
and eax, 0x10000
mov dword [ebp + 0x58], eax
mov eax, dword [ebp + 0x70]
and eax, 2
mov dword [ebp + 0x20], eax
mov eax, dword [ebp + 0x70]
and eax, 0x10
mov dword [ebp + 0x50], eax
mov eax, dword [ebp + 0x70]
and dword [ebp + 0x70], 1
and eax, 0x20
mov dword [ebp + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [0x4afea8], ebx
mov dword [ebp + 0x54], eax
jne 0x414979
push str.NtQuerySystemInformation
push str.ntdll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4afea8], eax
mov esi, 0x4b069c
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test byte [0x4b0ab8], 4
jne 0x4149a8
cmp dword [ebp + 0x74], ebx
je 0x4149a8
or byte [0x4b0ab8], 8
push 2
push str.SeDebugPrivilege
call fcn.0040fac5
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push 0x46e7
lea ecx, [ebp + 0x38]
mov dword [ebp + 0x60], ebx
call fcn.0043719c
mov eax, dword [ebp + 0x38]
mov dword [ebp + 0x4c], eax
add eax, 0xa0
mov dword [ebp + 0x3c], eax
mov dword [ebp + 0x24], eax
add eax, 0x64
lea edi, [eax + 0x8c]
push ebx
push 0x24
mov dword [ebp + 0x48], 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 + 0x18], eax
je 0x414a9b
push 7
pop ecx
xor eax, eax
cmp byte [0x4afb91], 1
push 0x4d
lea edi, [ebp - 0x14]
mov dword [ebp - 0x18], ebx
rep stosd dword es:[edi], eax
pop ecx
lea edi, [ebp - 0x29c]
rep stosd dword es:[edi], eax
push 0x4e
pop ecx
lea edi, [ebp - 0x168]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x2a0], ebx
mov dword [ebp - 0x29c], ebx
mov edi, 0x138
jne 0x414a56
mov edi, 0x270
push ebx
push 0x20
lea eax, [ebp - 0x18]
push eax
push 3
call dword [0x4afea8]
push ebx
push edi
lea eax, [ebp - 0x2a0]
push eax
push 2
call dword [0x4afea8]
push dword [ebp - 0x29c]
push dword [ebp - 0x2a0]
push dword [ebp + 0x4c]
call fcn.004781a1
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 0x3c]
call fcn.004781a1
add esp, 0x18
cmp dword [ebp + 0x70], ebx
jne 0x414b76
mov eax, dword [ebp + 0x6c]
cmp word [eax], bx
jne 0x414b76
mov edi, dword [ebp + 0x74]
push dword [ebp + 0x4c]
mov ecx, edi
call fcn.00441a24
push 0x49f3e8
mov ecx, edi
call fcn.004371ec
push dword [ebp + 0x3c]
mov ecx, edi
call fcn.004371ec
cmp byte [0x4afbbc], bl
ja 0x414ae0
call fcn.00403f5b
movzx eax, byte [0x4afbbc]
push eax
lea eax, [ebp - 0x318]
push str._t_d_t
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea eax, [ebp - 0x318]
push eax
mov ecx, edi
call fcn.004371ec
push dword [0x4afc3c]
lea eax, [ebp - 0x318]
push dword [0x4afc38]
push eax
call fcn.004781a1
add esp, 0xc
lea eax, [ebp - 0x318]
push eax
mov ecx, edi
call fcn.004371ec
fild qword [0x4afc38]
lea ecx, [ebp + 0x5c]
fdivr qword [0x49a530]
fstp qword [ebp + 0x40]
call fcn.0043717e
fld qword [ebp + 0x40]
push str._t_lf
push ecx
push ecx
lea eax, [ebp + 0x5c]
fstp qword [esp]
push eax
call fcn.00478111
add esp, 0x10
push dword [ebp + 0x5c]
mov ecx, edi
call fcn.004371ec
lea ecx, [ebp + 0x5c]
call fcn.00431c4c
push dword [ebp + 0x6c]
call esi
push dword [ebp + 0x7c]
mov esi, eax
push 2
mov dword [ebp + 0x1c], esi
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp + 0x28], eax
jne 0x414b97
xor eax, eax
mov dword [ebp + 0x28], eax
cmp eax, 0xffffffff
mov dword [ebp + 0x24], eax
je 0x414c4c
lea ecx, [ebp - 0x25c]
push ecx
push eax
mov dword [ebp - 0x25c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x414c4c
jmp 0x414bc7
mov esi, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x78]
cmp eax, ebx
je 0x414bda
cmp eax, dword [ebp - 0x244]
jne 0x414f2f
mov eax, dword [ebp + 0x7c]
cmp eax, ebx
je 0x414bed
cmp eax, dword [ebp - 0x254]
jne 0x414f2f
cmp dword [ebp + 0x2c], ebx
jne 0x414d49
cmp dword [ebp + 0x20], ebx
je 0x414ccc
cmp dword [ebp + 0x70], ebx
je 0x414c67
cmp esi, ebx
je 0x414c26
push dword [ebp + 0x58]
lea eax, [ebp - 0x238]
push esi
push dword [ebp + 0x6c]
push eax
call fcn.0040e5ec
add esp, 0x10
test al, al
je 0x414f2f
cmp dword [ebp + 0x74], ebx
jne 0x414d46
cmp dword [ebp + 0x50], ebx
je 0x414c43
mov eax, dword [ebp + 0x54]
cmp eax, dword [ebp - 0x254]
je 0x414f2f
mov eax, dword [ebp - 0x254]
mov dword [ebp + 0x60], eax
lea ecx, [ebp + 0x24]
call fcn.00402b75
lea ecx, [ebp + 0x38]
call fcn.00431c4c
mov eax, dword [ebp + 0x60]
pop edi
pop esi
pop ebx
add ebp, 0x64
leave
ret
cmp esi, ebx
jne 0x414c7d
cmp word [ebp - 0x238], bx
jne 0x414f2f
jmp 0x414d49
cmp dword [ebp + 0x58], ebx
jne 0x414c96
push dword [ebp + 0x6c]
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x414cae
push dword [ebp + 0x6c]
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x414f2f
cmp dword [ebp + 0x74], ebx
jne 0x414d46
cmp dword [ebp + 0x50], ebx
mov eax, dword [ebp - 0x254]
je 0x414c49
cmp dword [ebp + 0x54], eax
jne 0x414c49
jmp 0x414f2f
cmp dword [ebp + 0x70], ebx
je 0x414cf7
cmp esi, ebx
je 0x414c26
push dword [ebp + 0x58]
lea eax, [ebp - 0x238]
push esi
push dword [ebp + 0x6c]
push eax
call fcn.0040e5ec
add esp, 0x10
test al, al
jne 0x414c26
cmp esi, ebx
je 0x414f2f
push dword [ebp + 0x58]
lea eax, [ebp - 0x238]
push esi
push dword [ebp + 0x6c]
push eax
call fcn.0040e5ec
add esp, 0x10
test al, al
je 0x414f2f
cmp dword [ebp + 0x70], ebx
jne 0x414f2f
mov ax, word [ebp + esi*2 - 0x238]
cmp ax, bx
je 0x414c26
cmp ax, 0x2e
jne 0x414f2f
jmp 0x414c26
inc dword [ebp + 0x60]
push dword [ebp - 0x254]
mov dword [ebp + 0x40], ebx
push ebx
push 0x400
mov dword [ebp + 0x44], ebx
mov dword [ebp + 0x34], ebx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x414de5
push ebx
push 0x4afd8c
push str.PSAPI.DLL
push str.GetProcessMemoryInfo
call fcn.00432cb9
add esp, 0x10
push 8
xor eax, eax
pop ecx
lea edi, [ebp - 0x18]
mov dword [ebp - 0x20], 0x28
mov dword [ebp - 0x1c], ebx
rep stosd dword es:[edi], eax
mov eax, dword [0x4afd8c]
cmp eax, ebx
je 0x414da8
push 0x28
lea ecx, [ebp - 0x20]
push ecx
push esi
call eax
mov eax, dword [ebp - 0x14]
shr eax, 0xa
mov dword [ebp + 0x34], eax
lea eax, [ebp + 8]
push eax
lea eax, [ebp + 0x10]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessTimes]
test eax, eax
je 0x414dde
mov eax, dword [ebp + 0x10]
add eax, dword [ebp + 8]
mov dword [ebp + 0x40], eax
mov eax, dword [ebp + 0x14]
adc eax, dword [ebp + 0xc]
mov dword [ebp + 0x44], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp + 0x48]
add edi, 0x80a
lea esi, [edi + 0x20a]
push esi
push dword [ebp - 0x254]
mov dword [ebp + 0x5c], esi
call fcn.00403fcc
cmp word [esi], 0x5c
pop ecx
pop ecx
jne 0x414e34
cmp word [esi + 2], 0x3f
jne 0x414e34
cmp word [esi + 4], 0x3f
jne 0x414e34
cmp word [esi + 6], 0x5c
jne 0x414e34
lea eax, [esi + 8]
cmp word [eax], bx
je 0x414e34
cmp word [esi + 0xa], 0x3a
jne 0x414e34
mov dword [ebp + 0x5c], eax
jmp 0x414e56
push 0xc
push esi
push str.SystemRoot_
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x414e56
add esi, 0x16
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov dword [ebp + 0x5c], edi
cmp dword [ebp + 0x2c], ebx
je 0x414e90
cmp dword [ebp + 0x58], ebx
jne 0x414e70
push dword [ebp + 0x6c]
push dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x414e84
push dword [ebp + 0x6c]
push dword [ebp + 0x5c]
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
jne 0x414f2f
cmp dword [ebp + 0x74], ebx
je 0x414cb7
inc dword [ebp + 0x60]
mov esi, dword [ebp + 0x30]
push 0x8000
push esi
push dword [ebp - 0x254]
call fcn.0040b32e
push dword [ebp + 0x44]
mov edi, dword [ebp + 0x3c]
push dword [ebp + 0x40]
mov word [esi + 0x8000], bx
lea esi, [edi + 0x64]
push esi
call fcn.004781a1
add esp, 0x18
cmp dword [ebp - 0x254], ebx
mov eax, esi
jne 0x414ecd
mov eax, dword [ebp + 0x4c]
push edi
push eax
push dword [ebp + 0x34]
push dword [ebp - 0x244]
push dword [ebp - 0x254]
push str._lu_t_lu_t_lu_t_s_t_s_t
push dword [ebp + 0x48]
call dword [sym.imp.USER32.dll_wsprintfW]
mov esi, dword [ebp + 0x74]
mov eax, dword [esi]
add esp, 0x1c
cmp word [eax], bx
je 0x414f05
push 0x497d7c
mov ecx, esi
call fcn.004371ec
push dword [ebp + 0x48]
mov ecx, esi
call fcn.004371ec
push dword [ebp + 0x5c]
mov ecx, esi
call fcn.004371ec
push 0x49f3e8
mov ecx, esi
call fcn.004371ec
push dword [ebp + 0x30]
mov ecx, esi
call fcn.004371ec
lea eax, [ebp - 0x25c]
push eax
push dword [ebp + 0x28]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x414bc4
jmp 0x414c4c