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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4caabd
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x502054]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], edx
mov byte [ebp - 0xd], cl
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
mov byte [ebp - 0x18], 0
mov esi, dword [eax - 0xc]
test esi, esi
js 0x4715db
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x470dc4
push esi
lea ecx, [ebp + 8]
call fcn.00461340
mov eax, dword [ebp + 8]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.004b372e
mov eax, dword [ebp + 8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x4715db
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp + 8]
push 0x4ed874
mov word [eax + esi*2], cx
lea ecx, [ebp + 8]
call fcn.004699c0
or ebx, 0xffffffff
cmp byte [ebp - 0xd], 0
je 0x470f7e
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 2
jle 0x470f7e
push 0x4ee154
push eax
call fcn.004ab595
mov edx, eax
add esp, 8
mov eax, dword [ebp + 8]
test edx, edx
jne 0x470e2b
or edx, ebx
jmp 0x470e2f
sub edx, eax
sar edx, 1
mov ecx, dword [eax - 0xc]
add ecx, 0xfffffffe
cmp edx, ecx
jne 0x470ec3
push ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.0047ae10
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x470ea2
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x470e96
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x470e96
push edx
call fcn.00461130
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x470e8e
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [ebp + 8], eax
jmp 0x470ea2
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.00461210
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x470ec0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 2
jle 0x470f7e
push 0x4ee15c
push eax
call fcn.004ab595
mov ecx, dword [ebp + 8]
mov edx, eax
add esp, 8
test edx, edx
jne 0x470ee9
or edx, 0xffffffff
jmp 0x470eed
sub edx, ecx
sar edx, 1
mov eax, dword [ecx - 0xc]
add eax, 0xfffffffe
cmp edx, eax
jne 0x470f7e
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.0047ae10
mov byte [ebp - 4], 3
mov ecx, dword [eax]
mov esi, dword [ebp + 8]
add esi, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x470f60
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x470f54
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x470f54
push edx
call fcn.00461130
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x470f4c
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x34]
add eax, 0x10
mov dword [ebp + 8], eax
jmp 0x470f60
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.00461210
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x470f7e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push 4
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp + 8]
call fcn.0047ae10
mov byte [ebp - 4], 5
mov ecx, str.hkey
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x470fbd
test dx, dx
je 0x470fb9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x470fbd
add eax, 4
add ecx, 4
test dx, dx
jne 0x470f97
xor esi, esi
jmp 0x470fc2
sbb esi, esi
or esi, 1
mov byte [ebp - 4], 0
mov eax, ebx
mov edx, dword [ebp - 0x34]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x470fe0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x4715a5
mov dword [ebp - 0x14], esi
call fcn.00456f20
test eax, eax
je 0x4715e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ebx, eax
mov dword [ebp - 0x34], ebx
lea eax, [ebx + 0x10]
mov dword [ebp - 0x38], eax
mov byte [ebp - 4], 8
call fcn.00456f20
test eax, eax
je 0x4715e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x50], esi
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x44], esi
mov byte [ebp - 4], 0xb
push ecx
mov esi, esp
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x28], esi
call fcn.00456f20
test eax, eax
je 0x4715e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esi], eax
mov byte [ebp - 4], 0xc
mov ecx, esi
push 0x4ee060
call fcn.00460eb0
test al, al
jne 0x471080
push 1
push 0x4ee060
mov ecx, esi
call fcn.00461210
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x50]
lea ecx, [ebp + 8]
call fcn.004719b0
mov eax, dword [ebp - 0x4c]
add esp, 4
cmp eax, 1
jbe 0x4710fa
mov ecx, dword [ebp - 0x50]
lea esi, [edi - 0x10]
mov ecx, dword [ecx + 4]
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x4710fa
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4710e8
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4710e8
push edx
call fcn.00461130
add esp, 4
mov dword [ebp - 0x2c], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4710e0
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x2c]
lea edi, [eax + 0x10]
mov dword [ebp - 0x24], edi
jmp 0x4710f7
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00461210
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x4c]
test eax, eax
mov eax, dword [ebp - 0x50]
jne 0x471104
lea eax, [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00461130
lea esi, [eax + 0x10]
mov dword [ebp - 0x20], esi
mov byte [ebp - 4], 0xf
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov byte [ebp - 4], 0x10
mov dword [ebp - 0x28], esp
mov dword [ebp - 0x2c], esp
call fcn.00456f20
test eax, eax
je 0x4715e5
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
mov ecx, dword [ebp - 0x2c]
add eax, 0x10
mov dword [ecx], eax
mov byte [ebp - 4], 0x11
push 0x4ec208
call fcn.00460eb0
test al, al
jne 0x47117c
mov ecx, dword [ebp - 0x2c]
push 1
push 0x4ec208
call fcn.00461210
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x20]
call fcn.004719b0
mov eax, dword [ebp - 0x5c]
add esp, 4
cmp eax, 1
jbe 0x4712ba
test eax, eax
je 0x4715db
mov eax, dword [ebp - 0x60]
mov ecx, str.hkey_users
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4711d9
test dx, dx
je 0x4711d5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4711d9
add eax, 4
add ecx, 4
test dx, dx
jne 0x4711b3
xor eax, eax
jmp 0x4711de
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4711ee
mov dword [ebp - 0x14], VariantClear
jmp 0x4712ba
mov eax, dword [ebp - 0x1c]
mov ecx, str.hkey_current_user
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x47121c
test dx, dx
je 0x471218
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x47121c
add eax, 4
add ecx, 4
test dx, dx
jne 0x4711f6
xor eax, eax
jmp 0x471221
sbb eax, eax
or eax, 1
test eax, eax
jne 0x471231
mov dword [ebp - 0x14], SysReAllocString
jmp 0x4712ba
mov eax, dword [ebp - 0x1c]
mov ecx, str.hkey_classes_root
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x471266
test dx, dx
je 0x471262
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x471266
add eax, 4
add ecx, 4
test dx, dx
jne 0x471240
xor eax, eax
jmp 0x47126b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x471278
mov dword [ebp - 0x14], SysReAllocString
jmp 0x4712ba
mov edx, dword [ebp - 0x1c]
mov eax, str.hkey_local_machine
mov cx, word [edx]
cmp cx, word [eax]
jne 0x4712a6
test cx, cx
je 0x4712a2
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x4712a6
add edx, 4
add eax, 4
test cx, cx
jne 0x471280
xor eax, eax
jmp 0x4712ab
sbb eax, eax
or eax, 1
xor ecx, ecx
mov edx, reloc.OLEAUT32.dll_SysReAllocString
test eax, eax
cmove ecx, edx
mov dword [ebp - 0x14], ecx
cmp dword [esi - 0xc], 0
jge 0x4712c5
or eax, 0xffffffff
jmp 0x4712e0
push 0x4ec208
push esi
call fcn.004ab595
add esp, 8
test eax, eax
jne 0x4712dc
or eax, 0xffffffff
jmp 0x4712e0
sub eax, esi
sar eax, 1
inc eax
lea ecx, [ebp - 0x20]
push eax
push 0
call fcn.0047b5a0
cmp dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x20]
je 0x4714ac
cmp dword [edi - 0xc], 0
je 0x47140b
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
lea eax, [edi - 0x10]
push eax
call fcn.00461130
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x28]
mov dword [ebp - 0x40], eax
lea eax, [esi - 0x10]
push eax
call fcn.00461130
add eax, 0x10
add esp, 8
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0x17
mov byte [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0x18
cmp byte [0x514fa8], 0
je 0x47135d
cmp byte [ebp - 0x30], 0
mov dword [ebp - 0x30], 0x20106
jne 0x471364
mov dword [ebp - 0x30], 0x20006
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x471379
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x30]
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4713b2
push dword [ebp - 0x2c]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov ecx, dword [ebp - 0x18]
test eax, eax
movzx ecx, cl
mov eax, 1
cmove ecx, eax
mov dword [ebp - 0x18], ecx
mov byte [ebp - 4], 0x17
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4713c4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0x16
or eax, 0xffffffff
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4713e3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0x10
or eax, 0xffffffff
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4714ac
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4714ac
push dword [ebp - 0x30]
lea eax, [esi - 0x10]
mov byte [ebp - 0xd], 0
push ecx
mov dword [ebp - 0x2c], esp
mov dword [ebp - 0x40], esp
push eax
call fcn.00461130
mov ecx, dword [ebp - 0x2c]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov byte [ebp - 4], 0x1c
mov byte [ebp - 4], 0x10
mov dl, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x14]
call fcn.004715f0
add esp, 8
test al, al
je 0x47144d
mov byte [ebp - 0x18], 1
jmp 0x4714ac
push dword [ebp - 0x30]
lea eax, [esi - 0x10]
mov byte [ebp - 0xd], 1
push ecx
mov dword [ebp - 0x30], esp
mov dword [ebp - 0x40], esp
push eax
call fcn.00461130
mov ecx, dword [ebp - 0x30]
add eax, 0x10
add esp, 4
mov dword [ecx], eax
mov byte [ebp - 4], 0x1e
mov byte [ebp - 4], 0x10
mov dl, byte [ebp - 0xd]
mov ecx, dword [ebp - 0x14]
call fcn.004715f0
add esp, 8
test al, al
je 0x47148f
mov byte [ebp - 0x18], 1
jmp 0x4714ac
push esi
push dword [ebp - 0x14]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov edx, dword [ebp - 0x18]
test eax, eax
movzx ecx, dl
mov eax, 1
cmove ecx, eax
mov byte [ebp - 0x18], cl
mov byte [ebp - 4], 0xf
mov eax, dword [ebp - 0x60]
test eax, eax
je 0x471502
cmp dword [ebp - 0x5c], 0
jbe 0x4714f9
mov edi, dword [ebp - 0x5c]
mov esi, eax
or ebx, 0xffffffff
mov dword [ebp - 0x40], esi
mov byte [ebp - 4], 0xf
mov eax, ebx
mov edx, dword [esi]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4714e5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
sub edi, 1
jne 0x4714c5
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x60]
push eax
call fcn.004b377c
add esp, 4
mov byte [ebp - 4], 0xb
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x47151e
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xa
mov eax, dword [ebp - 0x50]
test eax, eax
je 0x47156c
cmp dword [ebp - 0x4c], 0
jbe 0x471563
mov ebx, dword [ebp - 0x4c]
mov esi, eax
mov dword [ebp - 0x40], esi
mov byte [ebp - 4], 0xa
or eax, 0xffffffff
mov edx, dword [esi]
sub edx, 0x10
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x471555
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
sub ebx, 1
jne 0x471534
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x50]
push eax
call fcn.004b377c
add esp, 4
mov byte [ebp - 4], 8
or esi, 0xffffffff
add edi, 0xfffffff0
mov eax, esi
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x47158a
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, esi
lock xadd dword [ebx + 0xc], eax
dec eax
test eax, eax
jg 0x4715a2
mov ecx, dword [ebx]
push ebx
mov eax, dword [ecx]
call dword [eax + 4]
or ebx, 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], ebx
dec ebx
test ebx, ebx
jg 0x4715c4
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov edx, dword [ebp - 0x18]
mov al, dl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80070057
call fcn.00456c70
push 0x80004005
call fcn.00456c70
int3