Function at 0x140009130
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 - 0x40]
sub rsp, 0x140
mov rax, qword [0x14014b080]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r15, rcx
xor r13d, r13d
mov dword [rbp - 0xc], r13d
mov rcx, qword [rcx + 0x10]
mov rax, r15
cmp qword [r15 + 0x18], 0x10
jb 0x14000917d
mov rax, qword [r15]
mov qword [rbp], rax
mov qword [rbp + 8], rcx
call fcn.1400e72c4
movaps xmm0, xmmword [rbp]
movdqa xmmword [rbp], xmm0
lea r8, [rbp]
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.140008e50
nop
lea rcx, [rbp - 0x60]
cmp qword [rbp - 0x48], 8
cmovae rcx, qword [rbp - 0x60]
mov rax, qword [rbp - 0x50]
lea r11, [rcx + rax*2]
mov r10, r11
mov rdx, r11
call fcn.140008fb0
cmp rax, r11
je 0x1400091eb
nop dword [rax]
lea rcx, [r10 - 2]
movzx edx, word [rcx]
cmp dx, 0x5c
je 0x1400091eb
cmp dx, 0x2f
je 0x1400091eb
mov r10, rcx
cmp rax, rcx
jne 0x1400091d0
sub r11, r10
sar r11, 1
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], r13
mov r8, r11
mov rdx, r10
lea rcx, [rsp + 0x70]
call fcn.1400097e0
nop
lea rsi, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rsi, qword [rsp + 0x70]
mov rdi, qword [rbp - 0x80]
call fcn.1400e72c4
mov r14d, eax
xorps xmm0, xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], r13
mov qword [rbp + 0x28], reloc.WS2_32.dll_ntohs
mov byte [rbp + 0x10], 0
mov dword [rbp - 0xc], 0x11f
test rdi, rdi
je 0x1400092bd
cmp rdi, 0x7fffffff
ja 0x140009707
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400e7334
mov rbx, rax
shr rax, 0x20
test eax, eax
jne 0x14000970d
movsxd rdx, ebx
xor r8d, r8d
lea rcx, [rbp + 0x10]
call fcn.140009740
lea r9, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae r9, qword [rbp + 0x10]
mov dword [rsp + 0x20], ebx
mov r8d, edi
mov rdx, rsi
mov ecx, r14d
call fcn.1400e7334
shr rax, 0x20
test eax, eax
jne 0x1400096ff
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140009301
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400092fc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400092fc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7f64
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r13w
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140009356
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140009351
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140009351
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7f64
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 7
mov word [rbp - 0x60], r13w
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov r14, rax
test rax, rax
je 0x14000968d
mov dword [rbp - 0x10], r13d
mov dword [rbp - 0xc], r13d
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0xc]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
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 0x1400093d0
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14000968d
mov eax, dword [rbp - 0x10]
add eax, 0x30
mov dword [rbp - 0x10], eax
mov ecx, eax
call fcn.1400e7f98
mov r12, rax
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0xc]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov ecx, dword [rbp - 0x10]
mov dword [rsp + 0x20], ecx
mov r9, r12
mov edx, ntohs
lea r8d, [rdx - 8]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x140009685
mov ebx, r13d
cmp dword [rbp - 0xc], r13d
jbe 0x1400094a9
nop dword [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 0x1400094a2
mov ecx, 0x1fa0
call fcn.1400e7f98
mov rsi, rax
mov dword [rbp], r13d
lea r9, [rbp]
mov r8d, 0x1fa0
mov rdx, rax
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test eax, eax
je 0x140009499
lea rdx, str.iqvw64e.sys
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x1400095c6
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc ebx
cmp ebx, dword [rbp - 0xc]
jb 0x140009430
mov rcx, r12
call fcn.1400e7f64
mov dword [rbp - 0x10], r13d
mov dword [rbp - 0xc], r13d
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0xc]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
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 0x1400094fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14000968d
mov eax, dword [rbp - 0x10]
add eax, 0x30
mov dword [rbp - 0x10], eax
mov ecx, eax
call fcn.1400e7f98
mov rdi, rax
mov qword [rsp + 0x38], r13
lea rax, [rbp - 0xc]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x10]
mov qword [rsp + 0x28], rax
mov ecx, dword [rbp - 0x10]
mov dword [rsp + 0x20], ecx
mov r9, rdi
mov edx, ntohs
lea r8d, [rdx - 8]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x140009680
mov ebx, r13d
cmp dword [rbp - 0xc], r13d
jbe 0x1400095a0
nop word [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
add rcx, rcx
movups xmm0, xmmword [rdi + rcx*8 + 0x10]
movups xmmword [rbp - 0x80], xmm0
lea rdx, [0x140135880]
mov rcx, qword [rdi + rcx*8]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x140009599
mov eax, dword [rbp - 0x7c]
add eax, 0xfffffffe
test eax, 0xfffffffd
je 0x14000968d
inc ebx
cmp ebx, dword [rbp - 0xc]
jb 0x140009560
mov rcx, rdi
call fcn.1400e7f64
cmp qword [r15 + 0x18], 0x10
jb 0x1400095b2
mov r15, qword [r15]
lea r8, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
jb 0x1400095dc
mov r8, qword [rbp + 0x10]
mov rdx, r8
jmp 0x1400095e0
mov rcx, r12
call fcn.1400e7f64
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x1400094b1
lea rdx, [rbp + 0x10]
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 0x140009658
lea rdx, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
cmovae rdx, qword [rbp + 0x10]
lea r8d, [rax + 0x10]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rbx, rax
test rax, rax
jne 0x140009658
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000968d
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 0x140009690
mov rcx, rdi
jmp 0x140009688
mov rcx, r12
call fcn.1400e7f64
xor dil, dil
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x1400096ce
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400096c9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400096c9
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e7f64
movzx eax, dil
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400e7a20
lea r11, [rsp + 0x140]
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
mov ecx, eax
call fcn.140008e10
int3
call fcn.140008b40
int3
mov ecx, eax
call fcn.140008e10
int3