Function at 0x140005980
Capabilities:
Encode data using xor
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1e0]
sub rsp, 0x2e0
mov rax, qword [0x140019040]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov r15, rcx
xor r12d, r12d
mov qword [rbp - 0x50], r12
mov dword [rbp - 0x48], 1
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp - 0x40]
call sub.VCRUNTIME140.dll_memset
mov dword [rbp - 0x44], 0x208
movdqa xmm0, xmmword [0x140013f80]
movdqu xmmword [rsp + 0x40], xmm0
movdqa xmm1, xmmword [0x140013f90]
movdqu xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x60], 0x15372d26
mov dword [rsp + 0x64], 0x2a303126
mov dword [rsp + 0x68], 0x111f2d2c
mov word [rsp + 0x6c], 0x2d36
xor eax, eax
mov byte [rsp + 0x6e], al
nop dword [rax]
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x41], cl
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x42], cl
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x43], cl
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x44], cl
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x45], cl
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x46], cl
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x47], cl
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x48], cl
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x49], cl
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x4a], cl
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x4b], cl
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x4c], cl
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x4d], cl
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x4e], cl
movzx ecx, byte [rsp + 0x40]
xor byte [rsp + rax + 0x4f], cl
add rax, 0xf
cmp rax, 0x2d
jb 0x140005a20
mov byte [rsp + 0x6e], r12b
xorps xmm0, xmm0
movups xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r12
mov qword [rbp - 0x78], r12
lea rax, [rsp + 0x41]
mov r14, 0xffffffffffffffff
mov r8, r14
nop dword [rax]
inc r8
cmp byte [rax + r8], r12b
jne 0x140005ae0
lea rdx, [rsp + 0x41]
lea rcx, [rsp + 0x70]
call fcn.140007c50
nop
mov esi, dword [rbp - 0x80]
lea r8, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova r8, qword [rsp + 0x70]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9d, [rsi + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
movsxd rbx, eax
mov eax, 2
mul rbx
cmovb rax, r14
mov rcx, rax
call fcn.140010a54
mov rdi, rax
lea r8, [rsp + 0x70]
cmp qword [rbp - 0x78], 0xf
cmova r8, qword [rsp + 0x70]
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rax
lea r9d, [rsi + 1]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.140006da0
mov rcx, rdi
call fcn.140010700
lea rdx, [rbp - 0x70]
cmp qword [rbp - 0x58], 7
cmova rdx, qword [rbp - 0x70]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edi, eax
mov rdx, qword [rbp - 0x58]
cmp rdx, 7
jbe 0x140005beb
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005be6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005be6
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010700
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], 7
mov word [rbp - 0x70], r12w
mov rdx, qword [rbp - 0x78]
cmp rdx, 0xf
jbe 0x140005c3b
inc rdx
mov rcx, qword [rsp + 0x70]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005c36
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005c36
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140010700
mov ebx, r12d
test edi, edi
sete bl
test edi, edi
jne 0x140005ca4
lea rax, [rbp - 0x44]
mov qword [rsp + 0x30], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x48]
mov qword [rsp + 0x20], rax
mov r9d, 2
mov r8, r15
xor edx, edx
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegGetValueW]
mov ebx, r12d
test eax, eax
sete bl
test eax, eax
jne 0x140005ca4
lea rax, [rbp - 0x40]
nop word [rax + rax]
inc r14
cmp word [rax + r14*2], 0
jne 0x140005c90
mov ebx, r12d
test r14, r14
setne bl
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140005cb3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1400106e0
lea r11, [rsp + 0x2e0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret