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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41e3db
mov eax, dword fs:[0]
push eax
mov eax, 0x2250
call fcn.0041c7b0
mov eax, dword [0x42d3e0]
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]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
movq qword [ebp - 0x2238], xmm0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], ecx
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2234], 0
mov dword [ebp - 0x2230], 0
push edi
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.00409fc0
mov esi, eax
test esi, esi
js 0x40b386
cmp word [edi], 0x7d
je 0x40b373
nop dword [eax]
push str.Delete
push edi
mov dword [ebp - 0x2224], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x42190c
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40abf3
test ebx, ebx
je 0x40acf5
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.00409fc0
mov esi, eax
test esi, esi
js 0x40b373
cmp dword [ebp + 0x10], 0
je 0x40acf5
movzx ecx, word [edi]
mov eax, edi
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x2248], 0
test cx, cx
je 0x40ac54
mov edx, ecx
cmp dx, 0x5c
je 0x40ac4c
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x40ac33
jmp 0x40ac54
test eax, eax
jne 0x40b35c
mov esi, 0x421344
nop dword [eax]
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x40acae
add esi, 4
cmp esi, 0x421374
jl 0x40ac60
mov eax, dword [ebp - 0x222c]
lea ecx, [ebp - 0x2250]
push edi
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], 0
call fcn.0040a630
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x2248], 0
test ebx, ebx
je 0x40aceb
mov ebx, dword [ebp - 0x2228]
mov ecx, ebx
push edi
call fcn.00409fc0
mov esi, eax
test esi, esi
js 0x40b373
push edi
mov ecx, ebx
call fcn.0040b3b0
mov esi, eax
test esi, esi
js 0x40b373
mov dword [ebp - 0x224c], 0
jmp 0x40b03a
mov dword [ebp - 0x224c], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x2228]
test eax, eax
jne 0x40ad23
push edi
mov ecx, ebx
mov dword [ebp - 0x2224], eax
call fcn.00409fc0
mov esi, eax
test esi, esi
js 0x40b373
push 0x421904
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x40aeb1
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.00409fc0
mov esi, eax
test esi, esi
js 0x40b373
push edi
mov ecx, ebx
call fcn.00409fc0
mov esi, eax
test esi, esi
js 0x40b373
cmp word [edi], 0x3d
jne 0x40b35c
cmp dword [ebp + 0x10], 0
je 0x40adff
xorps xmm0, xmm0
mov dword [ebp - 0x223c], 0
movq qword [ebp - 0x2244], xmm0
mov eax, dword [ebp - 0x222c]
mov ecx, ebx
mov dword [ebp - 0x2244], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2244]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
call fcn.00408b60
mov esi, eax
mov dword [ebp - 0x2244], 0
mov dword [ebp - 0x2240], 0
mov dword [ebp - 0x223c], 0
test esi, esi
js 0x40b373
mov byte [ebp - 4], 0
mov dword [ebp - 0x2240], 0
jmp 0x40b03a
cmp dword [ebp + 0x14], 0
jne 0x40ae9a
cmp dword [ebp - 0x2224], 0
je 0x40ae9a
push 0x20006
push 0
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x225c]
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
call fcn.0040a170
test eax, eax
jne 0x40b33e
mov ebx, dword [ebp - 0x225c]
lea eax, [ebp - 0x2218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x40ae75
cmp eax, 2
jne 0x40b326
test ebx, ebx
je 0x40ae8a
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x225c], 0
mov ebx, dword [ebp - 0x2228]
mov dword [ebp - 0x2258], 0
push edi
mov ecx, ebx
call fcn.0040b3b0
mov esi, eax
test esi, esi
js 0x40b373
jmp 0x40b31a
movzx ecx, word [edi]
mov eax, edi
test cx, cx
je 0x40aee1
mov edx, ecx
nop dword [eax]
cmp dx, 0x5c
je 0x40aed9
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x40aec0
jmp 0x40aee1
test eax, eax
jne 0x40b35c
cmp dword [ebp + 0x10], 0
je 0x40b09c
mov esi, dword [ebp - 0x222c]
lea ecx, [ebp - 0x2238]
push 0x2001f
push edi
push esi
call fcn.0040a170
test eax, eax
je 0x40b007
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x2238]
call fcn.0040a170
test eax, eax
je 0x40b007
mov esi, dword [ebp - 0x2230]
mov dword [ebp - 0x2224], 0
test esi, esi
je 0x40afa2
cmp dword [esi], 0
je 0x40af95
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b363
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
test ebx, ebx
je 0x40af9b
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 - 0x222c]
call dword [0x420558]
call ebx
jmp 0x40afca
cmp dword [esi + 4], 0
jne 0x40afa2
mov eax, 1
jmp 0x40afca
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 dword [ebp - 0x222c]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x40b368
mov ecx, dword [ebp - 0x2238]
test ecx, ecx
je 0x40afe3
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x2224]
mov dword [ebp - 0x2238], ebx
mov dword [ebp - 0x2234], 0
test eax, eax
jne 0x40b368
mov ebx, dword [ebp - 0x2228]
push edi
mov ecx, ebx
call fcn.00409fc0
mov esi, eax
test esi, esi
js 0x40b373
cmp word [edi], 0x3d
jne 0x40b03a
push edi
push 0
lea eax, [ebp - 0x2238]
mov ecx, ebx
push eax
call fcn.00408b60
mov esi, eax
test esi, esi
js 0x40b373
cmp word [edi], 0x7b
jne 0x40b31a
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b050
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40b31a
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x2238]
push edi
call fcn.0040ab20
mov esi, eax
test esi, esi
js 0x40b373
push edi
mov ecx, ebx
call fcn.00409fc0
mov esi, eax
test esi, esi
js 0x40b373
jmp 0x40b31a
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x40b0be
push 0x20019
push edi
push dword [ebp - 0x222c]
lea ecx, [ebp - 0x2238]
call fcn.0040a170
mov ebx, eax
jmp 0x40b0c3
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 [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy_s]
push eax
call fcn.00409170
mov ecx, dword [ebp - 0x2228]
add esp, 0x14
push edi
call fcn.00409fc0
mov esi, eax
test esi, esi
js 0x40b373
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.0040b3b0
mov esi, eax
test esi, esi
js 0x40b373
cmp word [edi], 0x7b
jne 0x40b187
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40b130
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x40b187
push dword [ebp - 0x221c]
mov ecx, dword [ebp - 0x2228]
push 0
push dword [ebp - 0x2238]
push edi
call fcn.0040ab20
mov esi, eax
test esi, esi
jns 0x40b171
cmp dword [ebp - 0x221c], 0
je 0x40b373
mov ecx, dword [ebp - 0x2228]
push edi
call fcn.00409fc0
mov esi, eax
test esi, esi
js 0x40b373
cmp ebx, 2
je 0x40b31a
test ebx, ebx
je 0x40b1a4
cmp dword [ebp + 0x14], 0
jne 0x40b31a
push ebx
jmp 0x40b369
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp - 0x2238]
je 0x40b226
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 0x40b226
cmp dword [ebp - 0x221c], eax
jbe 0x40b226
mov ecx, dword [ebp - 0x2228]
lea eax, [ebp - 0x218]
push eax
call fcn.00409370
test eax, eax
je 0x40b31a
cmp dword [ebp - 0x2224], 0
je 0x40b31a
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x2238]
call fcn.0040a630
jmp 0x40b31a
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 0x40b25a
xor ebx, ebx
jmp 0x40b266
xor eax, eax
cmp eax, dword [ebp - 0x221c]
sbb ebx, ebx
neg ebx
mov ecx, dword [ebp - 0x2238]
xor eax, eax
test ecx, ecx
je 0x40b281
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x2238], ecx
mov dword [ebp - 0x2234], 0
test eax, eax
jne 0x40b368
cmp dword [ebp - 0x2224], eax
je 0x40b31a
test ebx, ebx
jne 0x40b31a
cmp byte [0x430bf0], bl
jne 0x40b2e2
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x40b2d3
push 0x4218cc
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, eax
mov byte [0x430bf0], 1
mov dword [0x430bec], ebx
jmp 0x40b2e8
mov ebx, dword [0x430bec]
mov byte [0x430bf0], 1
jmp 0x40b2e8
mov ebx, dword [0x430bec]
lea eax, [ebp - 0x218]
test ebx, ebx
je 0x40b309
push 0
push 0
push eax
push dword [ebp - 0x222c]
mov ecx, ebx
call dword [0x420558]
call ebx
jmp 0x40b316
push eax
push dword [ebp - 0x222c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
jne 0x40b368
cmp word [edi], 0x7d
jne 0x40abc0
jmp 0x40b373
push eax
call fcn.00409230
add esp, 4
mov esi, eax
test ebx, ebx
je 0x40b373
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b373
push eax
call fcn.00409230
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x225c]
test eax, eax
je 0x40b373
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x40b373
mov esi, 0x80020009
jmp 0x40b373
mov eax, 1
push eax
call fcn.00409230
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x2238]
test eax, eax
je 0x40b384
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.0041c340
mov esp, ebp
pop ebp
ret 0x10