Function at 0x140017690
Capabilities:
Modify service

Disassembly:
jmp 0x140017690
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.140001a55
nop
lea rcx, [rsp + 0x68]
call fcn.140001e79
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1400011ef
mov ecx, dword [rsp + 0x1a0]
mov dword [rax], ecx
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.1400011ef
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 0x14001777d
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 0x1400177a3
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 0x1400177bd
jmp 0x140017839
xor eax, eax
test eax, eax
je 0x1400177ee
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 0x140017814
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 0x14001774c
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.140001280
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.140001dc5
test rax, rax
je 0x1400178bf
mov dword [rsp + 0x150], 1
jmp 0x1400178ca
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 0x14001790f
lea rax, [0x14016d760]
test rax, rax
je 0x14001790f
mov dword [rsp + 0x154], 1
jmp 0x14001791a
mov dword [rsp + 0x154], 0
mov eax, dword [rsp + 0x154]
mov dword [rsp + 0xfc], eax
cmp dword [rsp + 0xfc], 0
jne 0x140017964
mov eax, dword [rsp + 0xf8]
mov dword [rsp + 0x12c], eax
lea rcx, [rsp + 0xe8]
call fcn.1400021bc
nop
lea rcx, [rsp + 0x68]
call fcn.1400017b2
mov eax, dword [rsp + 0x12c]
jmp 0x140017bd7
xor eax, eax
test eax, eax
jne 0x1400178ec
xor eax, eax
test eax, eax
jne 0x1400178a0
mov rax, qword [rsp + 0x180]
mov rcx, rax
call fcn.14000110e
mov qword [rsp + 0x158], rax
lea rcx, [rsp + 0xe8]
call fcn.140001dc5
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.140001dc5
test rax, rax
je 0x1400179e3
mov dword [rsp + 0x160], 1
jmp 0x1400179ee
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 0x140017a33
lea rax, [0x14016d768]
test rax, rax
je 0x140017a33
mov dword [rsp + 0x164], 1
jmp 0x140017a3e
mov dword [rsp + 0x164], 0
mov eax, dword [rsp + 0x164]
mov dword [rsp + 0x11c], eax
cmp dword [rsp + 0x11c], 0
jne 0x140017a96
mov eax, dword [rsp + 0x118]
mov dword [rsp + 0x130], eax
lea rcx, [rsp + 0x108]
call fcn.1400021bc
nop
lea rcx, [rsp + 0xe8]
call fcn.1400021bc
nop
lea rcx, [rsp + 0x68]
call fcn.1400017b2
mov eax, dword [rsp + 0x130]
jmp 0x140017bd7
xor eax, eax
test eax, eax
jne 0x140017a10
xor eax, eax
test eax, eax
jne 0x1400179c4
lea rcx, [rsp + 0x108]
call fcn.140001dc5
lea r8, [rsp + 0x28]
mov edx, 2
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
test eax, eax
je 0x140017adb
mov dword [rsp + 0x168], 1
jmp 0x140017ae6
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 0x140017b2b
lea rax, str.ChangeServiceConfig2W_hService__2__sfa_
test rax, rax
je 0x140017b2b
mov dword [rsp + 0x16c], 1
jmp 0x140017b36
mov dword [rsp + 0x16c], 0
mov eax, dword [rsp + 0x16c]
mov dword [rsp + 0x128], eax
cmp dword [rsp + 0x128], 0
jne 0x140017b8b
mov eax, dword [rsp + 0x124]
mov dword [rsp + 0x134], eax
lea rcx, [rsp + 0x108]
call fcn.1400021bc
nop
lea rcx, [rsp + 0xe8]
call fcn.1400021bc
nop
lea rcx, [rsp + 0x68]
call fcn.1400017b2
mov eax, dword [rsp + 0x134]
jmp 0x140017bd7
xor eax, eax
test eax, eax
jne 0x140017b08
xor eax, eax
test eax, eax
jne 0x140017aaa
mov dword [rsp + 0x138], 0
lea rcx, [rsp + 0x108]
call fcn.1400021bc
nop
lea rcx, [rsp + 0xe8]
call fcn.1400021bc
nop
lea rcx, [rsp + 0x68]
call fcn.1400017b2
mov eax, dword [rsp + 0x138]
mov rdi, rax
mov rcx, rsp
lea rdx, reloc.OLEAUT32.dll_SysStringLen
call fcn.14009d1e0
mov rax, rdi
add rsp, 0x170
pop rdi
ret