Function at 0x140061398
Capabilities:
Create service

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0xa90
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rsp + 0xa80], rax
mov esi, 0xf003f
xor ebp, ebp
mov r8d, esi
xor edx, edx
xor ecx, ecx
mov edi, ebp
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
lea r14d, [rbp + 1]
mov rbx, rax
lea r15, [0x140179288]
test rax, rax
je 0x140061428
mov r8d, r14d
mov rdx, r15
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
test rax, rax
je 0x140061413
mov rcx, rax
mov edi, r14d
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test edi, edi
je 0x140061428
mov eax, r14d
jmp 0x140061533
mov ebx, 0x104
lea rdx, [rsp + 0x72]
mov r8d, ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x140061531
cmp eax, ebx
je 0x140061531
lea ecx, [rax + 1]
mov r12d, 0x22
mov word [rsp + 0x70], r12w
mov word [rsp + rcx*2 + 0x70], r12w
lea ecx, [rax + 2]
add rcx, rcx
cmp rcx, 0x20c
jae 0x1400616ae
mov word [rsp + rcx + 0x70], bp
mov r8d, esi
xor ecx, ecx
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140061565
xor edx, edx
call fcn.140085e70
mov edi, ebp
mov esi, r14d
mov ebx, 0x400
test rax, rax
je 0x1400614db
test edi, edi
jne 0x14006151b
mov r9d, ebx
lea r8, [rsp + 0x280]
mov edx, 0xd80a
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
mov edx, esi
mov edi, eax
call fcn.140085e70
add esi, r14d
test rax, rax
jne 0x1400614a9
test edi, edi
jne 0x14006151b
lea r8, str.Could_not_open_Service_Manager
mov rdx, rbx
lea rcx, [rsp + 0x280]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
test eax, eax
je 0x14006151b
cmp eax, 0xc
je 0x140061682
cmp eax, 0x16
je 0x140061677
cmp eax, r12d
je 0x140061677
cmp eax, 0x50
jne 0x14006166c
xor r9d, r9d
lea rdx, [rsp + 0x280]
mov r8, r15
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
mov rcx, qword [rsp + 0xa80]
xor rcx, rsp
call fcn.1401474d0
lea r11, [rsp + 0xa90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r12
ret
mov qword [rsp + 0x60], rbp
lea rax, str.RPCSS
mov qword [rsp + 0x58], rbp
mov r9d, 0xf01ff
mov qword [rsp + 0x50], rax
mov r8, r15
mov qword [rsp + 0x48], rbp
lea rax, [rsp + 0x70]
mov qword [rsp + 0x40], rbp
mov rdx, r15
mov qword [rsp + 0x38], rax
mov rcx, rbx
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
jne 0x140061655
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor edx, edx
call fcn.140085e70
mov edi, ebp
mov esi, r14d
mov ebx, 0x400
test rax, rax
je 0x14006161b
test edi, edi
jne 0x14006151b
mov r9d, ebx
lea r8, [rsp + 0x280]
mov edx, 0xd80b
mov rcx, rax
call qword [sym.imp.USER32.dll_LoadStringW]
mov edx, esi
mov edi, eax
call fcn.140085e70
add esi, r14d
test rax, rax
jne 0x1400615e1
test edi, edi
jne 0x14006151b
lea r8, str.Could_not_start_service
mov rdx, rbx
lea rcx, [rsp + 0x280]
call qword [sym.imp.msvcrt.dll_wcscpy_s]
test eax, eax
je 0x14006151b
cmp eax, 0xc
je 0x1400616a3
cmp eax, 0x16
je 0x140061698
cmp eax, r12d
je 0x140061698
cmp eax, 0x50
je 0x14006151b
jmp 0x14006168d
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140061420
mov ecx, 0x80004005
call fcn.140001b20
int3
mov ecx, 0x80070057
call fcn.140001b20
int3
mov ecx, 0x8007000e
call fcn.140001b20
int3
mov ecx, 0x80004005
call fcn.140001b20
int3
mov ecx, 0x80070057
call fcn.140001b20
int3
mov ecx, 0x8007000e
call fcn.140001b20
int3
call fcn.140147808
int3