Function at 0x14000cc50
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 [0x1400441a0]
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 0x14000cd22
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 0x14000cd22
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 0x14000cd29
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x14000d171
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 0x14000cfc9
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 0x14000cf3e
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 0x14000cf34
lea rcx, [rbp - 0x20]
call fcn.14001a2c8
mov esi, eax
mov dword [rsp + 0x78], eax
lea rax, [rsp + 0x78]
cmp rax, rbx
jae 0x14000ceb0
lea rax, [rsp + 0x78]
cmp rdi, rax
ja 0x14000ceb0
lea rsi, [rsp + 0x78]
sub rsi, rdi
sar rsi, 2
cmp rbx, r14
jne 0x14000cea4
mov rax, r14
sub rax, rbx
sar rax, 2
cmp rax, 1
jae 0x14000cea4
sub rbx, rdi
sar rbx, 2
movabs rcx, 0x3fffffffffffffff
mov rax, rcx
sub rax, rbx
cmp rax, 1
jb 0x14000cf4f
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.14000aa40
mov r14, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x70]
mov rdi, qword [rbp - 0x78]
test rbx, rbx
je 0x14000cf26
mov eax, dword [rdi + rsi*4]
mov dword [rbx], eax
jmp 0x14000cf26
cmp rbx, r14
jne 0x14000cf1f
mov rax, r14
sub rax, rbx
sar rax, 2
cmp rax, 1
jae 0x14000cf1f
sub rbx, rdi
sar rbx, 2
movabs rcx, 0x3fffffffffffffff
mov rax, rcx
sub rax, rbx
cmp rax, 1
jb 0x14000cf5c
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.14000aa40
mov r14, qword [rbp - 0x68]
mov rbx, qword [rbp - 0x70]
mov rdi, qword [rbp - 0x78]
test rbx, rbx
je 0x14000cf26
mov dword [rbx], esi
add rbx, 4
mov qword [rbp - 0x70], rbx
cmp dword [rbp - 0x58], r13d
je 0x14000cf69
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
inc r15d
cmp r15d, dword [rsp + 0x7c]
jae 0x14000cfc6
xor eax, eax
jmp 0x14000cd60
lea rcx, str.vector_T__too_long
call fcn.1400126e4
int3
lea rcx, str.vector_T__too_long
call fcn.1400126e4
int3
lea rax, [rbp - 0x20]
or rbx, 0xffffffffffffffff
inc rbx
cmp word [rax + rbx*2], 0
jne 0x14000cf71
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 0x14000cf9c
xor bl, bl
jmp 0x14000d153
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 0x14000cfb0
jmp 0x14000d151
mov esi, dword [rbp - 0x7c]
mov ecx, 0x64
nop
mov rax, rdi
cmp rdi, rbx
je 0x14000cff4
cmp dword [rax], ecx
je 0x14000cfe5
add rax, 4
cmp rax, rbx
jmp 0x14000cfd6
cmp rax, rbx
je 0x14000cff4
inc ecx
cmp ecx, 0x96
jle 0x14000cfd0
mov r8d, 0x64
lea rdx, str._08d
lea rcx, [rbp - 0x38]
call fcn.140001d50
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 0x14000d0f7
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 0x14000d0f1
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 0x14000d0f1
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 0x14000d104
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000d153
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 0x14000d120
cmp ebx, esi
jle 0x14000d132
xor bl, bl
jmp 0x14000d153
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 0x14000d140
mov bl, 1
test rdi, rdi
je 0x14000d16e
sub r14, rdi
sar r14, 2
mov r8, r14
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.14000ab50
movzx eax, bl
mov rcx, qword [rbp + 0x1f0]
xor rcx, rsp
call fcn.140012ec0
mov rbx, qword [rsp + 0x340]
add rsp, 0x300
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret