Function at 0x140001cc1
Capabilities:
Modify service

Disassembly:
jmp 0x140018fd0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x170
mov rdi, rsp
mov ecx, 0x5c
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x180]
mov qword [rsp + 0x140], 0xfffffffffffffffe
mov eax, dword [rsp + 0x188]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x198]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
lea rcx, [rsp + 0x68]
call fcn.140001a50
nop
lea rcx, [rsp + 0x68]
call fcn.140001e74
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1400011ea
mov ecx, dword [rsp + 0x1a0]
mov dword [rax], ecx
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1400011ea
mov ecx, dword [rsp + 0x1a8]
mov dword [rax + 4], ecx
lea rax, [rsp + 0x1b0]
mov qword [rsp + 0xa8], rax
xor eax, eax
test eax, eax
je 0x1400190bd
mov rax, qword [rsp + 0xa8]
add rax, 8
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax - 8]
mov eax, dword [rax]
mov dword [rsp + 0x148], eax
jmp 0x1400190e3
mov rax, qword [rsp + 0xa8]
add rax, 8
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax - 8]
mov dword [rsp + 0x148], eax
mov eax, dword [rsp + 0x148]
mov dword [rsp + 0xc8], eax
cmp dword [rsp + 0xc8], 0xffffffff
jne 0x1400190fd
jmp 0x140019179
xor eax, eax
test eax, eax
je 0x14001912e
mov rax, qword [rsp + 0xa8]
add rax, 8
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov rax, qword [rax - 8]
mov eax, dword [rax]
mov dword [rsp + 0x14c], eax
jmp 0x140019154
mov rax, qword [rsp + 0xa8]
add rax, 8
mov qword [rsp + 0xa8], rax
mov rax, qword [rsp + 0xa8]
mov eax, dword [rax - 8]
mov dword [rsp + 0x14c], eax
mov eax, dword [rsp + 0x14c]
mov dword [rsp + 0xcc], eax
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x68]
call fcn.1400013e8
jmp 0x14001908c
mov qword [rsp + 0xa8], 0
lea rcx, [rsp + 0x68]
call fcn.140001104
mov dword [rsp + 0x40], eax
lea rcx, [rsp + 0x68]
call fcn.140002086
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x180]
add rax, 8
mov rcx, rax
call fcn.14000110e
mov rcx, rax
call fcn.14000127b
mov r8d, 0xf003f
xor edx, edx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdx, rax
lea rcx, [rsp + 0xe8]
call fcn.1400014a1
nop
lea rcx, [rsp + 0xe8]
call fcn.140001dc0
test rax, rax
je 0x1400191ff
mov dword [rsp + 0x150], 1
jmp 0x14001920a
mov dword [rsp + 0x150], 0
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0xf4], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0xf8], eax
cmp dword [rsp + 0xf4], 0
je 0x14001924f
lea rax, [0x140171b40]
test rax, rax
je 0x14001924f
mov dword [rsp + 0x154], 1
jmp 0x14001925a
mov dword [rsp + 0x154], 0
mov eax, dword [rsp + 0x154]
mov dword [rsp + 0xfc], eax
cmp dword [rsp + 0xfc], 0
jne 0x1400192a4
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x12c], eax
lea rcx, [rsp + 0xe8]
call fcn.1400021b7
nop
lea rcx, [rsp + 0x68]
call fcn.1400017ad
mov eax, dword [rsp + 0x12c]
jmp 0x140019517
xor eax, eax
test eax, eax
jne 0x14001922c
xor eax, eax
test eax, eax
jne 0x1400191e0
mov rax, qword [rsp + 0x180]
mov rcx, rax
call fcn.14000110e
mov qword [rsp + 0x158], rax
lea rcx, [rsp + 0xe8]
call fcn.140001dc0
mov r8d, 0xf01ff
mov rcx, qword [rsp + 0x158]
mov rdx, rcx
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rdx, rax
lea rcx, [rsp + 0x108]
call fcn.1400014a1
nop
lea rcx, [rsp + 0x108]
call fcn.140001dc0
test rax, rax
je 0x140019323
mov dword [rsp + 0x160], 1
jmp 0x14001932e
mov dword [rsp + 0x160], 0
mov eax, dword [rsp + 0x160]
mov dword [rsp + 0x114], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0x118], eax
cmp dword [rsp + 0x114], 0
je 0x140019373
lea rax, [0x140171b48]
test rax, rax
je 0x140019373
mov dword [rsp + 0x164], 1
jmp 0x14001937e
mov dword [rsp + 0x164], 0
mov eax, dword [rsp + 0x164]
mov dword [rsp + 0x11c], eax
cmp dword [rsp + 0x11c], 0
jne 0x1400193d6
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x130], eax
lea rcx, [rsp + 0x108]
call fcn.1400021b7
nop
lea rcx, [rsp + 0xe8]
call fcn.1400021b7
nop
lea rcx, [rsp + 0x68]
call fcn.1400017ad
mov eax, dword [rsp + 0x130]
jmp 0x140019517
xor eax, eax
test eax, eax
jne 0x140019350
xor eax, eax
test eax, eax
jne 0x140019304
lea rcx, [rsp + 0x108]
call fcn.140001dc0
lea r8, [rsp + 0x28]
mov edx, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x14001941b
mov dword [rsp + 0x168], 1
jmp 0x140019426
mov dword [rsp + 0x168], 0
mov eax, dword [rsp + 0x168]
mov dword [rsp + 0x120], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.14000213a
mov dword [rsp + 0x124], eax
cmp dword [rsp + 0x120], 0
je 0x14001946b
lea rax, str.ChangeServiceConfig2W_hService__2__sfa_
test rax, rax
je 0x14001946b
mov dword [rsp + 0x16c], 1
jmp 0x140019476
mov dword [rsp + 0x16c], 0
mov eax, dword [rsp + 0x16c]
mov dword [rsp + 0x128], eax
cmp dword [rsp + 0x128], 0
jne 0x1400194cb
mov eax, dword [rsp + 0x124]
mov dword [rsp + 0x134], eax
lea rcx, [rsp + 0x108]
call fcn.1400021b7
nop
lea rcx, [rsp + 0xe8]
call fcn.1400021b7
nop
lea rcx, [rsp + 0x68]
call fcn.1400017ad
mov eax, dword [rsp + 0x134]
jmp 0x140019517
xor eax, eax
test eax, eax
jne 0x140019448
xor eax, eax
test eax, eax
jne 0x1400193ea
mov dword [rsp + 0x138], 0
lea rcx, [rsp + 0x108]
call fcn.1400021b7
nop
lea rcx, [rsp + 0xe8]
call fcn.1400021b7
nop
lea rcx, [rsp + 0x68]
call fcn.1400017ad
mov eax, dword [rsp + 0x138]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysStringLen
call fcn.14009e8b0
mov rax, rdi
add rsp, 0x170
pop rdi
ret