Function at 0x10001990
Capabilities:
Delete registry value
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x10029008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x18]
push ebx
mov ebx, dword [ebp + 0x24]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x20], eax
mov esi, ecx
mov eax, dword [ebp + 0x28]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push 0
push str.SYSTEMCurrentControlSetServices
push 0x80000002
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10001bc6
push edi
push eax
lea eax, [ebp - 0xc]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push esi
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
test esi, esi
jne 0x10001b8b
mov edx, dword [ebp - 0x18]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test edx, edx
je 0x10001a72
mov ecx, edx
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001a40
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.DisplayName
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10001b88
jmp 0x10001a7c
push str.DisplayName
push dword [ebp - 0xc]
call ebx
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0
push str.ErrorControl
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10001b88
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x10001ad8
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001aa6
sub ecx, esi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.Group
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10001b88
jmp 0x10001ae2
push str.Group
push dword [ebp - 0xc]
call ebx
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x10001b0a
mov eax, dword [ebp + 0x20]
add eax, eax
push eax
push ecx
push 7
push 0
push str.DependOnService
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10001b88
jmp 0x10001b14
push str.DependOnService
push dword [ebp - 0xc]
call ebx
mov esi, dword [ebp - 0x24]
mov ecx, esi
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x10001b20
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push esi
push 2
push 0
push 0x1002157c
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10001b88
push 4
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push 0x10021590
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10001b88
push 4
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x1002159c
push dword [ebp - 0xc]
call edi
mov esi, eax
test esi, esi
jne 0x10001b88
push 0x100215a8
push dword [ebp - 0xc]
call ebx
mov ebx, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x10001b9b
push eax
call edi
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x10001ba5
push eax
call edi
pop edi
test ebx, ebx
je 0x10001baf
push dword [ebp - 0x28]
call ebx
test esi, esi
jne 0x10001bc6
lea eax, [esi + 1]
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001c04c
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
xor ecx, ebp
pop ebx
call fcn.1001c04c
mov esp, ebp
pop ebp
ret