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

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x858]
sub rsp, 0x950
mov qword [rbp], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov rax, qword [0x1400512d0]
xor rax, rsp
mov qword [rbp + 0x840], rax
xor edi, edi
mov word [rbp + 0x40], di
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x42]
call fcn.140024640
lea r9, [rsp + 0x30]
lea r8d, [rdi + 1]
lea rdx, [rbp + 0x28]
lea rcx, str.Keyboard
call qword [sym.imp.SETUPAPI.dll_SetupDiClassGuidsFromNameW]
mov edx, 0xf003f
lea rcx, [rbp + 0x28]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140007073
mov dword [rsp + 0x30], 0x800
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 8]
xor r8d, r8d
lea rdx, str.UpperFilters
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000706a
test byte [0x1400512b0], 2
je 0x140006f0a
lea rax, [rsp + 0x38]
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x18], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x10], rax
lea rax, [rbp - 0x68]
mov qword [rbp - 0x28], rax
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
xor r8d, r8d
lea rdx, [0x140040d7c]
lea rcx, [rsp + 0x38]
call fcn.14000e180
nop
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
xor r8d, r8d
lea rdx, [0x140040d7c]
lea rcx, [rsp + 0x58]
call fcn.14000e180
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
xor r8d, r8d
lea rdx, [0x140040d7c]
lea rcx, [rsp + 0x78]
call fcn.14000e180
nop
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
xor r8d, r8d
lea rdx, [0x140040d7c]
lea rcx, [rbp - 0x68]
call fcn.14000e180
nop
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
lea r8d, [rdi + 5]
lea rdx, str.SynTP
lea rcx, [rbp - 0x48]
call fcn.14000e180
nop
lea rax, [rsp + 0x38]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x68]
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 8]
call fcn.14001e5c0
nop
cmp qword [rax + 0x18], 8
jb 0x140006ede
mov rax, qword [rax]
mov r9, rax
lea r8, str.Remove__s_n
mov edx, 2
lea rcx, str.RemoveKeyboardClassUpperFilter
call fcn.1400206a0
nop
cmp qword [rbp + 0x20], 8
jb 0x140006f0a
mov rcx, qword [rbp + 8]
call fcn.140021650
lea rax, [rbp - 0x68]
mov qword [rbp - 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x10], rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x18], rax
lea rax, [rsp + 0x38]
mov qword [rbp - 0x20], rax
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
xor r8d, r8d
lea rdx, [0x140040d7c]
lea rcx, [rbp - 0x68]
call fcn.14000e180
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
xor r8d, r8d
lea rdx, [0x140040d7c]
lea rcx, [rsp + 0x78]
call fcn.14000e180
nop
mov qword [rsp + 0x70], 7
mov qword [rsp + 0x68], rdi
mov word [rsp + 0x58], di
xor r8d, r8d
lea rdx, [0x140040d7c]
lea rcx, [rsp + 0x58]
call fcn.14000e180
nop
mov qword [rsp + 0x50], 7
mov qword [rsp + 0x48], rdi
mov word [rsp + 0x38], di
xor r8d, r8d
lea rdx, [0x140040d7c]
lea rcx, [rsp + 0x38]
call fcn.14000e180
nop
mov qword [rbp - 0x30], 7
mov qword [rbp - 0x38], rdi
mov word [rbp - 0x48], di
mov r8d, 5
lea rdx, str.SynTP
lea rcx, [rbp - 0x48]
call fcn.14000e180
nop
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
lea rdx, [rbp - 0x48]
lea rcx, [rbp + 8]
call fcn.14001e5c0
cmp qword [rax + 0x18], 8
jb 0x140007022
mov rax, qword [rax]
mov r8, rax
mov edx, dword [rsp + 0x30]
lea rcx, [rbp + 0x40]
call fcn.140006be0
mov edi, eax
cmp qword [rbp + 0x20], 8
jb 0x140007044
mov rcx, qword [rbp + 8]
call fcn.140021650
mov dword [rsp + 0x28], edi
lea rax, [rbp + 0x40]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
lea rdx, str.UpperFilters
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x840]
xor rcx, rsp
call fcn.140021670
lea r11, [rsp + 0x950]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop rbp
ret