Function at 0x14000cef0
Capabilities:
Query or enumerate registry key
Query or enumerate registry value
Set registry value

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x200]
sub rsp, 0x300
mov qword [rbp - 0x40], 0xfffffffffffffffe
mov qword [rsp + 0x340], rbx
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rbp + 0x1f0], rax
mov esi, r9d
mov dword [rbp - 0x7c], r9d
mov r12, r8
mov r13, rdx
test rdx, rdx
je 0x14000cfc2
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, str.Control_PanelInput_MethodHot_Keys
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000cfc2
xor eax, eax
mov dword [rsp + 0x7c], eax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14000cfc9
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14000d411
xor eax, eax
mov r15d, eax
mov dword [rbp - 0x80], 0x208
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov r14d, eax
mov qword [rbp - 0x68], rax
mov rbx, qword [rbp - 0x70]
mov rdi, qword [rbp - 0x78]
cmp dword [rsp + 0x7c], eax
jbe 0x14000d269
nop word [rax + rax]
mov dword [rbp - 0x80], 0x208
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x80]
lea r8, [rbp - 0x20]
mov edx, r15d
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp - 0x20]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000d1de
mov dword [rbp - 0x5c], 3
mov dword [rbp - 0x60], 4
lea rax, [rbp - 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rbp - 0x5c]
xor r8d, r8d
lea rdx, str.Target_IME
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000d1d4
lea rcx, [rbp - 0x20]
call fcn.14001cdd4
mov esi, eax
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0x78]
cmp rax, rbx
jae 0x14000d150
lea rax, [rsp + 0x78]
cmp rdi, rax
ja 0x14000d150
lea rsi, [rsp + 0x78]
sub rsi, rdi
sar rsi, 2
cmp rbx, r14
jne 0x14000d144
mov rax, r14
sub rax, rbx
sar rax, 2
cmp rax, 1
jae 0x14000d144
sub rbx, rdi
sar rbx, 2
movabs rcx, 0x3fffffffffffffff
mov rax, rcx
sub rax, rbx
cmp rax, 1
jb 0x14000d1ef
lea rdx, [rbx + 1]
sub r14, rdi
sar r14, 2
mov rax, r14
shr rax, 1
sub rcx, rax
add rax, r14
xor r8d, r8d
cmp rcx, r14
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
lea rcx, [rbp - 0x78]
call fcn.14000d760
mov r14, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x70]
mov rdi, qword [rbp - 0x78]
test rbx, rbx
je 0x14000d1c6
mov eax, dword [rdi + rsi*4]
mov dword [rbx], eax
jmp 0x14000d1c6
cmp rbx, r14
jne 0x14000d1bf
mov rax, r14
sub rax, rbx
sar rax, 2
cmp rax, 1
jae 0x14000d1bf
sub rbx, rdi
sar rbx, 2
movabs rcx, 0x3fffffffffffffff
mov rax, rcx
sub rax, rbx
cmp rax, 1
jb 0x14000d1fc
lea rdx, [rbx + 1]
sub r14, rdi
sar r14, 2
mov rax, r14
shr rax, 1
sub rcx, rax
add rax, r14
xor r8d, r8d
cmp rcx, r14
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
lea rcx, [rbp - 0x78]
call fcn.14000d760
mov r14, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x70]
mov rdi, qword [rbp - 0x78]
test rbx, rbx
je 0x14000d1c6
mov dword [rbx], esi
add rbx, 4
mov qword [rbp - 0x70], rbx
cmp dword [rbp - 0x58], r13d
je 0x14000d209
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r15d
cmp r15d, dword [rsp + 0x7c]
jae 0x14000d266
xor eax, eax
jmp 0x14000d000
lea rcx, str.vector_T__too_long
call fcn.1400129c4
int3
lea rcx, str.vector_T__too_long
call fcn.1400129c4
int3
lea rax, [rbp - 0x20]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14000d211
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp ebx, dword [rbp - 0x7c]
jle 0x14000d23c
xor bl, bl
jmp 0x14000d3f3
lea rcx, [rbp - 0x20]
lea rax, [rbp - 0x20]
sub r12, rax
nop word [rax + rax]
movzx eax, word [rcx]
mov word [r12 + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14000d250
jmp 0x14000d3f1
mov esi, dword [rbp - 0x7c]
mov ecx, 0x64
nop
mov rax, rdi
cmp rdi, rbx
je 0x14000d294
cmp dword [rax], ecx
je 0x14000d285
add rax, 4
cmp rax, rbx
jmp 0x14000d276
cmp rax, rbx
je 0x14000d294
inc ecx
cmp ecx, 0x96
jle 0x14000d270
mov r8d, 0x64
lea rdx, str._08d
lea rcx, [rbp - 0x38]
call fcn.140008050
xor ebx, ebx
mov qword [rsp + 0x70], rbx
lea rax, [rbp - 0x48]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
lea rdx, [rbp - 0x38]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x14000d397
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 3]
xor r8d, r8d
lea rdx, str.Key_Modifiers
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
test eax, eax
jne 0x14000d391
mov dword [rsp + 0x60], r13d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 3]
xor r8d, r8d
lea rdx, str.Target_IME
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
test eax, eax
jne 0x14000d391
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea r9d, [rbx + 3]
xor r8d, r8d
lea rdx, str.Virtual_Key
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x70]
test eax, eax
je 0x14000d3a4
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000d3f3
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rax, [rbp - 0x38]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14000d3c0
cmp ebx, esi
jle 0x14000d3d2
xor bl, bl
jmp 0x14000d3f3
lea rcx, [rbp - 0x38]
lea rax, [rbp - 0x38]
sub r12, rax
nop dword [rax]
movzx eax, word [rcx]
mov word [r12 + rcx], ax
lea rcx, [rcx + 2]
test ax, ax
jne 0x14000d3e0
mov bl, 1
test rdi, rdi
je 0x14000d40e
sub r14, rdi
sar r14, 2
mov r8, r14
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.140008570
movzx eax, bl
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140013270
mov rbx, qword [rsp + 0x340]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret