Function at 0x14006504c
Capabilities:
Create service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbp
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xa90
mov rax, qword [0x14017a608]
xor rax, rsp
mov qword [rsp + 0xa80], rax
call fcn.140065378
xor r14d, r14d
test eax, eax
je 0x140065090
mov eax, 1
jmp 0x1400651c2
mov r8d, 0x104
lea rdx, [rsp + 0x72]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
nop dword [rax + rax]
test eax, eax
je 0x1400651c0
cmp eax, 0x104
je 0x1400651c0
lea ecx, [rax + 1]
mov r15d, 0x22
mov word [rsp + 0x70], r15w
mov word [rsp + rcx*2 + 0x70], r15w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x14006533e
mov word [rsp + rcx + 0x70], r14w
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
nop dword [rax + rax]
mov rdi, rax
test rax, rax
jne 0x1400651f1
xor edx, edx
call fcn.14008a7ec
lea ebp, [rdi + 1]
mov esi, r14d
mov edi, 0x400
test rax, rax
je 0x14006515a
test esi, esi
jne 0x1400651a0
mov r9d, edi
lea r8, [rsp + 0x280]
mov edx, 0xd80a
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
mov edx, ebp
mov esi, eax
inc ebp
call fcn.14008a7ec
test rax, rax
jne 0x140065123
test esi, esi
jne 0x1400651a0
lea r8, str.Could_not_open_Service_Manager
mov rdx, rdi
lea rcx, [rsp + 0x280]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
test eax, eax
je 0x1400651a0
cmp eax, 0xc
je 0x14006535a
cmp eax, 0x16
je 0x14006534f
cmp eax, r15d
je 0x14006534f
cmp eax, 0x50
jne 0x140065344
xor r9d, r9d
lea r8, [0x14017b3f8]
lea rdx, [rsp + 0x280]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
nop dword [rax + rax]
xor eax, eax
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.140001d90
lea r11, [rsp + 0xa90]
mov rbp, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
mov qword [rsp + 0x60], r14
lea rax, str.RPCSS
mov qword [rsp + 0x58], r14
lea r8, [0x14017b3f8]
mov qword [rsp + 0x50], rax
lea rdx, [0x14017b3f8]
mov qword [rsp + 0x48], r14
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], r14
mov r9d, 0xf01ff
mov qword [rsp + 0x38], rax
mov rcx, rdi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
nop dword [rax + rax]
test rax, rax
jne 0x140065305
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
xor edx, edx
call fcn.14008a7ec
mov esi, r14d
mov ebp, 1
mov edi, 0x400
test rax, rax
je 0x1400652c6
test esi, esi
jne 0x1400651a0
mov r9d, edi
lea r8, [rsp + 0x280]
mov edx, 0xd80b
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
nop dword [rax + rax]
mov edx, ebp
mov esi, eax
inc ebp
call fcn.14008a7ec
test rax, rax
jne 0x140065287
test esi, esi
jne 0x1400651a0
lea r8, str.Could_not_start_service
mov rdx, rdi
lea rcx, [rsp + 0x280]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
nop dword [rax + rax]
test eax, eax
je 0x1400651a0
cmp eax, 0xc
je 0x140065328
cmp eax, 0x16
je 0x140065365
cmp eax, r15d
je 0x140065365
cmp eax, 0x50
jne 0x140065333
jmp 0x1400651a0
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
jmp 0x140065086
mov ecx, 0x8007000e
call fcn.140003714
int3
mov ecx, 0x80004005
call fcn.140003714
int3
call fcn.140001f68
int3
mov ecx, 0x80004005
call fcn.140003714
int3
mov ecx, 0x80070057
call fcn.140003714
int3
mov ecx, 0x8007000e
call fcn.140003714
int3
mov ecx, 0x80070057
call fcn.140003714
int3