Function at 0x4ba090
Capabilities:
Acquire debug privileges
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc0d8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x91944
call fcn.004f2630
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edx, edx
mov edi, str.csrss.exe
or ecx, 0xffffffff
xor eax, eax
mov dword [ebx], edx
lea esi, [ebp - 0x754]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp + 0xc], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov dword [ebp - 0x18], edx
and ecx, 3
mov dword [ebp - 4], edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
mov esi, eax
push ecx
push 0x20
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4ba154
lea edx, [ebp - 0x24]
mov dword [ebp - 0x28], 1
push edx
push 0x50d674
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [ebp - 0x14]
push 0
push 0
lea eax, [ebp - 0x28]
push 0x10
push eax
push 0
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 edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
jmp 0x4ba15a
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
push eax
call edi
push esi
call edi
push 0
push 2
mov dword [ebp + 0xc], 0xffffffff
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edx, eax
mov dword [ebp + 0xc], edx
mov ecx, 0x49
xor eax, eax
lea edi, [ebp - 0x150]
mov dword [ebp - 0x154], 0x128
rep stosd dword es:[edi], eax
lea ecx, [ebp - 0x154]
mov byte [ebp - 4], 1
push ecx
push edx
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x4ba3cc
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
jne 0x4ba1e5
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0x154]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4ba3cc
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
jne 0x4ba1e5
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp + 0xc]
call fcn.004a6f00
test eax, eax
je 0x4ba3cc
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x254]
push edx
push eax
call fcn.004a6cb0
lea edi, [ebp - 0x254]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 5
jl 0x4ba360
lea edi, [ebp - 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x654]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x654]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp eax, ecx
jge 0x4ba276
mov edx, ecx
sub edx, eax
mov dl, byte [ebp + edx - 0x654]
cmp dl, 0x5c
mov byte [ebp + eax - 0x454], dl
jne 0x4ba273
cmp eax, 2
jge 0x4ba276
inc eax
jmp 0x4ba253
sub ecx, eax
xor edx, edx
mov edi, ecx
cmp edx, edi
jge 0x4ba291
mov cl, byte [ebp + edx - 0x654]
mov byte [ebp + edx - 0x954], cl
inc edx
jmp 0x4ba27c
mov byte [ebp + edi - 0x954], 0
xor esi, esi
cmp esi, eax
jge 0x4ba2c2
lea edx, [esi + edi]
mov dl, byte [ebp + edx - 0x653]
cmp dl, 0x5c
je 0x4ba2b7
mov byte [ebp + esi - 0x454], dl
jne 0x4ba2bf
mov byte [ebp + esi - 0x454], 0
inc esi
jmp 0x4ba29b
mov byte [ebp + eax - 0x454], 0
lea eax, [ebp - 0x454]
lea ecx, [ebp - 0x754]
push eax
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4ba360
lea edx, [ebp - 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14c]
lea ecx, [ebp - 0x91954]
push edx
push ecx
push eax
mov dword [ebp - 0x18], eax
call fcn.004a6d30
mov eax, dword [ebp - 0x14]
add esp, 0xc
test eax, eax
jle 0x4ba360
mov edx, 1
cmp edx, dword [ebp - 0x14]
jge 0x4ba360
mov esi, dword [ebx]
mov ecx, dword [ebp + 8]
lea eax, [edx + edx*8]
shl eax, 4
add eax, edx
shl esi, 8
lea edi, [ebp + eax*4 - 0x91810]
add esi, ecx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x2c], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x2c]
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 [ebx]
inc ecx
mov eax, ecx
mov dword [ebx], ecx
cmp eax, 0xff
je 0x4ba360
inc edx
jmp 0x4ba310
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x154]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x4ba3cc
mov ecx, dword [ebp - 0x14c]
test ecx, ecx
jne 0x4ba1e5
lea eax, [ebp - 0x154]
push eax
jmp 0x4ba1dd
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp + 8]
mov esi, eax
push ecx
push 0x20
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4ba42e
lea edx, [ebp - 0x24]
mov dword [ebp - 0x28], 1
push edx
push 0x50d674
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [ebp + 8]
push 0
push 0
lea eax, [ebp - 0x28]
push 0x10
push eax
push 0
push ecx
mov dword [ebp - 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call edi
jmp 0x4ba434
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
push eax
call edi
push esi
call edi
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
je 0x4ba448
push eax
call edi
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x18]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret