Function at 0x1000a1a0
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100151b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x34
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x14], 0x200
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x40], esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x34], esi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], esi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], esi
cmp edi, esi
je 0x1000a428
push 0x40000000
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x18], eax
cmp eax, esi
je 0x1000a428
push 5
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
cmp ebx, esi
je 0x1000a41e
mov dword [ebp - 0x20], esi
lea esp, [esp]
mov eax, dword [ebp - 0x14]
lea edi, [esi + eax]
test edi, edi
jne 0x1000a234
lea esi, [ebp - 0x40]
call fcn.1000aec0
jmp 0x1000a26f
cmp edi, esi
jbe 0x1000a267
lea esi, [ebp - 0x40]
call fcn.1000aec0
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], edi
push ecx
mov ecx, dword [ebp - 0x40]
lea edi, [ebp - 0x1c]
call fcn.1000adc0
mov edi, eax
mov dword [ebp - 0x30], edi
test eax, eax
je 0x1000a413
mov esi, dword [ebp - 0x1c]
mov dword [ebp - 0x3c], esi
jmp 0x1000a275
lea edx, [ebp - 0x40]
call fcn.1000ae90
mov esi, dword [ebp - 0x3c]
mov edi, dword [ebp - 0x30]
lea edx, [ebp - 0x14]
push edx
push esi
push edi
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
jne 0x1000a2ac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000a413
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, 5
jb 0x1000a220
jmp 0x1000a413
cmp dword [edi + 4], 4
je 0x1000a40c
xor edx, edx
mov dword [ebp - 0x14], edx
mov ecx, esi
mov eax, edi
cmp esi, edx
je 0x1000a2c9
mov byte [eax], dl
inc eax
dec ecx
jne 0x1000a2c3
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x20], edx
jmp 0x1000a2da
mov edi, dword [ebp - 0x30]
mov esi, dword [ebp - 0x3c]
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_QueryServiceConfigW]
test eax, eax
jne 0x1000a321
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x1000a413
mov ecx, dword [ebp - 0x14]
lea eax, [esi + ecx]
lea ecx, [ebp - 0x40]
call fcn.1000af90
test eax, eax
je 0x1000a413
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, 5
jb 0x1000a2d4
jmp 0x1000a413
cmp dword [edi + 4], 4
push ebx
jne 0x1000a36a
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x18]
push 0x17
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x1000a41e
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push ebx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
xor ecx, ecx
mov dword [ebp + 8], ecx
jmp 0x1000a394
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x18]
push 0x14
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov ebx, eax
test ebx, ebx
je 0x1000a41e
xor ecx, ecx
mov dword [ebp + 8], ecx
jmp 0x1000a394
mov ecx, dword [ebp + 8]
mov eax, 0x88888889
mul ecx
shr edx, 4
mov eax, edx
shl eax, 4
sub eax, edx
add eax, eax
sub ecx, eax
jne 0x1000a3b8
push ecx
push ecx
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
je 0x1000a3ff
xor edx, edx
mov ecx, esi
mov eax, edi
cmp esi, edx
je 0x1000a3c8
mov byte [eax], dl
inc eax
dec ecx
jne 0x1000a3c2
lea ecx, [ebp - 0x14]
push ecx
push esi
push edi
push edx
push ebx
mov dword [ebp - 0x38], edx
mov dword [ebp - 0x34], edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatusEx]
test eax, eax
je 0x1000a413
cmp dword [edi + 4], 4
je 0x1000a40c
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp + 8]
inc eax
mov dword [ebp + 8], eax
cmp eax, 0x78
jb 0x1000a391
jmp 0x1000a413
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
jne 0x1000a413
mov dword [ebp - 0x24], 1
test ebx, ebx
je 0x1000a41e
push ebx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
lea esi, [ebp - 0x40]
call fcn.1000aec0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x24]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret