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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
mov qword [rsp + 0x20], r12
push rbp
push r14
push r15
lea rbp, [rsp - 0xa40]
sub rsp, 0xb40
mov rax, qword [0x14005a318]
xor rax, rsp
mov qword [rbp + 0xa30], rax
xor edx, edx
mov r8d, 0x800
lea rcx, [rbp + 0x230]
call fcn.140026d60
lea r9, [rsp + 0x30]
mov r8d, 1
lea rdx, [rbp]
lea rcx, str.Keyboard
call qword [sym.imp.SETUPAPI.dll_SetupDiClassGuidsFromNameW]
mov edx, 0xf003f
lea rcx, [rbp]
call qword [sym.imp.SETUPAPI.dll_SetupDiOpenClassRegKey]
mov r12, rax
cmp rax, 0xffffffffffffffff
je 0x1400061e8
mov dword [rsp + 0x30], 0x800
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp + 0x230]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x34]
xor r8d, r8d
lea rdx, str.UpperFilters
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1400061df
lea rax, [rsp + 0x38]
mov qword [rbp - 0x28], rax
lea rax, [rsp + 0x58]
mov qword [rbp - 0x20], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x18], rax
lea rax, [rbp - 0x68]
mov qword [rbp - 0x10], rax
xor esi, esi
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x50], 7
mov word [rsp + 0x38], si
xor r8d, r8d
lea rdx, [0x14004df6c]
lea rcx, [rsp + 0x38]
call fcn.14000cfd0
nop
mov qword [rsp + 0x68], rsi
mov qword [rsp + 0x70], 7
mov word [rsp + 0x58], si
xor r8d, r8d
lea rdx, [0x14004df6c]
lea rcx, [rsp + 0x58]
call fcn.14000cfd0
nop
mov qword [rbp - 0x78], rsi
mov qword [rbp - 0x70], 7
mov word [rsp + 0x78], si
xor r8d, r8d
lea rdx, [0x14004df6c]
lea rcx, [rsp + 0x78]
call fcn.14000cfd0
nop
mov qword [rbp - 0x58], rsi
mov qword [rbp - 0x50], 7
mov word [rbp - 0x68], si
xor r8d, r8d
lea rdx, [0x14004df6c]
lea rcx, [rbp - 0x68]
call fcn.14000cfd0
nop
mov qword [rbp - 0x38], rsi
mov qword [rbp - 0x30], 7
mov word [rbp - 0x48], si
lea r8d, [rsi + 5]
lea rdx, str.SynTP
lea rcx, [rbp - 0x48]
call fcn.14000cfd0
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 + 0x10]
call fcn.14001fca0
mov r14, rax
cmp qword [rax + 0x18], 8
jb 0x14000609e
mov r14, qword [rax]
mov dword [rbp + 0x30], esi
lea rbx, [rbp + 0x230]
lea rdi, [rbp + 0x30]
cmp word [rbp + 0x230], 0
je 0x140006167
movsxd r15, dword [rsp + 0x30]
nop
lea rcx, [rbp + 0x230]
mov rax, rbx
sub rax, rcx
sar rax, 1
cmp rax, r15
jge 0x14000614d
mov rdx, r14
mov rcx, rbx
call fcn.1400308ec
test eax, eax
je 0x140006126
mov rax, rbx
mov rdx, rdi
sub rdx, rbx
nop dword [rax]
movzx ecx, word [rax]
mov word [rdx + rax], cx
lea rax, [rax + 2]
test cx, cx
jne 0x1400060f0
mov rax, 0xffffffffffffffff
nop word [rax + rax]
lea rax, [rax + 1]
cmp word [rdi + rax*2], 0
jne 0x140006110
lea rdi, [rdi + rax*2]
add rdi, 2
mov word [rdi], si
mov rax, 0xffffffffffffffff
nop dword [rax]
lea rax, [rax + 1]
cmp word [rbx + rax*2], 0
jne 0x140006130
lea rbx, [rbx + rax*2]
add rbx, 2
cmp word [rbx], 0
jne 0x1400060c0
lea rax, [rbp + 0x30]
cmp rdi, rax
jbe 0x140006167
lea rax, [rbp + 0x30]
sub rdi, rax
sar rdi, 1
lea esi, [rdi*2 + 2]
movsxd r8, esi
lea rdx, [rbp + 0x30]
lea rcx, [rbp + 0x230]
call fcn.1400266b0
mov rdx, qword [rbp + 0x28]
cmp rdx, 8
jb 0x1400061b6
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x10]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400061b1
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140006218
call fcn.1400243b8
mov dword [rsp + 0x28], esi
lea rax, [rbp + 0x230]
mov qword [rsp + 0x20], rax
mov r9d, 7
xor r8d, r8d
lea rdx, str.UpperFilters
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0xa30]
xor rcx, rsp
call fcn.140023ea0
lea r11, [rsp + 0xb40]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
call fcn.1400303f4
int3