Function at 0x1007f2b
Capabilities:
Set registry value

Disassembly:
mov eax, 0x101d3e8
call fcn.0101caf8
sub esp, 0x88
push ebx
push esi
push 4
xor ebx, ebx
push ebx
push ebx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
mov dword [ebp - 0x4c], eax
je 0x10080e7
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_EnumServicesStatusW]
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push ebx
push ebx
push 3
push 0x30
push eax
mov dword [ebp - 0x38], ebx
call edi
test eax, eax
jne 0x10080dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x10080dd
mov eax, dword [ebp - 0x5c]
push eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x38], ebx
call fcn.0101c324
cmp eax, ebx
pop ecx
mov dword [ebp - 0x60], eax
je 0x10080d4
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x54]
push ecx
lea ecx, [ebp - 0x5c]
push ecx
push dword [ebp - 0x1c]
push eax
push 3
push 0x30
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x10080d4
mov edi, dword [ebp - 0x60]
lea ecx, [ebp - 0x44]
call fcn.0101c1a4
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], ebx
call fcn.0101c1a4
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0101c1a4
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0101c1a4
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0101c1a4
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.0101c1a4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.0101c1a4
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.0101c1a4
push 0x74
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 7
call fcn.0101c180
push 0x75
lea ecx, [ebp - 0x3c]
call fcn.0101c180
push 0x76
lea ecx, [ebp - 0x34]
call fcn.0101c180
push 0x77
lea ecx, [ebp - 0x2c]
call fcn.0101c180
push 0x78
lea ecx, [ebp - 0x28]
call fcn.0101c180
push 0x79
lea ecx, [ebp - 0x58]
call fcn.0101c180
push 0x7a
lea ecx, [ebp - 0x40]
call fcn.0101c180
push 0x80
lea ecx, [ebp - 0x24]
call fcn.0101c180
mov dword [ebp - 0x1c], ebx
lea ecx, [esi + 0x90]
mov eax, dword [ecx]
mov byte [ebp - 4], 8
call dword [eax + 0x14]
push eax
call fcn.01018b1d
cmp dword [ebp - 0x54], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x30], ebx
jbe 0x100806c
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x14]
call fcn.0101c1a4
push 1
push dword [edi]
mov byte [ebp - 4], 9
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 0x14]
jne 0x1007e42
add edi, 0x24
jmp 0x1008054
push ecx
lea ecx, [ebp - 0x50]
push ecx
push eax
mov ecx, esi
call fcn.010072ef
test eax, eax
push dword [ebp - 0x10]
jne 0x1007e5e
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1007e7c
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x50], 4
jne 0x1007e84
push dword [edi]
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x1c]
call fcn.01007002
test eax, eax
je 0x1007e84
add edi, 0x24
jmp 0x1008051
lea ecx, [ebp - 0x18]
call fcn.0101c1a4
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x14]
mov ecx, esi
mov byte [ebp - 4], 0xa
call fcn.010077c2
cmp dword [esi + 0xb0], 0
je 0x1007eea
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0101c24c
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], FindWindowW
call fcn.0101c33c
push 0x1001ef4
lea ecx, [ebp - 0x20]
call fcn.0101c330
cmp eax, 0xffffffff
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 0xa
je 0x1007ee5
add edi, 0x24
call fcn.0101c168
jmp 0x1008045
call fcn.0101c168
push 0x1c
call fcn.0101c324
pop ecx
mov dword [ebp - 0x10], eax
test eax, eax
mov byte [ebp - 4], reloc.USER32.dll_FindWindowW
je 0x1007f16
push dword [edi + 4]
mov ecx, eax
push dword [ebp - 0x18]
push dword [ebp - 0x50]
push 0
push dword [edi]
call fcn.01007158
mov dword [ebp - 0x10], eax
jmp 0x1007f1a
and dword [ebp - 0x10], 0
mov eax, dword [edi + 4]
and dword [ebp - 0x8c], 0
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x48]
inc dword [ebp - 0x48]
mov dword [ebp - 0x90], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x94]
push eax
push 0
push 0x104d
push dword [esi + 0x9c]
mov byte [ebp - 4], 0xa
mov dword [ebp - 0x94], 5
call ebx
push dword [ebp - 0x74]
mov ecx, esi
mov dword [ebp - 0x94], 1
call fcn.0100738c
test eax, eax
je 0x1007f7d
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x80], eax
jmp 0x1007f84
mov dword [ebp - 0x80], 0x1001b3c
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x80]
add ecx, 0x14
mov dword [ebp - 0x8c], 1
call fcn.0101c174
lea eax, [ebp - 0x94]
push eax
push 0
push 0x104c
push dword [esi + 0x9c]
call ebx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x80], eax
lea eax, [ebp - 0x94]
push eax
push 0
push 0x104c
push dword [esi + 0x9c]
mov dword [ebp - 0x8c], 2
call ebx
mov eax, dword [edi + 0xc]
dec eax
je 0x100800e
dec eax
je 0x1008009
dec eax
je 0x1008004
dec eax
je 0x1007fff
dec eax
je 0x1007ffa
dec eax
je 0x1007ff5
dec eax
jne 0x1008014
mov eax, dword [ebp - 0x40]
jmp 0x1008011
mov eax, dword [ebp - 0x58]
jmp 0x1008011
mov eax, dword [ebp - 0x28]
jmp 0x1008011
mov eax, dword [ebp - 0x2c]
jmp 0x1008011
mov eax, dword [ebp - 0x34]
jmp 0x1008011
mov eax, dword [ebp - 0x3c]
jmp 0x1008011
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x80], eax
mov ecx, dword [ebp - 0x10]
push dword [ebp - 0x80]
add ecx, 0x18
mov dword [ebp - 0x8c], 3
call fcn.0101c174
lea eax, [ebp - 0x94]
push eax
push 0
push 0x104c
push dword [esi + 0x9c]
call ebx
add edi, 0x24
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 9
call fcn.0101c168
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 8
call fcn.0101c168
inc dword [ebp - 0x30]
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x54]
jb 0x1007e17
lea ecx, [ebp - 0x1c]
call fcn.0100650c
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 6
call fcn.0101c168
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 5
call fcn.0101c168
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 4
call fcn.0101c168
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0101c168
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0101c168
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
call fcn.0101c168
lea ecx, [ebp - 0x3c]
mov byte [ebp - 4], 0
call fcn.0101c168
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.0101c168
push dword [ebp - 0x60]
call fcn.0101bef8
pop ecx
push dword [ebp - 0x4c]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret