Function at 0x46bf30
Capabilities:
Enumerate processes
Persist via image file execution options registry key
Set registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x5e8ea4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [ebp + 8], 0
push ebx
push esi
push edi
mov edi, ecx
mov byte [ebp - 0x451], dl
mov dword [ebp - 0x45c], edi
je 0x46c04a
mov ecx, dword [edi]
mov dword [ebp - 0x458], ecx
mov eax, dword [ecx]
mov dword [ebp - 0x214], eax
cmp eax, ecx
je 0x46c04a
cmp dword [eax + 0x1c], 8
lea ebx, [eax + 8]
jb 0x46bf81
mov ebx, dword [ebx]
mov ecx, 0x25
lea edi, [ebp - 0x210]
mov esi, str.SOFTWAREMicrosoftWindows_NTCurrentVersionImage_File_Execution_Options_
lea eax, [ebp - 0x17a]
rep movsd dword es:[edi], dword [esi]
push 0x172
push 0
push eax
movsw word es:[edi], word [esi]
call fcn.005446b0
push ebx
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00550780
mov esi, 0x5ef7b0
add esp, 0x18
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x46bfc5
push 0
lea eax, [ebp - 0x21c]
sub esi, ecx
push eax
push 0
push 0x20106
push 0
push 0
push 0
lea eax, [ebp - 0x210]
sar esi, 1
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x46c02a
lea eax, [esi + esi]
push eax
push 0x5ef7b0
push 1
push 0
push str.Debugger
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x214]
mov eax, dword [eax]
mov dword [ebp - 0x214], eax
cmp eax, dword [ebp - 0x458]
jne 0x46bf76
mov edi, dword [ebp - 0x45c]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0
push 2
mov dword [ebp - 0x458], eax
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov dword [ebp - 0x21c], eax
test eax, eax
je 0x46c1ce
lea ecx, [ebp - 0x450]
mov dword [ebp - 0x450], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x46c1c2
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [edi]
mov esi, dword [edi]
cmp esi, edi
je 0x46c1a1
cmp dword [esi + 0x1c], 8
lea eax, [esi + 8]
jb 0x46c0ab
mov eax, dword [eax]
push eax
lea eax, [ebp - 0x42c]
push eax
call ebx
test eax, eax
je 0x46c0c4
mov esi, dword [esi]
cmp esi, edi
jne 0x46c0a0
jmp 0x46c1a1
cmp byte [ebp + 0xc], 0
mov esi, dword [ebp - 0x448]
jne 0x46c0f1
mov ecx, dword [0x5f0188]
mov eax, dword [ecx]
cmp eax, ecx
je 0x46c0f1
nop dword [eax]
mov edx, dword [eax + 8]
cmp dword [edx], esi
je 0x46c1a1
mov eax, dword [eax]
cmp eax, ecx
jne 0x46c0e0
cmp esi, dword [ebp - 0x458]
je 0x46c1a1
push esi
push 0
push 0x400
mov dword [ebp - 0x214], 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x46c144
mov eax, dword [0x5ef7ac]
test eax, eax
je 0x46c139
lea ecx, [ebp - 0x218]
push ecx
push 4
lea ecx, [ebp - 0x214]
push ecx
push 0x1d
push esi
call eax
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
jmp 0x46c14a
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x214], 0
jne 0x46c1a1
push dword [ebp - 0x448]
push 0
push 0x100001
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x46c1a1
lea eax, [ebp - 0x42c]
push eax
push str.___Process:__s
call fcn.004612c0
add esp, 8
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
cmp byte [ebp - 0x451], 0
je 0x46c19e
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call edi
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_Process32NextW]
mov edi, dword [ebp - 0x45c]
test eax, eax
jne 0x46c094
push dword [ebp - 0x21c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0052c886
mov esp, ebp
pop ebp
ret