Function at 0x10000a72c
Capabilities:
Create service
Modify service

Disassembly:
mov rax, rsp
push r12
push r13
push r14
sub rsp, 0x2f0
mov qword [rsp + 0xc8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x10002e120]
xor rax, rsp
mov qword [rsp + 0x2e0], rax
xor edx, edx
lea rcx, [0x100030110]
call fcn.10000aa98
mov ebx, eax
xor r14d, r14d
cmp eax, r14d
jl 0x10000aa5c
cmp eax, r14d
jne 0x10000a796
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x100001a90]
mov qword [rsp + 0xb8], rbx
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbp, rax
mov qword [rsp + 0xc0], rax
cmp rax, r14
je 0x10000aa1b
mov word [rsp + 0xd0], r14w
xor edx, edx
mov r8d, 0x206
lea rcx, [rsp + 0xd2]
call sub.msvcrt.dll_memset
mov r8d, 0x103
lea rdx, [rsp + 0xd0]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov qword [rsp + 0x88], r14
mov qword [rsp + 0x80], rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov edx, 0x6e
call fcn.10000acec
mov rsi, rax
lea r8, [0x100001d40]
cmp rax, r14
cmovne r8, rax
mov qword [rsp + 0x60], r14
mov qword [rsp + 0x58], r14
lea rax, [0x100001d30]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0xd0]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
lea rdx, [0x1000017c8]
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov r12, rax
mov qword [rsp + 0x88], rax
cmp rax, r14
je 0x10000a9ba
mov ebx, 0x8007000e
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rcx, rax
mov edx, 0x6f
call fcn.10000acec
mov r13, rax
lea edi, [rbx - 0xe]
cmp rax, r14
je 0x10000a923
mov ebx, r14d
mov qword [rsp + 0x80], rax
lea r8, [rsp + 0x80]
mov edx, 1
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp eax, r14d
jne 0x10000a91b
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, edi
cmp eax, r14d
cmovle ecx, eax
cmp ecx, r14d
jge 0x10000a916
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
cmp eax, r14d
cmovle ebx, eax
jmp 0x10000a91b
mov ebx, 0x80004005
mov rcx, r13
call sub.msvcrt.dll_free
mov dword [rsp + 0x70], 1
mov eax, 0xea60
mov dword [rsp + 0x74], eax
mov dword [rsp + 0x78], 1
mov dword [rsp + 0x7c], eax
mov dword [rsp + 0x90], 0x15180
mov qword [rsp + 0x98], r14
mov qword [rsp + 0xa0], r14
mov edx, 2
mov dword [rsp + 0xa8], edx
lea rax, [rsp + 0x70]
mov qword [rsp + 0xb0], rax
lea r8, [rsp + 0x90]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp eax, r14d
jne 0x10000a9fd
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
or ecx, edi
cmp eax, r14d
cmovle ecx, eax
cmp ecx, r14d
jge 0x10000a9b3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
cmp eax, r14d
cmovle ebx, eax
jmp 0x10000a9fd
mov ebx, 0x80004005
jmp 0x10000a9fd
cmp rsi, r14
je 0x10000a9ca
mov rcx, rsi
call sub.msvcrt.dll_free
mov rsi, r14
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
cmp eax, r14d
cmovle ecx, eax
cmp ecx, r14d
jge 0x10000a9f8
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
cmp eax, r14d
cmovle ebx, eax
jmp 0x10000a9fd
mov ebx, 0x80004005
cmp rsi, r14
je 0x10000aa0b
mov rcx, rsi
call sub.msvcrt.dll_free
nop
cmp r12, r14
je 0x10000aa4e
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x10000aa4e
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ecx, ax
mov edi, 0x80070000
or ecx, edi
cmp eax, r14d
cmovle ecx, eax
cmp ecx, r14d
jge 0x10000aa49
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, ax
or ebx, edi
cmp eax, r14d
cmovle ebx, eax
jmp 0x10000aa4e
mov ebx, 0x80004005
cmp rbp, r14
je 0x10000aa5c
mov rcx, rbp
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, ebx
mov rcx, qword [rsp + 0x2e0]
xor rcx, rsp
call fcn.10001e360
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop r13
pop r12
ret