Function at 0x7ff794c41f10
Capabilities:
Encode data using xor
Hash data using fnv
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xd30]
sub rsp, 0xe30
mov rax, qword [0x7ff794c70008]
xor rax, rsp
mov qword [rbp + 0xd20], rax
xorps xmm0, xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x78], xmm1
xor r14d, r14d
mov qword [rbp - 0x78], r14
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
lea rdx, [rbp + 0x20]
call fcn.7ff794c41680
nop
mov rdi, qword [rbp + 0x28]
mov rbx, qword [rdi]
mov rcx, qword [rbp - 0x80]
cmp rbx, rdi
je 0x7ff794c41fc1
lea r8, [rbx + 0x10]
cmp rcx, qword [rbp - 0x78]
je 0x7ff794c41fa5
mov rdx, r8
call fcn.7ff794c432c0
mov rcx, qword [rbp - 0x80]
add rcx, 0x20
mov qword [rbp - 0x80], rcx
jmp 0x7ff794c41fb6
mov rdx, rcx
lea rcx, [rsp + 0x78]
call fcn.7ff794c43af0
mov rcx, qword [rbp - 0x80]
mov rax, qword [rbx]
mov rbx, rax
cmp rax, rdi
jne 0x7ff794c41f85
mov edx, r14d
mov dword [rsp + 0x44], edx
mov rax, qword [rsp + 0x78]
cmp rax, rcx
je 0x7ff794c41fe1
inc edx
add rax, 0x20
cmp rax, rcx
jne 0x7ff794c41fd2
mov dword [rsp + 0x44], edx
mov ebx, 1
mov dword [rsp + 0x40], ebx
lea rdx, [0x7ff794c65b88]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.7ff794c438e0
mov r9, rax
mov rdx, r14
mov rcx, qword [rbp - 0x80]
mov r8, qword [rsp + 0x78]
sub rcx, r8
sar rcx, 5
test rcx, rcx
je 0x7ff794c42915
mov edi, ebx
mov qword [rsp + 0x50], rbx
nop dword [rax]
nop word [rax + rax]
mov dword [rsp + 0x48], ebx
shl rdx, 5
add rdx, r8
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x7ff794c42049
mov rdx, qword [rdx]
mov rcx, r9
call fcn.7ff794c44660
lea rdx, [0x7ff794c43ab0]
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___class_std::basic_istream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_istream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x7ff794c65b98]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.7ff794c438e0
mov qword [rsp + 0x60], rax
lea r13, [rdi - 1]
mov rcx, qword [rbp - 0x80]
mov rdx, qword [rsp + 0x78]
sub rcx, rdx
sar rcx, 5
cmp rcx, r13
jbe 0x7ff794c42915
mov r12, r13
shl r12, 5
lea rsi, [rdx + r12]
mov rdi, qword [rsi + 0x10]
mov r8, rsi
mov r15, qword [rsi + 0x18]
cmp r15, 0x10
jb 0x7ff794c420b5
mov r8, qword [rsi]
movabs rcx, 0xcbf29ce484222325
mov rdx, r14
test rdi, rdi
je 0x7ff794c420e9
movabs r15, 0x100000001b3
movzx eax, byte [rdx + r8]
xor rcx, rax
imul rcx, r15
inc rdx
cmp rdx, rdi
jb 0x7ff794c420d1
mov r15, qword [rsi + 0x18]
and rcx, qword [rbp + 0x50]
add rcx, rcx
mov rax, qword [rbp + 0x38]
mov rbx, qword [rax + rcx*8 + 8]
cmp rbx, qword [rbp + 0x28]
je 0x7ff794c42901
mov r14, qword [rax + rcx*8]
nop word [rax + rax]
lea rdx, [rbx + 0x10]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x7ff794c42122
mov rdx, qword [rdx]
mov rcx, rsi
cmp r15, 0x10
jb 0x7ff794c4212e
mov rcx, qword [rsi]
cmp rdi, rax
jne 0x7ff794c4213f
mov r8, rdi
call sub.VCRUNTIME140.dll_memcmp
test eax, eax
je 0x7ff794c4214e
cmp rbx, r14
je 0x7ff794c42901
mov rbx, qword [rbx + 8]
jmp 0x7ff794c42110
test rbx, rbx
je 0x7ff794c42901
lea rdx, [rbx + 0x30]
mov r8, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 0x10
jb 0x7ff794c42169
mov rdx, qword [rdx]
mov rcx, qword [rsp + 0x60]
call fcn.7ff794c44660
lea rdx, [0x7ff794c43ab0]
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___class_std::basic_istream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_istream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov rax, qword [rbp - 0x80]
mov rcx, qword [rsp + 0x78]
sub rax, rcx
sar rax, 5
cmp rax, r13
jbe 0x7ff794c42915
lea rdx, [rcx + r12]
cmp qword [rdx + 0x18], 0x10
jb 0x7ff794c421b3
mov rbx, qword [rdx]
mov rdi, rbx
add rbx, qword [rdx + 0x10]
jmp 0x7ff794c421bd
mov rbx, qword [rdx + 0x10]
add rbx, rdx
mov rdi, rdx
xor r14d, r14d
mov qword [rbp - 0x30], r14
mov ecx, r14d
mov qword [rbp - 0x20], rcx
mov r8d, 7
mov qword [rbp - 0x18], r8
mov word [rbp - 0x30], r14w
mov rdx, rbx
sub rdx, rdi
cmp rdx, r8
jbe 0x7ff794c421f9
lea rcx, [rbp - 0x30]
call fcn.7ff794c44820
mov ecx, r14d
mov qword [rbp - 0x20], rcx
mov r8, qword [rbp - 0x18]
lea rax, [rbp - 0x30]
mov qword [rsp + 0x60], rax
cmp rdi, rbx
je 0x7ff794c4224d
movsx r9d, byte [rdi]
cmp rcx, r8
jae 0x7ff794c42232
lea rax, [rcx + 1]
mov qword [rbp - 0x20], rax
lea rax, [rbp - 0x30]
cmp r8, 8
cmovae rax, qword [rbp - 0x30]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r14w
jmp 0x7ff794c4223b
lea rcx, [rbp - 0x30]
call fcn.7ff794c441c0
inc rdi
mov r8, qword [rbp - 0x18]
cmp rdi, rbx
je 0x7ff794c4224d
mov rcx, qword [rbp - 0x20]
jmp 0x7ff794c42207
lea r13, [rbp - 0x30]
cmp r8, 8
cmovae r13, qword [rbp - 0x30]
mov qword [rsp + 0x68], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c65bb0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c4277f
mov r12d, r14d
mov dword [rsp + 0x70], 0x400
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x70]
lea r8, [rbp + 0x520]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
jne 0x7ff794c42772
nop
mov qword [rsp + 0x60], r14
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp + 0x520]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c42731
mov dword [rbp + 0x10], 0x400
lea rax, [rbp + 0x10]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x7ff794c65c50]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.advapi32.dll_RegQueryValueExW]
test eax, eax
jne 0x7ff794c42726
lea rax, [rbp + 0x60]
mov r8, r13
sub r8, rax
nop word [rax + rax]
movzx edx, word [rax]
movzx ecx, word [rax + r8]
sub edx, ecx
jne 0x7ff794c42364
add rax, 2
test ecx, ecx
jne 0x7ff794c42350
test edx, edx
jne 0x7ff794c42726
lea rdx, [rbp - 0x70]
call fcn.7ff794c41280
nop
mov qword [rbp - 0x10], r14
mov qword [rbp], r14
mov qword [rbp + 8], r14
mov rbx, qword [rbp - 0x60]
lea rsi, [rbp - 0x70]
mov rdi, qword [rbp - 0x70]
mov r15, qword [rbp - 0x58]
cmp r15, 0x10
cmovae rsi, rdi
cmp rbx, 0x10
jae 0x7ff794c423b8
movups xmm0, xmmword [rsi]
movups xmmword [rbp - 0x10], xmm0
mov qword [rbp], rbx
mov qword [rbp + 8], 0xf
jmp 0x7ff794c42442
mov rdi, rbx
or rdi, 0xf
movabs rax, 0x7fffffffffffffff
cmp rdi, rax
cmova rdi, rax
lea rcx, [rdi + 1]
cmp rcx, 0x1000
jb 0x7ff794c4240c
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x7ff794c4290f
mov rcx, rax
call fcn.7ff794c61b30
mov rcx, rax
test rax, rax
je 0x7ff794c42862
add rax, 0x27
and rax, 0xffffffffffffffe0
mov qword [rax - 8], rcx
jmp 0x7ff794c4241b
test rcx, rcx
je 0x7ff794c42418
call fcn.7ff794c61b30
jmp 0x7ff794c4241b
mov rax, r14
mov qword [rbp - 0x10], rax
lea r8, [rbx + 1]
mov rdx, rsi
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov qword [rbp], rbx
mov qword [rbp + 8], rdi
mov r15, qword [rbp - 0x58]
mov rbx, qword [rbp - 0x60]
mov rdi, qword [rbp - 0x70]
lea rax, [rbp - 0x70]
cmp r15, 0x10
jb 0x7ff794c42459
mov rcx, rdi
lea rsi, [rdi + rbx]
lea r14, [rdi + rbx]
jmp 0x7ff794c42468
lea r14, [rax + rbx]
lea rsi, [rbp - 0x70]
add rsi, rbx
lea rcx, [rbp - 0x70]
mov r8, rsi
sub r8, rcx
mov edx, 0x2d
call sub.VCRUNTIME140.dll_memchr
mov rcx, rsi
test rax, rax
cmovne rcx, rax
mov rdx, rcx
cmp rcx, rsi
je 0x7ff794c424b2
inc rcx
cmp rcx, rsi
je 0x7ff794c424b2
movzx eax, byte [rcx]
cmp al, 0x2d
je 0x7ff794c4249e
mov byte [rdx], al
inc rdx
inc rcx
cmp rcx, rsi
jne 0x7ff794c42492
mov r15, qword [rbp - 0x58]
mov rbx, qword [rbp - 0x60]
mov rdi, qword [rbp - 0x70]
lea rax, [rbp - 0x70]
sub r14, rdx
cmp r15, 0x10
jb 0x7ff794c424c4
sub rdx, rdi
jmp 0x7ff794c424cb
sub rdx, rax
lea rdi, [rbp - 0x70]
mov rax, rbx
sub rax, rdx
cmp rax, r14
cmovb r14, rax
lea rcx, [rdi + rdx]
sub rbx, r14
mov qword [rbp - 0x60], rbx
sub rbx, rdx
lea r8, [rbx + 1]
lea rdx, [rcx + r14]
call sub.VCRUNTIME140.dll_memcpy_1
lea rcx, [rbp - 0x70]
mov rbx, qword [rbp - 0x60]
cmp qword [rbp - 0x58], 0x10
jb 0x7ff794c4250b
mov rdi, qword [rbp - 0x70]
add rbx, rdi
jmp 0x7ff794c42512
add rbx, rcx
lea rdi, [rbp - 0x70]
xor r14d, r14d
mov qword [rbp - 0x50], r14
mov ecx, r14d
mov qword [rbp - 0x40], rcx
mov r8d, 7
mov qword [rbp - 0x38], r8
mov word [rbp - 0x50], r14w
mov rdx, rbx
sub rdx, rdi
cmp rdx, r8
jbe 0x7ff794c4254e
lea rcx, [rbp - 0x50]
call fcn.7ff794c44820
mov ecx, r14d
mov qword [rbp - 0x40], rcx
mov r8, qword [rbp - 0x38]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x58], rax
cmp rdi, rbx
je 0x7ff794c425a6
nop dword [rax]
movsx r9d, byte [rdi]
cmp rcx, r8
jae 0x7ff794c4258b
lea rax, [rcx + 1]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x50]
cmp r8, 8
cmovae rax, qword [rbp - 0x50]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r14w
jmp 0x7ff794c42594
lea rcx, [rbp - 0x50]
call fcn.7ff794c441c0
inc rdi
mov r8, qword [rbp - 0x38]
cmp rdi, rbx
je 0x7ff794c425a6
mov rcx, qword [rbp - 0x40]
jmp 0x7ff794c42560
lea rcx, [rbp - 0x50]
cmp r8, 8
cmovae rcx, qword [rbp - 0x50]
mov rax, 0xffffffffffffffff
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rcx + rax*2], 0
jne 0x7ff794c425c0
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
lea rdx, [0x7ff794c65c68]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.advapi32.dll_RegSetValueExW]
test eax, eax
jne 0x7ff794c4264f
lea rdx, [0x7ff794c65c88]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.7ff794c438e0
lea rdx, [rbp - 0x10]
cmp qword [rbp + 8], 0x10
cmovae rdx, qword [rbp - 0x10]
mov r8, qword [rbp]
mov rcx, rax
call fcn.7ff794c44660
lea rdx, [0x7ff794c43ab0]
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___class_std::basic_istream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_istream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov r8, r13
xor edx, edx
call fcn.7ff794c42920
mov r8, r13
mov edx, 1
call fcn.7ff794c42920
nop
mov rdx, qword [rbp - 0x38]
cmp rdx, 8
jb 0x7ff794c4268f
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x50]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c4268a
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff794c4285b
call fcn.7ff794c61b74
mov qword [rbp - 0x40], r14
mov qword [rbp - 0x38], 7
mov word [rbp - 0x50], r14w
mov rdx, qword [rbp + 8]
cmp rdx, 0x10
jb 0x7ff794c426db
inc rdx
mov rcx, qword [rbp - 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c426d6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff794c42862
call fcn.7ff794c61b74
mov qword [rbp], r14
mov qword [rbp + 8], 0xf
mov byte [rbp - 0x10], 0
mov rdx, qword [rbp - 0x58]
cmp rdx, 0x10
jb 0x7ff794c42726
inc rdx
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c42721
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff794c42869
call fcn.7ff794c61b74
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.advapi32.dll_RegCloseKey]
mov dword [rsp + 0x70], 0x400
inc r12d
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0x70]
lea r8, [rbp + 0x520]
mov edx, r12d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
je 0x7ff794c422d0
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.advapi32.dll_RegCloseKey]
jmp 0x7ff794c427a2
lea rdx, [0x7ff794c65ca0]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.7ff794c438e0
lea rdx, [0x7ff794c43ab0]
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___class_std::basic_istream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_istream_char__struct_std::char_traits_char______ptr64_____ptr64]
lea rdx, [0x7ff794c65ce8]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.7ff794c438e0
lea rdx, [0x7ff794c43ab0]
mov rcx, rax
call qword [sym.imp.msvcp140.dll_public:_class_std::basic_istream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_istream_char__struct_std::char_traits_char__::operator___class_std::basic_istream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_istream_char__struct_std::char_traits_char______ptr64_____ptr64]
mov ebx, dword [rsp + 0x40]
inc ebx
mov dword [rsp + 0x40], ebx
mov rdi, qword [rsp + 0x50]
inc rdi
mov qword [rsp + 0x50], rdi
mov rdx, qword [rbp - 0x18]
cmp rdx, 8
jb 0x7ff794c42818
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c42813
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x7ff794c42870
call fcn.7ff794c61b74
mov eax, dword [rsp + 0x44]
inc eax
cmp ebx, eax
jge 0x7ff794c42877
lea rdx, [0x7ff794c65b88]
mov rcx, qword [sym.imp.msvcp140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.7ff794c438e0
mov r9, rax
movsxd rdx, dword [rsp + 0x48]
mov rax, qword [rbp - 0x80]
mov r8, qword [rsp + 0x78]
sub rax, r8
sar rax, 5
cmp rax, rdx
jbe 0x7ff794c42915
jmp 0x7ff794c42030
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
nop
lea rcx, [rbp + 0x20]
call fcn.7ff794c41da0
nop
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x7ff794c428d1
mov rdx, qword [rbp - 0x80]
call fcn.7ff794c44130
mov rdx, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x78]
sub rdx, rcx
and rdx, 0xffffffffffffffe0
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c428cc
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c428cc
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
mov rcx, qword [rbp + 0xd20]
xor rcx, rsp
call fcn.7ff794c61b10
lea r11, [rsp + 0xe30]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
lea rcx, [0x7ff794c65d28]
call qword [sym.imp.msvcp140.dll_void___cdecl_std::_Xout_of_range_char_const____ptr64_]
nop
call fcn.7ff794c411a0
nop
call fcn.7ff794c434e0
int3