Function at 0x14001dcc8
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 [0x140117e78], rdi
jne 0x14001ddbd
lea rbx, [0x1400fb580]
lea r9, [rax + 0x18]
lea r8, [0x140117e78]
lea rcx, [0x1400fcc48]
mov rdx, rbx
mov qword [rax + 0x18], rdi
call fcn.1400536e0
lea r9, [rsp + 0x2f0]
lea r8, [0x140117e80]
lea rcx, [0x1400fcc38]
mov rdx, rbx
call fcn.1400536e0
lea r9, [rsp + 0x2f0]
lea r8, [0x140117e88]
lea rcx, [0x1400fcc20]
mov rdx, rbx
call fcn.1400536e0
lea r9, [rsp + 0x2f0]
lea r8, [0x140117e90]
lea rcx, [0x1400fcc10]
mov rdx, rbx
call fcn.1400536e0
lea r9, [rsp + 0x2f0]
lea r8, [0x140117e98]
lea rcx, [0x1400fcc00]
mov rdx, rbx
call fcn.1400536e0
lea r9, [rsp + 0x2f0]
lea r8, [0x140117ea0]
lea rcx, [0x1400fcbe8]
mov rdx, rbx
call fcn.1400536e0
cmp qword [0x140117e78], rdi
jne 0x14001ddbd
mov rax, 0xffffffff80004001
jmp 0x14001e7d8
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 + 0xb8], rdi
call fcn.1400dd9e0
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
mov dword [rsp + 0xc0], edi
mov dword [rsp + 0xa8], edi
mov dword [rsp + 0x90], edi
call qword [0x140117e78]
xor r10d, r10d
mov qword [rsp + 0xb0], rax
cmp rax, r10
je 0x14001e466
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 + 0x70], r10d
mov dword [rsp + 0x88], edi
mov dword [rsp + 0x78], ebx
lea edx, [rsi + 1]
mov dword [rsp + 0x98], 9
lea r11d, [rsi + 0xc]
mov dword [rsp + 0x80], 0x20
cmp cx, word [rax]
jne 0x14001e0fa
mov rbp, rdx
lea rdx, [rsp + 0x2e8]
lea rcx, [0x1400fcbe0]
mov r8d, 7
call fcn.14005c928
xor r10d, r10d
cmp al, r10b
je 0x14001deb8
mov r8d, esi
mov dword [rsp + 0x2f0], esi
jmp 0x14001e0c3
lea rdx, [rsp + 0x2e8]
lea rcx, [0x1400fcbd8]
mov r8d, 7
call fcn.14005c928
xor r10d, r10d
cmp al, r10b
je 0x14001def1
mov r8d, dword [rsp + 0x2f0]
mov r9d, esi
mov dword [rsp + 0x2f8], esi
jmp 0x14001e0cb
lea rdx, [rsp + 0x2e8]
lea rcx, [0x1400fcbd0]
mov r8d, 5
call fcn.14005c928
xor r10d, r10d
cmp al, r10b
je 0x14001df1f
mov dword [rsp + 0xa8], esi
jmp 0x14001e0bb
lea rdx, [rsp + 0x2e8]
lea rcx, [0x1400fcbc8]
mov r8d, 5
call fcn.14005c928
xor r10d, r10d
cmp al, r10b
je 0x14001df48
mov edi, ebp
jmp 0x14001e0bb
lea rdx, [rsp + 0x2e8]
lea rcx, [0x1400fcbc0]
mov r8d, 5
call fcn.14005c928
xor r10d, r10d
cmp al, r10b
je 0x14001df72
mov edi, r10d
jmp 0x14001e0bb
lea rdx, [rsp + 0x2e8]
lea rcx, [0x1400fcbb8]
mov r8d, 7
call fcn.14005c928
xor r10d, r10d
cmp al, r10b
je 0x14001df9d
lea edi, [r10 + 3]
jmp 0x14001e0bb
lea rdx, [rsp + 0x2e8]
lea rcx, [0x1400fcba8]
mov r8d, 9
call fcn.14005c928
xor r10d, r10d
cmp al, r10b
je 0x14001dfc8
lea edi, [r10 + 4]
jmp 0x14001e0bb
lea rdx, [rsp + 0x2e8]
lea rcx, [0x1400fcb98]
mov r8d, 0xd
call fcn.14005c928
xor r10d, r10d
cmp al, r10b
je 0x14001dff5
mov edi, ebp
mov dword [rsp + 0x70], esi
jmp 0x14001e0bb
lea rdx, [rsp + 0x2e8]
lea rcx, [0x1400fcb90]
mov r8d, 6
call fcn.14005c928
xor r10d, r10d
cmp al, r10b
je 0x14001e01e
mov ebx, ebp
jmp 0x14001e0bb
lea rdx, [rsp + 0x2e8]
lea rcx, [0x1400fcb88]
mov r8d, 5
call fcn.14005c928
xor r10d, r10d
cmp al, r10b
je 0x14001e044
mov ebx, esi
jmp 0x14001e0bb
lea rdx, [rsp + 0x2e8]
lea rcx, [0x1400fcb80]
mov r8d, 6
call fcn.14005c928
xor r10d, r10d
cmp al, r10b
je 0x14001e06b
or ebx, 0xffffffff
jmp 0x14001e0bb
mov rcx, qword [rsp + 0x2e8]
movzx eax, word [rcx]
cmp ax, r10w
je 0x14001e0ae
mov edx, 0xd
lea r8d, [rdx - 4]
lea r9d, [rdx + 0x13]
cmp r8w, ax
ja 0x14001e094
cmp ax, dx
jbe 0x14001e0ae
cmp r9w, ax
je 0x14001e0ae
add rcx, rbp
mov qword [rsp + 0x2e8], rcx
mov ax, word [rcx]
cmp ax, r10w
jne 0x14001e089
lea rcx, [rsp + 0x2e8]
call fcn.1400157dc
mov r8d, dword [rsp + 0x2f0]
mov r9d, dword [rsp + 0x2f8]
mov rax, qword [rsp + 0x2e8]
mov ecx, 0x2d
cmp cx, word [rax]
je 0x14001de87
mov ebp, dword [rsp + 0xa0]
mov dword [rsp + 0x88], edi
mov dword [rsp + 0x78], ebx
lea edx, [rcx - 0x2b]
lea r11d, [rcx - 0x20]
mov ecx, 0x3f
cmp cx, word [rax]
jne 0x14001e160
add rax, rdx
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x2e8], rax
movzx ecx, word [rax]
cmp cx, r10w
je 0x14001e151
cmp word [rsp + 0x98], cx
ja 0x14001e130
cmp cx, r11w
jbe 0x14001e13f
cmp word [rsp + 0x80], cx
je 0x14001e13f
add rax, rdx
jmp 0x14001e10f
cmp word [rax], r10w
je 0x14001e151
mov word [rax], r10w
add qword [rsp + 0x2e8], rdx
lea rcx, [rsp + 0x2e8]
call fcn.1400157dc
jmp 0x14001e177
cmp word [rax], 0x21
jne 0x14001e177
add rax, rdx
mov ebx, esi
mov qword [rsp + 0x2e8], rax
mov dword [rsp + 0x78], ebx
cmp r8d, r10d
je 0x14001e4b9
lea rcx, [rsp + 0xa0]
call fcn.14005a150
lea rcx, [rsp + 0x98]
call fcn.14005a150
lea rcx, [rsp + 0x78]
call fcn.14005a150
lea rcx, [rsp + 0xc8]
call fcn.14005a150
lea rcx, [rsp + 0x80]
call fcn.14005a150
lea rcx, [rsp + 0x88]
call fcn.14005a150
lea rcx, [rsp + 0xa8]
call fcn.14005a150
xor r9d, r9d
lea rdx, [rsp + 0xa0]
lea ebx, [r9 + 0x2c]
lea rcx, [rsp + 0x2e8]
mov dword [rsp + 0x70], 0x10
mov r8d, ebx
mov dword [rsp + 0x2f8], 3
mov dword [rsp + 0x2f0], esi
call fcn.14004bc74
lea rdx, [rsp + 0x78]
lea rcx, [rsp + 0x2e8]
xor r9d, r9d
mov r8d, ebx
call fcn.14004bc74
lea rdx, [rsp + 0x70]
lea rcx, [rsp + 0x2e8]
mov r8d, ebx
call fcn.14005e054
lea rdx, [rsp + 0x2f8]
lea rcx, [rsp + 0x2e8]
mov r8d, ebx
call fcn.14005e054
lea rdx, [rsp + 0x2f0]
lea rcx, [rsp + 0x2e8]
mov r8d, ebx
call fcn.14005e054
lea rdx, [rsp + 0x80]
lea rcx, [rsp + 0x2e8]
xor r9d, r9d
mov r8d, ebx
call fcn.14004bc74
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x2e8]
xor r9d, r9d
mov r8d, ebx
call fcn.14004bc74
lea rdx, [rsp + 0xa8]
lea rcx, [rsp + 0x2e8]
xor r9d, r9d
mov r8d, ebx
call fcn.14004bc74
lea rdx, [rsp + 0x98]
lea rcx, [rsp + 0x2e8]
xor r9d, r9d
mov r8d, ebx
call fcn.14004bc74
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.DLL_lstrlenW]
lea rcx, [rsp + 0x80]
movsxd rbx, eax
lea eax, [rbx + 2]
movsxd rdx, eax
call fcn.14005a250
mov rax, qword [rsp + 0x80]
xor edi, edi
mov word [rax + rbx*2 + 2], di
mov rax, qword [rsp + 0x80]
mov word [rax + rbx*2], di
mov rcx, qword [rsp + 0x88]
movzx eax, word [rcx]
neg ax
mov rax, qword [rsp + 0x98]
sbb rbx, rbx
and rbx, rcx
cmp word [rax], di
jne 0x14001e34f
mov rdx, qword [rsp + 0xa0]
lea rcx, [rsp + 0x98]
call fcn.140064d94
mov rcx, qword [rsp + 0x80]
mov qword [rsp + 0x2e8], rcx
cmp word [rcx], di
je 0x14001e396
mov edx, 2
mov eax, 0x2f
cmp ax, word [rcx]
jne 0x14001e37e
mov word [rcx], di
mov rcx, qword [rsp + 0x2e8]
add rcx, rdx
mov qword [rsp + 0x2e8], rcx
cmp word [rcx], di
jne 0x14001e369
mov rcx, qword [rsp + 0x80]
mov rax, qword [rsp + 0xa8]
mov r8, qword [rsp + 0x98]
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 + 0x78]
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov eax, dword [rsp + 0x2f0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x2f8]
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 + 0xa8]
mov rdi, rax
call fcn.140052160
lea rcx, [rsp + 0x88]
call fcn.140052160
lea rcx, [rsp + 0x80]
call fcn.140052160
lea rcx, [rsp + 0xc8]
call fcn.140052160
lea rcx, [rsp + 0x78]
call fcn.140052160
lea rcx, [rsp + 0x98]
call fcn.140052160
lea rcx, [rsp + 0xa0]
call fcn.140052160
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
test rdi, rdi
je 0x14001e47c
mov rcx, rdi
call qword [0x140117ea0]
mov rax, qword [rsp + 0xb0]
test rax, rax
je 0x14001e492
mov rcx, rax
call qword [0x140117ea0]
mov rbx, qword [rsp + 0xb8]
test rbx, rbx
je 0x14001e7d6
cmp dword [rsp + 0x90], 0
jne 0x14001e7a2
mov r8d, ebp
jmp 0x14001e7a9
cmp r9d, r10d
je 0x14001e56d
cmp ebx, r10d
jl 0x14001e512
lea rdx, [0x1400fcb70]
lea rcx, [rsp + 0x2f0]
call fcn.140064d14
mov rdx, qword [rsp + 0x2e8]
lea rcx, [rsp + 0x2f0]
call fcn.14005a28c
mov rdx, qword [rsp + 0x2f0]
mov rcx, qword [rsp + 0x2e0]
call fcn.14001dcc8
lea rcx, [rsp + 0x2f0]
call fcn.140052160
lea rcx, [rsp + 0xf8]
call fcn.14005a150
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 [0x140117e80]
mov rdi, rax
test rax, rax
je 0x14001e560
mov rcx, rax
call qword [sym.imp.ADVAPI32.DLL_DeleteService]
lea rcx, [rsp + 0xf8]
jmp 0x14001e461
lea rcx, [rsp + 0x2e8]
call fcn.1400157dc
mov rcx, qword [rsp + 0x2e8]
call fcn.140019d38
xor ecx, ecx
cmp qword [rsp + 0xb8], rcx
mov qword [rsp + 0x2e8], rax
setne cl
xor r8d, r8d
test edi, edi
lea edx, [r8 + 2]
mov dword [rsp + 0x90], 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 [0x140117e80]
xor ecx, ecx
mov rdi, rax
cmp rax, rcx
je 0x14001e466
cmp qword [rsp + 0xb8], rcx
je 0x14001e6ac
lea rax, [rsp + 0xc0]
lea r9d, [rcx + 0x24]
lea r8, [rsp + 0xd0]
xor edx, edx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [0x140117e88]
mov ebx, eax
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
test ebx, ebx
jne 0x14001e62f
mov ebx, dword [rsp + 0x78]
test eax, eax
je 0x14001e75e
mov esi, eax
jmp 0x14001e75e
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, [0x1400fcb00]
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 0x14001e75e
mov r8d, dword [rsp + 0x88]
cmp r8d, ecx
jl 0x14001e789
mov eax, dword [rsp + 0x70]
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 0x14001e706
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 + 0x70], 0
je 0x14001e733
test eax, eax
jne 0x14001e733
test ebp, ebp
jne 0x14001e733
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
cmp ebx, esi
je 0x14001e78d
mov eax, 2
cmp ebx, eax
jne 0x14001e75e
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [0x140117e98]
test eax, eax
jne 0x14001e75e
test ebp, ebp
jne 0x14001e75e
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ebp, eax
cmp dword [rsp + 0xa8], 0
je 0x14001e46e
cmp dword [rsp + 0x90], 0
jne 0x14001e46e
mov edx, ebx
mov rcx, rdi
call fcn.14001dc64
jmp 0x14001e46e
cmp ebx, esi
jne 0x14001e740
lea r8, [rsp + 0x100]
mov edx, esi
mov rcx, rdi
call qword [0x140117e90]
jmp 0x14001e74e
test esi, esi
je 0x14001e7be
mov r8d, esi
lea rdx, [0x1400f9d2c]
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.1400596c4
mov eax, ebp
add rsp, 0x2b8
pop rdi
pop rsi
pop rbp
pop rbx
ret