Function at 0x140001070
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x31f70]
mov eax, 0x32070
call fcn.1400022b0
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x31f60], rax
mov rdi, rcx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
jne 0x1400010d5
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
lea rcx, str.memory_not_enough__n
call fcn.140001010
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
int3
xor edx, edx
lea rcx, str.read:__d_n
call fcn.140001010
xor edx, edx
lea rcx, [rbp + 0x20]
mov r8d, 0x31f3a
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
lea rdx, [rbp - 0x50]
xor eax, eax
mov r8d, 0xa
mov dword [rbp + 0x10], eax
xor ecx, ecx
mov qword [rbp - 0x69], rax
mov dword [rbp - 0x61], eax
mov byte [rbp - 0x5d], al
mov eax, dword [str.mykeya]
mov dword [rsp + 0x40], eax
movzx eax, word [0x1400032e8]
mov word [rsp + 0x44], ax
movzx eax, byte [0x1400032ea]
mov byte [rsp + 0x46], al
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rsp + 0x47], xmm0
movups xmmword [rsp + 0x57], xmm0
movups xmmword [rsp + 0x67], xmm0
movups xmmword [rsp + 0x77], xmm0
movups xmmword [rbp - 0x79], xmm0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
lea rcx, [rsp + 0x40]
mov r8, rax
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x140001174
xor edx, edx
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140001180
lea rcx, [rsp + 0x40]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400011a0
lea rax, [rsp + 0x30]
mov dword [rsp + 0x3c], 7
mov r9d, 0x2001f
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov dword [rsp + 0x38], 0x1800e
lea rdx, str.SOFTWAREMicrosoftWindowsCurrentVersionSetup
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1400011f1
lea rcx, str.Failed_to_open_the_registry_key._Error:__ld_n
jmp 0x1400012b0
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x3c]
lea rax, [rbp + 0x20]
xor r8d, r8d
lea rdx, str.Installation_Sources
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400012a9
mov r8d, 0x17faa
lea rdx, [rbp + 0x20]
mov rcx, rbx
call sub.VCRUNTIME140.dll_memcpy
xor r9d, r9d
mov r10d, 0xc9
movzx r8d, byte [rbx + r9*2]
movzx edx, byte [rbx + r9*2 + 1]
lea ecx, [r8 - 0x30]
cmp cl, 9
lea eax, [r8 - 0x37]
movzx eax, al
mov ecx, 0xd0
cmova r8d, eax
lea eax, [rdx - 0x30]
shl r8b, 4
cmp al, 9
cmova ecx, r10d
add cl, dl
or r8b, cl
mov byte [r9 + rdi], r8b
inc r9
cmp r9, 0xbfd5
jl 0x140001241
mov rcx, qword [rbp + 0x31f60]
xor rcx, rsp
call fcn.1400015c0
lea r11, [rsp + 0x32070]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
lea rcx, str.Failed_to_read_the_Installation_Sources_value._Error:__ld_n
mov edx, eax
call fcn.140001010
call fcn.1400013d0
int3