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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9ebd
mov eax, dword fs:[0]
push eax
sub esp, 0x54
push ebx
push esi
push edi
mov eax, dword [0x4ff080]
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 0x47159b
mov ecx, dword [eax - 8]
mov edx, 1
sub edx, dword [eax - 4]
sub ecx, esi
or ecx, edx
jge 0x470d84
push esi
lea ecx, [ebp + 8]
call fcn.004613a0
mov eax, dword [ebp + 8]
lea ecx, [esi + 1]
push ecx
push eax
call fcn.004b387e
mov eax, dword [ebp + 8]
add esp, 8
cmp esi, dword [eax - 8]
jg 0x47159b
mov dword [eax - 0xc], esi
xor ecx, ecx
mov eax, dword [ebp + 8]
push 0x4e9ec4
mov word [eax + esi*2], cx
lea ecx, [ebp + 8]
call fcn.00469aa0
or ebx, 0xffffffff
cmp byte [ebp - 0xd], 0
je 0x470f3e
mov eax, dword [ebp + 8]
cmp dword [eax - 0xc], 2
jle 0x470f3e
push 0x4ea7a4
push eax
call fcn.004ab6e8
mov edx, eax
add esp, 8
mov eax, dword [ebp + 8]
test edx, edx
jne 0x470deb
or edx, ebx
jmp 0x470def
sub edx, eax
sar edx, 1
mov ecx, dword [eax - 0xc]
add ecx, 0xfffffffe
cmp edx, ecx
jne 0x470e83
push ecx
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.0047af00
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 0x470e62
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x470e56
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x470e56
push edx
call fcn.00461190
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x470e4e
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 0x470e62
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.00461270
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 0x470e80
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 0x470f3e
push 0x4ea7ac
push eax
call fcn.004ab6e8
mov ecx, dword [ebp + 8]
mov edx, eax
add esp, 8
test edx, edx
jne 0x470ea9
or edx, 0xffffffff
jmp 0x470ead
sub edx, ecx
sar edx, 1
mov eax, dword [ecx - 0xc]
add eax, 0xfffffffe
cmp edx, eax
jne 0x470f3e
push eax
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp + 8]
call fcn.0047af00
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 0x470f20
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x470f14
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x470f14
push edx
call fcn.00461190
add esp, 4
mov dword [ebp - 0x34], eax
mov ecx, ebx
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x470f0c
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 0x470f20
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp + 8]
call fcn.00461270
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 0x470f3e
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.0047af00
mov byte [ebp - 4], 5
mov ecx, str.hkey
mov eax, dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x470f7d
test dx, dx
je 0x470f79
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x470f7d
add eax, 4
add ecx, 4
test dx, dx
jne 0x470f57
xor esi, esi
jmp 0x470f82
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 0x470fa0
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x471565
mov dword [ebp - 0x14], esi
call fcn.00456f30
test eax, eax
je 0x4715a5
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.00456f30
test eax, eax
je 0x4715a5
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.00456f30
test eax, eax
je 0x4715a5
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 0x4ea6b0
call fcn.00460f10
test al, al
jne 0x471040
push 1
push 0x4ea6b0
mov ecx, esi
call fcn.00461270
mov byte [ebp - 4], 0xd
mov byte [ebp - 4], 0xb
lea edx, [ebp - 0x50]
lea ecx, [ebp + 8]
call fcn.00471970
mov eax, dword [ebp - 0x4c]
add esp, 4
cmp eax, 1
jbe 0x4710ba
mov ecx, dword [ebp - 0x50]
lea esi, [edi - 0x10]
mov ecx, dword [ecx + 4]
lea edx, [ecx - 0x10]
cmp edx, esi
je 0x4710ba
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x4710a8
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x4710a8
push edx
call fcn.00461190
add esp, 4
mov dword [ebp - 0x2c], eax
or ecx, 0xffffffff
lock xadd dword [edi], ecx
dec ecx
test ecx, ecx
jg 0x4710a0
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 0x4710b7
push dword [ecx - 0xc]
push ecx
lea ecx, [ebp - 0x24]
call fcn.00461270
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x4c]
test eax, eax
mov eax, dword [ebp - 0x50]
jne 0x4710c4
lea eax, [ebp + 8]
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00461190
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.00456f30
test eax, eax
je 0x4715a5
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 0x4e8858
call fcn.00460f10
test al, al
jne 0x47113c
mov ecx, dword [ebp - 0x2c]
push 1
push 0x4e8858
call fcn.00461270
mov byte [ebp - 4], 0x12
mov byte [ebp - 4], 0x10
lea edx, [ebp - 0x60]
lea ecx, [ebp - 0x20]
call fcn.00471970
mov eax, dword [ebp - 0x5c]
add esp, 4
cmp eax, 1
jbe 0x47127a
test eax, eax
je 0x47159b
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 0x471199
test dx, dx
je 0x471195
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x471199
add eax, 4
add ecx, 4
test dx, dx
jne 0x471173
xor eax, eax
jmp 0x47119e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4711ae
mov dword [ebp - 0x14], VariantClear
jmp 0x47127a
mov eax, dword [ebp - 0x1c]
mov ecx, str.hkey_current_user
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4711dc
test dx, dx
je 0x4711d8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4711dc
add eax, 4
add ecx, 4
test dx, dx
jne 0x4711b6
xor eax, eax
jmp 0x4711e1
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4711f1
mov dword [ebp - 0x14], SysStringLen
jmp 0x47127a
mov eax, dword [ebp - 0x1c]
mov ecx, str.hkey_classes_root
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x471226
test dx, dx
je 0x471222
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x471226
add eax, 4
add ecx, 4
test dx, dx
jne 0x471200
xor eax, eax
jmp 0x47122b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x471238
mov dword [ebp - 0x14], SysStringLen
jmp 0x47127a
mov edx, dword [ebp - 0x1c]
mov eax, str.hkey_local_machine
mov cx, word [edx]
cmp cx, word [eax]
jne 0x471266
test cx, cx
je 0x471262
mov cx, word [edx + 2]
cmp cx, word [eax + 2]
jne 0x471266
add edx, 4
add eax, 4
test cx, cx
jne 0x471240
xor eax, eax
jmp 0x47126b
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 0x471285
or eax, 0xffffffff
jmp 0x4712a0
push 0x4e8858
push esi
call fcn.004ab6e8
add esp, 8
test eax, eax
jne 0x47129c
or eax, 0xffffffff
jmp 0x4712a0
sub eax, esi
sar eax, 1
inc eax
lea ecx, [ebp - 0x20]
push eax
push 0
call fcn.0047b690
cmp dword [ebp - 0x14], 0
mov esi, dword [ebp - 0x20]
je 0x47146c
cmp dword [edi - 0xc], 0
je 0x4713cb
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x3c], eax
lea eax, [edi - 0x10]
push eax
call fcn.00461190
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.00461190
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 [0x512008], 0
je 0x47131d
cmp byte [ebp - 0x30], 0
mov dword [ebp - 0x30], 0x20106
jne 0x471324
mov dword [ebp - 0x30], 0x20006
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x471339
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 0x471372
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 0x471384
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 0x4713a3
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 0x47146c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x47146c
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.00461190
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.004715b0
add esp, 8
test al, al
je 0x47140d
mov byte [ebp - 0x18], 1
jmp 0x47146c
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.00461190
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.004715b0
add esp, 8
test al, al
je 0x47144f
mov byte [ebp - 0x18], 1
jmp 0x47146c
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 0x4714c2
cmp dword [ebp - 0x5c], 0
jbe 0x4714b9
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 0x4714a5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
sub edi, 1
jne 0x471485
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x60]
push eax
call fcn.004b38cc
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 0x4714de
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 0x47152c
cmp dword [ebp - 0x4c], 0
jbe 0x471523
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 0x471515
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
add esi, 4
sub ebx, 1
jne 0x4714f4
mov ebx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x50]
push eax
call fcn.004b38cc
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 0x47154a
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 0x471562
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 0x471584
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.00456c80
push 0x80004005
call fcn.00456c80
int3