Function at 0x14000c6a0
Capabilities:
Delete registry key
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2f0
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x14004a1a0]
xor rax, rsp
mov qword [rbp + 0x1e0], rax
mov r13, r9
mov edi, r8d
mov dword [rbp - 0x58], r8d
mov ebx, edx
mov dword [rbp - 0x5c], edx
xor r14d, r14d
mov r12d, r14d
lea rax, [rbp - 0x80]
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 0x14000c770
mov dword [rsp + 0x68], r14d
mov qword [rsp + 0x58], r14
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x40], r14
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14000c777
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x14000cbc8
mov r15d, r14d
mov dword [rbp - 0x60], 0x208
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x78], xmm0
mov rsi, r14
mov qword [rbp - 0x68], r14
cmp dword [rsp + 0x68], 0
jbe 0x14000cb38
nop dword [rax + rax]
mov dword [rbp - 0x60], 0x208
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x60]
lea r8, [rbp - 0x30]
mov edx, r15d
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x20], rax
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rbp - 0x30]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000cb04
mov dword [rsp + 0x64], 3
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x54]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.Target_IME
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000ca5b
cmp dword [rbp - 0x54], r13d
jne 0x14000ca5b
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.1400082c0
test rax, rax
je 0x14000cb2d
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x70], rbx
lea rcx, [rbp - 0x30]
lea rax, [rbp - 0x30]
test rax, 0xffffffffffff0000
jne 0x14000c8a6
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.14000c480
test rax, rax
je 0x14000c8d0
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.14000d3e0
jmp 0x14000c8cb
lea rcx, [rbp - 0x30]
or rax, 0xffffffffffffffff
nop
inc rax
cmp word [rcx + rax*2], 0
jne 0x14000c8b0
mov r8d, eax
lea rdx, [rbp - 0x30]
lea rcx, [rsp + 0x70]
call fcn.14000d560
mov rbx, qword [rsp + 0x70]
lea rax, [rsp + 0x70]
mov rcx, qword [rbp - 0x78]
mov rdi, qword [rbp - 0x70]
cmp rax, rdi
jae 0x14000c99f
lea rax, [rsp + 0x70]
cmp rcx, rax
ja 0x14000c99f
lea r14, [rsp + 0x70]
sub r14, rcx
sar r14, 3
cmp rdi, rsi
jne 0x14000c972
mov rax, rsi
sub rax, rdi
sar rax, 3
cmp rax, 1
jae 0x14000c972
sub rdi, rcx
sar rdi, 3
movabs r8, 0x1fffffffffffffff
mov rax, r8
sub rax, rdi
cmp rax, 1
jb 0x14000cb13
lea rdx, [rdi + 1]
sub rsi, rcx
sar rsi, 3
mov rax, rsi
shr rax, 1
mov rcx, r8
sub rcx, rax
add rax, rsi
xor r8d, r8d
cmp rcx, rsi
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
lea rcx, [rbp - 0x78]
call fcn.14000d790
mov rdi, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
mov qword [rbp - 0x48], rdi
mov qword [rbp - 0x40], rdi
test rdi, rdi
je 0x14000c993
mov rcx, qword [rcx + r14*8]
sub rcx, 0x18
call fcn.14000c530
add rax, 0x18
mov qword [rdi], rax
add rdi, 8
xor r14d, r14d
jmp 0x14000ca2e
cmp rdi, rsi
jne 0x14000ca0d
mov rax, rsi
sub rax, rdi
sar rax, 3
cmp rax, 1
jae 0x14000ca0d
sub rdi, rcx
sar rdi, 3
movabs r8, 0x1fffffffffffffff
mov rax, r8
sub rax, rdi
cmp rax, 1
jb 0x14000cb20
lea rdx, [rdi + 1]
sub rsi, rcx
sar rsi, 3
mov rax, rsi
shr rax, 1
mov rcx, r8
sub rcx, rax
add rax, rsi
mov r8, r14
cmp rcx, rsi
cmovae r8, rax
cmp r8, rdx
cmovae rdx, r8
lea rcx, [rbp - 0x78]
call fcn.14000d790
mov rdi, qword [rbp - 0x70]
mov qword [rbp - 0x40], rdi
mov qword [rbp - 0x48], rdi
test rdi, rdi
je 0x14000ca2a
lea rcx, [rbx - 0x18]
call fcn.14000c530
add rax, 0x18
mov qword [rdi], rax
add rdi, 8
mov qword [rbp - 0x70], rdi
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000ca4c
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rsi, qword [rbp - 0x68]
mov ebx, dword [rbp - 0x5c]
mov edi, dword [rbp - 0x58]
jmp 0x14000cb04
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x4c]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.Key_Modifiers
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x78]
test eax, eax
je 0x14000caa1
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000cb04
mov dword [rsp + 0x60], 4
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x64]
xor r8d, r8d
lea rdx, str.Virtual_Key
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov rcx, qword [rsp + 0x78]
test eax, eax
je 0x14000cae2
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000cb04
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rbp - 0x50], edi
jne 0x14000cb04
cmp ebx, dword [rbp - 0x4c]
jne 0x14000cb04
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rbp - 0x30]
call fcn.14001e14c
mov r12d, eax
inc r15d
cmp r15d, dword [rsp + 0x68]
jae 0x14000cb38
jmp 0x14000c7a0
lea rcx, str.vector_T__too_long
call fcn.140012914
int3
lea rcx, str.vector_T__too_long
call fcn.140012914
nop
mov ecx, 0x80004005
call fcn.1400082a0
int3
mov rdi, qword [rbp - 0x78]
mov rbx, rdi
mov r14, qword [rbp - 0x70]
cmp rdi, r14
je 0x14000cb66
nop dword [rax + rax]
mov rdx, qword [rbx]
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
add rbx, 8
cmp rbx, r14
jne 0x14000cb50
mov rcx, qword [rbp - 0x80]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x14000cbc5
cmp rdi, r14
je 0x14000cbaf
nop dword [rax + rax]
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14000cb9d
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rdi, 8
cmp rdi, qword [rbp - 0x70]
jne 0x14000cb80
mov rsi, qword [rbp - 0x68]
mov rdi, qword [rbp - 0x78]
sub rsi, rdi
sar rsi, 3
mov r8, rsi
mov rdx, rdi
lea rcx, [rbp - 0x78]
call fcn.14000d980
mov eax, r12d
mov rcx, qword [rbp + 0x1e0]
xor rcx, rsp
call fcn.1400131c0
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret