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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4fc163
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x91b94
call fcn.004f2630
push ebx
push esi
push edi
lea ecx, [ebp - 0x1fc]
mov dword [ebp - 0x10], esp
push 1
call fcn.004f0653
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x3a4]
xor ebx, ebx
push 0x80
push ecx
mov dword [ebp - 4], ebx
mov dword [eax], ebx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [ebp - 0x3a4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x1b4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [ebp - 4], 1
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x9a4]
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]
mov edi, str.svchost.exe
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 [0x4fe4e8]
push ecx
push 2
push str.c:endpcache_svchost_dll.txt
lea ecx, [ebp - 0x1fc]
call fcn.004f0727
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea edx, [ebp - 0x14]
mov edi, eax
push edx
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4bb121
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 1
push eax
push 0x50d674
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [ebp - 0x14]
push ebx
push ebx
lea ecx, [ebp - 0x34]
push 0x10
push ecx
push ebx
push edx
mov dword [ebp - 0x28], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
jmp 0x4bb127
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x14]
push ecx
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 - 0x320]
mov dword [ebp - 0x324], 0x128
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x324]
mov byte [ebp - 4], 2
push eax
push edx
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
je 0x4bb7b2
cmp dword [ebp - 0x31c], ebx
jne 0x4bb1ad
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x324]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
je 0x4bb7b2
cmp dword [ebp - 0x31c], ebx
jne 0x4bb1ad
lea eax, [ebp - 0x324]
lea ecx, [ebp - 0x18]
push eax
call fcn.004a6f00
cmp eax, ebx
je 0x4bb7b2
mov edx, dword [ebp - 0x31c]
lea ecx, [ebp - 0x4a4]
push ecx
push edx
call fcn.004a6cb0
lea edi, [ebp - 0x4a4]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 5
jl 0x4bb78d
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
lea edi, [ebp - 0x4a4]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x6a4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 - 0x6a4]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp eax, ecx
jge 0x4bb248
mov edx, ecx
sub edx, eax
mov dl, byte [ebp + edx - 0x6a4]
cmp dl, 0x5c
mov byte [ebp + eax - 0x8a4], dl
jne 0x4bb245
cmp eax, 2
jge 0x4bb248
inc eax
jmp 0x4bb225
sub ecx, eax
xor edx, edx
mov edi, ecx
cmp edx, edi
jge 0x4bb263
mov cl, byte [ebp + edx - 0x6a4]
mov byte [ebp + edx - 0xba4], cl
inc edx
jmp 0x4bb24e
mov byte [ebp + edi - 0xba4], bl
xor esi, esi
cmp esi, eax
jge 0x4bb292
lea edx, [esi + edi]
mov dl, byte [ebp + edx - 0x6a3]
cmp dl, 0x5c
je 0x4bb288
mov byte [ebp + esi - 0x8a4], dl
jne 0x4bb28f
mov byte [ebp + esi - 0x8a4], bl
inc esi
jmp 0x4bb26c
mov byte [ebp + eax - 0x8a4], bl
lea eax, [ebp - 0x8a4]
lea ecx, [ebp - 0x9a4]
push eax
push ecx
call fcn.004f61e0
add esp, 8
test eax, eax
jne 0x4bb787
mov eax, dword [ebp - 0x31c]
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x91ba4]
push edx
push ecx
push eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x14], ebx
call fcn.004a6d30
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, ebx
jle 0x4bb787
mov esi, 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
cmp esi, eax
jge 0x4bb787
lea edx, [ebp - 0x1b4]
lea eax, [ebp - 0x134]
push edx
push str._s_ntdll.dll
push eax
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea ecx, [esi + esi*8]
lea edx, [ebp - 0x134]
shl ecx, 4
add ecx, esi
lea edi, [ebp + ecx*4 - 0x91a60]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._skernel32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sRPCRT4.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._s_rpcss.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._smsvcrt.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sWS2_32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sUSER32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sGDI32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._siphlpapi.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._s_netman.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sNETAPI32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sole32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sOLEAUT32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sWMI.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sSHELL32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sTAPI32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._scomctl32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sCOMRes.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._smsv1_0.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.004f175f
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.004f61e0
add esp, 0x14
test eax, eax
je 0x4bb781
mov eax, dword [ebp - 0x1fc]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x1f8]
cmp dword [eax + 0x30], 0xffffffff
je 0x4bb742
push edi
call fcn.004fa6c0
add esp, 4
lea ecx, [ebp - 0x1f0]
push eax
call fcn.004f0087
push 0xa
mov ecx, eax
call fcn.004eff40
push 0x402150
mov ecx, eax
call fcn.004016a0
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, eax
mov esi, dword [edx]
shl esi, 8
add esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x24], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x24]
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, 0x1f4
je 0x4bb787
mov esi, dword [ebp - 0x1c]
inc esi
jmp 0x4bb2e7
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x324]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
je 0x4bb7b2
cmp dword [ebp - 0x31c], ebx
jne 0x4bb1ad
jmp 0x4bb19e
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp + 0xc]
mov edi, eax
push ecx
push 0x20
push edi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4bb804
lea edx, [ebp - 0x30]
mov dword [ebp - 0x34], 1
push edx
push 0x50d674
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [ebp + 0xc]
push ebx
push ebx
lea eax, [ebp - 0x34]
push 0x10
push eax
push ebx
push ecx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0xc]
push edx
call esi
mov eax, dword [ebp + 0xc]
push eax
call esi
push edi
call esi
lea ecx, [ebp - 0x1fc]
call fcn.004f076e
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x4bb823
push eax
call esi
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 4], 0xffffffff
call fcn.004f0714
lea ecx, [ebp - 0x1e8]
call fcn.004f05fb
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret