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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbcb8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x5c8
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov dword [ebp - 0x10], esp
lea eax, [ebp - 0xac]
xor edi, edi
push 0x80
push eax
mov dword [ebp - 0x1c], edi
mov dword [esi], edi
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [ebp - 0x5d4]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x18]
mov esi, eax
push edx
push 0x20
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4aa845
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 1
push eax
push 0x50d674
push edi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [ebp - 0x18]
push edi
push edi
lea ecx, [ebp - 0x2c]
push 0x10
push ecx
push edi
push edx
mov dword [ebp - 0x20], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call ebx
jmp 0x4aa84b
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
push ecx
call ebx
push esi
call ebx
push edi
push 2
mov dword [ebp - 0x14], 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edx, eax
mov dword [ebp - 0x14], edx
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x3d0]
mov dword [ebp - 0x3d4], 0x128
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3d4]
mov byte [ebp - 4], 1
push eax
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4aa8cd
mov ecx, dword [ebp - 0x3cc]
test ecx, ecx
jne 0x4aa8cd
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x3d4]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4aa8cd
mov ecx, dword [ebp - 0x3cc]
test ecx, ecx
jne 0x4aa8cd
lea eax, [ebp - 0x3d4]
lea ecx, [ebp - 0x14]
push eax
call fcn.004a6f00
xor ecx, ecx
test eax, eax
je 0x4aadb4
inc ecx
cmp ecx, 0x1f4
mov dword [ebp - 0x18], ecx
jg 0x4aadb4
mov ebx, dword [ebp - 0x3cc]
lea ecx, [ebp - 0x4d4]
push ecx
push ebx
mov byte [ebp - 0x4d4], 0
call fcn.004a6cb0
lea edi, [ebp - 0x4d4]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jl 0x4aad50
lea edi, [ebp - 0x4d4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x2ac]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x1ac]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0xac]
push ecx
push str._swinlogon.exe
push edx
call fcn.004f175f
lea eax, [ebp - 0x2ac]
lea ecx, [ebp - 0x1ac]
push eax
push ecx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aad50
lea edx, [ebp - 0xac]
lea eax, [ebp - 0x1ac]
push edx
push str.___swinlogon.exe
push eax
call fcn.004f175f
lea ecx, [ebp - 0x2ac]
lea edx, [ebp - 0x1ac]
push ecx
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aad50
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0x1ac]
push eax
push str._scsrss.exe
push ecx
call fcn.004f175f
lea edx, [ebp - 0x2ac]
lea eax, [ebp - 0x1ac]
push edx
push eax
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aad50
lea ecx, [ebp - 0xac]
lea edx, [ebp - 0x1ac]
push ecx
push 0x528418
push edx
call fcn.004f175f
lea eax, [ebp - 0x2ac]
lea ecx, [ebp - 0x1ac]
push eax
push ecx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aad50
lea edx, [ebp - 0xac]
lea eax, [ebp - 0x1ac]
push edx
push str._s_services.exe
push eax
call fcn.004f175f
lea ecx, [ebp - 0x2ac]
lea edx, [ebp - 0x1ac]
push ecx
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aad50
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0x1ac]
push eax
push str._slsass.exe
push ecx
call fcn.004f175f
lea edx, [ebp - 0x2ac]
lea eax, [ebp - 0x1ac]
push edx
push eax
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aad50
lea ecx, [ebp - 0xac]
lea edx, [ebp - 0x1ac]
push ecx
push str._s_svchost.exe
push edx
call fcn.004f175f
lea eax, [ebp - 0x2ac]
lea ecx, [ebp - 0x1ac]
push eax
push ecx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aad50
lea edx, [ebp - 0xac]
lea eax, [ebp - 0x1ac]
push edx
push str._s_spoolsv.exe
push eax
call fcn.004f175f
lea ecx, [ebp - 0x2ac]
lea edx, [ebp - 0x1ac]
push ecx
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aad50
lea eax, [ebp - 0x2ac]
push eax
push str.SystemRootSystem32_smss.exe
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aad50
lea ecx, [ebp - 0x2ac]
push ecx
push str.__SystemRootSystem32_smss.exe
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aad50
lea edx, [ebp - 0xac]
lea eax, [ebp - 0x1ac]
push edx
push str._sctfmon.exe
push eax
call fcn.004f175f
lea ecx, [ebp - 0x2ac]
lea edx, [ebp - 0x1ac]
push ecx
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aad50
lea eax, [ebp - 0xac]
lea ecx, [ebp - 0x1ac]
push eax
push str._sconime.exe
push ecx
call fcn.004f175f
lea edx, [ebp - 0x2ac]
lea eax, [ebp - 0x1ac]
push edx
push eax
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aad50
lea ecx, [ebp - 0xac]
lea edx, [ebp - 0x1ac]
push ecx
push str._s_taskmgr.exe
push edx
call fcn.004f175f
lea eax, [ebp - 0x2ac]
lea ecx, [ebp - 0x1ac]
push eax
push ecx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aad50
lea edx, [ebp - 0xac]
lea eax, [ebp - 0x1ac]
push edx
push str._smdm.exe
push eax
call fcn.004f175f
lea ecx, [ebp - 0x2ac]
lea edx, [ebp - 0x1ac]
push ecx
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4aad50
lea eax, [ebp - 0x5d4]
lea ecx, [ebp - 0x1ac]
push eax
push str._sexplorer.exe
push ecx
call fcn.004f175f
lea edx, [ebp - 0x2ac]
lea eax, [ebp - 0x1ac]
push edx
push eax
call fcn.004f61e0
add esp, 0x14
test eax, eax
jne 0x4aac3e
mov dword [ebp - 0x1c], ebx
jmp 0x4aad50
lea ecx, [ebp - 0x2ac]
push str.c:endp_bin_spoolsu.exe
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aad50
lea edx, [ebp - 0x2ac]
push str.c:endp_bin_spoolsw.exe
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aad50
lea eax, [ebp - 0x2ac]
push str.c:endpcache_fileservice.exe
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aad50
lea ecx, [ebp - 0x2ac]
push str.c:endpcacheprocservice.exe
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aad50
lea edx, [ebp - 0x2ac]
push str.c:endpcacheuserservice.exe
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aad50
lea eax, [ebp - 0x2ac]
push str.c:endpcachecardMonitor.exe
push eax
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aad50
lea ecx, [ebp - 0x2ac]
push str.c:endpcachecardMonitorXp.exe
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aad50
lea edx, [ebp - 0x2ac]
push str.c:endpcache_regService.exe
push edx
call fcn.004f61e0
add esp, 8
test eax, eax
je 0x4aad50
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
lea edi, [ebp - 0x4d4]
or ecx, 0xffffffff
mov ebx, dword [edx]
shl ebx, 7
add ebx, eax
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx]
inc ecx
mov eax, ecx
mov dword [edx], ecx
cmp eax, 0x100
je 0x4aadae
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x3d4]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4aad7d
mov ecx, dword [ebp - 0x3cc]
test ecx, ecx
jne 0x4aad7d
lea eax, [ebp - 0x3d4]
lea ecx, [ebp - 0x14]
push eax
call fcn.004a6f00
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
jmp 0x4aa8cf
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp + 0xc]
mov esi, eax
push edx
push 0x20
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4aae0e
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 1
push eax
push 0x50d674
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [ebp + 0xc]
push 0
push 0
lea ecx, [ebp - 0x2c]
push 0x10
push ecx
push 0
push edx
mov dword [ebp - 0x20], 0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 0xc]
push eax
call ebx
mov ecx, dword [ebp + 0xc]
push ecx
call ebx
push esi
call ebx
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x4aae22
push eax
call ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
jg 0x4aae2e
mov eax, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret