Function at 0x1400060f0
Capabilities:
Create service
Modify service

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x58]
sub rsp, 0x120
mov qword [rbp - 0x18], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400d2258]
xor rax, rsp
mov qword [rbp + 0x18], rax
mov r14, rdx
mov rsi, rcx
lea rax, [0x1400cf018]
mov rcx, qword [0x1400cf018]
cmp rcx, rax
je 0x140006160
test byte [rcx + 0x1c], 1
je 0x140006160
cmp byte [rcx + 0x19], 5
jb 0x140006160
mov edx, 0x1c
mov r9, r14
lea r8, [0x1400af648]
mov rcx, qword [rcx + 0x10]
call fcn.14000351c
xor r12d, r12d
mov edi, r12d
mov rax, qword [0x1400d1e50]
lea rcx, [0x1400d1e50]
mov rax, qword [rax + 0x18]
call qword [str._E_n_]
add rax, 0x18
mov qword [rsp + 0x78], rax
mov rax, qword [0x1400d1e50]
lea rcx, [0x1400d1e50]
mov rax, qword [rax + 0x18]
call qword [str._E_n_]
add rax, 0x18
mov qword [rsp + 0x70], rax
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r12
mov qword [rbp - 0x48], r12
lea rdx, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp - 0x78]
call fcn.140004b44
nop
mov rdx, qword [rsi + 0x28]
mov r8d, dword [rdx - 0x10]
lea rcx, [rbp - 0x78]
call fcn.140004550
mov ebx, dword [rsi + 0x30]
mov ecx, ebx
call fcn.1400048b8
test rax, rax
je 0x1400061f9
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.140004a18
test eax, eax
jne 0x14000621b
lea rdx, str.UNKNOWN_SERVICE
or rax, 0xffffffffffffffff
inc rax
cmp word [rdx + rax*2], r12w
jne 0x140006204
mov r8d, eax
lea rcx, [rsp + 0x78]
call fcn.140004f30
mov ebx, dword [rsi + 0x34]
mov ecx, ebx
call fcn.1400048b8
test rax, rax
je 0x14000623e
mov r8d, ebx
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.140004a18
test eax, eax
jne 0x140006248
lea rcx, [rsp + 0x70]
call fcn.140004d10
mov rcx, rsi
call fcn.140005f0c
mov r13d, 2
test eax, eax
jne 0x14000681f
mov edi, 0xf003f
mov r8d, edi
xor edx, edx
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
nop dword [rax + rax]
mov r15, rax
test rax, rax
jne 0x140006481
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x1400cf018]
lea r14, [0x1400cf018]
cmp rcx, r14
je 0x1400062c6
test byte [rcx + 0x1c], r13b
je 0x1400062c6
cmp byte [rcx + 0x19], r13b
jb 0x1400062c6
lea edx, [r13 + 0x1b]
mov r9d, eax
lea r8, [0x1400af648]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
cmp edi, 5
jne 0x140006475
movups xmm0, xmmword [0x1400af0d0]
movdqu xmmword [rbp - 0x10], xmm0
mov rax, qword [0x1400d1e50]
lea rcx, [0x1400d1e50]
mov rax, qword [rax + 0x18]
call qword [str._E_n_]
add rax, 0x18
mov qword [rbp - 0x68], rax
mov r8d, edi
lea rdx, [0x1400af630]
lea rcx, [rbp - 0x68]
call fcn.14000912c
mov qword [rsp + 0x20], r12
mov rbx, qword [rbp - 0x68]
mov r9, rbx
mov r8, qword [rsi + 0x28]
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.140005d18
mov rcx, qword [0x1400cf018]
cmp rcx, r14
je 0x140006360
test byte [rcx + 0x1c], r13b
je 0x140006360
cmp byte [rcx + 0x19], r13b
jb 0x140006360
mov edx, 0x28
mov dword [rsp + 0x20], edi
mov r9, qword [rsi + 0x28]
lea r8, [0x1400af648]
mov rcx, qword [rcx + 0x10]
call fcn.14000542c
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006381
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
mov r10, qword [0x1400cf018]
cmp r10, r14
je 0x1400063c2
test byte [r10 + 0x1c], 1
je 0x1400063c2
movzx edx, byte [r10 + 0x19]
mov eax, edi
neg eax
sbb ecx, ecx
and ecx, 0xfffffffd
add ecx, 5
cmp edx, ecx
jb 0x1400063c2
mov edx, 0x29
mov r9d, edi
lea r8, [0x1400af648]
mov rcx, qword [r10 + 0x10]
call fcn.1400035c4
nop
mov rdx, qword [rbp - 0x78]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x1400063e8
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x1400063fe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
nop
mov rdx, qword [rsp + 0x70]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140006425
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
nop
mov rdx, qword [rsp + 0x78]
add rdx, 0xffffffffffffffe8
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000644b
mov rcx, qword [rdx]
mov rax, qword [rcx]
mov rax, qword [rax + 8]
call qword [str._E_n_]
mov eax, edi
mov rcx, qword [rbp + 0x18]
xor rcx, rsp
call fcn.1400a3310
mov rbx, qword [rsp + 0x170]
add rsp, 0x120
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
movups xmm0, xmmword [0x1400af0c0]
jmp 0x14000682d
lea rax, [0x1400ae2f8]
mov qword [rsp + 0x60], rax
lea rax, str.NT_AUTHORITYNetworkService
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r12
mov qword [rsp + 0x40], r12
mov rax, qword [0x1400d3438]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], reloc.OLEAUT32.dll_SafeArrayGetDim
mov r9d, 0xf01ff
mov r8, qword [rsp + 0x78]
mov rdx, qword [rsi + 0x28]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
nop dword [rax + rax]
mov rbx, rax
test rax, rax
jne 0x14000655a
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x1400cf018]
lea r14, [0x1400cf018]
cmp rcx, r14
je 0x14000653a
test byte [rcx + 0x1c], r13b
je 0x14000653a
cmp byte [rcx + 0x19], r13b
jb 0x14000653a
lea edx, [rbx + 0x1e]
mov dword [rsp + 0x20], eax
mov r9, qword [rsi + 0x28]
lea r8, [0x1400af648]
mov rcx, qword [rcx + 0x10]
call fcn.14000542c
movups xmm0, xmmword [0x1400af0b0]
movdqu xmmword [rbp - 0x10], xmm0
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
jmp 0x140006832
mov qword [rbp - 0x70], r12
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9d, edi
xor r8d, r8d
mov rdx, qword [rbp - 0x78]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jne 0x140006595
mov edi, r12d
mov rax, qword [rbp - 0x70]
mov qword [rbp - 0x58], rax
movups xmm0, xmmword [0x1400af0a0]
movdqu xmmword [rbp - 0x10], xmm0
mov rax, qword [rsp + 0x70]
cmp dword [rax - 0x10], r12d
je 0x140006649
mov qword [rbp - 0x60], rax
mov rcx, qword [0x1400cf018]
lea r14, [0x1400cf018]
cmp rcx, r14
je 0x1400065e8
test byte [rcx + 0x1c], r13b
je 0x1400065e8
cmp byte [rcx + 0x19], 4
jb 0x1400065e8
mov edx, 0x1f
lea r8, [0x1400af648]
mov rcx, qword [rcx + 0x10]
call fcn.1400034f0
lea r8, [rbp - 0x60]
mov edx, 1
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
nop dword [rax + rax]
test eax, eax
jne 0x140006650
mov rcx, qword [0x1400cf018]
cmp rcx, r14
je 0x140006657
test byte [rcx + 0x1c], r13b
je 0x140006657
cmp byte [rcx + 0x19], 3
jb 0x140006657
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9d, eax
mov edx, 0x20
lea r8, [0x1400af648]
mov rcx, qword [0x1400cf018]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
jmp 0x140006650
lea r14, [0x1400cf018]
mov rcx, qword [0x1400cf018]
mov edx, 1
mov dword [rbp], edx
mov eax, 0x7530
mov dword [rbp + 4], eax
mov dword [rbp + 8], edx
mov qword [rbp + 0xc], rax
mov dword [rbp + 0x14], r12d
mov qword [rbp - 0x40], r12
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x38], xmm0
mov qword [rbp - 0x28], 3
lea rax, [rbp]
mov qword [rbp - 0x20], rax
cmp rcx, r14
je 0x1400066b4
test byte [rcx + 0x1c], r13b
je 0x1400066b4
cmp byte [rcx + 0x19], 4
jb 0x1400066b4
mov edx, 0x21
lea r8, [0x1400af648]
mov rcx, qword [rcx + 0x10]
call fcn.1400034f0
lea r8, [rbp - 0x40]
mov edx, r13d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
nop dword [rax + rax]
test eax, eax
jne 0x140006711
mov rax, qword [0x1400cf018]
cmp rax, r14
je 0x140006711
test byte [rax + 0x1c], r13b
je 0x140006711
cmp byte [rax + 0x19], 3
jb 0x140006711
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9d, eax
mov edx, 0x22
lea r8, [0x1400af648]
mov rcx, qword [0x1400cf018]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov byte [rsp + 0x20], r12b
mov r9d, 0x2019d
mov r8d, r13d
lea rdx, str.S_1_5_4
mov rcx, rbx
call fcn.14008ab98
test eax, eax
jne 0x14000675d
mov rcx, qword [0x1400cf018]
cmp rcx, r14
je 0x140006764
test byte [rcx + 0x1c], r13b
je 0x140006764
cmp byte [rcx + 0x19], 3
jb 0x140006764
lea edx, [rax + 0x23]
lea r8, [0x1400af648]
mov rcx, qword [rcx + 0x10]
call fcn.1400034f0
mov rcx, qword [0x1400cf018]
mov dword [rbp - 0x80], 1
cmp rcx, r14
je 0x140006791
test byte [rcx + 0x1c], r13b
je 0x140006791
cmp byte [rcx + 0x19], 4
jb 0x140006791
mov edx, 0x24
lea r8, [0x1400af648]
mov rcx, qword [rcx + 0x10]
call fcn.1400034f0
lea r8, [rbp - 0x80]
mov edx, 5
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
nop dword [rax + rax]
test eax, eax
jne 0x1400067f0
mov rax, qword [0x1400cf018]
cmp rax, r14
je 0x1400067f0
test byte [rax + 0x1c], r13b
je 0x1400067f0
cmp byte [rax + 0x19], 3
jb 0x1400067f0
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov r9d, eax
mov edx, 0x25
lea r8, [0x1400af648]
mov rcx, qword [0x1400cf018]
mov rcx, qword [rcx + 0x10]
call fcn.1400035c4
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, r15
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
test edi, edi
jne 0x1400062db
movups xmm0, xmmword [0x1400af160]
jmp 0x14000682d
movups xmm0, xmmword [0x1400af150]
lea r14, [0x1400cf018]
movdqu xmmword [rbp - 0x10], xmm0
test edi, edi
jne 0x1400062db
mov qword [rsp + 0x20], r12
xor r9d, r9d
mov r8, qword [rsi + 0x28]
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.140005d18
mov rax, qword [0x1400af150]
cmp rax, qword [rbp - 0x10]
jne 0x1400068ad
mov rax, qword [0x1400af158]
cmp rax, qword [rbp - 8]
jne 0x1400068ad
mov r10, qword [0x1400cf018]
cmp r10, r14
je 0x1400063c2
test byte [r10 + 0x1c], r13b
je 0x140006388
cmp byte [r10 + 0x19], 4
jb 0x140006388
lea edx, [rdi + 0x26]
mov r9, qword [rsi + 0x28]
lea r8, [0x1400af648]
mov rcx, qword [r10 + 0x10]
call fcn.14000351c
jmp 0x140006381
mov r10, qword [0x1400cf018]
cmp r10, r14
je 0x1400063c2
test byte [r10 + 0x1c], r13b
je 0x140006388
cmp byte [r10 + 0x19], 4
jb 0x140006388
mov edx, 0x27
jmp 0x140006894