Function at 0x140006ca0
Capabilities:
Create service
Enumerate services
Query service configuration
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x30]
sub rsp, 0x130
mov rax, qword [0x140018010]
xor rax, rsp
mov qword [rbp + 0x20], rax
mov r15, rcx
mov rcx, qword [rcx + 0x10]
mov rax, r15
cmp qword [r15 + 0x18], 0x10
jb 0x140006ce6
mov rax, qword [r15]
mov qword [rbp - 0x10], rax
mov qword [rbp - 8], rcx
call fcn.140008f68
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x10], xmm0
lea r8, [rbp - 0x10]
mov edx, eax
lea rcx, [rbp - 0x70]
call fcn.1400069e0
nop
lea rcx, [rbp - 0x70]
cmp qword [rbp - 0x58], 8
cmovae rcx, qword [rbp - 0x70]
mov rax, qword [rbp - 0x60]
lea rbx, [rcx + rax*2]
mov r11, rbx
mov rdx, rbx
call fcn.140006b20
cmp rax, rbx
je 0x140006d4d
lea rcx, [r11 - 2]
movzx edx, word [rcx]
cmp dx, 0x5c
je 0x140006d4d
cmp dx, 0x2f
je 0x140006d4d
mov r11, rcx
cmp rax, rcx
jne 0x140006d32
sub rbx, r11
sar rbx, 1
xor r13d, r13d
mov qword [rsp + 0x70], r13
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r13w
mov r8, rbx
mov rdx, r11
lea rcx, [rsp + 0x70]
call fcn.140007100
nop
lea rax, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rax, qword [rsp + 0x70]
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x80]
mov qword [rbp - 8], rax
call fcn.140008f68
movaps xmm0, xmmword [rbp - 0x10]
movdqa xmmword [rbp - 0x10], xmm0
lea r8, [rbp - 0x10]
mov edx, eax
lea rcx, [rbp]
call fcn.1400075d0
nop
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140006dfc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006df7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006df7
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400091b4
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r13w
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140006e51
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140006e4c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140006e4c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400091b4
mov qword [rbp - 0x60], r13
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r13w
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r14, rax
test rax, rax
je 0x14000708a
mov dword [rbp - 0x20], r13d
mov dword [rbp - 0x1c], r13d
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], r13d
xor r9d, r9d
lea edx, [r9 + 0xb]
lea r8d, [r9 + 3]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
jne 0x140006ecb
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14000708a
mov eax, dword [rbp - 0x20]
add eax, 0x30
mov dword [rbp - 0x20], eax
mov ecx, eax
call fcn.140009530
mov r12, rax
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0x1c]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x20]
mov qword [rsp + 0x28], rax
mov ecx, dword [rbp - 0x20]
mov dword [rsp + 0x20], ecx
mov r9, r12
mov edx, 0xb
lea r8d, [rdx - 8]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x140007082
mov ebx, r13d
cmp dword [rbp - 0x1c], r13d
jbe 0x140006fa5
nop word [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
add rcx, rcx
mov r8d, 1
mov rdx, qword [r12 + rcx*8]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x140006f9e
mov ecx, 0x1fa0
call fcn.140009530
mov rsi, rax
mov dword [rbp - 0x10], r13d
lea r9, [rbp - 0x10]
mov r8d, 0x1fa0
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x140006f95
lea rdx, str.iqvw64e.sys
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140006fcb
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc ebx
cmp ebx, dword [rbp - 0x1c]
jb 0x140006f30
mov rcx, r12
call fcn.1400091b4
cmp qword [r15 + 0x18], 0x10
jb 0x140006fb7
mov r15, qword [r15]
lea r8, [rbp]
cmp qword [rbp + 0x18], 0x10
jb 0x140006fde
mov rdx, qword [rbp]
mov r8, rdx
jmp 0x140006fe2
mov rcx, r12
call fcn.1400091b4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140006fad
lea rdx, [rbp]
mov qword [rsp + 0x60], r13
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r15
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0x10030
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rbx, rax
test rax, rax
jne 0x14000705a
lea rdx, [rbp]
cmp qword [rbp + 0x18], 0x10
cmovae rdx, qword [rbp]
lea r8d, [rax + 0x10]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
jne 0x14000705a
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000708a
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
setne dil
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000708d
mov rcx, r12
call fcn.1400091b4
xor dil, dil
mov rdx, qword [rbp + 0x18]
cmp rdx, 0x10
jb 0x1400070cb
inc rdx
mov rcx, qword [rbp]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400070c6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400070c6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400091b4
movzx eax, dil
mov rcx, qword [rbp + 0x20]
xor rcx, rsp
call fcn.140009150
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret