Function at 0x4629e0
Capabilities:
Delete registry value
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x920
mov eax, dword [0x6aae14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push esi
push edi
push 0x3ff
lea edx, [ebp - 0x907]
push 0
push edx
mov dword [ebp - 0x918], eax
mov dword [ebp - 0x91c], ecx
mov byte [ebp - 0x908], 0
call fcn.005dfd60
push 0x3ff
lea eax, [ebp - 0x507]
push 0
push eax
mov byte [ebp - 0x508], 0
call fcn.005dfd60
mov ecx, 0xb
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRun
lea edi, [ebp - 0x108]
rep movsd dword es:[edi], dword [esi]
push 0xd6
lea ecx, [ebp - 0xda]
push 0
push ecx
movsw word es:[edi], word [esi]
call fcn.005dfd60
add esp, 0x24
cmp dword [ebp + 8], 0
push 1
jne 0x462a87
lea edx, [ebp - 0x90c]
push edx
lea eax, [ebp - 0x108]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004dc050
jmp 0x462a9f
lea ecx, [ebp - 0x90c]
push ecx
lea edx, [ebp - 0x108]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004faef0
add esp, 0x10
test eax, eax
jne 0x462c90
push ebx
mov eax, 0x400
mov dword [ebp - 0x910], eax
mov dword [ebp - 0x914], eax
lea eax, [ebp - 0x914]
push eax
lea ecx, [ebp - 0x508]
push ecx
lea edx, [ebp - 0x920]
push edx
mov edx, dword [ebp - 0x90c]
xor edi, edi
push edi
lea eax, [ebp - 0x910]
push eax
lea ecx, [ebp - 0x908]
push ecx
push edi
xor ebx, ebx
push edx
mov byte [ebp - 0x508], bl
mov byte [ebp - 0x908], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x462c82
jmp 0x462b10
cmp byte [ebp - 0x508], 0
je 0x462c26
test byte [0x73fe38], 1
jne 0x462b37
or dword [0x73fe38], 1
mov dword [0x73fe34], 0x26
push 0
lea eax, [ebp - 0x508]
push str.powershell
push eax
call fcn.004f5880
add esp, 0xc
cmp byte [ebp - 0x908], 0x7b
mov esi, eax
jne 0x462b72
lea eax, [ebp - 0x908]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x462b61
sub eax, edx
cmp eax, dword [0x73fe34]
je 0x462b92
cmp esi, 0xffffffff
je 0x462b97
push 0
lea ecx, [ebp - 0x508]
push str.bypass
push ecx
call fcn.004f5880
add esp, 0xc
cmp eax, 0xffffffff
je 0x462b97
mov edi, 1
mov eax, dword [ebp - 0x91c]
test eax, eax
je 0x462bac
cmp esi, 0xffffffff
je 0x462bac
mov dword [eax], 1
test edi, edi
je 0x462c26
mov eax, dword [ebp - 0x90c]
lea edx, [ebp - 0x908]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x462bfb
inc ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea ecx, [ebp - 0x508]
push ecx
mov ecx, dword [ebp - 0x918]
lea edx, [ebp - 0x908]
push edx
lea eax, [ebp - 0x108]
push eax
push str._Locky__Failed_to_Delete_in__s:___s___s_._Error:_u
push ecx
call fcn.004f0f30
add esp, 0x18
jmp 0x462c27
lea edx, [ebp - 0x508]
push edx
mov edx, dword [ebp - 0x918]
lea eax, [ebp - 0x908]
push eax
lea ecx, [ebp - 0x108]
push ecx
push str._Locky__Deleted_in__s:___s___s_
push edx
call fcn.004f0f30
add esp, 0x14
jmp 0x462c27
inc ebx
mov eax, 0x400
mov dword [ebp - 0x910], eax
mov dword [ebp - 0x914], eax
lea eax, [ebp - 0x914]
push eax
lea ecx, [ebp - 0x508]
push ecx
lea edx, [ebp - 0x920]
push edx
mov edx, dword [ebp - 0x90c]
xor edi, edi
push edi
lea eax, [ebp - 0x910]
push eax
lea ecx, [ebp - 0x908]
push ecx
push ebx
push edx
mov byte [ebp - 0x508], 0
mov byte [ebp - 0x908], 0
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x462b10
mov eax, dword [ebp - 0x90c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.005dfbbe
mov esp, ebp
pop ebp
ret