Function at 0x10006770
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x101daa27
mov eax, dword fs:[0]
push eax
mov eax, 0x225c
call fcn.101b42a0
mov eax, dword [0x1025f074]
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 - 0x2260], eax
mov ecx, dword [ebp + 0xc]
xorps xmm0, xmm0
mov edi, dword [ebp + 8]
movq qword [ebp - 0x225c], xmm0
mov dword [ebp - 0x225c], 0
mov dword [ebp - 0x2254], 0
mov dword [ebp - 0x2264], ecx
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x2254], 0
mov dword [ebp - 4], 0
mov ecx, eax
push edi
call fcn.100059b0
mov esi, eax
test esi, esi
js 0x10007049
cmp word [edi], 0x7d
je 0x10007049
nop dword [eax]
push str.Delete
push edi
mov dword [ebp - 0x2250], 1
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
neg eax
push 0x10207438
sbb ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10006843
test ebx, ebx
je 0x10006981
mov ecx, dword [ebp - 0x2260]
push edi
call fcn.100059b0
mov esi, eax
test esi, esi
js 0x10007049
cmp dword [ebp + 0x10], 0
je 0x10006981
xorps xmm0, xmm0
mov dword [ebp - 0x221c], 0
movq qword [ebp - 0x2224], xmm0
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
mov dword [ebp - 0x221c], 0
mov byte [ebp - 4], 1
mov ecx, edi
movzx eax, word [edi]
test ax, ax
je 0x100068c9
mov edx, eax
cmp dx, 0x5c
je 0x100068c1
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x100068a6
jmp 0x100068c9
test ecx, ecx
jne 0x10006f87
mov esi, 0x10207900
nop
push dword [esi]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x10006932
add esi, 4
cmp esi, 0x10207930
jl 0x100068d0
mov eax, dword [ebp - 0x2264]
lea ecx, [ebp - 0x2224]
push edi
mov dword [ebp - 0x2224], eax
mov dword [ebp - 0x2220], 0
mov dword [ebp - 0x221c], 0
call fcn.10004ea0
mov dword [ebp - 0x2224], 0
mov dword [ebp - 0x2220], 0
mov dword [ebp - 0x221c], 0
test ebx, ebx
je 0x10006973
mov ebx, dword [ebp - 0x2260]
mov ecx, ebx
push edi
call fcn.100059b0
mov esi, eax
test esi, esi
js 0x10006f9f
push edi
mov ecx, ebx
call fcn.10006210
mov esi, eax
test esi, esi
js 0x10006f9f
mov byte [ebp - 4], 0
mov dword [ebp - 0x2220], 0
jmp 0x10006d0d
mov byte [ebp - 4], 0
mov dword [ebp - 0x2220], 0
push str.NoRemove
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov ebx, dword [ebp - 0x2260]
test eax, eax
jne 0x100069af
push edi
mov ecx, ebx
mov dword [ebp - 0x2250], eax
call fcn.100059b0
mov esi, eax
test esi, esi
js 0x10007049
push 0x10207430
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10006b78
lea eax, [ebp - 0x2218]
mov ecx, ebx
push eax
call fcn.100059b0
mov esi, eax
test esi, esi
js 0x10007049
push edi
mov ecx, ebx
call fcn.100059b0
mov esi, eax
test esi, esi
js 0x10007049
cmp word [edi], 0x3d
jne 0x10006f95
cmp dword [ebp + 0x10], 0
je 0x10006aa9
xorps xmm0, xmm0
mov dword [ebp - 0x2228], 0
movq qword [ebp - 0x2230], xmm0
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
mov byte [ebp - 4], 2
mov ecx, ebx
mov eax, dword [ebp - 0x2264]
mov dword [ebp - 0x2230], eax
lea eax, [ebp - 0x2218]
push edi
push eax
lea eax, [ebp - 0x2230]
mov dword [ebp - 0x222c], 0
push eax
mov dword [ebp - 0x2228], 0
call fcn.10005b70
mov esi, eax
mov dword [ebp - 0x2230], 0
mov dword [ebp - 0x222c], 0
mov dword [ebp - 0x2228], 0
test esi, esi
js 0x10006fb2
mov byte [ebp - 4], 0
mov dword [ebp - 0x222c], 0
jmp 0x10006d0d
cmp dword [ebp + 0x14], 0
jne 0x10006b61
cmp dword [ebp - 0x2250], 0
je 0x10006b61
xorps xmm0, xmm0
mov dword [ebp - 0x2234], 0
movq qword [ebp - 0x223c], xmm0
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
mov dword [ebp - 0x2234], 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x223c]
push 0x20006
push 0
push dword [ebp - 0x2264]
call fcn.10004dd0
test eax, eax
jne 0x10006ff3
mov ebx, dword [ebp - 0x223c]
lea eax, [ebp - 0x2218]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x10006b38
cmp eax, 2
jne 0x10006fc5
mov byte [ebp - 4], 0
test ebx, ebx
je 0x10006b51
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x223c], 0
mov ebx, dword [ebp - 0x2260]
mov dword [ebp - 0x2238], 0
push edi
mov ecx, ebx
call fcn.10006210
mov esi, eax
test esi, esi
js 0x10007049
jmp 0x10006f78
movzx eax, word [edi]
mov ecx, edi
test ax, ax
je 0x10006ba7
mov edx, eax
cmp dx, 0x5c
je 0x10006b9f
push ecx
call dword [sym.imp.USER32.dll_CharNextW]
mov ecx, eax
movzx eax, word [ecx]
mov edx, eax
test ax, ax
jne 0x10006b84
jmp 0x10006ba7
test ecx, ecx
jne 0x10006f95
cmp dword [ebp + 0x10], 0
je 0x10006d6c
mov esi, dword [ebp - 0x2264]
lea ecx, [ebp - 0x225c]
push 0x2001f
push edi
push esi
call fcn.10004dd0
test eax, eax
je 0x10006cda
push 0x20019
push edi
push esi
lea ecx, [ebp - 0x225c]
call fcn.10004dd0
test eax, eax
je 0x10006cda
mov esi, dword [ebp - 0x2254]
mov dword [ebp - 0x2250], 0
test esi, esi
je 0x10006c61
cmp dword [esi], 0
je 0x10006c54
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x10006c1a
mov eax, 1
jmp 0x10006c89
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10006c5a
push 0
push dword [esi]
lea ecx, [ebp - 0x224c]
push ecx
lea ecx, [ebp - 0x2250]
push ecx
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x2264]
call eax
jmp 0x10006c89
cmp dword [esi + 4], 0
jne 0x10006c61
mov eax, 1
jmp 0x10006c89
lea eax, [ebp - 0x224c]
push eax
lea eax, [ebp - 0x2250]
push eax
push 0
push 0x2001f
push 0
push 0
push 0
push edi
push dword [ebp - 0x2264]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10007040
mov ecx, dword [ebp - 0x225c]
test ecx, ecx
je 0x10006cac
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x225c], 0
mov ebx, dword [ebp - 0x2250]
mov dword [ebp - 0x2258], 0
mov dword [ebp - 0x225c], ebx
mov dword [ebp - 0x2258], 0
test eax, eax
jne 0x10007040
mov ebx, dword [ebp - 0x2260]
push edi
mov ecx, ebx
call fcn.100059b0
mov esi, eax
test esi, esi
js 0x10007049
cmp word [edi], 0x3d
jne 0x10006d0d
push edi
push 0
lea eax, [ebp - 0x225c]
mov ecx, ebx
push eax
call fcn.10005b70
mov esi, eax
test esi, esi
js 0x10007049
cmp word [edi], 0x7b
jne 0x10006f78
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006d20
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10006f78
push 0
push dword [ebp + 0x10]
mov ecx, ebx
push dword [ebp - 0x225c]
push edi
call fcn.10006770
mov esi, eax
test esi, esi
js 0x10007049
push edi
mov ecx, ebx
call fcn.100059b0
mov esi, eax
test esi, esi
js 0x10007049
jmp 0x10006f78
mov esi, dword [ebp + 0x14]
test esi, esi
jne 0x10006d8e
push 0x20019
push edi
push dword [ebp - 0x2264]
lea ecx, [ebp - 0x225c]
call fcn.10004dd0
mov ebx, eax
jmp 0x10006d93
mov ebx, 2
test ebx, ebx
mov ecx, 1
push 0xffffffffffffffff
mov eax, esi
cmovne eax, ecx
push edi
mov dword [ebp - 0x2268], eax
lea eax, [ebp - 0x218]
push 0x104
push eax
call fcn.101b7ecd
push eax
call fcn.10004ab0
mov ecx, dword [ebp - 0x2260]
add esp, 0x14
push edi
call fcn.100059b0
mov esi, eax
test esi, esi
js 0x10007049
mov ecx, dword [ebp - 0x2260]
push edi
call fcn.10006210
mov esi, eax
test esi, esi
js 0x10007049
cmp word [edi], 0x7b
jne 0x10006e57
mov ecx, edi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10006e00
sub ecx, edx
sar ecx, 1
cmp ecx, 1
jne 0x10006e57
push dword [ebp - 0x2268]
mov ecx, dword [ebp - 0x2260]
push 0
push dword [ebp - 0x225c]
push edi
call fcn.10006770
mov esi, eax
test esi, esi
jns 0x10006e41
cmp dword [ebp - 0x2268], 0
je 0x10007049
mov ecx, dword [ebp - 0x2260]
push edi
call fcn.100059b0
mov esi, eax
test esi, esi
js 0x10007049
cmp ebx, 2
je 0x10006f78
test ebx, ebx
je 0x10006e75
cmp dword [ebp + 0x14], 0
jne 0x10006f78
mov ecx, ebx
jmp 0x10007042
cmp dword [ebp + 0x14], 0
mov ebx, dword [ebp - 0x225c]
je 0x10006ec3
push ebx
call fcn.100061a0
test eax, eax
je 0x10006ec3
lea eax, [ebp - 0x218]
push eax
call fcn.10006160
test eax, eax
je 0x10006f78
cmp dword [ebp - 0x2250], 0
je 0x10006f78
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x225c]
call fcn.10004ea0
jmp 0x10006f78
push ebx
call fcn.100061a0
mov ecx, dword [ebp - 0x225c]
mov ebx, eax
xor eax, eax
test ecx, ecx
je 0x10006ee6
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor ecx, ecx
mov dword [ebp - 0x225c], ecx
mov dword [ebp - 0x2258], 0
test eax, eax
jne 0x10007040
cmp dword [ebp - 0x2250], eax
je 0x10006f78
test ebx, ebx
jne 0x10006f78
xorps xmm0, xmm0
mov dword [ebp - 0x2240], ebx
movq qword [ebp - 0x2248], xmm0
mov dword [ebp - 0x2248], ebx
mov dword [ebp - 0x2244], ebx
mov dword [ebp - 0x2240], ebx
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x2248]
mov eax, dword [ebp - 0x2264]
mov dword [ebp - 0x2248], eax
lea eax, [ebp - 0x218]
push eax
mov dword [ebp - 0x2244], ebx
mov dword [ebp - 0x2240], ebx
call fcn.10004cc0
mov dword [ebp - 0x2248], ebx
mov dword [ebp - 0x2244], ebx
mov dword [ebp - 0x2240], ebx
test eax, eax
jne 0x10007027
mov byte [ebp - 4], al
mov dword [ebp - 0x2244], eax
cmp word [edi], 0x7d
jne 0x10006810
jmp 0x10007049
mov byte [ebp - 4], 0
mov dword [ebp - 0x2220], 0
mov esi, 0x80020009
jmp 0x10007049
mov byte [ebp - 4], 0
mov dword [ebp - 0x2220], 0
jmp 0x10007049
mov byte [ebp - 4], 0
mov dword [ebp - 0x222c], 0
jmp 0x10007049
mov ecx, eax
call fcn.10004bc0
mov esi, eax
mov byte [ebp - 4], 0
test ebx, ebx
je 0x1000701b
push ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
jmp 0x10007049
mov ecx, eax
call fcn.10004bc0
mov esi, eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x223c]
test eax, eax
je 0x1000701b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x223c], 0
mov dword [ebp - 0x2238], 0
jmp 0x10007049
mov ecx, eax
call fcn.10004bc0
mov esi, eax
mov byte [ebp - 4], 0
mov dword [ebp - 0x2244], 0
jmp 0x10007049
mov ecx, eax
call fcn.10004bc0
mov esi, eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x225c]
test eax, eax
je 0x1000706b
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x225c], 0
mov eax, esi
mov dword [ebp - 0x2258], 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.101b3122
mov esp, ebp
pop ebp
ret 0x10