Function at 0x140021480
Capabilities:
Delete registry key
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rax - 0x5f]
sub rsp, 0x100
movaps xmmword [rax - 0x28], xmm6
mov rax, qword [0x1401be080]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rdi, rcx
xor ebx, ebx
lea rcx, [0x14018c7f0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r14, rax
test rax, rax
je 0x1400217d2
mov rcx, qword [rdi + 0x10]
movabs rsi, 0x7ffffffffffffffe
mov rax, rsi
sub rax, rcx
cmp rax, 0x34
jb 0x140021801
mov rax, rdi
cmp qword [rdi + 0x18], 7
jbe 0x1400214f5
mov rax, qword [rdi]
mov qword [rsp + 0x30], rcx
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], gethostname
lea r9, str.RegistryMachineSystemCurrentControlSetServices_
lea rcx, [rbp - 1]
call fcn.14001efb0
nop
lea rdx, [rbp - 1]
cmp qword [rbp + 0x17], 7
cmova rdx, qword [rbp - 1]
lea rcx, [rbp + 0x1f]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rax, qword [rdi + 0x10]
sub rsi, rax
cmp rsi, 0x22
jb 0x1400217fb
cmp qword [rdi + 0x18], 7
jbe 0x14002154c
mov rdi, qword [rdi]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], Ordinal_41
lea r9, str.SYSTEMCurrentControlSetServices_
lea rcx, [rbp - 0x21]
call fcn.14001efb0
nop
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rdx, qword [rbp - 0x21]
lea r8, [rbp - 0x29]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
je 0x14002159e
cmp eax, 2
sete bl
jmp 0x1400217bc
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdx, str.NtUnloadDriver
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [rbp + 0x1f]
call rax
test eax, eax
je 0x14002179b
movups xmm0, xmmword [0x14019a4e8]
movups xmmword [rbp - 0x79], xmm0
movups xmm1, xmmword [0x14019a4f8]
movups xmmword [rbp - 0x69], xmm1
movups xmm0, xmmword [0x14019a508]
movups xmmword [rbp - 0x59], xmm0
movsd xmm0, qword [0x14019a518]
movsd qword [rbp - 0x49], xmm0
mov eax, dword [0x14019a520]
mov dword [rbp - 0x41], eax
cmp dword [reloc.WS2_32.dll_accept], 2
jl 0x140021722
movdqa xmm4, xmmword [0x14019e450]
movdqa xmm3, xmmword [0x14019e750]
movdqa xmm5, xmmword [0x14019e480]
movdqa xmm0, xmmword [str.2222222222222222__54kg7_4_g5G_._g3_g__3g7y_7y_1_y:1_8_y88_846_5uy_5_8_Y_805_y_6y___y]
movdqa xmmword [rbp - 0x39], xmm0
lea rcx, [rbp - 0x75]
movdqa xmm6, xmmword [0x14019e4e0]
mov edx, dword [rbp - 0x39]
nop
movd xmm2, ebx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
xorps xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rbx + 4]
movd xmm2, eax
pshufd xmm2, xmm2, 0
paddd xmm2, xmm4
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm3
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm3
shufps xmm1, xmm0, 0xdd
psrad xmm1, 4
movdqa xmm0, xmm1
psrld xmm0, 0x1f
paddd xmm0, xmm1
pmulld xmm0, xmm5
psubd xmm2, xmm0
andps xmm2, xmm6
packuswb xmm2, xmm2
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
xorps xmm2, xmm0
movd dword [rcx], xmm2
add ebx, 8
lea rcx, [rcx + 8]
cmp ebx, 0x38
jl 0x140021640
cmp ebx, 0x3c
jge 0x14002175c
movsxd rax, ebx
lea r8, [rbp - 0x79]
add r8, rax
nop dword [rax]
mov eax, 0x5397829d
imul ebx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul edx, eax, 0x31
movzx eax, bl
sub al, dl
add al, 0x32
xor byte [r8], al
inc ebx
lea r8, [r8 + 1]
cmp ebx, 0x3c
jl 0x140021730
lea rdx, [rbp - 0x79]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t___std::wcout]
call fcn.14001e850
lea rdx, [0x14001eab0]
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]
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rdx, qword [rbp - 0x21]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
xor bl, bl
jmp 0x1400217bc
lea rdx, [rbp - 0x21]
cmp qword [rbp - 9], 7
cmova rdx, qword [rbp - 0x21]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegDeleteTreeW]
test eax, eax
jne 0x140021797
mov bl, 1
lea rcx, [rbp - 0x21]
call fcn.14000ded0
nop
lea rcx, [rbp - 1]
call fcn.14000ded0
movzx eax, bl
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140158b30
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
call fcn.1400027c0
nop
call fcn.1400027c0
int3