Function at 0x1400699b0
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 [0x140183808]
xor rax, rsp
mov qword [rsp + 0xa80], rax
call fcn.140069cdc
xor r14d, r14d
test eax, eax
je 0x1400699f4
mov eax, 1
jmp 0x140069b26
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 0x140069b24
cmp eax, 0x104
je 0x140069b24
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 0x140069c8c
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 0x140069b55
xor edx, edx
call fcn.14008f094
lea ebp, [rdi + 1]
mov esi, r14d
mov edi, 0x400
test rax, rax
je 0x140069abe
test esi, esi
jne 0x140069b04
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.14008f094
inc ebp
test rax, rax
jne 0x140069a87
test esi, esi
jne 0x140069b04
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 0x140069b04
cmp eax, 0xc
je 0x140069ca8
cmp eax, 0x16
je 0x140069c9d
cmp eax, r15d
je 0x140069c9d
cmp eax, 0x50
jne 0x140069c92
xor r9d, r9d
lea r8, [0x140184858]
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.1401534b0
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, [0x140184858]
mov qword [rsp + 0x50], rax
lea rdx, [0x140184858]
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 0x140069c69
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop dword [rax + rax]
xor edx, edx
call fcn.14008f094
mov esi, r14d
mov ebp, 1
mov edi, 0x400
test rax, rax
je 0x140069c2a
test esi, esi
jne 0x140069b04
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.14008f094
inc ebp
test rax, rax
jne 0x140069beb
test esi, esi
jne 0x140069b04
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 0x140069b04
cmp eax, 0xc
je 0x140069cc9
cmp eax, 0x16
je 0x140069cbe
cmp eax, r15d
je 0x140069cbe
cmp eax, 0x50
jne 0x140069cb3
jmp 0x140069b04
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 0x1400699ea
call fcn.140153688
int3
mov ecx, 0x80004005
call fcn.140001b90
int3
mov ecx, 0x80070057
call fcn.140001b90
int3
mov ecx, 0x8007000e
call fcn.140001b90
int3
mov ecx, 0x80004005
call fcn.140001b90
int3
mov ecx, 0x80070057
call fcn.140001b90
int3
mov ecx, 0x8007000e
call fcn.140001b90
int3