Function at 0x460e40
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d662b
mov eax, dword fs:[0]
push eax
mov eax, 0x2254
call fcn.004a7970
mov eax, dword [0x517b80]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x2228], eax
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
mov edi, dword [ebp + 8]
xorps xmm0, xmm0
movq qword [ebp - 0x2238], xmm0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 0x2224], ebx
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2230], ebx
push edi
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00457970
mov esi, eax
test esi, esi
js 0x4612d9
lfence
cmp word [edi], 0x7d
je 0x4612c6
nop word [eax + eax]
push 0x4eacd0
push edi
mov dword [ebp - 0x223c], 1
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
push 0x4ecbdc
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x460f10
test ebx, ebx
jne 0x46102e
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.00457970
mov esi, eax
test esi, esi
js 0x4612c6
cmp dword [ebp + 0x10], 0
lfence
je 0x46102e
movzx ecx, word [edi]
mov eax, edi
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2240], 0
test cx, cx
je 0x460f74
mov edx, ecx
cmp dx, 0x5c
je 0x460f6c
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x460f53
jmp 0x460f74
test eax, eax
jne 0x461778
mov esi, 0x4ecc08
nop dword [eax]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x460fdb
add esi, 4
cmp esi, 0x4ecc38
jl 0x460f80
mov eax, dword [ebp - 0x222c]
lea ecx, [ebp - 0x2248]
lfence
push edi
mov dword [ebp - 0x2248], eax
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
call fcn.00460900
mov dword [ebp - 0x2248], 0
mov dword [ebp - 0x2240], 0
test ebx, ebx
jne 0x461024
mov ebx, dword [ebp - 0x2228]
mov ecx, ebx
push edi
lfence
call fcn.00457970
mov esi, eax
test esi, esi
js 0x4612c6
push edi
mov ecx, ebx
lfence
call fcn.00461c50
mov esi, eax
test esi, esi
js 0x4612c6
mov ebx, dword [ebp - 0x2224]
mov dword [ebp - 0x2244], 0
jmp 0x4613f5
mov dword [ebp - 0x2244], 0
push 0x4ecbf4
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
mov ebx, dword [ebp - 0x2228]
test eax, eax
jne 0x46105c
push edi
mov ecx, ebx
mov dword [ebp - 0x223c], eax
call fcn.00457970
mov esi, eax
test esi, esi
js 0x4612c6
push 0x4ecbd4
push edi
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
jne 0x4611f9
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.00457970
mov esi, eax
test esi, esi
js 0x4612c6
push edi
mov ecx, ebx
lfence
call fcn.00457970
mov esi, eax
test esi, esi
js 0x4612c6
cmp word [edi], 0x3d
jne 0x461778
cmp dword [ebp + 0x10], 0
je 0x461144
lfence
xorps xmm0, xmm0
mov dword [ebp - 0x224c], 0
movq qword [ebp - 0x2254], xmm0
mov eax, dword [ebp - 0x222c]
mov ecx, ebx
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2254]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
call fcn.00453b40
mov esi, eax
mov dword [ebp - 0x2254], 0
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
test esi, esi
js 0x4612c6
mov ebx, dword [ebp - 0x2224]
mov byte [ebp - 4], 0
mov dword [ebp - 0x2250], 0
jmp 0x4613f5
cmp dword [ebp + 0x14], 0
jne 0x4611df
cmp dword [ebp - 0x223c], 0
je 0x4611df
push 0x20006
push 0
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2260]
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
call fcn.0045c9d0
test eax, eax
jne 0x461753
mov ebx, dword [ebp - 0x2260]
lea eax, [ebp - 0x2218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4611ba
cmp eax, 2
jne 0x461734
test ebx, ebx
je 0x4611cf
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2260], 0
mov ebx, dword [ebp - 0x2228]
mov dword [ebp - 0x225c], 0
push edi
mov ecx, ebx
lfence
call fcn.00461c50
mov esi, eax
test esi, esi
js 0x4612c6
jmp 0x461725
movzx ecx, word [edi]
mov eax, edi
test cx, cx
je 0x461226
mov edx, ecx
cmp dx, 0x5c
je 0x46121e
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x461205
jmp 0x461226
test eax, eax
jne 0x461778
cmp dword [ebp + 0x10], 0
je 0x461454
mov ebx, dword [ebp - 0x222c]
lea ecx, [ebp - 0x2238]
push 0x2001f
push edi
push ebx
call fcn.0045c9d0
test eax, eax
je 0x46139f
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2238]
call fcn.0045c9d0
test eax, eax
je 0x46139f
mov esi, dword [ebp - 0x2230]
mov byte [ebp - 4], 2
mov dword [ebp - 0x2224], 0
test esi, esi
je 0x461348
cmp dword [esi], 0
je 0x46133b
push 0x4ecad0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
jne 0x4612f7
mov eax, 1
mov ebx, dword [ebp - 0x2238]
mov dword [ebp - 0x2224], ebx
mov byte [ebp - 4], 0
test eax, eax
je 0x4613ab
push eax
call fcn.00454180
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2224]
test eax, eax
je 0x4612d7
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a71aa
mov esp, ebp
pop ebp
ret 0x10
push 0x4ecb04
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x461341
push 0
push dword [esi]
lea eax, [ebp - 0x2220]
mov ecx, ebx
push eax
lea eax, [ebp - 0x2224]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x222c]
call dword [0x4dc8a4]
call ebx
jmp 0x46136b
cmp dword [esi + 4], 0
jne 0x461348
mov eax, 1
jmp 0x46136b
lea eax, [ebp - 0x2220]
push eax
lea eax, [ebp - 0x2224]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4612a3
mov ecx, dword [ebp - 0x2238]
test ecx, ecx
je 0x461384
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x2224]
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], 0
jmp 0x4612a9
mov ebx, dword [ebp - 0x2238]
mov dword [ebp - 0x2224], ebx
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.00457970
mov esi, eax
test esi, esi
js 0x4612c6
cmp word [edi], 0x3d
jne 0x4613f5
mov ecx, dword [ebp - 0x2228]
lea eax, [ebp - 0x2238]
push edi
push 0
push eax
lfence
call fcn.00453b40
mov esi, eax
test esi, esi
js 0x461782
mov ebx, dword [ebp - 0x2238]
mov dword [ebp - 0x2224], ebx
cmp word [edi], 0x7b
jne 0x461725
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x461404
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x461725
push 0
push dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp - 0x2228]
mov ecx, ebx
push edi
call fcn.00460e40
mov esi, eax
test esi, esi
js 0x4612c6
push edi
mov ecx, ebx
lfence
call fcn.00457970
mov esi, eax
test esi, esi
js 0x4612c6
jmp 0x461725
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x461482
push 0x20019
push edi
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2238]
call fcn.0045c9d0
mov ebx, eax
mov eax, dword [ebp - 0x2238]
mov dword [ebp - 0x2224], eax
jmp 0x461487
mov ebx, 2
test ebx, ebx
mov eax, 1
push 0xffffffffffffffff
cmove eax, esi
push edi
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.004aec4e
push eax
call fcn.004372b0
mov ecx, dword [ebp - 0x2228]
add esp, 0x14
push edi
call fcn.00457970
mov esi, eax
test esi, esi
js 0x4612c6
mov ecx, dword [ebp - 0x2228]
push edi
lfence
call fcn.00461c50
mov esi, eax
test esi, esi
js 0x4612c6
cmp word [edi], 0x7b
jne 0x46154e
mov ecx, edi
lfence
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4614f1
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x46154e
mov ecx, dword [ebp - 0x2228]
lfence
push dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2224]
push edi
call fcn.00460e40
mov esi, eax
test esi, esi
jns 0x461535
cmp dword [ebp - 0x221c], 0
je 0x4612c6
mov ecx, dword [ebp - 0x2228]
push edi
lfence
call fcn.00457970
mov esi, eax
test esi, esi
js 0x4612c6
cmp ebx, 2
je 0x461725
test ebx, ebx
je 0x46156b
cmp dword [ebp + 0x14], 0
jne 0x461725
push ebx
jmp 0x4612bc
cmp dword [ebp + 0x14], 0
je 0x461612
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x461612
cmp eax, dword [ebp - 0x221c]
sbb eax, eax
neg eax
je 0x461612
mov ebx, 0x4ecc08
nop dword [eax + eax]
push dword [ebx]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.DLL_lstrcmpiW]
test eax, eax
je 0x461725
add ebx, 4
cmp ebx, 0x4ecc38
jl 0x4615c0
cmp dword [ebp - 0x223c], 0
je 0x461725
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2238]
call fcn.00460900
mov eax, dword [ebp - 0x2238]
mov dword [ebp - 0x2224], eax
jmp 0x461725
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x221c]
mov dword [ebp - 0x221c], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x2224]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x46164b
xor ebx, ebx
jmp 0x461657
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb ebx, ebx
neg ebx
mov ecx, dword [ebp - 0x2224]
xor eax, eax
test ecx, ecx
je 0x461678
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 0x2238], ecx
mov dword [ebp - 0x2234], 0
test eax, eax
jne 0x4612bb
cmp dword [ebp - 0x223c], eax
je 0x461725
test ebx, ebx
jne 0x461725
mov byte [ebp - 4], 3
cmp byte [0x52dc8c], bl
jne 0x4616e5
push 0x4ecad0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
test eax, eax
je 0x4616d6
push 0x4ecb70
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov ebx, eax
mov byte [0x52dc8c], 1
mov dword [0x52dc88], ebx
jmp 0x4616eb
mov ebx, dword [0x52dc88]
mov byte [0x52dc8c], 1
jmp 0x4616eb
mov ebx, dword [0x52dc88]
lea eax, [ebp - 0x218]
test ebx, ebx
je 0x46170c
push 0
push 0
push eax
push dword [ebp - 0x222c]
mov ecx, ebx
call dword [0x4dc8a4]
call ebx
jmp 0x461719
push eax
push dword [ebp - 0x222c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 0
test eax, eax
jne 0x4612bb
cmp word [edi], 0x7d
jne 0x460ee0
jmp 0x4612c6
push eax
call fcn.00454180
add esp, 4
mov esi, eax
test ebx, ebx
je 0x4612c6
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4612c6
push eax
call fcn.00454180
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x2260]
test eax, eax
je 0x4612c6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4612c6
mov esi, 0x80020009
jmp 0x4612c6
mov eax, dword [ebp - 0x2238]
mov dword [ebp - 0x2224], eax
jmp 0x4612c6