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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x100336b5
push eax
mov eax, 0x2238
mov dword fs:[0], esp
call fcn.10015470
push ebx
mov eax, ecx
mov dword [ebp - 0x20], 0
push esi
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov ebx, dword [ebp + 8]
push ebx
mov dword [ebp - 4], 0
call fcn.100106c0
mov esi, eax
test esi, esi
js 0x10011933
cmp word [ebx], 0x7d
push edi
je 0x10011922
push str.Delete
push ebx
mov dword [ebp + 8], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
push 0x100346bc
push ebx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100112b0
test edi, edi
jne 0x1001138a
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.100106c0
mov esi, eax
test esi, esi
js 0x10011922
cmp dword [ebp + 0x10], 0
je 0x1001138a
movzx ecx, word [ebx]
mov eax, ebx
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x24], 0
test cx, cx
je 0x10011308
mov edx, ecx
cmp dx, 0x5c
je 0x10011300
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x100112e7
jmp 0x10011308
test eax, eax
jne 0x10011910
mov esi, 0x10034aa8
nop dword [eax]
push dword [esi]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x1001134c
add esi, 4
cmp esi, 0x10034ad8
jl 0x10011310
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
call fcn.10010d70
mov dword [ebp - 0x2c], 0
test edi, edi
jne 0x10011383
mov edi, dword [ebp - 0x14]
mov ecx, edi
push ebx
call fcn.100106c0
mov esi, eax
test esi, esi
js 0x10011922
push ebx
mov ecx, edi
call fcn.10011960
mov esi, eax
test esi, esi
js 0x10011922
mov dword [ebp - 0x28], 0
jmp 0x10011619
mov dword [ebp - 0x28], 0
push str.NoRemove
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov edi, dword [ebp - 0x14]
test eax, eax
jne 0x100113b2
push ebx
mov ecx, edi
mov dword [ebp + 8], eax
call fcn.100106c0
mov esi, eax
test esi, esi
js 0x10011922
push 0x100346b4
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x100114d8
lea eax, [ebp - 0x2244]
mov ecx, edi
push eax
call fcn.100106c0
mov esi, eax
test esi, esi
js 0x10011922
push ebx
mov ecx, edi
call fcn.100106c0
mov esi, eax
test esi, esi
js 0x10011922
cmp word [ebx], 0x3d
jne 0x10011910
cmp dword [ebp + 0x10], 0
je 0x1001145a
mov eax, dword [ebp + 0xc]
mov ecx, edi
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x2244]
push ebx
push eax
lea eax, [ebp - 0x38]
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.1000f570
mov esi, eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
test esi, esi
js 0x10011922
mov byte [ebp - 4], 0
mov dword [ebp - 0x34], 0
jmp 0x10011619
cmp dword [ebp + 0x14], 0
jne 0x100114c1
cmp dword [ebp + 8], 0
je 0x100114c1
xor edi, edi
lea eax, [ebp + 8]
mov dword [ebp + 8], edi
push eax
push 0x20006
push edi
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
mov byte [ebp - 4], 0
cmove edi, dword [ebp + 8]
xor ecx, ecx
test eax, eax
cmovne ecx, eax
test ecx, ecx
jne 0x1001190d
lea eax, [ebp - 0x2244]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x100114b3
cmp eax, 2
jne 0x100118f5
test edi, edi
je 0x100114be
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp - 0x14]
push ebx
mov ecx, edi
call fcn.10011960
mov esi, eax
test esi, esi
js 0x10011922
jmp 0x100118e9
movzx ecx, word [ebx]
mov eax, ebx
test cx, cx
je 0x10011505
mov edx, ecx
cmp dx, 0x5c
je 0x100114fd
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
mov edx, ecx
test cx, cx
jne 0x100114e4
jmp 0x10011505
test eax, eax
jne 0x10011910
cmp dword [ebp + 0x10], 0
je 0x10011679
mov esi, dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
push 0x2001f
push 0
push ebx
push esi
mov dword [ebp + 8], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001154d
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x1001153e
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
jmp 0x10011550
mov edi, dword [ebp - 0x20]
mov byte [ebp - 4], 0
test eax, eax
je 0x100115e6
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push eax
push 0x20019
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10011592
test edi, edi
je 0x10011585
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
test eax, eax
je 0x100115e6
lea eax, [ebp - 0x3c]
mov dword [ebp + 8], 0
push eax
lea eax, [ebp + 8]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x100115da
test edi, edi
je 0x100115cd
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
test eax, eax
jne 0x10011917
mov edi, dword [ebp - 0x14]
mov ecx, edi
push ebx
call fcn.100106c0
mov esi, eax
test esi, esi
js 0x10011922
cmp word [ebx], 0x3d
jne 0x10011619
push ebx
push 0
lea eax, [ebp - 0x20]
mov ecx, edi
push eax
call fcn.1000f570
mov esi, eax
test esi, esi
js 0x10011922
cmp word [ebx], 0x7b
jne 0x100118e9
mov ecx, ebx
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011630
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x100118e9
push 0
push dword [ebp + 0x10]
mov ecx, edi
push dword [ebp - 0x20]
push ebx
call fcn.10011220
mov esi, eax
test esi, esi
js 0x10011922
push ebx
mov ecx, edi
call fcn.100106c0
mov esi, eax
test esi, esi
js 0x10011922
jmp 0x100118e9
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x100116c0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], esi
push eax
push 0x20019
push esi
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
test edi, edi
jne 0x100116ba
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x100116ad
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
mov byte [ebp - 4], 0
jmp 0x100116c5
mov edi, 2
test edi, edi
mov eax, 1
push 0xffffffffffffffff
cmove eax, esi
push ebx
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x244]
push 0x104
push eax
call fcn.1001de9f
push eax
call fcn.1000feb0
mov ecx, dword [ebp - 0x14]
add esp, 0x14
push ebx
call fcn.100106c0
mov esi, eax
test esi, esi
js 0x10011922
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.10011960
mov esi, eax
test esi, esi
js 0x10011922
cmp word [ebx], 0x7b
jne 0x10011768
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10011720
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10011768
push dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
push 0
push dword [ebp - 0x20]
push ebx
call fcn.10011220
mov esi, eax
test esi, esi
jns 0x10011755
cmp dword [ebp - 0x10], 0
je 0x10011922
mov ecx, dword [ebp - 0x14]
push ebx
call fcn.100106c0
mov esi, eax
test esi, esi
js 0x10011922
cmp edi, 2
je 0x100118e9
test edi, edi
je 0x10011785
cmp dword [ebp + 0x14], 0
jne 0x100118e9
push edi
jmp 0x10011918
cmp dword [ebp + 0x14], 0
je 0x10011805
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x10011805
cmp eax, dword [ebp - 0x10]
sbb eax, eax
neg eax
je 0x10011805
mov edi, 0x10034aa8
push dword [edi]
lea eax, [ebp - 0x244]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x100118e9
add edi, 4
cmp edi, 0x10034ad8
jl 0x100117c5
cmp dword [ebp + 8], 0
je 0x100118e9
lea eax, [ebp - 0x244]
push eax
lea ecx, [ebp - 0x20]
call fcn.10010d70
jmp 0x100118e9
push 0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x10011835
xor edi, edi
jmp 0x1001183e
xor eax, eax
cmp eax, dword [ebp - 0x10]
sbb edi, edi
neg edi
mov ecx, dword [ebp - 0x20]
xor eax, eax
test ecx, ecx
je 0x10011853
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], 0
test eax, eax
jne 0x10011917
cmp dword [ebp + 8], eax
je 0x100118e9
test edi, edi
jne 0x100118e9
mov byte [ebp - 4], 7
cmp byte [0x10044594], al
jne 0x100118b6
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x100118a8
push str.RegDeleteKeyExW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x10044590], eax
mov byte [0x10044594], 1
jmp 0x100118bb
mov eax, dword [0x10044590]
mov byte [0x10044594], 1
jmp 0x100118bb
mov eax, dword [0x10044590]
test eax, eax
je 0x100118d1
push 0
push 0
lea ecx, [ebp - 0x244]
push ecx
push dword [ebp + 0xc]
call eax
jmp 0x100118e1
lea eax, [ebp - 0x244]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov byte [ebp - 4], 0
test eax, eax
jne 0x10011917
cmp word [ebx], 0x7d
jne 0x10011283
jmp 0x10011922
push eax
call fcn.1000ff70
add esp, 4
mov esi, eax
test edi, edi
je 0x10011922
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10011922
push ecx
jmp 0x100118f6
mov esi, 0x80020009
jmp 0x10011922
push eax
call fcn.1000ff70
add esp, 4
mov esi, eax
mov eax, dword [ebp - 0x20]
pop edi
test eax, eax
je 0x10011931
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x10