Function at 0x140001690
Capabilities:
Create service
Start service

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x210]
sub rsp, 0x310
mov rax, qword [0x140006008]
xor rax, rsp
mov qword [rbp + 0x200], rax
mov r14, rcx
xor r15d, r15d
mov qword [rsp + 0x70], r15
movdqa xmm0, xmmword [0x1400043f0]
movdqu xmmword [rbp - 0x80], xmm0
mov word [rsp + 0x70], r15w
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r15w
cmp qword [rcx + 0x18], 0x10
jb 0x140001701
mov rcx, qword [rcx]
lea rdx, [rbp - 0x10]
call qword [sym.imp.MSVCP140.dll__To_wide]
test eax, eax
jne 0x14000171d
lea rcx, str.invalid_char_filename_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
lea rax, [rbp - 0x10]
mov rsi, 0xffffffffffffffff
mov rdx, rsi
nop dword [rax + rax]
inc rdx
cmp word [rax + rdx*2], 0
jne 0x140001730
mov rcx, qword [rbp - 0x40]
mov r8, qword [rbp - 0x38]
mov rax, r8
sub rax, rcx
cmp rdx, rax
ja 0x14000177e
lea rdi, [rcx + rdx]
mov qword [rbp - 0x40], rdi
lea rbx, [rbp - 0x50]
cmp r8, 8
cmovae rbx, qword [rbp - 0x50]
lea rcx, [rbx + rcx*2]
lea r8, [rdx + rdx]
lea rdx, [rbp - 0x10]
call sub.VCRUNTIME140.dll_memmove
mov word [rbx + rdi*2], r15w
lea rax, [rbp - 0x50]
jmp 0x140001790
mov qword [rsp + 0x20], rdx
lea r9, [rbp - 0x10]
lea rcx, [rbp - 0x50]
call fcn.140002890
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400024e0
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x1400017e1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400017dc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400017dc
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002f5c
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r15w
lea rdx, [rbp - 0x70]
lea rcx, [rsp + 0x70]
call fcn.140001230
nop
mov qword [rbp - 0x50], r15
mov qword [rbp - 0x40], r15
mov qword [rbp - 0x38], 0xf
mov byte [rbp - 0x50], 0
cmp qword [rax + 0x18], 8
jb 0x14000181f
mov rax, qword [rax]
lea rdx, [rbp - 0x10]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll__To_byte]
test eax, eax
jne 0x14000183e
lea rcx, str.invalid_wchar_t_filename_argument
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xinvalid_argument_char_const____ptr64_]
int3
lea rax, [rbp - 0x10]
inc rsi
cmp byte [rax + rsi], 0
jne 0x140001842
mov rcx, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x38]
mov rax, rdx
sub rax, rcx
cmp rsi, rax
ja 0x14000188f
lea rax, [rcx + rsi]
mov qword [rbp - 0x40], rax
lea rbx, [rbp - 0x50]
cmp rdx, 0x10
cmovae rbx, qword [rbp - 0x50]
add rbx, rcx
mov r8, rsi
lea rdx, [rbp - 0x10]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
mov byte [rbx + rsi], 0
lea rax, [rbp - 0x50]
jmp 0x1400018a4
mov qword [rsp + 0x20], rsi
lea r9, [rbp - 0x10]
mov rdx, rsi
lea rcx, [rbp - 0x50]
call fcn.140002c10
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x30], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 0x20], xmm1
mov qword [rax + 0x10], r15
mov qword [rax + 0x18], 0xf
mov byte [rax], 0
mov rdx, qword [rbp - 0x38]
cmp rdx, 0x10
jb 0x140001901
inc rdx
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400018fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1400018fb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002f5c
nop
mov rdx, qword [rbp - 0x58]
cmp rdx, 8
jb 0x140001944
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000193f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14000193f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002f5c
movdqa xmm0, xmmword [0x1400043f0]
movdqu xmmword [rbp - 0x60], xmm0
mov word [rbp - 0x70], r15w
mov rdx, qword [rbp - 0x78]
cmp rdx, 8
jb 0x14000199a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001995
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001995
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140002f5c
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rbx, rax
test rax, rax
je 0x140001a4b
cmp qword [r14 + 0x18], 0x10
jb 0x1400019be
mov r14, qword [r14]
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae r8, qword [rbp - 0x30]
lea rdx, [rbp - 0x30]
cmovae rdx, qword [rbp - 0x30]
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x40], r15
mov qword [rsp + 0x38], r14
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0x10030
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rdi, rax
test rax, rax
jne 0x140001a87
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rdx, qword [rbp - 0x30]
lea r8d, [rax + 0x10]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rdi, rax
test rax, rax
jne 0x140001a87
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor sil, sil
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x140001ab4
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140001aaf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001aaf
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
xor r8d, r8d
xor edx, edx
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
setne sil
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140001a4e
call fcn.140002f5c
movzx eax, sil
mov rcx, qword [rbp + 0x200]
xor rcx, rsp
call fcn.140002f00
lea r11, [rsp + 0x310]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret