Function at 0x140001070
Capabilities:
Query or enumerate registry value
Terminate process
Write file on windows

Disassembly:
push rbp
push rsi
push r15
lea rbp, [rsp - 0x1320]
mov eax, 0x1420
call fcn.140002690
sub rsp, rax
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rbp + 0x1300], rax
mov r15, rcx
mov ecx, 0x100000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x1400010cf
mov rcx, r15
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
mov qword [rsp + 0x1448], rbx
mov qword [rsp + 0x1450], rdi
xor edi, edi
mov qword [rsp + 0x1458], r12
mov r12d, edi
mov qword [rsp + 0x1418], r13
mov r13, rsi
mov qword [rsp + 0x1410], r14
mov r14d, edi
nop dword [rax]
nop word [rax + rax]
mov edx, r14d
lea rcx, str.read:__d_n
call fcn.140001010
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
lea rdx, [rbp - 0x40]
xor eax, eax
mov r8d, 0xa
mov dword [rbp + 0x20], eax
mov ecx, r14d
mov qword [rbp - 0x59], rax
mov dword [rbp - 0x51], eax
mov byte [rbp - 0x4d], al
mov eax, dword [str.mykeyp]
mov dword [rsp + 0x50], eax
movzx eax, word [0x140003308]
mov word [rsp + 0x54], ax
movzx eax, byte [0x14000330a]
mov byte [rsp + 0x56], al
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 [rbp + 0x10], xmm0
movups xmmword [rsp + 0x57], xmm0
movups xmmword [rsp + 0x67], xmm0
movups xmmword [rsp + 0x77], xmm0
movups xmmword [rbp - 0x79], xmm0
movups xmmword [rbp - 0x69], xmm0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
lea rcx, [rsp + 0x50]
mov r8, rax
dec rcx
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x1400011b0
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x1400011c0
lea rcx, [rsp + 0x50]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x1400011e0
movzx eax, word [0x14000330c]
mov word [rcx], ax
movzx eax, byte [0x14000330e]
mov byte [rcx + 2], al
mov ecx, 0xc8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edx, edx
mov r8d, 0xc8
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0xc8
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x38], 0x7d0
lea rax, [rbp + 0x360]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x130]
lea rax, [rsp + 0x40]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x44]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov dword [rsp + 0x44], 3
mov rcx, rbx
mov dword [rsp + 0x40], 0x1fc
call qword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
jne 0x14000168d
mov qword [rsp + 0x38], rdi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x30], rdi
lea r8, [rbp + 0x130]
mov dword [rsp + 0x28], 0xfe
mov r9d, 0xfe
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea r9, [r13 + 0x80]
inc r14d
lea rdx, [rbp + 0x30]
inc r12
movups xmm0, xmmword [rdx]
movups xmm1, xmmword [rdx + 0x10]
lea rdx, [rdx + 0x80]
mov rax, qword [rdx + 0x70]
movups xmmword [r13], xmm0
movups xmm0, xmmword [rdx - 0x60]
movups xmmword [r13 + 0x10], xmm1
movups xmm1, xmmword [rdx - 0x50]
movups xmmword [r13 + 0x20], xmm0
movups xmm0, xmmword [rdx - 0x40]
movups xmmword [r13 + 0x30], xmm1
movups xmm1, xmmword [rdx - 0x30]
movups xmmword [r13 + 0x40], xmm0
movups xmm0, xmmword [rdx - 0x20]
movups xmmword [r13 + 0x50], xmm1
movups xmm1, xmmword [rdx - 0x10]
movups xmmword [r13 + 0x60], xmm0
add r13, 0xfe
movups xmm0, xmmword [rdx]
movups xmmword [r9 - 0x10], xmm1
movups xmm1, xmmword [rdx + 0x10]
movups xmmword [r9], xmm0
movups xmm0, xmmword [rdx + 0x20]
movups xmmword [r9 + 0x10], xmm1
movups xmm1, xmmword [rdx + 0x30]
movups xmmword [r9 + 0x20], xmm0
movups xmm0, xmmword [rdx + 0x40]
movups xmmword [r9 + 0x30], xmm1
movups xmm1, xmmword [rdx + 0x50]
movups xmmword [r9 + 0x40], xmm0
movups xmm0, xmmword [rdx + 0x60]
movups xmmword [r9 + 0x50], xmm1
movups xmmword [r9 + 0x60], xmm0
mov qword [r9 + 0x70], rax
mov eax, dword [rdx + 0x78]
mov dword [r9 + 0x78], eax
movzx eax, word [rdx + 0x7c]
mov word [r9 + 0x7c], ax
cmp r12, 0x182
jl 0x140001110
mov edx, r14d
lea rcx, str.read:__d_n
call fcn.140001010
xor edx, edx
lea rcx, [rbp + 0x30]
mov r8d, pe_nt_image_headers64
call sub.VCRUNTIME140.dll_memset
xorps xmm0, xmm0
lea rdx, [rbp - 0x40]
xor eax, eax
mov r8d, 0xa
mov dword [rbp + 0x20], eax
mov ecx, r14d
mov qword [rbp - 0x59], rax
mov dword [rbp - 0x51], eax
mov byte [rbp - 0x4d], al
mov eax, dword [str.mykeyp]
mov dword [rsp + 0x50], eax
movzx eax, word [0x140003308]
mov word [rsp + 0x54], ax
movzx eax, byte [0x14000330a]
mov byte [rsp + 0x56], al
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 [rbp + 0x10], xmm0
movups xmmword [rsp + 0x57], xmm0
movups xmmword [rsp + 0x67], xmm0
movups xmmword [rsp + 0x77], xmm0
movups xmmword [rbp - 0x79], xmm0
movups xmmword [rbp - 0x69], xmm0
call qword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__itoa]
lea rcx, [rsp + 0x50]
mov r8, rax
dec rcx
nop word [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140001430
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x140001440
lea rcx, [rsp + 0x50]
dec rcx
nop dword [rax + rax]
cmp byte [rcx + 1], dil
lea rcx, [rcx + 1]
jne 0x140001460
movzx eax, word [0x14000330c]
mov word [rcx], ax
movzx eax, byte [0x14000330e]
mov byte [rcx + 2], al
mov ecx, 0xc8
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
xor edx, edx
mov r8d, 0xc8
mov rcx, rax
mov rbx, rax
call sub.VCRUNTIME140.dll_memset
mov r9d, 0xffffffff
mov dword [rsp + 0x28], 0xc8
lea r8, [rsp + 0x50]
mov qword [rsp + 0x20], rbx
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [rsp + 0x38], 0x7d0
lea rax, [rbp + 0x360]
mov qword [rsp + 0x30], rax
lea r9, [rbp + 0x130]
lea rax, [rsp + 0x44]
mov dword [rsp + 0x28], edi
lea r8, [rsp + 0x40]
mov qword [rsp + 0x20], rax
mov rdx, rbx
mov dword [rsp + 0x40], 3
mov rcx, rbx
mov dword [rsp + 0x44], 0x15c
call qword [sym.imp.SHLWAPI.dll_SHRegGetUSValueW]
test eax, eax
jne 0x140001693
mov qword [rsp + 0x38], rdi
lea rax, [rbp + 0x30]
mov qword [rsp + 0x30], rdi
lea r8, [rbp + 0x130]
mov dword [rsp + 0x28], 0xae
mov r9d, 0xae
xor edx, edx
mov qword [rsp + 0x20], rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea rcx, [rbp + 0x30]
imul eax, r14d, 0xfe
movups xmm0, xmmword [rcx]
mov r9d, 0xc9
movups xmm1, xmmword [rcx + 0x10]
movsxd rdx, eax
mov rax, qword [rcx + 0xa0]
add rdx, rsi
movups xmmword [rdx], xmm0
movups xmm0, xmmword [rcx + 0x20]
movups xmmword [rdx + 0x10], xmm1
movups xmm1, xmmword [rcx + 0x30]
movups xmmword [rdx + 0x20], xmm0
movups xmm0, xmmword [rcx + 0x40]
movups xmmword [rdx + 0x30], xmm1
movups xmm1, xmmword [rcx + 0x50]
movups xmmword [rdx + 0x40], xmm0
movups xmm0, xmmword [rcx + 0x60]
movups xmmword [rdx + 0x50], xmm1
movups xmm1, xmmword [rcx + 0x70]
movups xmmword [rdx + 0x60], xmm0
sub rdx, 0xffffffffffffff80
movups xmm0, xmmword [rcx + 0x80]
movups xmmword [rdx - 0x10], xmm1
movups xmm1, xmmword [rcx + 0x90]
movups xmmword [rdx], xmm0
movups xmmword [rdx + 0x10], xmm1
mov qword [rdx + 0x20], rax
mov eax, dword [rcx + 0xa8]
mov dword [rdx + 0x28], eax
movzx eax, word [rcx + 0xac]
mov word [rdx + 0x2c], ax
nop
movzx r8d, byte [rsi + rdi*2]
movzx edx, byte [rsi + rdi*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, r9d
add cl, dl
or r8b, cl
mov byte [rdi + r15], r8b
inc rdi
cmp rdi, 0xbfd5
jl 0x1400015d0
lea rdx, [0x140003318]
lea rcx, str.check.bin
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fopen]
mov edx, 1
mov r8d, 0x17faa
mov r9, rax
mov rcx, r15
mov rbx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov r13, qword [rsp + 0x1418]
mov r12, qword [rsp + 0x1458]
mov rdi, qword [rsp + 0x1450]
mov rbx, qword [rsp + 0x1448]
mov r14, qword [rsp + 0x1410]
mov rcx, qword [rbp + 0x1300]
xor rcx, rsp
call fcn.1400019a0
add rsp, 0x1420
pop r15
pop rsi
pop rbp
ret
call fcn.1400017b0
int3
call fcn.1400017b0
int3