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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xf0
mov rbx, rcx
xor edi, edi
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rsi, rax
test rax, rax
je 0x14002e3e2
mov qword [rsp + 0x60], rdi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], rdi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x38], rbx
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
mov r9d, 0xf01ff
lea r8, str.Switch_Native_Service
lea rdx, str.Switch_Native
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
test rax, rax
je 0x14002e2bc
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14002e4e5
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
je 0x14002e3d4
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x27], xmm1
mov r8d, 6
lea rdx, [0x14006e87c]
lea rcx, [rbp + 0x17]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp + 0x17]
lea rdx, [rbp - 0x21]
mov rcx, rax
call fcn.140009620
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x29], eax
mov qword [rbp - 9], rdi
mov qword [rbp - 0x11], rdi
mov qword [rbp - 1], rdi
lea rax, str.CreateService_failed___
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], 0x19
movups xmm0, xmmword [rbp - 0x11]
movaps xmmword [rbp + 0x37], xmm0
movsd xmm1, qword [rbp - 1]
movsd qword [rbp + 0x47], xmm1
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 7]
lea rdx, [rbp + 0x37]
mov rcx, qword [rbp - 0x21]
call fcn.140019af0
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14002e399
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14002e399
mov rbx, qword [rbp - 0x19]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14002e399
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x14002e3d4
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e3cf
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e4fe
call fcn.140038e94
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x14002e4e5
xorps xmm0, xmm0
movups xmmword [rbp + 0x17], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x27], xmm1
mov r8d, 6
lea rdx, [0x14006e87c]
lea rcx, [rbp + 0x17]
call fcn.140010590
nop
call fcn.140009730
lea r8, [rbp + 0x17]
lea rdx, [rbp - 0x21]
mov rcx, rax
call fcn.140009620
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp - 0x29], eax
mov qword [rbp - 9], rdi
mov qword [rbp - 0x11], rdi
mov qword [rbp - 1], rdi
lea rax, str.OpenSCManager_failed___
mov qword [rbp + 7], rax
mov qword [rbp + 0xf], 0x19
movups xmm0, xmmword [rbp - 0x11]
movaps xmmword [rbp + 0x37], xmm0
movsd xmm1, qword [rbp - 1]
movsd qword [rbp + 0x47], xmm1
lea rax, [rbp - 0x29]
mov qword [rsp + 0x20], rax
lea r9, [rbp + 7]
lea rdx, [rbp + 0x37]
mov rcx, qword [rbp - 0x21]
call fcn.140019af0
nop
mov rcx, qword [rbp - 0x19]
test rcx, rcx
je 0x14002e4ae
mov edi, 0xffffffff
mov eax, edi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14002e4ae
mov rbx, qword [rbp - 0x19]
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock xadd dword [rbx + 0xc], edi
cmp edi, 1
jne 0x14002e4ae
mov rcx, qword [rbp - 0x19]
mov rax, qword [rcx]
call qword [rax + 8]
nop
mov rdx, qword [rbp + 0x2f]
cmp rdx, 0xf
jbe 0x14002e4e5
inc rdx
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002e4e0
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14002e4fe
call fcn.140038e94
lea r11, [rsp + 0xf0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140042e3c
int3