Function at 0x100177f0
Capabilities:
Delete registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ac0c3
mov eax, dword fs:[0]
push eax
sub esp, 0x90
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]
mov dword [ebp - 0x2c], 0
push 0
lea eax, [ebp - 0x2c]
mov dword [ebp - 4], 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.ServiceUpdateCache
push dword [ecx + 0x34]
mov dword [ebp - 0x30], vtable.RegistryCreator.0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x10017b0f
mov dword [ebp - 0x30], vtable.RegistryCreator.0
lea eax, [ebp - 0x60]
mov dword [ebp - 4], 2
xorps xmm0, xmm0
lea ecx, [ebp - 0x30]
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 - 0x60]
mov byte [ebp - 4], 6
call fcn.10003920
mov eax, dword [ebx + 0x10]
mov edi, dword [ebx + 0xc]
mov dword [ebp - 0x34], eax
cmp edi, eax
je 0x10017a04
cmp dword [edi + 0x14], 8
xorps xmm0, xmm0
movlpd qword [ebp - 0x28], xmm0
mov eax, edi
jb 0x100178f5
mov eax, dword [edi]
mov dword [ebp - 0x24], 0
push 0
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push eax
push dword [ebp - 0x2c]
mov dword [ebp - 0x28], vtable.RegistryCreator.0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x10017b45
mov dword [ebp - 0x28], vtable.RegistryCreator.0
lea eax, [edi + 0x18]
mov byte [ebp - 4], 9
push eax
push str.hostname
lea ecx, [ebp - 0x28]
call fcn.10052d90
mov eax, dword [edi + 0x30]
push 4
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push 4
push esi
push str.priority
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jne 0x10017b2a
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 - 0x20], esi
cmp esi, dword [ebx]
jne 0x100179b3
mov eax, dword [ebp - 0x38]
cmp byte [eax + 0xd], 0
je 0x100179b3
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 0x100179df
mov ebx, dword [ebp - 0x38]
cmp esi, ebx
je 0x100179df
nop word [eax + eax]
lea ecx, [ebp - 0x20]
call fcn.1000fab0
push esi
lea ecx, [ebp - 0x1c]
call fcn.10018300
mov edx, eax
call fcn.10003da0
mov esi, dword [ebp - 0x20]
cmp esi, ebx
jne 0x100179c0
mov byte [ebp - 4], 6
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x28], vtable.RegistryHandle.0
test eax, eax
je 0x100179f8
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
add edi, 0x34
cmp edi, dword [ebp - 0x34]
jne 0x100178e3
mov esi, dword [ebp - 0x1c]
mov esi, dword [esi]
cmp byte [esi + 0xd], 0
jne 0x10017a72
nop
cmp dword [esi + 0x24], 8
lea eax, [esi + 0x10]
jb 0x10017a1b
mov eax, dword [eax]
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov edi, eax
test edi, edi
jne 0x10017ac3
mov eax, dword [esi + 8]
cmp byte [eax + 0xd], 0
je 0x10017a55
mov eax, dword [esi + 4]
cmp byte [eax + 0xd], 0
jne 0x10017a51
cmp esi, dword [eax + 8]
jne 0x10017a51
mov esi, eax
mov eax, dword [eax + 4]
cmp byte [eax + 0xd], 0
je 0x10017a41
mov esi, eax
jmp 0x10017a6c
mov esi, eax
mov ecx, dword [esi]
cmp byte [ecx + 0xd], 0
jne 0x10017a6c
nop
mov eax, dword [ecx]
mov esi, ecx
mov ecx, eax
cmp byte [eax + 0xd], 0
je 0x10017a60
cmp byte [esi + 0xd], 0
je 0x10017a10
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 - 0x2c]
add esp, 8
mov dword [ebp - 0x30], vtable.RegistryHandle.0
test eax, eax
je 0x10017aa5
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 0x100c2af8
lea ecx, [ebp - 0x54]
call fcn.10005d60
push str.RegDeleteKey
mov edx, eax
mov byte [ebp - 4], 0xb
lea ecx, [ebp - 0x84]
call fcn.1000aa50
add esp, 4
push str._failed
mov edx, eax
mov byte [ebp - 4], 0xc
lea ecx, [ebp - 0x9c]
call fcn.1000aa50
add esp, 4
mov edx, eax
mov byte [ebp - 4], 0xd
mov ecx, edi
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], 1
mov ecx, esi
call fcn.1000a4f0
push str.Failed_to_set_registry_value_of_type_DWORD
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 - 0x54]
call fcn.10005d60
lea edx, [ebp - 0x54]
mov byte [ebp - 4], 8
mov ecx, esi
call fcn.1000a4f0
int3