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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1001fc9b
mov eax, dword fs:[0]
push eax
mov eax, 0x2250
call fcn.1001f290
mov eax, dword [0x1002e00c]
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 - 0x2258], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov ebx, dword [ebp + 8]
movq qword [ebp - 0x2254], xmm0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x225c], ecx
mov dword [ebp - 0x2254], 0
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
push ebx
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.1000ab00
mov esi, eax
test esi, esi
js 0x1000b51a
cmp word [ebx], 0x7d
je 0x1000b507
nop dword [eax]
push str.Delete
push ebx
mov dword [ebp - 0x2248], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push str.ForceRemove
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1000ad70
test edi, edi
jne 0x1000ae7f
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.1000ab00
mov esi, eax
test esi, esi
js 0x1000b507
cmp dword [ebp + 0x10], 0
je 0x1000ae7f
movzx eax, word [ebx]
mov edx, ebx
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2220], 0
test ax, ax
je 0x1000add3
nop
cmp ax, 0x5c
je 0x1000adcb
push edx
call dword [sym.imp.USER32.dll_CharNextW]
mov edx, eax
movzx ecx, word [edx]
mov eax, ecx
test cx, cx
jne 0x1000adb0
jmp 0x1000add3
test edx, edx
jne 0x1000b4f7
mov esi, 0x10028450
nop dword [eax + eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1000ae38
add esi, 4
cmp esi, str.RegOpenKeyTransactedW
jl 0x1000ade0
mov eax, dword [ebp - 0x225c]
lea ecx, [ebp - 0x2228]
push ebx
mov dword [ebp - 0x2228], eax
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
call fcn.1000a830
mov dword [ebp - 0x2228], 0
mov dword [ebp - 0x2220], 0
test edi, edi
jne 0x1000ae75
mov edi, dword [ebp - 0x2258]
mov ecx, edi
push ebx
call fcn.1000ab00
mov esi, eax
test esi, esi
js 0x1000b507
push ebx
mov ecx, edi
call fcn.1000a6c0
mov esi, eax
test esi, esi
js 0x1000b507
mov dword [ebp - 0x2224], 0
jmp 0x1000b1c2
mov dword [ebp - 0x2224], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000aeaf
mov ecx, dword [ebp - 0x2258]
xor edi, edi
push ebx
mov dword [ebp - 0x2248], edi
call fcn.1000ab00
mov esi, eax
test esi, esi
js 0x1000b507
jmp 0x1000aeb5
mov edi, dword [ebp - 0x2248]
push 0x10028344
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x1000b046
mov ecx, dword [ebp - 0x2258]
lea eax, [ebp - 0x2218]
push eax
call fcn.1000ab00
mov esi, eax
test esi, esi
js 0x1000b507
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.1000ab00
mov esi, eax
test esi, esi
js 0x1000b507
cmp word [ebx], 0x3d
jne 0x1000b4f7
cmp dword [ebp + 0x10], 0
je 0x1000af9f
xorps xmm0, xmm0
mov dword [ebp - 0x222c], 0
movq qword [ebp - 0x2234], xmm0
mov eax, dword [ebp - 0x225c]
mov edi, dword [ebp - 0x2258]
mov ecx, edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x2234], eax
lea eax, [ebp - 0x2218]
push ebx
push eax
lea eax, [ebp - 0x2234]
mov dword [ebp - 0x2230], 0
push eax
mov dword [ebp - 0x222c], 0
call fcn.1000a180
mov esi, eax
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
test esi, esi
js 0x1000b507
mov byte [ebp - 4], 0
mov dword [ebp - 0x2230], 0
jmp 0x1000b1c2
cmp dword [ebp + 0x14], 0
jne 0x1000b02b
test edi, edi
je 0x1000b02b
push 0x20006
push 0
push dword [ebp - 0x225c]
lea ecx, [ebp - 0x2244]
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
call fcn.1000a740
test eax, eax
jne 0x1000b4db
mov edi, dword [ebp - 0x2244]
lea eax, [ebp - 0x2218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x1000b00c
cmp eax, 2
jne 0x1000b4c5
test edi, edi
je 0x1000b021
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.1000a6c0
mov esi, eax
test esi, esi
js 0x1000b507
jmp 0x1000b4b9
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x1000b073
mov edx, ecx
cmp dx, 0x5c
je 0x1000b06b
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x1000b052
jmp 0x1000b073
test eax, eax
jne 0x1000b4f7
cmp dword [ebp + 0x10], 0
je 0x1000b21d
mov edi, dword [ebp - 0x225c]
lea ecx, [ebp - 0x2254]
push 0x2001f
push ebx
push edi
call fcn.1000a740
test eax, eax
je 0x1000b189
push 0x20019
push ebx
push edi
lea ecx, [ebp - 0x2254]
call fcn.1000a740
test eax, eax
je 0x1000b189
mov byte [ebp - 4], 2
mov esi, dword [ebp - 0x224c]
mov dword [ebp - 0x2248], 0
test esi, esi
je 0x1000b12f
cmp dword [esi], 0
je 0x1000b122
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x1000b0ed
mov eax, 1
jmp 0x1000b17d
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1000b128
push 0
push dword [esi]
lea ecx, [ebp - 0x2238]
push ecx
lea ecx, [ebp - 0x2248]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push edi
call eax
jmp 0x1000b152
cmp dword [esi + 4], 0
jne 0x1000b12f
mov eax, 1
jmp 0x1000b152
lea eax, [ebp - 0x2238]
push eax
lea eax, [ebp - 0x2248]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x1000b17d
mov ecx, dword [ebp - 0x2254]
test ecx, ecx
je 0x1000b167
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2248]
mov dword [ebp - 0x2254], ecx
mov dword [ebp - 0x2250], 0
mov byte [ebp - 4], 0
test eax, eax
jne 0x1000b4fe
mov edi, dword [ebp - 0x2258]
mov ecx, edi
push ebx
call fcn.1000ab00
mov esi, eax
test esi, esi
js 0x1000b507
cmp word [ebx], 0x3d
jne 0x1000b1c2
push ebx
push 0
lea eax, [ebp - 0x2254]
mov ecx, edi
push eax
call fcn.1000a180
mov esi, eax
test esi, esi
js 0x1000b507
cmp word [ebx], 0x7b
jne 0x1000b4b9
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b1d1
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x1000b4b9
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x2254]
push ebx
call fcn.1000aca0
mov esi, eax
test esi, esi
js 0x1000b507
push ebx
mov ecx, edi
call fcn.1000ab00
mov esi, eax
test esi, esi
js 0x1000b507
jmp 0x1000b4b9
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x1000b23f
push 0x20019
push ebx
push dword [ebp - 0x225c]
lea ecx, [ebp - 0x2254]
call fcn.1000a740
mov edi, eax
jmp 0x1000b244
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, esi
push ebx
mov dword [ebp - 0x221c], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.10012778
push eax
call fcn.100030c0
mov ecx, dword [ebp - 0x2258]
add esp, 0x14
push ebx
call fcn.1000ab00
mov esi, eax
test esi, esi
js 0x1000b507
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.1000a6c0
mov esi, eax
test esi, esi
js 0x1000b507
cmp word [ebx], 0x7b
jne 0x1000b307
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1000b2b0
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x1000b307
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2258]
push 0
push dword [ebp - 0x2254]
push ebx
call fcn.1000aca0
mov esi, eax
test esi, esi
jns 0x1000b2f1
cmp dword [ebp - 0x221c], 0
je 0x1000b507
mov ecx, dword [ebp - 0x2258]
push ebx
call fcn.1000ab00
mov esi, eax
test esi, esi
js 0x1000b507
cmp edi, 2
je 0x1000b4b9
test edi, edi
je 0x1000b325
cmp dword [ebp + 0x14], 0
jne 0x1000b4b9
mov ecx, edi
jmp 0x1000b500
cmp dword [ebp + 0x14], 0
je 0x1000b3bb
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 - 0x2254]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1000b3bb
cmp eax, dword [ebp - 0x221c]
sbb eax, eax
neg eax
je 0x1000b3bb
mov edi, 0x10028450
push dword [edi]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1000b4b9
add edi, 4
cmp edi, str.RegOpenKeyTransactedW
jl 0x1000b375
cmp dword [ebp - 0x2248], 0
je 0x1000b4b9
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2254]
call fcn.1000a830
jmp 0x1000b4b9
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 - 0x2254]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x1000b3f4
xor edi, edi
jmp 0x1000b400
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x2254]
xor eax, eax
test ecx, ecx
je 0x1000b41b
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2254], ecx
mov dword [ebp - 0x2250], 0
test eax, eax
jne 0x1000b4fe
cmp dword [ebp - 0x2248], eax
je 0x1000b4b9
test edi, edi
jne 0x1000b4b9
mov byte [ebp - 4], 3
cmp byte [0x10032f2c], al
jne 0x1000b480
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1000b472
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10032f28], eax
mov byte [0x10032f2c], 1
jmp 0x1000b485
mov eax, dword [0x10032f28]
mov byte [0x10032f2c], 1
jmp 0x1000b485
mov eax, dword [0x10032f28]
test eax, eax
je 0x1000b49e
push 0
push 0
lea ecx, [ebp - 0x218]
push ecx
push dword [ebp - 0x225c]
call eax
jmp 0x1000b4b1
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x225c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 0
test eax, eax
jne 0x1000b4fe
cmp word [ebx], 0x7d
jne 0x1000ad40
jmp 0x1000b507
mov ecx, eax
call fcn.1000aaf0
mov esi, eax
test edi, edi
je 0x1000b507
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000b507
mov ecx, eax
call fcn.1000aaf0
mov esi, eax
mov eax, dword [ebp - 0x2244]
test eax, eax
je 0x1000b507
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1000b507
mov esi, 0x80020009
jmp 0x1000b507
mov ecx, eax
call fcn.1000aaf0
mov esi, eax
mov eax, dword [ebp - 0x2254]
test eax, eax
je 0x1000b518
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.1000c560
mov esp, ebp
pop ebp
ret 0x10