Function at 0x140008eb0
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 [0x140142080]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov r12, rcx
xor r13d, r13d
mov dword [rbp - 0xc], r13d
mov rcx, qword [rcx + 0x10]
mov rax, r12
cmp qword [r12 + 0x18], 0x10
jb 0x140008eff
mov rax, qword [r12]
mov qword [rbp], rax
mov qword [rbp + 8], rcx
call fcn.1400dc3c4
movaps xmm0, xmmword [rbp]
movdqa xmmword [rbp], xmm0
lea r8, [rbp]
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.140008bf0
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.140008d50
cmp rax, r11
je 0x140008f8b
nop dword [rax + rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x140008f5f
cmp cx, 0x2f
jne 0x140008f68
add rax, 2
cmp rax, r11
jne 0x140008f50
cmp rax, r11
je 0x140008f8b
nop dword [rax]
lea rcx, [r10 - 2]
movzx edx, word [rcx]
cmp dx, 0x5c
je 0x140008f8b
cmp dx, 0x2f
je 0x140008f8b
mov r10, rcx
cmp rax, rcx
jne 0x140008f70
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.140009580
nop
lea rsi, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rsi, qword [rsp + 0x70]
mov rdi, qword [rbp - 0x80]
call fcn.1400dc3c4
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 0x14000905d
cmp rdi, 0x7fffffff
ja 0x1400094a9
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400dc434
mov rbx, rax
shr rax, 0x20
test eax, eax
jne 0x1400094af
movsxd rdx, ebx
xor r8d, r8d
lea rcx, [rbp + 0x10]
call fcn.1400094e0
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.1400dc434
shr rax, 0x20
test eax, eax
jne 0x1400094a1
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x1400090a1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000909c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000909c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400dd134
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r13w
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1400090f6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400090f1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400090f1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400dd134
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 0x14000942f
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 0x140009170
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14000942f
mov eax, dword [rbp - 0x10]
add eax, 0x30
mov dword [rbp - 0x10], eax
mov ecx, eax
call fcn.1400dd168
mov r15, 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, r15
mov edx, ntohs
lea r8d, [rdx - 8]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x140009427
mov ebx, r13d
cmp dword [rbp - 0xc], r13d
jbe 0x140009249
nop dword [rax + rax]
mov eax, ebx
lea rcx, [rax + rax*2]
add rcx, rcx
mov r8d, 1
mov rdx, qword [r15 + rcx*8]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
je 0x140009242
mov ecx, 0x1fa0
call fcn.1400dd168
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 0x140009239
lea rdx, str.iqvw64e.sys
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140009368
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc ebx
cmp ebx, dword [rbp - 0xc]
jb 0x1400091d0
mov rcx, r15
call fcn.1400dd134
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 0x14000929e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x14000942f
mov eax, dword [rbp - 0x10]
add eax, 0x30
mov dword [rbp - 0x10], eax
mov ecx, eax
call fcn.1400dd168
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 0x140009422
mov ebx, r13d
cmp dword [rbp - 0xc], r13d
jbe 0x140009340
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, [0x14012a920]
mov rcx, qword [rdi + rcx*8]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x140009339
mov eax, dword [rbp - 0x7c]
add eax, 0xfffffffe
test eax, 0xfffffffd
je 0x14000942f
inc ebx
cmp ebx, dword [rbp - 0xc]
jb 0x140009300
mov rcx, rdi
call fcn.1400dd134
cmp qword [r12 + 0x18], 0x10
jb 0x140009354
mov r12, qword [r12]
lea r8, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
jb 0x14000937e
mov r8, qword [rbp + 0x10]
mov rdx, r8
jmp 0x140009382
mov rcx, r15
call fcn.1400dd134
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140009251
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], r12
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 0x1400093fa
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 0x1400093fa
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14000942f
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 0x140009432
mov rcx, rdi
jmp 0x14000942a
mov rcx, r15
call fcn.1400dd134
xor dil, dil
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x140009470
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000946b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000946b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400dd134
movzx eax, dil
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400dcbf0
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.140008bb0
int3
call fcn.1400088e0
int3
mov ecx, eax
call fcn.140008bb0
int3