Function at 0x14001f0bc
Capabilities:
Create service
Delete service
Modify service

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbx
push rbp
push rsi
push rdi
sub rsp, 0x2b8
xor edi, edi
cmp qword [0x14012cfb8], rdi
jne 0x14001f1b1
lea rbx, str.Advapi32.DLL
lea r9, [rax + 0x18]
lea r8, [0x14012cfb8]
lea rcx, [0x140110fe8]
mov rdx, rbx
mov qword [rax + 0x18], rdi
call fcn.140058e24
lea r9, [rsp + 0x2f0]
lea r8, [0x14012cfc0]
lea rcx, [0x140110fd8]
mov rdx, rbx
call fcn.140058e24
lea r9, [rsp + 0x2f0]
lea r8, [0x14012cfc8]
lea rcx, str.QueryServiceStatusEx
mov rdx, rbx
call fcn.140058e24
lea r9, [rsp + 0x2f0]
lea r8, [0x14012cfd0]
lea rcx, [0x140110fb0]
mov rdx, rbx
call fcn.140058e24
lea r9, [rsp + 0x2f0]
lea r8, [0x14012cfd8]
lea rcx, [0x140110fa0]
mov rdx, rbx
call fcn.140058e24
lea r9, [rsp + 0x2f0]
lea r8, [0x14012cfe0]
lea rcx, [0x140110f88]
mov rdx, rbx
call fcn.140058e24
cmp qword [0x14012cfb8], rdi
jne 0x14001f1b1
mov rax, 0xffffffff80004001
jmp 0x14001fc02
xor ecx, ecx
mov ebp, edi
mov dword [rsp + 0xa0], edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov esi, 1
lea rcx, [rsp + 0xd0]
lea r8d, [rsi + 0x23]
xor edx, edx
mov qword [rsp + 0xa8], rdi
call fcn.1400f3900
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov dword [rsp + 0xb8], edi
mov dword [rsp + 0x98], edi
mov dword [rsp + 0x88], edi
call qword [0x14012cfb8]
xor r10d, r10d
mov qword [rsp + 0xb0], rax
cmp rax, r10
je 0x14001f893
mov rax, qword [rsp + 0x2e8]
or edi, 0xffffffff
lea ecx, [rsi + 0x2c]
mov ebx, r10d
mov r8d, r10d
mov dword [rsp + 0x2f0], r10d
mov r9d, r10d
mov dword [rsp + 0x2f8], r10d
mov dword [rsp + 0x74], r10d
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x78], ebx
lea edx, [rsi + 1]
mov dword [rsp + 0x90], 9
lea r11d, [rsi + 0xc]
mov dword [rsp + 0x80], 0x20
cmp cx, word [rax]
jne 0x14001f4e8
mov rbp, rdx
lea rdx, [rsp + 0x2e8]
lea rcx, str._create
mov r8d, 7
call fcn.1400623c0
xor r10d, r10d
cmp al, r10b
je 0x14001f2a9
mov r8d, esi
mov dword [rsp + 0x2f0], esi
jmp 0x14001f4b4
lea rdx, [rsp + 0x2e8]
lea rcx, [0x140110f78]
mov r8d, 7
call fcn.1400623c0
xor r10d, r10d
cmp al, r10b
je 0x14001f2e2
mov r8d, dword [rsp + 0x2f0]
mov r9d, esi
mov dword [rsp + 0x2f8], esi
jmp 0x14001f4bc
lea rdx, [rsp + 0x2e8]
lea rcx, [0x140110f70]
mov r8d, 5
call fcn.1400623c0
xor r10d, r10d
cmp al, r10b
je 0x14001f310
mov dword [rsp + 0x98], esi
jmp 0x14001f4ac
lea rdx, [rsp + 0x2e8]
lea rcx, str._auto
mov r8d, 5
call fcn.1400623c0
xor r10d, r10d
cmp al, r10b
je 0x14001f339
mov edi, ebp
jmp 0x14001f4ac
lea rdx, [rsp + 0x2e8]
lea rcx, str._boot
mov r8d, 5
call fcn.1400623c0
xor r10d, r10d
cmp al, r10b
je 0x14001f363
mov edi, r10d
jmp 0x14001f4ac
lea rdx, [rsp + 0x2e8]
lea rcx, str._demand
mov r8d, 7
call fcn.1400623c0
xor r10d, r10d
cmp al, r10b
je 0x14001f38e
lea edi, [r10 + 3]
jmp 0x14001f4ac
lea rdx, [rsp + 0x2e8]
lea rcx, str._disabled
mov r8d, 9
call fcn.1400623c0
xor r10d, r10d
cmp al, r10b
je 0x14001f3b9
lea edi, [r10 + 4]
jmp 0x14001f4ac
lea rdx, [rsp + 0x2e8]
lea rcx, str._delayed_auto
mov r8d, 0xd
call fcn.1400623c0
xor r10d, r10d
cmp al, r10b
je 0x14001f3e6
mov edi, ebp
mov dword [rsp + 0x74], esi
jmp 0x14001f4ac
lea rdx, [rsp + 0x2e8]
lea rcx, str._start
mov r8d, 6
call fcn.1400623c0
xor r10d, r10d
cmp al, r10b
je 0x14001f40f
mov ebx, ebp
jmp 0x14001f4ac
lea rdx, [rsp + 0x2e8]
lea rcx, str._stop
mov r8d, 5
call fcn.1400623c0
xor r10d, r10d
cmp al, r10b
je 0x14001f435
mov ebx, esi
jmp 0x14001f4ac
lea rdx, [rsp + 0x2e8]
lea rcx, str._stop_
mov r8d, 6
call fcn.1400623c0
xor r10d, r10d
cmp al, r10b
je 0x14001f45c
or ebx, 0xffffffff
jmp 0x14001f4ac
mov rcx, qword [rsp + 0x2e8]
movzx eax, word [rcx]
cmp ax, r10w
je 0x14001f49f
mov edx, 0xd
lea r8d, [rdx - 4]
lea r9d, [rdx + 0x13]
cmp r8w, ax
ja 0x14001f485
cmp ax, dx
jbe 0x14001f49f
cmp r9w, ax
je 0x14001f49f
add rcx, rbp
mov qword [rsp + 0x2e8], rcx
mov ax, word [rcx]
cmp ax, r10w
jne 0x14001f47a
lea rcx, [rsp + 0x2e8]
call fcn.14001651c
mov r8d, dword [rsp + 0x2f0]
mov r9d, dword [rsp + 0x2f8]
mov rax, qword [rsp + 0x2e8]
mov ecx, 0x2d
cmp cx, word [rax]
je 0x14001f278
mov ebp, dword [rsp + 0xa0]
mov dword [rsp + 0x70], edi
mov dword [rsp + 0x78], ebx
lea edx, [rcx - 0x2b]
lea r11d, [rcx - 0x20]
mov ecx, 0x3f
cmp cx, word [rax]
jne 0x14001f54e
add rax, rdx
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x2e8], rax
movzx ecx, word [rax]
cmp cx, r10w
je 0x14001f53f
cmp word [rsp + 0x90], cx
ja 0x14001f51e
cmp cx, r11w
jbe 0x14001f52d
cmp word [rsp + 0x80], cx
je 0x14001f52d
add rax, rdx
jmp 0x14001f4fd
cmp word [rax], r10w
je 0x14001f53f
mov word [rax], r10w
add qword [rsp + 0x2e8], rdx
lea rcx, [rsp + 0x2e8]
call fcn.14001651c
jmp 0x14001f565
cmp word [rax], 0x21
jne 0x14001f565
add rax, rdx
mov ebx, esi
mov qword [rsp + 0x2e8], rax
mov dword [rsp + 0x78], ebx
cmp r8d, r10d
je 0x14001f8e6
lea rcx, [rsp + 0xa0]
call fcn.14005fa18
lea rcx, [rsp + 0x90]
call fcn.14005fa18
lea rcx, [rsp + 0xc0]
call fcn.14005fa18
lea rcx, [rsp + 0xc8]
call fcn.14005fa18
lea rcx, [rsp + 0x80]
call fcn.14005fa18
lea rcx, [rsp + 0x78]
call fcn.14005fa18
lea rcx, [rsp + 0x98]
call fcn.14005fa18
xor ebp, ebp
lea rdx, [rsp + 0xa0]
lea ebx, [rbp + 0x2c]
lea rcx, [rsp + 0x2e8]
xor r9d, r9d
mov r8d, ebx
mov dword [rsp + 0x2f0], ebp
mov dword [rsp + 0x70], 0x10
mov dword [rsp + 0x74], 3
mov dword [rsp + 0x2f8], esi
call fcn.140050f84
lea rdx, [rsp + 0xc0]
lea rcx, [rsp + 0x2e8]
xor r9d, r9d
mov r8d, ebx
call fcn.140050f84
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x2e8]
mov r8d, ebx
call fcn.140063c18
lea rdx, [rsp + 0x74]
lea rcx, [rsp + 0x2e8]
mov r8d, ebx
call fcn.140063c18
lea rdx, [rsp + 0x2f8]
lea rcx, [rsp + 0x2e8]
mov r8d, ebx
call fcn.140063c18
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x2e8]
xor r9d, r9d
mov r8d, ebx
call fcn.140050f84
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x2e8]
xor r9d, r9d
mov r8d, ebx
call fcn.140050f84
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x2e8]
xor r9d, r9d
mov r8d, ebx
call fcn.140050f84
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x2e8]
xor r9d, r9d
mov r8d, ebx
call fcn.140050f84
lea rdx, [rsp + 0xc8]
lea rcx, [rsp + 0x2e8]
xor r9d, r9d
mov r8d, ebx
call fcn.140050f84
lea rdx, [rsp + 0x2f0]
lea rcx, [rsp + 0x2e8]
movzx r8d, bx
call fcn.140063c18
mov rcx, qword [rsp + 0x80]
lea rdi, [rsp + 0x2f0]
cmp eax, ebp
cmove rdi, rbp
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea rcx, [rsp + 0x80]
movsxd rbx, eax
lea eax, [rbx + 2]
movsxd rdx, eax
call fcn.14005fb18
mov rax, qword [rsp + 0x80]
mov word [rax + rbx*2 + 2], bp
mov rax, qword [rsp + 0x80]
mov word [rax + rbx*2], bp
mov rcx, qword [rsp + 0x78]
movzx eax, word [rcx]
neg ax
mov rax, qword [rsp + 0x90]
sbb rbx, rbx
and rbx, rcx
cmp word [rax], bp
jne 0x14001f77c
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x90]
call fcn.14006ad18
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x2e8], rcx
cmp word [rcx], bp
je 0x14001f7c3
mov edx, 2
mov eax, 0x2f
cmp ax, word [rcx]
jne 0x14001f7ab
mov word [rcx], bp
mov rcx, qword [rsp + 0x2e8]
add rcx, rdx
mov qword [rsp + 0x2e8], rcx
cmp word [rcx], bp
jne 0x14001f796
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0x98]
mov r8, qword [rsp + 0x90]
mov rdx, qword [rsp + 0xa0]
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rcx
mov rcx, qword [rsp + 0xb0]
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xc0]
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x2f8]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x70]
mov dword [rsp + 0x20], eax
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
lea rcx, [rsp + 0x98]
mov rdi, rax
call fcn.140057768
lea rcx, [rsp + 0x78]
call fcn.140057768
lea rcx, [rsp + 0x80]
call fcn.140057768
lea rcx, [rsp + 0xc8]
call fcn.140057768
lea rcx, [rsp + 0xc0]
call fcn.140057768
lea rcx, [rsp + 0x90]
call fcn.140057768
lea rcx, [rsp + 0xa0]
call fcn.140057768
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test rdi, rdi
je 0x14001f8a9
mov rcx, rdi
call qword [0x14012cfe0]
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x14001f8bf
mov rcx, rax
call qword [0x14012cfe0]
mov rbx, qword [rsp + 0xa8]
test rbx, rbx
je 0x14001fc00
cmp dword [rsp + 0x88], 0
jne 0x14001fbcc
mov r8d, ebp
jmp 0x14001fbd3
cmp r9d, r10d
je 0x14001f99a
cmp ebx, r10d
jl 0x14001f93f
lea rdx, str._wait__
lea rcx, [rsp + 0x2f0]
call fcn.14006ac98
mov rdx, qword [rsp + 0x2e8]
lea rcx, [rsp + 0x2f0]
call fcn.14005fb54
mov rdx, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2e0]
call fcn.14001f0bc
lea rcx, [rsp + 0x2f0]
call fcn.140057768
lea rcx, [rsp + 0xf8]
call fcn.14005fa18
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rdx, qword [rsp + 0x2e8]
mov rcx, qword [rsp + 0xb0]
xor r8d, r8d
test ebx, ebx
lea eax, [r8 + 0x20]
cmovns r8d, eax
bts r8d, 0x10
call qword [0x14012cfc0]
mov rdi, rax
test rax, rax
je 0x14001f98d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_DeleteService]
lea rcx, [rsp + 0xf8]
jmp 0x14001f88e
lea rcx, [rsp + 0x2e8]
call fcn.14001651c
mov rcx, qword [rsp + 0x2e8]
call fcn.14001ae54
xor ecx, ecx
cmp qword [rsp + 0xa8], rcx
mov qword [rsp + 0x2e8], rax
setne cl
xor r8d, r8d
test edi, edi
lea edx, [r8 + 2]
mov dword [rsp + 0x88], ecx
cmovns r8d, edx
or r8d, 0x34
test ecx, ecx
lea ecx, [rdx + 2]
cmovne r8d, ecx
mov rcx, qword [rsp + 0xb0]
mov rdx, rax
call qword [0x14012cfc0]
xor ecx, ecx
mov rdi, rax
cmp rax, rcx
je 0x14001f893
cmp qword [rsp + 0xa8], rcx
je 0x14001fad9
lea rax, [rsp + 0xb8]
lea r9d, [rcx + 0x24]
lea r8, [rsp + 0xd0]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [0x14012cfc8]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
test ebx, ebx
jne 0x14001fa5c
mov ebx, dword [rsp + 0x78]
test eax, eax
je 0x14001fb88
mov esi, eax
jmp 0x14001fb88
mov eax, dword [rsp + 0xf0]
mov r9d, dword [rsp + 0xd4]
mov r8d, dword [rsp + 0xd0]
mov dword [rsp + 0x50], eax
mov eax, dword [rsp + 0xec]
lea rdx, str.0_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX_0x_lX
mov dword [rsp + 0x48], eax
mov eax, dword [rsp + 0xe8]
lea rcx, [rsp + 0x120]
mov dword [rsp + 0x40], eax
mov eax, dword [rsp + 0xe4]
xor esi, esi
mov dword [rsp + 0x38], eax
mov eax, dword [rsp + 0xe0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0xdc]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0xd8]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_wsprintfW]
mov ebx, dword [rsp + 0x78]
jmp 0x14001fb88
mov r8d, dword [rsp + 0x70]
cmp r8d, ecx
jl 0x14001fbb3
mov eax, dword [rsp + 0x74]
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rcx
or edx, 0xffffffff
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov r9d, edx
mov dword [rsp + 0x2f0], eax
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
test eax, eax
jne 0x14001fb30
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
lea r8, [rsp + 0x2f0]
mov edx, 3
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
cmp dword [rsp + 0x74], 0
je 0x14001fb5d
test eax, eax
jne 0x14001fb5d
test ebp, ebp
jne 0x14001fb5d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp ebx, esi
je 0x14001fbb7
mov eax, 2
cmp ebx, eax
jne 0x14001fb88
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [0x14012cfd8]
test eax, eax
jne 0x14001fb88
test ebp, ebp
jne 0x14001fb88
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
cmp dword [rsp + 0x98], 0
je 0x14001f89b
cmp dword [rsp + 0x88], 0
jne 0x14001f89b
mov edx, ebx
mov rcx, rdi
call fcn.14001f058
jmp 0x14001f89b
cmp ebx, esi
jne 0x14001fb6a
lea r8, [rsp + 0x100]
mov edx, esi
mov rcx, rdi
call qword [0x14012cfd0]
jmp 0x14001fb78
test esi, esi
je 0x14001fbe8
mov r8d, esi
lea rdx, [0x14010df0c]
lea rcx, [rsp + 0x120]
call qword [sym.imp.USER32.dll_wsprintfW]
mov rcx, qword [rsp + 0x2e0]
lea r8, [rsp + 0x120]
mov rdx, rbx
call fcn.14005ee18
mov eax, ebp
add rsp, 0x2b8
pop rdi
pop rsi
pop rbp
pop rbx
ret