Function at 0x140064f18
Capabilities:
Create service
Start service

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0x100
mov rax, qword [0x140148f00]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rsi, rcx
xor ebx, ebx
mov r8b, bl
mov rdx, rcx
lea rcx, [rbp + 7]
call fcn.1400653ac
nop
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 7
cmova rcx, qword [rbp + 7]
mov rax, qword [rbp + 0x17]
lea rdx, [rax + rax]
lea r8, [rcx + rdx]
mov r9, r8
sar rdx, 1
mov r11w, 0x5c
mov r10w, 0x2f
cmp rdx, 2
jl 0x140065063
mov eax, dword [rcx]
and eax, 0xffffffdf
sub eax, 0x3a0041
cmp eax, 0x1a
jae 0x140064fa2
add rcx, 4
jmp 0x140065063
cmp word [rcx], r11w
je 0x140064fb2
cmp word [rcx], r10w
jne 0x140065063
cmp rdx, 4
jl 0x14006500a
cmp word [rcx + 6], r11w
je 0x140064fc6
cmp word [rcx + 6], r10w
jne 0x14006500a
cmp rdx, 4
je 0x140064fda
cmp word [rcx + 8], r11w
je 0x14006500a
cmp word [rcx + 8], r10w
je 0x14006500a
cmp word [rcx + 2], r11w
je 0x140064fe8
cmp word [rcx + 2], r10w
jne 0x140064ff6
cmp word [rcx + 4], 0x3f
je 0x140065004
cmp word [rcx + 4], 0x2e
je 0x140065004
cmp word [rcx + 2], 0x3f
jne 0x14006500a
cmp word [rcx + 4], 0x3f
jne 0x14006500a
add rcx, 6
jmp 0x140065063
mov rax, r8
sub rax, rcx
and rax, 0xfffffffffffffffe
cmp rax, 6
jl 0x140065063
cmp word [rcx + 2], r11w
je 0x140065028
cmp word [rcx + 2], r10w
jne 0x140065063
cmp word [rcx + 4], r11w
je 0x140065063
cmp word [rcx + 4], r10w
je 0x140065063
add rcx, 6
jmp 0x14006504c
cmp word [rcx], r11w
je 0x140065063
cmp word [rcx], r10w
je 0x140065063
add rcx, 2
cmp rcx, r8
jne 0x14006503c
jmp 0x140065063
cmp word [rcx], r11w
je 0x14006505f
cmp word [rcx], r10w
jne 0x140065068
add rcx, 2
cmp rcx, r8
jne 0x140065053
cmp rcx, r8
je 0x140065085
lea rax, [r9 - 2]
cmp word [rax], r11w
je 0x140065085
cmp word [rax], r10w
je 0x140065085
mov r9, rax
cmp rcx, rax
jne 0x14006506d
sub r8, r9
sar r8, 1
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
mov qword [rbp - 9], rbx
mov qword [rbp - 1], rbx
mov rdx, r9
lea rcx, [rbp - 0x19]
call fcn.14006526c
nop
lea rax, [rbp - 0x19]
cmp qword [rbp - 1], 7
cmova rax, qword [rbp - 0x19]
mov qword [rbp - 0x29], rax
mov rax, qword [rbp - 9]
mov qword [rbp - 0x21], rax
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
lea r8, [rbp - 0x39]
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0x27]
call fcn.140065360
nop
lea rcx, [rbp - 0x19]
call fcn.140062470
nop
lea rcx, [rbp + 7]
call fcn.140062470
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov rdi, rax
test rax, rax
jne 0x140065118
lea rcx, str.____Cant_open_service_manager_n
call fcn.140064be0
jmp 0x1400651eb
mov rcx, rdi
call fcn.140064c30
test al, al
jne 0x1400651eb
mov rcx, rdi
call fcn.140064dc4
test al, al
jne 0x1400651eb
cmp qword [rsi + 0x18], 0xf
jbe 0x140065142
mov rsi, qword [rsi]
lea r8, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0xf
cmova r8, qword [rbp + 0x27]
lea rdx, [rbp + 0x27]
cmova rdx, qword [rbp + 0x27]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x48], rbx
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x38], rsi
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 1
mov r9d, 0x10030
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov rsi, rax
test rax, rax
jne 0x1400651c5
lea rdx, [rbp + 0x27]
cmp qword [rbp + 0x3f], 0xf
cmova rdx, qword [rbp + 0x27]
lea r8d, [rax + 0x10]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov rsi, rax
test rax, rax
je 0x1400651e1
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
setne bl
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
nop
mov rdx, qword [rbp + 0x3f]
cmp rdx, 0xf
jbe 0x140065229
inc rdx
mov rcx, qword [rbp + 0x27]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140065224
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140065224
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.14010a9a0
mov al, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14010a620
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret