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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484183
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x91b94
call fcn.0047bda0
push ebx
push esi
push edi
lea ecx, [ebp - 0x1fc]
mov dword [ebp - 0x10], esp
push 1
call fcn.00479b69
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 [0x4853bc]
push ecx
push 2
push str.c:endpcache_svchost_dll.txt
lea ecx, [ebp - 0x1fc]
call fcn.00479c3d
lea edx, [ebp - 0x14]
push edx
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x47056b
lea eax, [ebp - 0x30]
mov dword [ebp - 0x34], 1
push eax
push str.SeDebugPrivilege
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]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
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 ecx, [ebp - 0x324]
mov byte [ebp - 4], 2
push ecx
push edx
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
je 0x470bee
cmp dword [ebp - 0x31c], ebx
jne 0x4705e8
mov eax, dword [ebp - 0x18]
lea edx, [ebp - 0x324]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
je 0x470bee
cmp dword [ebp - 0x31c], ebx
jne 0x4705e8
lea ecx, [ebp - 0x324]
push ecx
lea ecx, [ebp - 0x18]
call fcn.00404a00
cmp eax, ebx
je 0x470bee
mov eax, dword [ebp - 0x31c]
lea edx, [ebp - 0x4a4]
push edx
push eax
call fcn.004047b0
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 0x470bc2
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 0x470683
mov edx, ecx
sub edx, eax
mov dl, byte [ebp + edx - 0x6a4]
cmp dl, 0x5c
mov byte [ebp + eax - 0x8a4], dl
jne 0x470680
cmp eax, 2
jge 0x470683
inc eax
jmp 0x470660
sub ecx, eax
xor edx, edx
mov edi, ecx
cmp edx, edi
jge 0x47069e
mov cl, byte [ebp + edx - 0x6a4]
mov byte [ebp + edx - 0xba4], cl
inc edx
jmp 0x470689
mov byte [ebp + edi - 0xba4], bl
xor esi, esi
cmp esi, eax
jge 0x4706cd
lea edx, [esi + edi]
mov dl, byte [ebp + edx - 0x6a3]
cmp dl, 0x5c
je 0x4706c3
mov byte [ebp + esi - 0x8a4], dl
jne 0x4706ca
mov byte [ebp + esi - 0x8a4], bl
inc esi
jmp 0x4706a7
mov byte [ebp + eax - 0x8a4], bl
lea eax, [ebp - 0x8a4]
lea ecx, [ebp - 0x9a4]
push eax
push ecx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x470bc2
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.00404830
mov eax, dword [ebp - 0x14]
add esp, 0xc
cmp eax, ebx
jle 0x470bc2
mov esi, 1
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], esi
cmp esi, eax
jge 0x470bc2
lea edx, [ebp - 0x1b4]
lea eax, [ebp - 0x134]
push edx
push str._s_ntdll.dll
push eax
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
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.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._skernel32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sRPCRT4.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._s_rpcss.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._smsvcrt.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sWS2_32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sUSER32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sGDI32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._siphlpapi.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._s_netman.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sNETAPI32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sole32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sOLEAUT32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sWMI.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sSHELL32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sTAPI32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._scomctl32.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._sCOMRes.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
lea eax, [ebp - 0x1b4]
lea ecx, [ebp - 0x134]
push eax
push str._smsv1_0.dll
push ecx
mov byte [ebp - 0x134], bl
call fcn.0047a8f8
lea edx, [ebp - 0x134]
push edi
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x470bbc
mov eax, dword [ebp - 0x1fc]
mov ecx, dword [eax + 4]
mov eax, dword [ebp + ecx - 0x1f8]
cmp dword [eax + 0x30], 0xffffffff
je 0x470b7d
push edi
call fcn.00483565
add esp, 4
lea ecx, [ebp - 0x1f0]
push eax
call fcn.00479641
push 0xa
mov ecx, eax
call fcn.00479456
push 0x401430
mov ecx, eax
call fcn.00401410
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 0x470bc2
mov esi, dword [ebp - 0x1c]
inc esi
jmp 0x470722
mov edx, dword [ebp - 0x18]
lea ecx, [ebp - 0x324]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
je 0x470bee
cmp dword [ebp - 0x31c], ebx
jne 0x4705e8
lea eax, [ebp - 0x324]
push eax
jmp 0x4705e0
lea ecx, [ebp + 0xc]
push ecx
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x470c42
lea edx, [ebp - 0x30]
mov dword [ebp - 0x34], 1
push edx
push str.SeDebugPrivilege
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 dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1fc]
call fcn.00479c84
mov eax, dword [ebp - 0x18]
cmp eax, 0xffffffff
je 0x470c5c
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x1e8]
mov dword [ebp - 4], 0xffffffff
call fcn.00479c2a
lea ecx, [ebp - 0x1e8]
call fcn.00479b11
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