Function at 0x140155680
Capabilities:
Create service
Query service configuration
Query service status
Start service

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x38]
sub rsp, 0x120
mov qword [rbp - 0x58], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140495598]
xor rax, rsp
mov qword [rbp + 0x10], rax
mov rdi, rcx
mov ecx, 0x20
call fcn.1403115c4
xor r15d, r15d
mov dword [rax + 1], r15d
mov word [rax + 5], r15w
mov byte [rax + 7], r15b
mov byte [rax], r15b
mov qword [rax + 8], 0xffffffffffffffff
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], r15
mov qword [rdi], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rcx, rax
mov rax, qword [rdi]
mov qword [rax + 0x10], rcx
mov rax, qword [rdi]
cmp qword [rax + 0x10], r15
jne 0x140155716
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x140155e07
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x78], xmm0
mov qword [rbp - 0x78], r15
nop dword [rax]
nop word [rax + rax]
mov rcx, qword [rsp + 0x78]
mov rax, qword [rbp - 0x80]
cmp rcx, rax
jne 0x140155745
mov edx, 0x104
jmp 0x14015574f
sub rax, rcx
sar rax, 1
lea rdx, [rax + rax]
lea rcx, [rsp + 0x78]
call fcn.140156090
mov r8, qword [rbp - 0x80]
mov rdx, qword [rsp + 0x78]
sub r8, rdx
sar r8, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x140155730
test eax, eax
je 0x1401557c8
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140155e07
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140155e02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140155e39
jmp 0x140155e02
mov rax, qword [rbp - 0x80]
add rax, 0xfffffffffffffffe
mov rdx, qword [rsp + 0x78]
cmp rax, rdx
je 0x140155804
nop word [rax + rax]
movzx ecx, word [rax]
cmp cx, 0x5c
je 0x1401557fa
cmp cx, 0x2f
je 0x1401557fa
sub rax, 2
cmp rax, rdx
jne 0x1401557e0
jmp 0x140155804
mov word [rax + 2], r15w
mov rdx, qword [rsp + 0x78]
lea rcx, [rbp - 0x30]
call fcn.140007650
mov rbx, rax
mov rcx, qword [rax + 0x10]
mov rdx, qword [rax + 0x18]
mov rax, rdx
sub rax, rcx
cmp rax, 0xf
jb 0x140155855
lea r14, [rcx + 0xf]
mov qword [rbx + 0x10], r14
mov rsi, rbx
cmp rdx, 8
jb 0x140155838
mov rsi, qword [rbx]
lea rcx, [rsi + rcx*2]
mov r8d, 0x1e
lea rdx, str.WinRing0x64.sys
call fcn.14032fed0
mov word [rsi + r14*2], r15w
jmp 0x140155875
mov qword [rsp + 0x20], reloc.WS2_32.dll_ntohs
lea r9, str.WinRing0x64.sys
mov edx, reloc.WS2_32.dll_ntohs
mov rcx, rbx
call fcn.140156210
mov rbx, rax
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], r15
movups xmm0, xmmword [rbx]
movups xmmword [rbp - 0x50], xmm0
movups xmm1, xmmword [rbx + 0x10]
movups xmmword [rbp - 0x40], xmm1
mov qword [rbx + 0x10], r15
mov qword [rbx + 0x18], 7
mov word [rbx], r15w
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x1401558dc
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1401558d7
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140155e57
call fcn.140311600
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
mov word [rbp - 0x30], r15w
mov rcx, qword [rdi]
mov r8d, 0xf01ff
lea rdx, str.WinRing0_1_2_0
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rcx, rax
mov rax, qword [rdi]
mov qword [rax + 0x18], rcx
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
je 0x1401559d0
lea rdx, [rbp - 0x10]
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140155ab2
mov dword [rsp + 0x70], r15d
mov rcx, qword [rdi]
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 0x1401559c0
mov edx, dword [rsp + 0x70]
lea rcx, [rbp - 0x70]
call fcn.140036880
mov r8, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x70]
sub r8, rbx
mov rcx, qword [rdi]
lea r9, [rsp + 0x70]
mov rdx, rbx
mov rcx, qword [rcx + 0x18]
call qword [sym.imp.ADVAPI32.dll_QueryServiceConfigA]
test rbx, rbx
je 0x1401559c0
mov rdx, qword [rbp - 0x60]
sub rdx, rbx
mov rax, rbx
cmp rdx, 0x1000
jb 0x1401559b8
add rdx, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140155e5d
mov rcx, rbx
call fcn.140311600
cmp dword [rbp - 0xc], 4
jne 0x140155ab2
mov rax, qword [rdi]
mov byte [rax], 1
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..WinRing0_1_2_0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov rax, qword [rdi]
mov qword [rax + 8], rcx
mov rcx, qword [rdi]
cmp qword [rcx + 8], 0xffffffffffffffff
je 0x140155b5c
mov byte [rcx], 1
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140155a58
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140155a53
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140155e63
call fcn.140311600
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r15w
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140155e07
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140155e02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140155e3f
jmp 0x140155e02
mov rcx, qword [rdi]
call fcn.1401555d0
test al, al
jne 0x1401559d0
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140155b02
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140155afd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140155e69
call fcn.140311600
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r15w
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140155e07
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140155e02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140155e45
jmp 0x140155e02
cmp byte [rcx], 0
jne 0x140155d42
lea rax, [rbp - 0x50]
cmp qword [rbp - 0x38], 8
cmovae rax, qword [rbp - 0x50]
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
lea r8, str.WinRing0_1_2_0
lea rdx, str.WinRing0_1_2_0
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rcx, rax
mov rax, qword [rdi]
mov qword [rax + 0x18], rcx
mov rax, qword [rdi]
mov rcx, qword [rax + 0x18]
test rcx, rcx
jne 0x140155c7b
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140155c21
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140155c1c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140155e6f
call fcn.140311600
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r15w
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140155e07
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140155e02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140155e4b
jmp 0x140155e02
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x140155d42
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x420
je 0x140155d42
mov rcx, qword [rdi]
call fcn.1401555d0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140155ce8
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140155ce3
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140155e75
call fcn.140311600
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r15w
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140155e07
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140155e02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140155e51
jmp 0x140155e02
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, str..WinRing0_1_2_0
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rcx, rax
mov rax, qword [rdi]
mov qword [rax + 8], rcx
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x140155db9
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140155db4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140155e7b
call fcn.140311600
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r15w
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140155e07
mov rdx, qword [rbp - 0x78]
sub rdx, rcx
sar rdx, 1
add rdx, rdx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140155e02
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140155e33
call fcn.140311600
mov rax, rdi
mov rcx, qword [rbp + 0x10]
xor rcx, rsp
call fcn.1403115a0
lea r11, [rsp + 0x120]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1403331f4
int3
call fcn.1403331f4
int3
call fcn.1403331f4
int3
call fcn.1403331f4
int3
call fcn.1403331f4
int3
call fcn.1403331f4
nop
call fcn.1403331f4
nop
call fcn.1403331f4
nop
call fcn.1403331f4
int3
call fcn.1403331f4
int3
call fcn.1403331f4
int3
call fcn.1403331f4
int3
call fcn.1403331f4
int3