Function at 0x140007910
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 [0x140148080]
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 0x14000795d
mov rax, qword [r15]
mov qword [rbp], rax
mov qword [rbp + 8], rcx
call fcn.1400e3854
movaps xmm0, xmmword [rbp]
movdqa xmmword [rbp], xmm0
lea r8, [rbp]
mov edx, eax
lea rcx, [rbp - 0x60]
call fcn.140007650
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.140007790
cmp rax, r11
je 0x1400079cb
nop dword [rax]
lea rcx, [r10 - 2]
movzx edx, word [rcx]
cmp dx, 0x5c
je 0x1400079cb
cmp dx, 0x2f
je 0x1400079cb
mov r10, rcx
cmp rax, rcx
jne 0x1400079b0
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.140007fc0
nop
lea rsi, [rsp + 0x70]
cmp qword [rbp - 0x78], 8
cmovae rsi, qword [rsp + 0x70]
mov rdi, qword [rbp - 0x80]
call fcn.1400e3854
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 0x140007a9d
cmp rdi, 0x7fffffff
ja 0x140007f01
mov dword [rsp + 0x20], r13d
xor r9d, r9d
mov r8d, edi
mov rdx, rsi
mov ecx, eax
call fcn.1400e38c4
mov rbx, rax
shr rax, 0x20
test eax, eax
jne 0x140007f07
movsxd rdx, ebx
xor r8d, r8d
lea rcx, [rbp + 0x10]
call fcn.140007f20
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.1400e38c4
shr rax, 0x20
test eax, eax
jne 0x140007ef9
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x140007ae1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007adc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007adc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e44f4
mov qword [rbp - 0x80], r13
mov qword [rbp - 0x78], 7
mov word [rsp + 0x70], r13w
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x140007b36
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007b31
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007b31
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e44f4
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 0x140007e87
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 0x140007bc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140007bc5
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Cant_enum_service_list_error_code:__d___n
call fcn.140006e60
jmp 0x140007e87
mov eax, dword [rbp - 0x10]
add eax, 0x30
mov dword [rbp - 0x10], eax
mov ecx, eax
call fcn.1400e4528
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, listen
lea r8d, [rdx - 8]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x140007e7f
mov ebx, r13d
cmp dword [rbp - 0xc], r13d
jbe 0x140007c99
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 0x140007c92
mov ecx, 0x1fa0
call fcn.1400e4528
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 0x140007c89
lea rdx, str.iqvw64e.sys
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
jne 0x140007d03
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
inc ebx
cmp ebx, dword [rbp - 0xc]
jb 0x140007c20
mov rcx, r12
call fcn.1400e44f4
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 0x140007d16
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
je 0x140007d16
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.____Cant_enum_service_list_error_code:__d___n
call fcn.140006e60
jmp 0x140007e87
mov rcx, r12
call fcn.1400e44f4
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140007ca1
mov eax, dword [rbp - 0x10]
add eax, 0x30
mov dword [rbp - 0x10], eax
mov ecx, eax
call fcn.1400e4528
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, listen
lea r8d, [rdx - 8]
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_EnumServicesStatusA]
test eax, eax
je 0x140007e7a
mov ebx, r13d
cmp dword [rbp - 0xc], r13d
jbe 0x140007db0
nop dword [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, [0x140131d28]
mov rcx, qword [rdi + rcx*8]
call qword [sym.imp.VCRUNTIME140.dll_strstr]
test rax, rax
je 0x140007da9
mov eax, dword [rbp - 0x7c]
add eax, 0xfffffffe
test eax, 0xfffffffd
je 0x140007e87
inc ebx
cmp ebx, dword [rbp - 0xc]
jb 0x140007d70
mov rcx, rdi
call fcn.1400e44f4
cmp qword [r15 + 0x18], 0x10
jb 0x140007dc2
mov r15, qword [r15]
lea r8, [rbp + 0x10]
cmp qword [rbp + 0x28], 0x10
jb 0x140007dd6
mov r8, qword [rbp + 0x10]
mov rdx, r8
jmp 0x140007dda
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 0x140007e52
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 0x140007e52
mov rcx, r14
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140007e87
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 0x140007e8a
mov rcx, rdi
jmp 0x140007e82
mov rcx, r12
call fcn.1400e44f4
xor dil, dil
mov rdx, qword [rbp + 0x28]
cmp rdx, 0x10
jb 0x140007ec8
inc rdx
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140007ec3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140007ec3
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400e44f4
movzx eax, dil
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.1400e3fb0
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.140007610
int3
call fcn.140007340
int3
mov ecx, eax
call fcn.140007610
int3