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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0xf8]
sub rsp, 0x1f0
mov qword [rbp - 0x80], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rdi
mov rax, qword [0x140001640]
xor rax, rsp
mov qword [rbp + 0xe0], rax
mov rdi, rdx
mov rbx, rcx
xor eax, eax
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x40], rax
xor edx, edx
xor ecx, ecx
mov r8d, 0xf003f
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.14005f2b0
nop
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x1400bf2bc
cmp qword [rcx], 0
je 0x1400bf2bc
xor eax, eax
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x30], rax
cmp qword [rdi + 0x18], 8
jb 0x1400bf15b
mov rdi, qword [rdi]
mov rax, qword [rbx + 0x18]
cmp rax, 8
jb 0x1400bf16a
mov r8, qword [rbx]
jmp 0x1400bf16d
mov r8, rbx
cmp rax, 8
jb 0x1400bf176
mov rbx, qword [rbx]
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rdi
mov dword [rsp + 0x30], 1
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], select
mov r9d, 0xf01ff
mov rdx, rbx
mov rcx, qword [rcx]
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdx, rax
lea rcx, [rbp - 0x38]
call fcn.14005f2b0
nop
mov rax, qword [rbp - 0x38]
test rax, rax
je 0x1400bf242
cmp qword [rax], 0
je 0x1400bf242
or edi, 0xffffffff
mov rbx, qword [rbp - 0x30]
test rbx, rbx
je 0x1400bf210
mov eax, edi
lock xadd dword [rbx + 8], eax
dec eax
jne 0x1400bf210
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
mov eax, edi
lock xadd dword [rbx + 0xc], eax
dec eax
jne 0x1400bf210
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
nop
mov rbx, qword [rbp - 0x40]
test rbx, rbx
je 0x1400bf23b
mov eax, edi
lock xadd dword [rbx + 8], eax
dec eax
jne 0x1400bf23b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax]
lock dec dword [rbx + 0xc]
jne 0x1400bf23b
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + ioctlsocket]
mov al, 1
jmp 0x1400bf340
movdqa xmm0, xmmword [0x140181290]
movdqa xmmword [rbp - 0x20], xmm0
movdqa xmm1, xmmword [0x140180e10]
movdqa xmmword [rbp - 0x10], xmm1
xorps xmm0, xmm0
movdqa xmmword [rbp], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x10], xmm1
movdqa xmmword [rbp + 0x20], xmm0
movdqa xmmword [rbp + 0x30], xmm1
movdqa xmmword [rbp + 0x40], xmm0
movdqa xmmword [rbp + 0x50], xmm1
mov r9b, 0xdf
lea r8, [0x140169048]
mov edx, 0x16
lea rcx, [rbp - 0x20]
call fcn.1400164b0
mov qword [rsp + 0x70], rax
lea rdx, [rsp + 0x70]
lea rcx, [rbp - 0x60]
call fcn.1400eefd4
lea rdx, [0x1401fe0e0]
lea rcx, [rbp - 0x60]
call fcn.1400ef340
nop
movdqa xmm0, xmmword [0x140181030]
movdqa xmmword [rbp + 0x60], xmm0
xorps xmm1, xmm1
movdqa xmmword [rbp + 0x70], xmm1
xorps xmm0, xmm0
movdqa xmmword [rbp + 0x80], xmm0
movdqa xmmword [rbp + 0x90], xmm1
movdqa xmmword [rbp + 0xa0], xmm0
movdqa xmmword [rbp + 0xb0], xmm1
movdqa xmmword [rbp + 0xc0], xmm0
movdqa xmmword [rbp + 0xd0], xmm1
mov r9b, 0x36
lea r8, [0x140169030]
mov edx, select
lea rcx, [rbp + 0x60]
call fcn.1400164b0
mov qword [rsp + 0x78], rax
lea rdx, [rsp + 0x78]
lea rcx, [rbp - 0x78]
call fcn.1400eefd4
lea rdx, [0x1401fe0e0]
lea rcx, [rbp - 0x78]
call fcn.1400ef340
nop
mov rcx, qword [rbp + 0xe0]
xor rcx, rsp
call fcn.1400efba0
lea r11, [rsp + 0x1f0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret