Function at 0x7ff7ed4f7920
Capabilities:
Create service
Get common file path
Query service configuration
Query service status
Start service

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov rax, qword [0x7ff7ed868f18]
xor rax, rsp
mov qword [rbp + 0x2f0], rax
mov r13, rdx
mov rsi, rcx
mov qword [rbp - 0x70], rdx
xor r15d, r15d
mov dword [rsp + 0x70], r15d
lea r12d, [r15 + 0x20]
mov ecx, r12d
call fcn.7ff7ed6b5358
test rax, rax
je 0x7ff7ed4f7992
mov dword [rax + 1], r15d
mov word [rax + 5], r15w
mov byte [rax + 7], r15b
mov byte [rax], r15b
or qword [rax + 8], 0xffffffffffffffff
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
jmp 0x7ff7ed4f7995
mov rax, r15
mov qword [rsi], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 0x10], rcx
mov rax, qword [rsi]
cmp qword [rax + 0x10], r15
jne 0x7ff7ed4f79c6
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x7ff7ed4f7a68
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r15
mov rdi, r15
mov r14, qword [rbp - 0x80]
mov rbx, qword [rsp + 0x78]
cmp rbx, r14
mov edx, 0x104
je 0x7ff7ed4f79ed
lea rdx, [rdi + rdi]
lea rcx, [rsp + 0x78]
call fcn.7ff7ed4f8b34
mov r14, qword [rbp - 0x80]
mov rdi, r14
mov rbx, qword [rsp + 0x78]
sub rdi, rbx
sar rdi, 1
mov r8d, edi
mov rdx, rbx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x7ff7ed4f79df
test eax, eax
je 0x7ff7ed4f7a9e
test rbx, rbx
je 0x7ff7ed4f7a68
mov edi, 0x1000
mov rax, qword [rbp - 0x78]
sub rax, rbx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rbx
cmp rdx, rdi
jb 0x7ff7ed4f7a5f
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff7ed4f8235
mov rcx, rbx
call fcn.7ff7ed6b5394
nop
mov rcx, qword [r13]
call fcn.7ff7ed6b5394
mov rax, rsi
mov rcx, qword [rbp + 0x2f0]
xor rcx, rsp
call fcn.7ff7ed6b54e0
mov rbx, qword [rsp + 0x450]
add rsp, 0x400
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea rax, [r14 - 2]
cmp rax, rbx
je 0x7ff7ed4f7ae0
mov r9, rax
mov rcx, rax
mov r8, rax
movzx edx, word [rax]
cmp dx, 0x5c
je 0x7ff7ed4f7ad7
cmp dx, 0x2f
je 0x7ff7ed4f7ad3
lea rax, [r9 - 2]
mov rcx, rax
mov r9, rax
mov r8, rax
cmp rax, rbx
jne 0x7ff7ed4f7ab0
jmp 0x7ff7ed4f7ae0
cmp dx, 0x5c
cmove rcx, r8
mov word [rcx + 2], r15w
xorps xmm0, xmm0
movups xmmword [rbp - 0x68], xmm0
movdqa xmm1, xmmword [0x7ff7ed749aa0]
movdqu xmmword [rbp - 0x58], xmm1
mov word [rbp - 0x68], r15w
mov edi, 0x1000
cmp qword [r13 + 8], r15
je 0x7ff7ed4f7d1a
lea rdx, [0x7ff7ed6f0c0d]
cmp qword [r13], r15
cmovne rdx, qword [r13]
movups xmmword [rbp + 0x20], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x30], xmm1
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], r15b
jne 0x7ff7ed4f7b28
lea rcx, [rbp + 0x20]
call fcn.7ff7ed383aa8
nop
lea r8, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae r8, qword [rbp + 0x20]
add r8, qword [rbp + 0x30]
lea rdx, [rbp + 0x20]
cmp qword [rbp + 0x38], 0x10
cmovae rdx, qword [rbp + 0x20]
xorps xmm0, xmm0
movups xmmword [rbp + 0x80], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x90], xmm1
cmp rdx, r8
jne 0x7ff7ed4f7b8f
movdqa xmm0, xmmword [0x7ff7ed749aa0]
movdqu xmmword [rbp + 0x90], xmm0
mov word [rbp + 0x80], r15w
jmp 0x7ff7ed4f7ba2
mov r9, r8
sub r9, rdx
lea rcx, [rbp + 0x80]
call fcn.7ff7ed4f7570
nop
mov dword [rbp + 0x40], r15d
call fcn.7ff7ed4f7788
mov qword [rbp + 0x48], rax
lea rdx, [rbp + 0x40]
lea rcx, [rbp + 0x60]
call fcn.7ff7ed4f8ba4
mov dword [rsp + 0x70], 1
cmp dword [rbp + 0x40], r15d
jne 0x7ff7ed4f823b
xorps xmm0, xmm0
movups xmmword [rbp + 0xa0], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0xb0], xmm1
lea rdx, [rbp + 0x60]
cmp qword [rbp + 0x78], 8
cmovae rdx, qword [rbp + 0x60]
mov r8, qword [rbp + 0x70]
lea rcx, [rbp + 0xa0]
call fcn.7ff7ed4f7488
mov dword [rsp + 0x70], 3
lea r8, [rbp + 0x80]
lea rdx, [rbp + 0xa0]
lea rcx, [rbp + 0xc0]
call fcn.7ff7ed4f7410
mov r14, rax
lea rax, [rbp - 0x68]
cmp rax, r14
je 0x7ff7ed4f7c9c
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x7ff7ed4f7c6b
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, rdi
jb 0x7ff7ed4f7c66
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff7ed4f8250
call fcn.7ff7ed6b5394
movdqa xmm0, xmmword [0x7ff7ed749aa0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r15w
mov r8, r12
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.7ff7ed6b67f0
mov qword [r14 + 0x10], r15
mov qword [r14 + 0x18], 7
mov word [r14], r15w
lea rcx, [rbp + 0xc0]
call fcn.7ff7ed414f98
nop
lea rcx, [rbp + 0xa0]
call fcn.7ff7ed414f98
nop
lea rcx, [rbp + 0x60]
call fcn.7ff7ed414f98
nop
lea rcx, [rbp + 0x80]
call fcn.7ff7ed414f98
nop
mov rdx, qword [rbp + 0x38]
cmp rdx, 0x10
jb 0x7ff7ed4f7d04
inc rdx
mov rcx, qword [rbp + 0x20]
mov rax, rcx
cmp rdx, rdi
jb 0x7ff7ed4f7cff
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff7ed4f8256
call fcn.7ff7ed6b5394
movdqa xmm0, xmmword [0x7ff7ed6f2210]
movdqu xmmword [rbp + 0x30], xmm0
mov byte [rbp + 0x20], r15b
jmp 0x7ff7ed4f7efb
call fcn.7ff7ed42dc6c
neg al
sbb edx, edx
and edx, 0xc
add edx, 0x1a
lea rax, [rbp + 0xe0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
lea rdx, [rbp + 0xe0]
lea rcx, [rbp - 0x68]
call fcn.7ff7ed4f8990
mov ecx, 0xe80c
mov dword [rbp - 0x40], 0xe850e80c
mov dword [rbp - 0x3c], 0xe863e84b
mov dword [rbp - 0x38], 0xe86be863
mov dword [rbp - 0x34], 0xe869e860
mov dword [rbp - 0x30], 0xe840e850
mov dword [rbp - 0x2c], 0xe86ee865
mov dword [rbp - 0x28], 0xe850e87f
mov dword [rbp - 0x24], 0xe85ee85b
mov dword [rbp - 0x20], 0xe838e83a
mov dword [rbp - 0x1c], 0xe87fe822
mov dword [rbp - 0x18], 0xe87fe875
mov word [rbp - 0x14], cx
mov eax, ecx
xor ax, word [0x7ff7ed74ddc4]
mov word [rbp - 0x12], ax
mov eax, ecx
xor ax, word [0x7ff7ed74ddc6]
mov word [rbp - 0x10], ax
mov eax, ecx
xor ax, word [str..WinRing0_1_2_0]
mov word [rbp - 0xe], ax
mov eax, ecx
xor ax, word [0x7ff7ed74ddca]
mov word [rbp - 0xc], ax
mov eax, ecx
xor ax, word [0x7ff7ed74ddcc]
mov word [rbp - 0xa], ax
mov eax, ecx
xor ax, word [0x7ff7ed74ddce]
mov word [rbp - 8], ax
mov eax, ecx
xor ax, word [0x7ff7ed74ddd0]
mov word [rbp - 6], ax
mov eax, ecx
xor ax, word [0x7ff7ed74ddd2]
mov word [rbp - 4], ax
mov eax, ecx
xor ax, word [0x7ff7ed74ddd4]
mov word [rbp - 2], ax
mov eax, ecx
xor ax, word [0x7ff7ed74ddd6]
mov word [rbp], ax
mov eax, ecx
xor ax, word [0x7ff7ed74ddd8]
mov word [rbp + 2], ax
mov eax, ecx
xor ax, word [0x7ff7ed74ddda]
mov word [rbp + 4], ax
mov eax, ecx
xor ax, word [0x7ff7ed74dddc]
mov word [rbp + 6], ax
mov eax, ecx
xor ax, word [0x7ff7ed74ddde]
mov word [rbp + 8], ax
mov eax, ecx
xor ax, word [0x7ff7ed74dde0]
mov word [rbp + 0xa], ax
mov eax, ecx
xor ax, word [0x7ff7ed74dde2]
mov word [rbp + 0xc], ax
mov eax, ecx
xor ax, word [0x7ff7ed74dde4]
mov word [rbp + 0xe], ax
mov eax, ecx
xor ax, word [0x7ff7ed74dde6]
mov word [rbp + 0x10], ax
mov eax, ecx
xor ax, word [0x7ff7ed74dde8]
mov word [rbp + 0x12], ax
mov eax, ecx
xor ax, word [0x7ff7ed74ddea]
mov word [rbp + 0x14], ax
mov eax, ecx
xor ax, word [0x7ff7ed74ddec]
mov word [rbp + 0x16], ax
xor eax, eax
mov word [rbp + 0x18], ax
mov rax, r15
xor word [rbp + rax*2 - 0x3e], cx
inc rax
cmp rax, 0x2b
jae 0x7ff7ed4f7ed7
movzx ecx, word [rbp - 0x40]
jmp 0x7ff7ed4f7ec3
mov word [rbp + 0x18], r15w
lea rax, [rbp - 0x3e]
or r8, 0xffffffffffffffff
inc r8
cmp word [rax + r8*2], r15w
jne 0x7ff7ed4f7ee4
lea rdx, [rbp - 0x3e]
lea rcx, [rbp - 0x68]
call fcn.7ff7ed42b33c
mov rcx, qword [rsi]
mov r8d, 0xf01ff
mov rdx, qword [str.WinRing0_1_2_0]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 0x18], rcx
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x7ff7ed4f7ffe
lea rdx, [rbp + 0x40]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x7ff7ed4f80a9
mov dword [rsp + 0x70], r15d
mov rcx, qword [rsi]
lea r9, [rsp + 0x70]
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x7ff7ed4f7fee
mov r12d, dword [rsp + 0x70]
mov r14, r15
test r12, r12
je 0x7ff7ed4f7f9f
mov ecx, r12d
cmp r12, rdi
jb 0x7ff7ed4f7f88
call fcn.7ff7ed382db0
jmp 0x7ff7ed4f7f8d
call fcn.7ff7ed6b5358
mov r14, rax
lea r15, [r12 + rax]
mov rdx, r15
mov rcx, rax
call fcn.7ff7ed3a6adc
sub r15, r14
mov rax, qword [rsi]
lea r9, [rsp + 0x70]
mov r8d, r15d
mov rdx, r14
mov rcx, qword [rax + 0x18]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test r14, r14
je 0x7ff7ed4f7feb
cmp r15, rdi
jb 0x7ff7ed4f7fe0
add r15, 0x27
mov rcx, qword [r14 - 8]
sub r14, rcx
lea rax, [r14 - 8]
cmp rax, 0x1f
ja 0x7ff7ed4f825c
mov r14, rcx
mov rdx, r15
mov rcx, r14
call fcn.7ff7ed6b5394
xor r15d, r15d
cmp dword [rbp + 0x44], 4
jne 0x7ff7ed4f80a9
mov rax, qword [rsi]
mov byte [rax], 1
mov qword [rsp + 0x30], r15
mov r14d, 0x80
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov r12d, 0xc0000000
mov edx, r12d
lea rcx, str..WinRing0_1_2_0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 8], rcx
mov rcx, qword [rsi]
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x7ff7ed4f8148
mov byte [rcx], 1
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x7ff7ed4f8089
mov rcx, qword [rbp - 0x68]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, rdi
jb 0x7ff7ed4f8084
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff7ed4f8229
call fcn.7ff7ed6b5394
movdqa xmm0, xmmword [0x7ff7ed749aa0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r15w
test rbx, rbx
je 0x7ff7ed4f7a68
jmp 0x7ff7ed4f7a30
mov rcx, qword [rsi]
call fcn.7ff7ed4f8c84
test al, al
jne 0x7ff7ed4f7ffe
mov rdx, qword [rbp - 0x50]
cmp rdx, 8
jb 0x7ff7ed4f80f5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x68]
mov rax, rcx
cmp rdx, rdi
jb 0x7ff7ed4f80f0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff7ed4f8262
call fcn.7ff7ed6b5394
movdqa xmm0, xmmword [0x7ff7ed749aa0]
movdqu xmmword [rbp - 0x58], xmm0
mov word [rbp - 0x68], r15w
test rbx, rbx
je 0x7ff7ed4f7a68
mov rax, qword [rbp - 0x78]
sub rax, rbx
sar rax, 1
lea rdx, [rax + rax]
mov rax, rbx
cmp rdx, rdi
jb 0x7ff7ed4f7a5f
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff7ed4f822f
jmp 0x7ff7ed4f7a5f
cmp byte [rcx], r15b
jne 0x7ff7ed4f81f2
lea rax, [rbp - 0x68]
cmp qword [rbp - 0x50], 8
cmovae rax, qword [rbp - 0x68]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0xf01ff
mov rdx, qword [str.WinRing0_1_2_0]
mov r8, rdx
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 0x18], rcx
mov rax, qword [rsi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x7ff7ed4f804d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x7ff7ed4f81f2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x7ff7ed4f81f2
mov rcx, qword [rsi]
call fcn.7ff7ed4f8c84
jmp 0x7ff7ed4f804d
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, r12d
lea rcx, str..WinRing0_1_2_0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov rax, qword [rsi]
mov qword [rax + 8], rcx
jmp 0x7ff7ed4f804d
call fcn.7ff7ed6bc794
nop
call fcn.7ff7ed6bc794
int3
call fcn.7ff7ed6bc794
nop
lea r8, [rbp + 0x60]
lea rdx, [rbp + 0x40]
lea rcx, str.temp_directory_path
call fcn.7ff7ed4f8900
nop
call fcn.7ff7ed6bc794
nop
call fcn.7ff7ed6bc794
int3
call fcn.7ff7ed6bc794
nop
call fcn.7ff7ed6bc794
int3