Function at 0x140001aa0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov rax, rsp
mov dword [rax + 0x10], edx
mov qword [rax + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
mov r14, qword [0x140085718]
lea rcx, str..SPACEPORT
xor edi, edi
movaps xmmword [rax - 0x48], xmm6
mov qword [rsp + 0x30], rdi
xor r9d, r9d
mov dword [rsp + 0x28], edi
mov edx, 0xc0000000
mov dword [r14 + 0x20], edi
lea r8d, [rdi + 3]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [r14 + 0x10], rax
cmp rax, 0xffffffffffffffff
je 0x140001ea2
lea edx, [rdi + 0x20]
xor ecx, ecx
lea r9d, [rdi + 4]
mov r8d, 0x3000
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov qword [r14 + 8], rax
lea rsi, [r14 + 8]
test rax, rax
je 0x140001ea2
mov dword [rbp - 0x39], 0x460044
lea rax, str.RegistryMachineSOFTWAREMicrosoftFuzzyDS
mov qword [rbp - 0x21], rax
lea r8, [rbp - 0x19]
mov dword [rbp - 0x29], 0x5a0058
lea rax, str.UserProbHTRDiscountFactorRepresent
movaps xmm6, xmmword [rbp - 0x29]
lea rcx, [rbp + 0x67]
mov qword [rbp - 0x31], rax
mov r15d, 0x30
movaps xmm0, xmmword [rbp - 0x39]
lea rax, [rbp - 0x29]
movdqa xmmword [rbp - 0x39], xmm0
mov edx, 0xf003f
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x29], xmm6
movdqu xmmword [rbp + 7], xmm0
xor bl, bl
mov dword [rbp - 0x19], r15d
mov qword [rbp - 0x11], rdi
mov dword [rbp - 1], 0x240
mov qword [rbp - 9], rax
call qword [sym.imp.ntdll.dll_ZwOpenKey]
lea r12d, [rdi + 1]
test eax, eax
js 0x140001bdc
mov rcx, qword [rbp + 0x67]
lea r9d, [rdi + 0xb]
mov dword [rsp + 0x28], 8
lea rdx, [rbp - 0x39]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov rcx, qword [rbp + 0x67]
mov ebx, eax
call qword [sym.imp.ntdll.dll_ZwClose]
shr ebx, 0x1f
xor bl, r12b
jmp 0x140001c3f
mov qword [rsp + 0x30], rdi
lea rax, [rbp - 0x29]
mov dword [rsp + 0x28], edi
lea r8, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov edx, 0xf003f
lea rcx, [rbp + 0x67]
call qword [sym.imp.ntdll.dll_ZwCreateKey]
test eax, eax
js 0x140001c35
mov rcx, qword [rbp + 0x67]
lea rdx, [rbp - 0x39]
mov dword [rsp + 0x28], 8
mov r9d, 0xb
xor r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
test eax, eax
movzx ebx, bl
cmovns ebx, r12d
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntdll.dll_ZwClose]
test bl, bl
je 0x140001ea2
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [rbp - 0x29], 0x420040
lea r8, [rbp - 0x19]
mov eax, eax
lea rcx, [rbp + 0x67]
mov qword [rbp + 0x7f], rax
mov edx, 0xf003f
lea rax, str.LmInterpolationDynamicOnlyMedium
mov dword [rbp - 0x19], r15d
mov qword [rbp - 0x21], rax
xor bl, bl
movaps xmm0, xmmword [rbp - 0x29]
lea rax, [rbp - 0x29]
movdqa xmmword [rbp - 0x39], xmm0
xorps xmm0, xmm0
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp - 0x11], rdi
movdqa xmmword [rbp - 0x29], xmm6
mov dword [rbp - 1], 0x240
mov qword [rbp - 9], rax
call qword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
js 0x140001ce7
mov rcx, qword [rbp + 0x67]
lea rax, [rbp + 0x7f]
mov dword [rsp + 0x28], 8
lea rdx, [rbp - 0x39]
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
mov rcx, qword [rbp + 0x67]
mov ebx, eax
call qword [sym.imp.ntdll.dll_ZwClose]
shr ebx, 0x1f
xor bl, r12b
jmp 0x140001d4e
mov qword [rsp + 0x30], rdi
lea rax, [rbp - 0x29]
mov dword [rsp + 0x28], edi
lea r8, [rbp - 0x19]
xor r9d, r9d
mov qword [rsp + 0x20], rax
mov edx, 0xf003f
lea rcx, [rbp + 0x67]
call qword [sym.imp.ntdll.dll_ZwCreateKey]
test eax, eax
js 0x140001d44
mov rcx, qword [rbp + 0x67]
lea rax, [rbp + 0x7f]
mov dword [rsp + 0x28], 8
lea rdx, [rbp - 0x39]
mov r9d, 0xb
mov qword [rsp + 0x20], rax
xor r8d, r8d
call qword [sym.imp.ntdll.dll_ZwSetValueKey]
test eax, eax
movzx ebx, bl
cmovns ebx, r12d
mov rcx, qword [rbp + 0x67]
call qword [sym.imp.ntdll.dll_ZwClose]
test bl, bl
je 0x140001ea2
mov rbx, qword [r14 + 0x18]
xor r8d, r8d
mov rcx, r14
lea edx, [r8 + 0x63]
call fcn.140001ec0
cmp qword [r14 + 0x18], rbx
jne 0x140001e9c
mov dword [rbp - 0x29], 0x320030
lea rax, str.BigramNextWordDefaultKey
mov qword [rbp - 0x21], rax
lea r8, [rbp - 0x19]
movaps xmm0, xmmword [rbp - 0x29]
lea rax, [rbp - 0x39]
movdqa xmmword [rbp - 0x29], xmm0
lea rcx, [rbp + 0x77]
xorps xmm0, xmm0
movdqa xmmword [rbp - 0x39], xmm6
mov edx, 0xf003f
mov dword [rbp - 0x19], r15d
movdqu xmmword [rbp + 7], xmm0
mov qword [rbp - 0x11], rdi
mov dword [rbp - 1], 0x240
mov qword [rbp - 9], rax
call qword [sym.imp.ntdll.dll_ZwOpenKey]
test eax, eax
js 0x140001e98
mov rcx, qword [rbp + 0x77]
lea rax, [rbp + 0x6f]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x29]
xor r9d, r9d
mov dword [rsp + 0x20], edi
mov r8d, r12d
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
cmp eax, 0xc0000023
je 0x140001dfc
cmp eax, 0x80000005
jne 0x140001e05
mov r15d, dword [rbp + 0x6f]
test r15d, r15d
jne 0x140001e1c
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntdll.dll_ZwClose]
movzx eax, r12b
mov qword [r14 + 0x18], rdi
jmp 0x140001ea4
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r8, r15
xor edx, edx
mov rcx, rax
mov rsi, rax
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rbp + 0x77]
lea rax, [rbp + 0x67]
mov qword [rsp + 0x28], rax
lea rdx, [rbp - 0x29]
mov r9, rsi
mov dword [rsp + 0x20], r15d
mov r8d, r12d
call qword [sym.imp.ntdll.dll_ZwQueryValueKey]
test eax, eax
js 0x140001e85
cmp r15d, dword [rbp + 0x67]
jne 0x140001e85
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntdll.dll_ZwClose]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [rsi + 8]
mov rdi, qword [rax + rsi]
movzx eax, r12b
mov qword [r14 + 0x18], rdi
jmp 0x140001ea4
mov rcx, qword [rbp + 0x77]
call qword [sym.imp.ntdll.dll_ZwClose]
mov rcx, rsi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [r14 + 0x18], rdi
movzx eax, r12b
jmp 0x140001ea4
xor al, al
movaps xmm6, xmmword [rsp + 0x90]
add rsp, 0xa0
pop r15
pop r14
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret