Function at 0x140062010
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.14006233c
xor r14d, r14d
test eax, eax
je 0x140062054
mov eax, 1
jmp 0x140062186
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 0x140062184
cmp eax, 0x104
je 0x140062184
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 0x1400622ec
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 0x1400621b5
xor edx, edx
call fcn.140087294
lea ebp, [rdi + 1]
mov esi, r14d
mov edi, 0x400
test rax, rax
je 0x14006211e
test esi, esi
jne 0x140062164
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
call fcn.140087294
inc ebp
test rax, rax
jne 0x1400620e7
test esi, esi
jne 0x140062164
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 0x140062164
cmp eax, 0xc
je 0x140062308
cmp eax, 0x16
je 0x1400622fd
cmp eax, r15d
je 0x1400622fd
cmp eax, 0x50
jne 0x1400622f2
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.14014b700
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 0x1400622c9
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
xor edx, edx
call fcn.140087294
mov esi, r14d
mov ebp, 1
mov edi, 0x400
test rax, rax
je 0x14006228a
test esi, esi
jne 0x140062164
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
call fcn.140087294
inc ebp
test rax, rax
jne 0x14006224b
test esi, esi
jne 0x140062164
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 0x140062164
cmp eax, 0xc
je 0x140062329
cmp eax, 0x16
je 0x14006231e
cmp eax, r15d
je 0x14006231e
cmp eax, 0x50
jne 0x140062313
jmp 0x140062164
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 0x14006204a
call fcn.14014b8d8
int3
mov ecx, 0x80004005
call fcn.140001950
int3
mov ecx, 0x80070057
call fcn.140001950
int3
mov ecx, 0x8007000e
call fcn.140001950
int3
mov ecx, 0x80004005
call fcn.140001950
int3
mov ecx, 0x80070057
call fcn.140001950
int3
mov ecx, 0x8007000e
call fcn.140001950
int3