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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100abf7d
mov eax, dword fs:[0]
push eax
sub esp, 0x60
mov eax, dword [0x100d800c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
xorps xmm0, xmm0
movlpd qword [ebp - 0x2c], xmm0
mov dword [ebp - 0x28], 0
push 0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.ServiceCloudSubscriptions
push dword [ecx + 0x34]
mov dword [ebp - 0x2c], vtable.RegistryCreator.0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x10017292
mov dword [ebp - 0x2c], vtable.RegistryCreator.0
lea eax, [ebp - 0x48]
mov dword [ebp - 4], 2
xorps xmm0, xmm0
lea ecx, [ebp - 0x2c]
push eax
movlpd qword [ebp - 0x1c], xmm0
call fcn.100525b0
mov byte [ebp - 4], 3
mov esi, dword [eax + 4]
mov edi, dword [eax]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x28
lfence
call fcn.1006dc33
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [eax + 8], eax
mov word [eax + 0xc], 0x101
mov dword [ebp - 0x1c], eax
push esi
push edi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 4
call fcn.100192a0
lea ecx, [ebp - 0x48]
mov byte [ebp - 4], 6
call fcn.10003920
mov eax, dword [ebx + 4]
mov edi, dword [ebx]
mov dword [ebp - 0x34], eax
cmp edi, eax
je 0x100171b4
nop word [eax + eax]
cmp dword [edi + 0x14], 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x24], xmm0
mov eax, edi
jb 0x10017072
mov eax, dword [edi]
mov dword [ebp - 0x20], 0
push 0
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 7
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [ebp - 0x28]
mov dword [ebp - 0x24], vtable.RegistryCreator.0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x100172c8
mov dword [ebp - 0x24], vtable.RegistryCreator.0
lea eax, [edi + 0x48]
mov byte [ebp - 4], 9
push eax
push str.BaseVersion
lea ecx, [ebp - 0x24]
call fcn.10052d90
lea eax, [edi + 0x18]
push eax
push str.RigidName
lea ecx, [ebp - 0x24]
call fcn.10052d90
lea eax, [edi + 0x30]
push eax
push 0x100c3530
lea ecx, [ebp - 0x24]
call fcn.10052d90
cmp dword [edi + 0x70], esi
jne 0x10017110
push str.FixedVersion
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
mov ecx, esi
sub ecx, 0
je 0x10017121
sub ecx, 2
jne 0x100172ad
jmp 0x10017121
lea eax, [edi + 0x60]
push eax
push str.FixedVersion
lea ecx, [ebp - 0x24]
call fcn.10052d90
push edi
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100188f0
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x3c]
mov dword [ebp - 0x30], esi
cmp esi, dword [ebx]
jne 0x10017163
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0xd], 0
je 0x10017163
push dword [ebx + 4]
lea eax, [ebp - 0x1c]
push eax
mov ecx, eax
call fcn.10003be0
mov dword [ebx + 4], ebx
mov dword [ebx], ebx
mov dword [ebx + 8], ebx
mov dword [ebp - 0x18], 0
jmp 0x1001718f
mov ebx, dword [ebp - 0x38]
cmp esi, ebx
je 0x1001718f
nop word [eax + eax]
lea ecx, [ebp - 0x30]
call fcn.1000fab0
push esi
lea ecx, [ebp - 0x1c]
call fcn.10018300
mov edx, eax
call fcn.10003da0
mov esi, dword [ebp - 0x30]
cmp esi, ebx
jne 0x10017170
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], vtable.RegistryHandle.0
test eax, eax
je 0x100171a8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0x78
cmp edi, dword [ebp - 0x34]
jne 0x10017060
mov esi, dword [ebp - 0x1c]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x10017226
nop
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x100171cb
mov eax, dword [eax]
push eax
push dword [ebp - 0x28]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
test edi, edi
je 0x100171e4
cmp edi, 2
jne 0x10017277
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x1001720a
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10017206
cmp esi, dword [eax + 8]
jne 0x10017206
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x100171f6
mov esi, eax
jmp 0x10017220
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x10017220
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10017214
cmp byte [esi + 0xd], 0
je 0x100171c0
mov eax, dword [ebp - 0x1c]
push dword [eax + 4]
lea eax, [ebp - 0x1c]
push eax
mov ecx, eax
call fcn.10003be0
push 0x28
push dword [ebp - 0x1c]
call fcn.1006d8b6
mov eax, dword [ebp - 0x28]
add esp, 8
mov dword [ebp - 0x2c], vtable.RegistryHandle.0
test eax, eax
je 0x10017259
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1006d58e
mov esp, ebp
pop ebp
ret 4
push str.Failed_to_delete_key
lea ecx, [ebp - 0x6c]
call fcn.10005d60
lea edx, [ebp - 0x6c]
mov byte [ebp - 4], 0xb
mov ecx, edi
call fcn.1000a4f0
push str.Failed_to_create_registry_key
lea ecx, [ebp - 0x54]
call fcn.10005d60
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 1
mov ecx, esi
call fcn.1000a4f0
push str.Failed_to_delete_value
lea ecx, [ebp - 0x54]
call fcn.10005d60
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 0xa
mov ecx, esi
call fcn.1000a4f0
push str.Failed_to_create_registry_key
lea ecx, [ebp - 0x6c]
call fcn.10005d60
lea edx, [ebp - 0x6c]
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.1000a4f0
int3