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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53ea2c
mov eax, dword fs:[0]
push eax
mov eax, 0x2260
call fcn.005154a0
mov eax, dword [0x5d3b14]
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 - 0x2234], xmm0
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2238], ecx
mov dword [ebp - 0x2224], ebx
mov dword [ebp - 0x2230], ebx
mov dword [ebp - 0x222c], ebx
mov dword [ebp - 4], ebx
mov ecx, eax
push edi
call fcn.004a8cc0
mov esi, eax
test esi, esi
js 0x4a9e61
lfence
cmp word [edi], 0x7d
je 0x4a9e61
nop word [eax + eax]
push 0x56cd78
push edi
mov dword [ebp - 0x2248], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x56cd4c
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4a9993
test ebx, ebx
je 0x4a9af0
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.004a8cc0
mov esi, eax
test esi, esi
js 0x4a9e61
cmp dword [ebp + 0x10], 0
lfence
je 0x4a9af0
xorps xmm0, xmm0
mov dword [ebp - 0x223c], 0
movq qword [ebp - 0x2244], xmm0
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
mov byte [ebp - 4], 1
mov ecx, edi
movzx eax, word [edi]
test ax, ax
je 0x4a9a23
mov edx, eax
nop dword [eax]
cmp dx, 0x5c
je 0x4a9a1b
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4a9a00
jmp 0x4a9a23
test ecx, ecx
jne 0x4aa28c
mov esi, 0x56ce80
nop dword [eax + eax]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x4a9a95
add esi, 4
cmp esi, 0x56ceb0
jl 0x4a9a30
mov eax, dword [ebp - 0x2238]
lea ecx, [ebp - 0x2244]
lfence
push edi
mov dword [ebp - 0x2244], eax
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
call fcn.004a9380
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
test ebx, ebx
je 0x4a9ae2
mov ebx, dword [ebp - 0x2228]
mov ecx, ebx
push edi
lfence
call fcn.004a8cc0
mov esi, eax
test esi, esi
js 0x4aa2a4
push edi
mov ecx, ebx
lfence
call fcn.004aa410
mov esi, eax
test esi, esi
js 0x4aa2a4
mov byte [ebp - 4], 0
mov ebx, dword [ebp - 0x2224]
mov dword [ebp - 0x2240], 0
jmp 0x4a9eff
mov byte [ebp - 4], 0
mov dword [ebp - 0x2240], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x2228]
test eax, eax
jne 0x4a9b1e
push edi
mov ecx, ebx
mov dword [ebp - 0x2248], eax
call fcn.004a8cc0
mov esi, eax
test esi, esi
js 0x4a9e61
push 0x56cd44
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x4a9cf6
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.004a8cc0
mov esi, eax
test esi, esi
js 0x4a9e61
push edi
mov ecx, ebx
lfence
call fcn.004a8cc0
mov esi, eax
test esi, esi
js 0x4a9e61
cmp word [edi], 0x3d
jne 0x4aa29a
cmp dword [ebp + 0x10], 0
je 0x4a9c24
lfence
xorps xmm0, xmm0
mov dword [ebp - 0x224c], 0
movq qword [ebp - 0x2254], xmm0
mov dword [ebp - 0x2254], 0
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov byte [ebp - 4], 2
mov ecx, ebx
mov eax, dword [ebp - 0x2238]
mov dword [ebp - 0x2254], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2254]
mov dword [ebp - 0x2250], 0
push eax
mov dword [ebp - 0x224c], 0
call fcn.004a8060
mov esi, eax
mov dword [ebp - 0x2254], 0
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
test esi, esi
js 0x4aa2b7
mov byte [ebp - 4], 0
mov ebx, dword [ebp - 0x2224]
mov dword [ebp - 0x2250], 0
jmp 0x4a9eff
cmp dword [ebp + 0x14], 0
jne 0x4a9cdc
cmp dword [ebp - 0x2248], 0
je 0x4a9cdc
xorps xmm0, xmm0
mov dword [ebp - 0x2258], 0
movq qword [ebp - 0x2260], xmm0
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x2260]
push 0x20006
push 0
push dword [ebp - 0x2238]
call fcn.004a8e70
test eax, eax
jne 0x4aa2fd
mov ebx, dword [ebp - 0x2260]
lea eax, [ebp - 0x2218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x4a9cb3
cmp eax, 2
jne 0x4aa2ca
mov byte [ebp - 4], 0
test ebx, ebx
je 0x4a9ccc
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.004aa410
mov esi, eax
test esi, esi
js 0x4a9e61
jmp 0x4aa27d
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x4a9d25
mov edx, eax
cmp dx, 0x5c
je 0x4a9d1d
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x4a9d02
jmp 0x4a9d25
test ecx, ecx
jne 0x4aa29a
cmp dword [ebp + 0x10], 0
je 0x4a9f60
mov ebx, dword [ebp - 0x2238]
lea ecx, [ebp - 0x2234]
push 0x2001f
push edi
push ebx
call fcn.004a8e70
test eax, eax
je 0x4a9ead
push 0x20019
push edi
push ebx
lea ecx, [ebp - 0x2234]
call fcn.004a8e70
test eax, eax
je 0x4a9ead
mov esi, dword [ebp - 0x222c]
mov dword [ebp - 0x2224], 0
test esi, esi
je 0x4a9de6
cmp dword [esi], 0
je 0x4a9dd9
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4aa336
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x4a9ddf
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 - 0x2238]
call dword [0x55604c]
call ebx
jmp 0x4a9e09
cmp dword [esi + 4], 0
jne 0x4a9de6
mov eax, 1
jmp 0x4a9e09
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]
mov ecx, dword [ebp - 0x2234]
test eax, eax
jne 0x4aa34c
test ecx, ecx
je 0x4a9e2c
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2234], 0
mov ebx, dword [ebp - 0x2224]
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x2234], ebx
mov dword [ebp - 0x2224], ebx
mov dword [ebp - 0x2230], 0
test eax, eax
je 0x4a9eb9
push eax
call fcn.004a87a0
add esp, 4
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x2224]
test eax, eax
je 0x4a9e83
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2234], 0
mov eax, esi
mov dword [ebp - 0x2230], 0
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.005150f0
mov esp, ebp
pop ebp
ret 0x10
mov ebx, dword [ebp - 0x2234]
mov dword [ebp - 0x2224], ebx
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.004a8cc0
mov esi, eax
test esi, esi
js 0x4a9e61
cmp word [edi], 0x3d
jne 0x4a9eff
mov ecx, dword [ebp - 0x2228]
lea eax, [ebp - 0x2234]
push edi
push 0
push eax
lfence
call fcn.004a8060
mov esi, eax
test esi, esi
js 0x4aa357
mov ebx, dword [ebp - 0x2234]
mov dword [ebp - 0x2224], ebx
cmp word [edi], 0x7b
jne 0x4aa27d
mov ecx, edi
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4a9f10
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4aa27d
push 0
push dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp - 0x2228]
mov ecx, ebx
push edi
call fcn.004a98c0
mov esi, eax
test esi, esi
js 0x4a9e61
push edi
mov ecx, ebx
lfence
call fcn.004a8cc0
mov esi, eax
test esi, esi
js 0x4a9e61
jmp 0x4aa27d
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x4a9f8e
push 0x20019
push edi
push dword [ebp - 0x2238]
lea ecx, [ebp - 0x2234]
call fcn.004a8e70
mov ebx, eax
mov eax, dword [ebp - 0x2234]
mov dword [ebp - 0x2224], eax
jmp 0x4a9f93
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 dword [0x5546f4]
push eax
call fcn.00412fb0
mov ecx, dword [ebp - 0x2228]
add esp, 0x14
push edi
call fcn.004a8cc0
mov esi, eax
test esi, esi
js 0x4a9e61
mov ecx, dword [ebp - 0x2228]
push edi
lfence
call fcn.004aa410
mov esi, eax
test esi, esi
js 0x4a9e61
cmp word [edi], 0x7b
jne 0x4aa05d
mov ecx, edi
lfence
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4aa000
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x4aa05d
mov ecx, dword [ebp - 0x2228]
lfence
push dword [ebp - 0x221c]
push 0
push dword [ebp - 0x2224]
push edi
call fcn.004a98c0
mov esi, eax
test esi, esi
jns 0x4aa044
cmp dword [ebp - 0x221c], 0
je 0x4a9e61
mov ecx, dword [ebp - 0x2228]
push edi
lfence
call fcn.004a8cc0
mov esi, eax
test esi, esi
js 0x4a9e61
cmp ebx, 2
je 0x4aa27d
test ebx, ebx
je 0x4aa07a
cmp dword [ebp + 0x14], 0
jne 0x4aa27d
push ebx
jmp 0x4a9e57
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp - 0x2224]
je 0x4aa10f
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 ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x4aa10f
cmp dword [ebp - 0x221c], eax
jbe 0x4aa10f
mov ecx, dword [ebp - 0x2228]
lea eax, [ebp - 0x218]
push eax
lfence
call fcn.004a87c0
test eax, eax
je 0x4aa27d
cmp dword [ebp - 0x2248], 0
je 0x4aa27d
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2234]
call fcn.004a9380
mov eax, dword [ebp - 0x2234]
mov dword [ebp - 0x2224], eax
jmp 0x4aa27d
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 ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x4aa143
xor ebx, ebx
jmp 0x4aa14f
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 0x4aa170
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2224], ecx
mov dword [ebp - 0x2234], ecx
mov dword [ebp - 0x2230], 0
test eax, eax
jne 0x4a9e56
cmp dword [ebp - 0x2248], eax
je 0x4aa27d
test ebx, ebx
jne 0x4aa27d
xorps xmm0, xmm0
mov dword [ebp - 0x2264], ebx
movq qword [ebp - 0x226c], xmm0
mov dword [ebp - 0x226c], ebx
mov dword [ebp - 0x2268], ebx
mov dword [ebp - 0x2264], ebx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2238]
mov dword [ebp - 0x226c], eax
mov dword [ebp - 0x2268], ebx
mov dword [ebp - 0x2264], ebx
cmp byte [0x5dd2a8], bl
jne 0x4aa224
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4aa20f
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov byte [0x5dd2a8], 1
mov eax, dword [ebp - 0x2238]
mov dword [0x5dd2a4], ebx
jmp 0x4aa22a
mov ebx, dword [0x5dd2a4]
mov eax, dword [ebp - 0x2238]
mov byte [0x5dd2a8], 1
jmp 0x4aa22a
mov ebx, dword [0x5dd2a4]
lea ecx, [ebp - 0x218]
test ebx, ebx
je 0x4aa246
push 0
push 0
push ecx
push eax
mov ecx, ebx
call dword [0x55604c]
call ebx
jmp 0x4aa24e
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov dword [ebp - 0x226c], 0
mov dword [ebp - 0x2268], 0
mov dword [ebp - 0x2264], 0
test eax, eax
jne 0x4aa368
mov byte [ebp - 4], al
mov dword [ebp - 0x2268], eax
cmp word [edi], 0x7d
jne 0x4a9960
jmp 0x4a9e61
mov byte [ebp - 4], 0
mov dword [ebp - 0x2240], 0
mov esi, 0x80020009
jmp 0x4a9e61
mov byte [ebp - 4], 0
mov dword [ebp - 0x2240], 0
jmp 0x4a9e61
mov byte [ebp - 4], 0
mov dword [ebp - 0x2250], 0
jmp 0x4a9e61
push eax
call fcn.004a87a0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
test ebx, ebx
je 0x4aa327
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x225c], 0
jmp 0x4a9e61
push eax
call fcn.004a87a0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x2260]
test eax, eax
je 0x4aa327
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2260], 0
mov dword [ebp - 0x225c], 0
jmp 0x4a9e61
mov ebx, dword [ebp - 0x2234]
mov eax, 1
mov dword [ebp - 0x2224], ebx
jmp 0x4a9e56
mov dword [ebp - 0x2224], ecx
jmp 0x4a9e56
mov eax, dword [ebp - 0x2234]
mov dword [ebp - 0x2224], eax
jmp 0x4a9e61
push eax
call fcn.004a87a0
add esp, 4
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x2268], 0
jmp 0x4a9e61