Function at 0x140003950
Capabilities:
Create service
Persist via windows service

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x130
lea rbp, [rsp + 0x80]
mov qword [rbp + 0xa8], 0xfffffffffffffffe
lea rbx, str.my_system_service_INFO__Starting_service_control_dispatcher..._n
mov qword [rbp + 8], rbx
mov qword [rbp + 0x10], 0x11
mov r14, qword [0x1400de040]
mov rax, qword [r14]
cmp rax, 3
jb 0x140003a25
lea rax, [rbp + 8]
mov qword [rbp + 0x18], rax
lea rax, [0x140018590]
mov qword [rbp + 0x20], rax
lea rax, str._INFO__Starting_service_installation_for:
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], 1
mov qword [rbp + 0x98], 0
lea rax, [rbp + 0x18]
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x90], 1
lea rcx, [0x1400ada38]
call fcn.14001b160
lea rcx, str.elevate_INFO__Service_binary_path:
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], 7
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x78]
lea r8, [rbp + 0x50]
mov edx, 3
xor r9d, r9d
call fcn.14001b070
lea rcx, [rbp + 0x78]
call fcn.140082bf0
mov rax, qword [rbp + 0x78]
mov rcx, qword [rbp + 0x80]
mov rdx, rax
neg rdx
jno 0x140003a4b
call fcn.140077dc0
jmp 0x140003dc7
movups xmm0, xmmword [rbp + 0x88]
movups xmmword [rbp + 0x28], xmm0
mov qword [rbp + 0x18], rax
mov qword [rbp + 0x20], rcx
mov rax, qword [r14]
cmp rax, 3
jb 0x140003af9
lea rax, [rbp + 0x18]
mov qword [rbp + 0x38], rax
lea rax, case.0x140088cd4.26
mov qword [rbp + 0x40], rax
lea rax, [0x1400ada78]
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], 1
mov qword [rbp + 0x98], 0
lea rax, [rbp + 0x38]
mov qword [rbp + 0x88], rax
mov qword [rbp + 0x90], 1
lea rcx, [0x1400ada88]
call fcn.14001b160
lea rcx, str.elevate_INFO__Service_binary_path:
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], 7
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x78]
lea r8, [rbp + 0x50]
mov edx, 3
xor r9d, r9d
call fcn.14001b070
lea rcx, [rbp + 0x18]
call fcn.1400997d0
add rdx, rax
mov qword [rbp - 0x18], rax
mov qword [rbp - 0x10], rdx
mov word [rbp - 8], 0
mov dword [rbp], 1
lea rcx, [rbp + 0x38]
lea rdx, [rbp - 0x18]
call fcn.1400115f0
xor ecx, ecx
xor edx, edx
mov r8d, 2
call qword [sym.imp.advapi32.dll_OpenSCManagerW]
mov rsi, rax
inc rax
cmp rax, 1
ja 0x140003b53
call fcn.140077b00
test edx, edx
jne 0x140003c56
mov rsi, rax
mov rax, qword [rbp + 8]
mov rcx, qword [rbp + 0x10]
add rcx, rax
mov qword [rbp + 0x78], rax
mov qword [rbp + 0x80], rcx
mov word [rbp + 0x88], 0
mov dword [rbp + 0x90], 1
lea rcx, [rbp + 0x50]
lea rdx, [rbp + 0x78]
call fcn.1400115f0
mov rdx, qword [rbp + 0x50]
mov rdi, qword [rbp + 0x58]
test rdx, rdx
je 0x140003ba7
add rdx, rdx
mov r8d, 2
mov rcx, rdi
call fcn.140018860
mov qword [rbp + 0x78], rbx
lea rax, [0x1400adbd9]
mov qword [rbp + 0x80], rax
mov word [rbp + 0x88], 0
mov dword [rbp + 0x90], 1
lea rcx, [rbp + 0x50]
lea rdx, [rbp + 0x78]
call fcn.1400115f0
mov rdx, qword [rbp + 0x50]
mov rbx, qword [rbp + 0x58]
test rdx, rdx
je 0x140003bf7
add rdx, rdx
mov r8d, 2
mov rcx, rbx
call fcn.140018860
mov rax, qword [rbp + 0x40]
xorps xmm0, xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x60], 0
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x110
mov rcx, rsi
mov rdx, rdi
mov r8, rbx
mov r9d, 0xf01ff
call qword [sym.imp.advapi32.dll_CreateServiceW]
lea rcx, [rax + 1]
cmp rcx, 1
ja 0x140003cac
call fcn.140077b00
test edx, edx
je 0x140003cac
mov r9, qword [rbp + 0x38]
test r9, r9
je 0x140003c7e
mov rcx, qword [rbp + 0x40]
add r9, r9
mov r8d, 2
mov esi, edx
mov rdx, r9
mov rdi, rax
call fcn.140018860
mov edx, esi
mov rax, rdi
mov r9, qword [rbp + 0x18]
test r9, r9
je 0x140003dc7
mov rcx, qword [rbp + 0x20]
mov r8d, 1
mov esi, edx
mov rdx, r9
mov rdi, rax
call fcn.140018860
mov edx, esi
mov rax, rdi
jmp 0x140003dc7
mov rcx, qword [r14]
cmp rcx, 3
jb 0x140003d2a
lea rcx, str._INFO__Service_created_successfully.
mov qword [rbp + 0x78], rcx
mov qword [rbp + 0x80], 1
mov qword [rbp + 0x88], 8
xorps xmm0, xmm0
movups xmmword [rbp + 0x90], xmm0
lea rcx, [0x1400adad8]
mov rdi, rax
call fcn.14001b160
lea rcx, str.elevate_INFO__Service_binary_path:
mov qword [rbp + 0x50], rcx
mov qword [rbp + 0x58], 7
mov qword [rbp + 0x60], rcx
mov qword [rbp + 0x68], 7
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x78]
lea r8, [rbp + 0x50]
mov edx, 3
xor r9d, r9d
call fcn.14001b070
mov rax, rdi
mov rcx, rax
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
test eax, eax
jne 0x140003d5e
call fcn.140077b00
mov qword [rbp + 0x78], rax
mov dword [rbp + 0x80], edx
test edx, edx
sete cl
test rax, rax
sete al
or al, cl
jne 0x140003d5e
lea rcx, [rbp + 0x78]
call fcn.140077590
mov rcx, rsi
call qword [sym.imp.advapi32.dll_CloseServiceHandle]
test eax, eax
jne 0x140003d92
call fcn.140077b00
mov qword [rbp + 0x78], rax
mov dword [rbp + 0x80], edx
test edx, edx
sete cl
test rax, rax
sete al
or al, cl
jne 0x140003d92
lea rcx, [rbp + 0x78]
call fcn.140077590
mov rdx, qword [rbp + 0x38]
test rdx, rdx
je 0x140003dad
mov rcx, qword [rbp + 0x40]
add rdx, rdx
mov r8d, 2
call fcn.140018860
mov rdx, qword [rbp + 0x18]
test rdx, rdx
je 0x140003dc5
mov rcx, qword [rbp + 0x20]
mov r8d, 1
call fcn.140018860
xor edx, edx
add rsp, 0x130
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret