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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x55e156
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
push ebx
push esi
push edi
mov eax, dword [0x5d6024]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x48], 0
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0
push ecx
lea ecx, [ebp - 0x10]
call fcn.004154d0
mov byte [ebp - 4], 1
lea edx, [ebp - 0x48]
lea ecx, [ebp - 0x10]
call fcn.004969f0
mov byte [ebp - 4], 0
or esi, 0xffffffff
mov edx, dword [ebp - 0x10]
mov eax, esi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2c27
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x44], 2
je 0x4a2c34
xor bl, bl
jmp 0x4a2fd7
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax]
sub ecx, 0x10
call fcn.00408b00
add eax, 0x10
mov dword [ebp - 0x34], eax
mov byte [ebp - 4], 4
mov ecx, str._cmdloc
mov eax, dword [ebp - 0x34]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4a2c79
test dx, dx
je 0x4a2c75
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4a2c79
add eax, 4
add ecx, 4
test dx, dx
jne 0x4a2c53
xor eax, eax
jmp 0x4a2c7e
sbb eax, eax
or eax, 1
test eax, eax
je 0x4a2c89
xor bl, bl
jmp 0x4a2fbb
cmp dword [ebp - 0x44], 1
jle 0x4a2ffa
mov eax, dword [ebp - 0x48]
mov ecx, dword [eax + 4]
sub ecx, 0x10
call fcn.00408b00
add eax, 0x10
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 6
push 0x5c
push dword [ebp - 0x18]
call fcn.00523c99
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4a2f9b
sub ebx, dword [ebp - 0x18]
sar ebx, 1
cmp ebx, 0xffffffff
je 0x4a2f9b
push ebx
push 0
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040d350
mov byte [ebp - 4], 7
call fcn.004092f0
test eax, eax
je 0x4a3006
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 9
call fcn.004092f0
test eax, eax
je 0x4a3006
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x28], eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x14]
call fcn.004bc750
mov edi, eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], edi
cmp dword [eax - 0xc], 0
jg 0x4a2d3a
or eax, 0xffffffff
jmp 0x4a2d53
push 0x5c
push eax
call fcn.00523967
add esp, 8
test eax, eax
jne 0x4a2d4e
or eax, 0xffffffff
jmp 0x4a2d53
sub eax, dword [ebp - 0x14]
sar eax, 1
inc eax
lea ecx, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040d230
mov byte [ebp - 4], 0xc
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push 0
push dword [ebp - 0x10]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
call edi
test eax, eax
je 0x4a2dc0
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push dword [ebp - 0x10]
push dword [ebp - 0x30]
call edi
test eax, eax
je 0x4a2dc0
mov byte [ebp - 4], 0xb
mov eax, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2e92
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
xor bl, bl
jmp 0x4a2f3f
push 0x5c
push dword [ebp - 0x10]
call fcn.00523c99
mov edi, eax
add esp, 8
test edi, edi
jne 0x4a2dd8
or edi, 0xffffffff
jmp 0x4a2ddd
sub edi, dword [ebp - 0x10]
sar edi, 1
push edi
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d0a0
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x2c]
push eax
call fcn.00478ba0
mov byte [ebp - 4], 0xc
mov eax, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2e15
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [edi + 1]
mov byte [ebp - 4], 0x10
mov eax, dword [ebp - 0x10]
mov eax, dword [eax - 0xc]
sub eax, ecx
push eax
push ecx
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x10]
call fcn.0040d350
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x20], 2
call fcn.00478ba0
mov eax, 2
mov dword [ebp - 0x20], eax
and eax, 0xfffffffd
mov dword [ebp - 0x20], eax
mov byte [ebp - 4], 0xc
mov eax, esi
mov edx, dword [ebp - 0x38]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2e6e
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0xb
mov eax, esi
mov edx, dword [ebp - 0x10]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2e8c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
cmp dword [ebp - 0x1c], 0
jne 0x4a2e99
xor bl, bl
jmp 0x4a2f3f
lea eax, [ebx + 1]
push eax
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x18]
call fcn.0040d230
mov byte [ebp - 4], 0x13
lea edx, [ebp - 0x24]
push dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x1c]
call fcn.004ba600
add esp, 4
push dword [ebp - 0x24]
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
jne 0x4a2f1f
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4a2f1f
push eax
push eax
push eax
push eax
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x30]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4a2f1f
cmp dword [ebp - 0x30], 0
jne 0x4a2f1f
push dword [ebp - 0x28]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov bl, 1
mov byte [ebp - 4], 0xb
mov eax, esi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2f3f
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 9
mov eax, esi
mov edx, dword [ebp - 0x28]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2f5d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 7
mov eax, esi
mov edx, dword [ebp - 0x2c]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2f7b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 6
mov eax, esi
mov edx, dword [ebp - 0x14]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2f9d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4a2f9d
xor bl, bl
mov byte [ebp - 4], 4
mov eax, esi
mov edx, dword [ebp - 0x18]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4a2fbb
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x34]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x4a2fd7
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.0047fd00
mov al, bl
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 1
push 0xc000008c
call fcn.004111f0
push 0x80004005
call fcn.00408fc0
int3