Function at 0x140004058
Capabilities:
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xa10]
sub rsp, 0xb10
mov rax, qword [0x1400513c8]
xor rax, rsp
mov qword [rbp + 0xa00], rax
mov rdi, rcx
movsd xmm0, qword [str..ucf]
movsd qword [rbp - 0x40], xmm0
movzx eax, word [0x14003ab60]
mov word [rbp - 0x38], ax
xor edx, edx
mov r8d, 0x1f6
lea rcx, [rbp - 0x36]
call sub.VCRUNTIME140.dll_memset
xor esi, esi
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x70], rsi
lea r14d, [rsi + 7]
mov qword [rsp + 0x78], r14
mov word [rsp + 0x60], si
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x60]
call fcn.140013de0
mov qword [rsp + 0x40], rsi
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000437e
mov dword [rsp + 0x50], 0x104
mov dword [rsp + 0x4c], 0x208
mov dword [rsp + 0x48], esi
lea rax, [rsp + 0x4c]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x3d0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x50]
lea r8, [rbp + 0x5e0]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rsp + 0x40], rsi
test ebx, ebx
jne 0x14000437e
lea rdx, [0x14003a934]
lea rcx, [rbp - 0x60]
call fcn.140013b84
nop
lea rdx, [rbp - 0x60]
lea rcx, [rsp + 0x60]
call fcn.140013bdc
nop
mov rdx, qword [rbp - 0x48]
cmp rdx, 8
jb 0x1400041c4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
call fcn.140002de0
mov qword [rbp - 0x50], rsi
mov qword [rbp - 0x48], r14
mov word [rbp - 0x60], si
lea rdx, [rbp + 0x3d0]
lea rcx, [rsp + 0x60]
call fcn.140013de0
lea rdx, str._shellopencommand
lea rcx, [rsp + 0x60]
call fcn.140013de0
lea rdx, [rsp + 0x60]
cmp qword [rsp + 0x78], 8
cmovae rdx, qword [rsp + 0x60]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rcx, 0xffffffff80000000
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000437e
mov dword [rsp + 0x58], 0x104
xor edx, edx
mov r8d, 0x208
lea rcx, [rbp + 0x1c0]
call sub.VCRUNTIME140.dll_memset
mov dword [rsp + 0x54], 0x208
lea rax, [rsp + 0x54]
mov qword [rsp + 0x38], rax
lea rax, [rbp + 0x1c0]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x48]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x58]
lea r8, [rbp + 0x7f0]
xor edx, edx
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x14000437e
lea rdx, [rbp + 0x1c0]
lea rcx, [rbp - 0x80]
call fcn.140013b84
nop
lea rcx, [rbp - 0x80]
call fcn.140013e1c
lea rcx, str..exe
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcslen]
lea rcx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rcx, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
lea r9, str..exe
xor r8d, r8d
mov rdx, qword [rbp - 0x70]
call fcn.140002e20
mov rcx, rax
cmp rax, 0xffffffffffffffff
jne 0x1400042fc
mov ebx, esi
jmp 0x140004355
lea rax, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rax, qword [rbp - 0x80]
mov word [rax + rcx*2 + 8], si
lea rdx, [rbp - 0x80]
cmp qword [rbp - 0x68], 8
cmovae rdx, qword [rbp - 0x80]
jmp 0x140004339
cmp ax, 0x22
ja 0x140004341
movabs r9, 0x500000200
bt r9, rax
jae 0x140004341
add rdx, 2
movzx eax, word [rdx]
test ax, ax
jne 0x14000431f
mov r8d, 0x104
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcpynW]
mov ebx, 1
mov rdx, qword [rbp - 0x68]
cmp rdx, 8
jb 0x140004370
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x80]
call fcn.140002de0
mov qword [rbp - 0x70], rsi
mov qword [rbp - 0x68], r14
mov word [rbp - 0x80], si
jmp 0x140004380
mov ebx, esi
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x14000439d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
call fcn.140002de0
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x78], r14
mov word [rsp + 0x60], si
mov eax, ebx
mov rcx, qword [rbp + 0xa00]
xor rcx, rsp
call fcn.14002e470
lea r11, [rsp + 0xb10]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret