Function at 0x1001c4d0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x2244
call fcn.100228d0
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x10020390
mov edx, dword fs:[0]
mov dword [ebp - 0x18], edx
mov dword fs:[0], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x20], ecx
push dword [ebp + 8]
call fcn.1001be30
mov esi, eax
test eax, eax
js 0x1001cf8e
mov ebx, dword [ebp + 8]
nop dword [eax + eax]
cmp word [ebx], 0x7d
mov edi, esi
je 0x1001cf97
push str.Delete
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
call esi
mov edi, eax
push str.ForceRemove
push ebx
call esi
test edi, edi
je 0x1001c570
test eax, eax
jne 0x1001c6d0
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.1001be30
mov esi, eax
test eax, eax
js 0x1001cf8e
cmp dword [ebp + 0x10], 0
je 0x1001c647
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
mov edi, dword [ebp + 8]
movzx ecx, word [edi]
test cx, cx
je 0x1001c5e5
mov eax, edi
nop word cs:[eax + eax]
nop dword [eax]
cmp cx, 0x5c
je 0x1001c64f
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x1001c5d0
mov ecx, dword [ebp - 0x20]
push edi
call fcn.1001d190
test eax, eax
je 0x1001c639
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
lea ecx, [ebp - 0x2250]
push edi
call fcn.1001d280
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
xor ecx, ecx
mov dl, 1
cmp dword [ebp - 0x30], 0
je 0x1001c65f
mov bl, 1
jmp 0x1001c695
mov ebx, dword [ebp + 8]
jmp 0x1001c6d0
mov dword [ebp - 0x44], 0x80020009
mov ecx, 1
mov dl, 1
jmp 0x1001c693
mov dword [ebp - 0x10], 1
mov ecx, dword [ebp - 0x20]
push edi
call fcn.1001be30
mov esi, eax
test eax, eax
js 0x1001cbb2
mov ecx, dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.1001d3d0
mov esi, eax
mov edx, eax
shr edx, 0x1f
mov ecx, eax
sar ecx, 0x1f
add ecx, 4
xor ebx, ebx
mov eax, dword [ebp - 0x2250]
test eax, eax
je 0x1001c6b4
push eax
mov edi, ecx
mov dword [ebp - 0x30], ebx
mov ebx, edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, ebx
mov ebx, dword [ebp - 0x30]
mov ecx, edi
test dl, dl
je 0x1001c863
test bl, bl
mov ebx, dword [ebp + 8]
je 0x1001cf78
nop word [eax + eax]
push str.NoRemove
push ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
call esi
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x1001c708
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.1001be30
mov edi, eax
test eax, eax
mov ebx, dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
js 0x1001cf97
push 0x10054fce
push ebx
call esi
test eax, eax
je 0x1001c7c0
test ebx, ebx
je 0x1001c749
movzx ecx, word [ebx]
test cx, cx
je 0x1001c749
mov eax, ebx
nop word cs:[eax + eax]
cmp cx, 0x5c
je 0x1001cf92
push eax
call dword [sym.imp.USER32.dll_CharNextW]
movzx ecx, word [eax]
test cx, cx
jne 0x1001c730
cmp dword [ebp + 0x10], 0
je 0x1001c86b
mov dword [ebp - 0x2250], 0
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x1001c8ed
cmp dword [esi], 0
je 0x1001c8e7
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001c933
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001c933
push 0
push dword [esi]
lea ecx, [ebp - 0x2250]
push ecx
push 0x2001f
push 0
push ebx
push dword [ebp + 0xc]
call eax
test eax, eax
jne 0x1001c933
jmp 0x1001c909
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x2250]
push eax
call fcn.1001be30
mov esi, eax
mov ecx, 3
test eax, eax
js 0x1001cf75
mov ecx, dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.1001be30
mov esi, eax
mov ebx, dword [ebp + 8]
test eax, eax
js 0x1001cc04
cmp word [ebx], 0x3d
jne 0x1001c98e
cmp dword [ebp + 0x10], 0
je 0x1001cbc0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x10], 2
mov ecx, dword [ebp - 0x20]
push ebx
lea eax, [ebp - 0x2250]
push eax
lea eax, [ebp - 0x3c]
push eax
call fcn.1001d490
mov esi, eax
test eax, eax
mov ebx, dword [ebp + 8]
jns 0x1001cb51
mov ecx, 1
mov dword [ebp - 0x44], esi
cmp ecx, 2
jl 0x1001cf81
jmp 0x1001cc12
mov ebx, dword [ebp + 8]
jmp 0x1001cb51
mov ecx, 2
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x1001cc71
mov dword [ebp - 0x2250], 0
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x1001cc25
cmp dword [esi], 0
je 0x1001cc1f
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ecx, 1
test eax, eax
je 0x1001cc6e
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, 1
test eax, eax
je 0x1001cc6e
push 0
push dword [esi]
lea ecx, [ebp - 0x2250]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp + 0xc]
call eax
jmp 0x1001cc3d
cmp dword [esi + 4], 0
je 0x1001c933
lea eax, [ebp - 0x2250]
push eax
push 0x2001f
push 0
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001c933
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001ca7f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2250]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
test eax, eax
je 0x1001cb0d
mov dword [ebp - 0x2250], 0
mov esi, dword [ebp - 0x24]
test esi, esi
je 0x1001c9ae
cmp dword [esi], 0
je 0x1001c9a8
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x1001c9f4
push str.RegOpenKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001c9f4
push 0
push dword [esi]
lea ecx, [ebp - 0x2250]
push ecx
push 0x20019
push 0
push ebx
push dword [ebp + 0xc]
call eax
test eax, eax
jne 0x1001c9f4
jmp 0x1001c9ca
mov ecx, 1
mov dword [ebp - 0x44], 0x80020009
cmp ecx, 2
jl 0x1001cf81
jmp 0x1001cc12
cmp dword [esi + 4], 0
je 0x1001c9f4
lea eax, [ebp - 0x2250]
push eax
push 0x20019
push 0
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1001c9f4
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001ca7f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x2250]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], 0
test eax, eax
je 0x1001cb0d
mov dword [ebp - 0x3c], 0
mov edi, dword [ebp - 0x24]
test edi, edi
je 0x1001caa2
cmp dword [edi], 0
je 0x1001ca98
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov esi, 1
test eax, eax
je 0x1001cfc5
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001cfc5
mov ecx, dword [edi]
sub esp, 0x2c
mov dword [esp + 0x24], ecx
lea ecx, [ebp - 0x2250]
mov dword [esp + 0x20], ecx
lea ecx, [ebp - 0x3c]
mov dword [esp + 0x1c], ecx
movaps xmm0, xmmword [0x1004b1a0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov ecx, dword [ebp + 0xc]
mov dword [esp], ecx
mov dword [esp + 0x28], 0
mov dword [esp + 0x18], 0
call eax
jmp 0x1001cada
mov eax, dword [ebp - 0x2250]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x10], 0
jmp 0x1001cb0d
cmp dword [edi + 4], 0
je 0x1001cfc0
sub esp, 0x24
lea eax, [ebp - 0x2250]
mov dword [esp + 0x20], eax
lea eax, [ebp - 0x3c]
mov dword [esp + 0x1c], eax
movaps xmm0, xmmword [0x1004b1a0]
movups xmmword [esp + 8], xmm0
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test eax, eax
jne 0x1001cfc5
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001caf6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
jmp 0x1001caf8
xor esi, esi
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
test esi, esi
jne 0x1001cfc5
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.1001be30
mov esi, eax
test eax, eax
js 0x1001cf8e
mov ebx, dword [ebp + 8]
movzx eax, word [ebx]
cmp ax, 0x3d
jne 0x1001cb54
mov ecx, dword [ebp - 0x20]
push ebx
push 0
lea eax, [ebp - 0x2c]
push eax
call fcn.1001d490
mov esi, eax
mov edi, eax
test eax, eax
mov ebx, dword [ebp + 8]
js 0x1001cf97
movzx eax, word [ebx]
cmp ax, 0x7b
jne 0x1001c540
push ebx
call fcn.10035098
add esp, 4
cmp eax, 1
jne 0x1001c540
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp - 0x20]
push 0
push dword [ebp + 0x10]
push eax
push ebx
call fcn.1001c4d0
mov edi, eax
test eax, eax
js 0x1001cf97
mov ecx, dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.1001be30
mov esi, eax
mov edi, eax
test eax, eax
mov ebx, dword [ebp + 8]
jns 0x1001c540
jmp 0x1001cf97
mov ecx, 3
xor ebx, ebx
mov dl, 1
jmp 0x1001c695
cmp dword [ebp + 0x14], 0
jne 0x1001cf62
cmp dword [ebp - 0x30], 0
je 0x1001cf62
mov dword [ebp - 0x3c], 0
lea eax, [ebp - 0x3c]
push eax
push 0x20006
push 0
push 0
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1001cf20
push eax
call fcn.1001da10
add esp, 4
mov esi, eax
mov ecx, 3
cmp ecx, 2
jl 0x1001cf81
mov edi, esi
je 0x1001c540
jmp 0x1001cf97
cmp dword [esi + 4], 0
je 0x1001cc69
lea eax, [ebp - 0x2250]
push eax
push 0x20019
push 0
push ebx
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ecx, eax
test eax, eax
jne 0x1001cc6e
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001cc55
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, eax
jmp 0x1001cc57
xor ecx, ecx
mov eax, dword [ebp - 0x2250]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 0
jmp 0x1001cc6e
mov ecx, 1
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x40], ecx
test ecx, ecx
mov ecx, 1
cmove ecx, eax
mov dword [ebp - 0x48], ecx
push 0xffffffffffffffff
push ebx
push 0x104
lea eax, [ebp - 0x250]
push eax
call fcn.10035492
add esp, 0x10
cmp eax, 0x16
jge 0x1001ccb6
cmp eax, 0xc
jge 0x1001d014
mov dword [ebp - 0x10], 0
test eax, eax
je 0x1001ccd5
jmp 0x1001d027
cmp eax, 0x22
jl 0x1001cffe
cmp eax, 0x50
jl 0x1001cff0
mov dword [ebp - 0x10], 0
jne 0x1001d027
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.1001be30
mov edi, eax
test eax, eax
js 0x1001cf97
mov ecx, dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.1001d3d0
mov esi, eax
test eax, eax
js 0x1001cf8e
mov ebx, dword [ebp + 8]
cmp word [ebx], 0x7b
jne 0x1001cd56
push ebx
call fcn.10035098
add esp, 4
cmp eax, 1
mov eax, dword [ebp - 0x40]
jne 0x1001cd59
mov ecx, dword [ebp - 0x20]
push dword [ebp - 0x48]
push 0
push dword [ebp - 0x2c]
push ebx
call fcn.1001c4d0
cmp dword [ebp - 0x48], 0
jne 0x1001cd38
mov edi, eax
test eax, eax
js 0x1001cf97
mov ecx, dword [ebp - 0x20]
push dword [ebp + 8]
call fcn.1001be30
mov esi, eax
mov edi, eax
test eax, eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 0x40]
jns 0x1001cd59
jmp 0x1001cf97
mov eax, dword [ebp - 0x40]
cmp eax, 2
je 0x1001c540
test eax, eax
je 0x1001cd75
cmp dword [ebp + 0x14], 0
jne 0x1001c540
jmp 0x1001cfbd
cmp dword [ebp + 0x14], 0
je 0x1001ce1c
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2250], 0
sub esp, 0x30
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
lea ecx, [ebp - 0x2250]
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x1001ce1c
cmp dword [ebp - 0x2250], 0
je 0x1001ce1c
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0x250]
push eax
call fcn.1001d190
cmp dword [ebp - 0x30], 0
je 0x1001c540
test eax, eax
je 0x1001c540
lea ecx, [ebp - 0x2c]
lea eax, [ebp - 0x250]
push eax
call fcn.1001d280
jmp 0x1001c540
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2250], 0
sub esp, 0x30
xorps xmm0, xmm0
movups xmmword [esp + 0x14], xmm0
lea ecx, [ebp - 0x2250]
mov dword [esp + 0x10], ecx
mov dword [esp], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x24], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
sete bl
cmp dword [ebp - 0x2250], 0
setne bh
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001ceab
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
test eax, eax
je 0x1001ceb2
jmp 0x1001cfbd
mov dword [ebp - 0x28], 0
and bl, bh
cmp dword [ebp - 0x30], 0
sete al
or al, bl
mov ebx, dword [ebp + 8]
jne 0x1001c540
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x2250], eax
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
lea ecx, [ebp - 0x2250]
lea eax, [ebp - 0x250]
push eax
call fcn.1001da30
mov dword [ebp - 0x2250], 0
mov dword [ebp - 0x224c], 0
mov dword [ebp - 0x2248], 0
test eax, eax
je 0x1001c540
jmp 0x1001cfd2
mov edi, dword [ebp - 0x3c]
lea eax, [ebp - 0x2250]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, 0xfffffffd
je 0x1001cf57
push eax
call fcn.1001da10
add esp, 4
mov esi, eax
test edi, edi
je 0x1001cc04
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001cc04
test edi, edi
je 0x1001cf62
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x20]
push ebx
call fcn.1001d3d0
mov esi, eax
mov ecx, eax
shr ecx, 0x1f
or ecx, 2
mov ebx, dword [ebp + 8]
cmp ecx, 2
jge 0x1001cc12
mov edi, dword [ebp - 0x44]
test ecx, ecx
je 0x1001c540
jmp 0x1001cf97
mov edi, esi
jmp 0x1001cf97
mov edi, 0x80020009
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1001cfa5
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, edi
add esp, 0x2244
pop esi
pop edi
pop ebx
pop ebp
ret 0x10
push eax
jmp 0x1001cfc6
mov esi, 1
push esi
call fcn.1001da10
add esp, 4
mov edi, eax
jmp 0x1001cf97
push eax
call fcn.1001da10
add esp, 4
mov edi, eax
mov eax, dword [ebp - 0x2250]
test eax, eax
je 0x1001cf97
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1001cf97
mov dword [ebp - 0x10], 0
cmp eax, 0x22
je 0x1001d00a
jmp 0x1001d027
mov dword [ebp - 0x10], 0
cmp eax, 0x16
jne 0x1001d027
push 0x80070057
call fcn.10017220
mov dword [ebp - 0x10], 0
jne 0x1001d027
push 0x8007000e
call fcn.10017220
push 0x80004005
call fcn.10017220
nop word cs:[eax + eax]
nop dword [eax + eax]
push ebp
sub esp, 0x30
add ebp, 0xc
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x1001d055
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esp, 0x30
pop ebp
ret