Function at 0x140038d60
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x1a0]
sub rsp, 0x2a0
movabs rax, 0xcd4310b2224e9a60
lea rdx, [rbp - 0x80]
mov qword [rsp + 0x60], rax
movabs rsi, 0xcd3710d422219a33
movabs rax, 0xacc0a66f3f71cf9b
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x68], rax
movabs r14, 0xaca5a61d3f10cfec
movups xmm0, xmmword [rsp + 0x60]
movabs rax, 0xf2f7019d5ec36f11
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x70], rax
movabs rbx, 0xf2b601d65e866f4d
xorps xmm0, xmmword [rsp + 0x40]
movabs rax, 0x109dcec7d717848c
mov qword [rsp + 0x78], rax
movabs rdi, 0x109dcec7d71784d6
movups xmm1, xmmword [rsp + 0x70]
lea rax, [rbp + 0x1e0]
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
mov r9d, 0x20019
xorps xmm1, xmmword [rsp + 0x50]
xor r8d, r8d
mov rcx, 0xffffffff80000001
movdqa xmmword [rbp - 0x70], xmm1
movdqa xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14003901f
mov rcx, qword [rbp + 0x1e0]
lea r9, [rbp + 0x1d8]
movabs rax, 0xcd5210b922449a61
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x40], rax
lea rdx, [rbp - 0x80]
movabs rax, 0xacd7a6783f72cf81
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x48], rax
xor r8d, r8d
movups xmm0, xmmword [rsp + 0x40]
movabs rax, 0xf2df01b15ee96f01
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x50], rax
movabs rax, 0x109dcec7d71784b8
xorps xmm0, xmmword [rsp + 0x60]
mov qword [rsp + 0x58], rax
lea rax, [rbp + 0x1d0]
movups xmm1, xmmword [rsp + 0x50]
mov qword [rsp + 0x28], rax
lea rax, [0x1400a9104]
mov qword [rsp + 0x78], rdi
xorps xmm1, xmmword [rsp + 0x70]
movdqa xmmword [rbp - 0x70], xmm1
mov dword [rbp + 0x1d0], 4
movdqa xmmword [rbp - 0x80], xmm0
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140038ef2
cmp dword [rbp + 0x1d8], 4
je 0x140038ef9
mov byte [0x1400a9104], 0
mov rcx, qword [rbp + 0x1e0]
lea r9, [rbp + 0x1d8]
mov qword [rsp + 0x50], rbx
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x58], rdi
movabs rax, 0xcd5e10b3224e9a7f
movups xmm1, xmmword [rsp + 0x50]
mov qword [rsp + 0x40], rax
xor r8d, r8d
movabs rax, 0xacdca6783f5bcf82
mov qword [rbp - 0x80], rsi
mov qword [rsp + 0x48], rax
lea rax, [rbp + 0x1d0]
movups xmm0, xmmword [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rbp - 0x78], r14
xorps xmm0, xmmword [rbp - 0x80]
mov qword [rbp - 0x70], rbx
mov qword [rbp - 0x68], rdi
xorps xmm1, xmmword [rbp - 0x70]
movdqa xmmword [rsp + 0x40], xmm0
mov dword [rbp + 0x1d0], 0x14
movdqa xmmword [rsp + 0x50], xmm1
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14003900b
cmp dword [rbp + 0x1d8], 3
jne 0x14003900b
xor edx, edx
mov eax, edx
movq xmm1, qword [rsp + rax + 0x60]
xorps xmm0, xmm0
punpcklbw xmm1, xmm0
movdqu xmmword [rbp + rax*2 - 0x60], xmm1
add rax, 8
cmp rax, 0x10
jl 0x140038fa0
mov eax, 0x10
movzx ecx, byte [rsp + rax + 0x60]
mov word [rbp + rax*2 - 0x60], cx
inc rax
cmp rax, 0x14
jl 0x140038fc2
mov qword [rsp + 0x38], rdx
lea rax, [0x1400a99c0]
mov qword [rsp + 0x30], rdx
lea r8, [rbp - 0x60]
mov dword [rsp + 0x28], pe_nt_image_headers64
mov r9d, 0xffffffff
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov word [rbp - 0x38], dx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x140039012
mov byte [0x1400a99c0], 0
mov rcx, qword [rbp + 0x1e0]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x2a0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret