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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484078
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x919c4
call fcn.0047bda0
mov eax, dword [ebp + 0xc]
push ebx
xor ebx, ebx
push esi
push edi
mov dword [eax], ebx
mov edi, 0x48ba7c
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x7d4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [ebp - 0x10], esp
mov eax, ecx
mov esi, edi
mov edi, edx
push 0x80
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 - 0x6d4]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x18]
mov dword [ebp - 4], ebx
push edx
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46e7b5
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 1
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [ebp - 0x18]
push ebx
push ebx
lea ecx, [ebp - 0x2c]
push 0x10
push ecx
push ebx
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]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
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 - 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
cmp eax, ebx
je 0x46ea38
cmp dword [ebp - 0x14c], ebx
jne 0x46e832
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x154]
push edx
push eax
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
je 0x46ea38
cmp dword [ebp - 0x14c], ebx
jne 0x46e832
lea ecx, [ebp - 0x154]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00404a00
cmp eax, ebx
je 0x46ea38
mov eax, dword [ebp - 0x14c]
lea edx, [ebp - 0x254]
push edx
push eax
call fcn.004047b0
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 0x46e9c5
lea edi, [ebp - 0x254]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x454]
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 - 0x454]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp eax, ecx
jge 0x46e8c3
mov edx, ecx
sub edx, eax
mov dl, byte [ebp + edx - 0x454]
cmp dl, 0x5c
mov byte [ebp + eax - 0x654], dl
jne 0x46e8c0
cmp eax, 2
jge 0x46e8c3
inc eax
jmp 0x46e8a0
sub ecx, eax
xor edx, edx
mov edi, ecx
cmp edx, edi
jge 0x46e8de
mov cl, byte [ebp + edx - 0x454]
mov byte [ebp + edx - 0x9d4], cl
inc edx
jmp 0x46e8c9
mov byte [ebp + edi - 0x9d4], 0
xor esi, esi
cmp esi, eax
jge 0x46e90f
lea edx, [esi + edi]
mov dl, byte [ebp + edx - 0x453]
cmp dl, 0x5c
je 0x46e904
mov byte [ebp + esi - 0x654], dl
jne 0x46e90c
mov byte [ebp + esi - 0x654], 0
inc esi
jmp 0x46e8e8
mov byte [ebp + eax - 0x654], 0
lea eax, [ebp - 0x654]
lea ecx, [ebp - 0x7d4]
push eax
push ecx
call fcn.0047fde0
add esp, 8
test eax, eax
jne 0x46e9c5
mov ecx, dword [ebp - 0x14c]
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x919d4]
push edx
push eax
push ecx
mov dword [ebp - 0x18], ebx
call fcn.00404830
mov eax, dword [ebp - 0x18]
add esp, 0xc
cmp eax, ebx
jle 0x46e9c5
mov ebx, 1
cmp ebx, dword [ebp - 0x18]
jge 0x46e9c3
lea edx, [ebx + ebx*8]
push str.c:endpcachelockfile.dll
shl edx, 4
add edx, ebx
lea edi, [ebp + edx*4 - 0x91890]
push edi
call fcn.0047fde0
add esp, 8
test eax, eax
je 0x46e9c0
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 - 0x1c], esi
mov eax, ecx
mov esi, edi
mov edi, dword [ebp - 0x1c]
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, 0xff
je 0x46e9c3
inc ebx
jmp 0x46e95e
xor ebx, ebx
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x154]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
je 0x46ea38
cmp dword [ebp - 0x14c], ebx
jne 0x46e832
lea eax, [ebp - 0x154]
push eax
jmp 0x46e82a
lea edx, [ebp + 0xc]
push edx
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46ea8c
lea eax, [ebp - 0x28]
mov dword [ebp - 0x2c], 1
push eax
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov edx, dword [ebp + 0xc]
push ebx
push ebx
lea ecx, [ebp - 0x2c]
push 0x10
push ecx
push ebx
push edx
mov dword [ebp - 0x20], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x46ea9b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret