Function at 0x140004ac0
Capabilities:
Create service
Persist via windows 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 [0x1400ba580]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rcx
xor esi, esi
mov dword [rbp - 0x35], esi
xor edx, edx
xor ecx, ecx
lea r8d, [rsi + 2]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov qword [rdi], rax
test rax, rax
jne 0x140004b0e
xor al, al
jmp 0x140004d03
mov dword [rbp - 0x29], esi
call fcn.140002de0
mov qword [rbp - 0x21], rax
lea rdx, [rbp - 0x29]
lea rcx, [rbp + 0x27]
call fcn.140005a20
mov dword [rbp - 0x35], 1
lea rdx, [rbp - 0x29]
cmp dword [rbp - 0x29], esi
jne 0x140004d2e
lea rax, [rbp + 0x27]
mov ebx, 7
cmp qword [rbp + 0x3f], rbx
cmova rax, qword [rbp + 0x27]
mov qword [rbp - 0x29], rax
mov rax, qword [rbp + 0x37]
mov qword [rbp - 0x21], rax
movaps xmm0, xmmword [rbp - 0x29]
movdqa xmmword [rbp - 0x29], xmm0
lea r8, [rbp - 0x39]
lea rcx, [rbp + 7]
call fcn.140002c78
mov dword [rbp - 0x35], ebx
mov r8d, ebx
lea rdx, str._r2.sys
lea rcx, [rbp + 7]
call fcn.1400058b4
mov rbx, rax
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
mov r8d, 0x20
mov rdx, rax
lea rcx, [rbp - 0x19]
call fcn.14005f6d0
mov qword [rbx + 0x10], rsi
mov qword [rbx + 0x18], 0xf
mov byte [rbx], sil
lea rax, [rbp - 0x19]
cmp qword [rbp - 1], 0xf
cmova rax, qword [rbp - 0x19]
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 1
mov r9d, 0xf003f
lea r8, [0x140064bd0]
lea rdx, [0x140064bd0]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov qword [rdi + 8], rax
mov ebx, 0x1000
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x140004c59
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, rbx
jb 0x140004c54
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004d3b
call fcn.140035d74
movdqa xmm0, xmmword [0x1400651d0]
movdqu xmmword [rbp - 9], xmm0
mov byte [rbp - 0x19], sil
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x140004ca9
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, rbx
jb 0x140004c9c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140004d28
call fcn.140035d74
movdqa xmm0, xmmword [0x1400651d0]
movdqu xmmword [rbp + 0x17], xmm0
mov byte [rbp + 7], sil
lea rcx, [rbp + 0x27]
call fcn.140002504
cmp qword [rdi + 8], rsi
jne 0x140004cee
mov r8d, 0xf01ff
lea rdx, [0x140064bd0]
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov qword [rdi + 8], rax
test rax, rax
jne 0x140004cee
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x140004b07
mov rcx, qword [rdi]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rcx, qword [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, 1
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.140035e10
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
call fcn.14003bd24
nop
lea rcx, str.current_path__
call fcn.140005450
nop
call fcn.14003bd24
int3