Function at 0x462cb0
Capabilities:
Delete registry value
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x924
mov eax, dword [0x6aae14]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push 0x3ff
lea edx, [ebp - 0x507]
push ebx
push edx
mov dword [ebp - 0x91c], eax
mov dword [ebp - 0x924], ecx
mov byte [ebp - 0x508], bl
call fcn.005dfd60
push 0x3ff
lea eax, [ebp - 0x907]
push ebx
push eax
mov byte [ebp - 0x908], bl
call fcn.005dfd60
push 0x103
lea ecx, [ebp - 0x107]
push ebx
push ecx
mov byte [ebp - 0x108], bl
call fcn.005dfd60
push esi
lea edx, [ebp - 0x108]
push str._sSoftwareMicrosoftWindowsCurrentVersionRun
push edx
call fcn.005dfb23
add esp, 0x30
push 1
cmp dword [ebp + 0xc], ebx
jne 0x462d5a
lea eax, [ebp - 0x910]
push eax
lea ecx, [ebp - 0x108]
push ecx
push reloc.WS2_32.dll_closesocket
call fcn.004dc050
jmp 0x462d72
lea edx, [ebp - 0x910]
push edx
lea eax, [ebp - 0x108]
push eax
push reloc.WS2_32.dll_closesocket
call fcn.004faef0
add esp, 0x10
cmp eax, ebx
jne 0x462f6c
push edi
mov eax, 0x400
lea ecx, [ebp - 0x918]
push ecx
mov dword [ebp - 0x914], eax
mov dword [ebp - 0x918], eax
lea edx, [ebp - 0x908]
push edx
lea eax, [ebp - 0x920]
push eax
mov eax, dword [ebp - 0x910]
push ebx
lea ecx, [ebp - 0x914]
push ecx
lea edx, [ebp - 0x508]
push edx
push ebx
push eax
mov dword [ebp - 0x90c], ebx
xor edi, edi
mov byte [ebp - 0x908], bl
mov byte [ebp - 0x508], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
jne 0x462f5e
lea ecx, [ecx]
cmp byte [ebp - 0x908], bl
je 0x462ef9
test byte [0x73fe40], 1
jne 0x462e06
or dword [0x73fe40], 1
mov dword [0x73fe3c], 0x26
push ebx
lea ecx, [ebp - 0x908]
push str.powershell
push ecx
call fcn.004f5880
add esp, 0xc
cmp byte [ebp - 0x508], 0x7b
mov esi, eax
jne 0x462e41
lea eax, [ebp - 0x508]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x462e30
sub eax, edx
cmp eax, dword [0x73fe3c]
je 0x462e60
cmp esi, 0xffffffff
je 0x462e65
push ebx
lea edx, [ebp - 0x908]
push str.bypass
push edx
call fcn.004f5880
add esp, 0xc
cmp eax, 0xffffffff
je 0x462e65
mov edi, 1
mov eax, dword [ebp - 0x924]
cmp eax, ebx
je 0x462e7a
cmp esi, 0xffffffff
je 0x462e7a
mov dword [eax], 1
cmp edi, ebx
je 0x462ef9
mov ecx, dword [ebp - 0x910]
lea eax, [ebp - 0x508]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
test eax, eax
je 0x462ece
inc dword [ebp - 0x90c]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [ebp - 0x908]
push edx
mov edx, dword [ebp - 0x91c]
lea eax, [ebp - 0x508]
push eax
lea ecx, [ebp - 0x108]
push ecx
push str._Locky__Failed_to_Delete_in__s:___s___s_._Error:_u
push edx
call fcn.004f0f30
add esp, 0x18
jmp 0x462eff
lea eax, [ebp - 0x908]
push eax
mov eax, dword [ebp - 0x91c]
lea ecx, [ebp - 0x508]
push ecx
lea edx, [ebp - 0x108]
push edx
push str._Locky__Deleted_in__s:___s___s_
push eax
call fcn.004f0f30
add esp, 0x14
jmp 0x462eff
inc dword [ebp - 0x90c]
mov eax, 0x400
lea ecx, [ebp - 0x918]
push ecx
mov dword [ebp - 0x914], eax
mov dword [ebp - 0x918], eax
lea edx, [ebp - 0x908]
push edx
lea eax, [ebp - 0x920]
push eax
mov eax, dword [ebp - 0x90c]
push ebx
lea ecx, [ebp - 0x914]
push ecx
mov ecx, dword [ebp - 0x910]
lea edx, [ebp - 0x508]
push edx
push eax
push ecx
xor edi, edi
mov byte [ebp - 0x908], bl
mov byte [ebp - 0x508], bl
call dword [sym.imp.ADVAPI32.dll_RegEnumValueA]
test eax, eax
je 0x462de0
mov edx, dword [ebp - 0x910]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
xor eax, eax
pop ebx
call fcn.005dfbbe
mov esp, ebp
pop ebp
ret