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

Disassembly:
mov r11, rsp
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x320
mov qword [rsp + 0xf8], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0x310], rax
mov r15, r9
mov ebx, r8d
mov dword [rsp + 0xb8], ebx
mov edi, edx
mov dword [rsp + 0xb4], edx
xor r13d, r13d
mov ebp, r13d
mov dword [rsp + 0x6c], r13d
lea rax, [r11 - 0x2c0]
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
je 0x1400056d2
xor eax, eax
jmp 0x140005d3a
mov dword [rsp + 0x68], r13d
mov qword [rsp + 0x58], r13
mov qword [rsp + 0x50], r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x40], r13
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x140005733
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x140005d3a
mov r14d, r13d
mov dword [rsp + 0xb0], 0x208
mov qword [rsp + 0x98], r13
mov rax, r13
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0xa8], r13
cmp dword [rsp + 0x68], 0
jbe 0x140005c57
movzx esi, byte [rsp + 0x60]
nop
mov dword [rsp + 0xb0], 0x208
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0xb0]
lea r8, [rsp + 0x100]
mov edx, r14d
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea r11, [rsp + 0x70]
mov qword [rsp + 0x20], r11
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005c0d
mov dword [rsp + 0x78], 3
mov dword [rsp + 0x64], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc4]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.Target_IME
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x140005b32
cmp dword [rsp + 0xc4], r15d
jne 0x140005b32
add r14d, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [0x14003afb0]
mov rax, qword [0x14003afb0]
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x80], rbx
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x100]
test rax, 0xffffffffffff0000
jne 0x1400058b1
movzx edi, cx
xor edx, edx
mov ecx, edi
call fcn.140003850
test rax, rax
je 0x1400059bc
mov r8d, edi
mov rdx, rax
lea rcx, [rsp + 0x80]
call fcn.140003dd0
mov rbx, qword [rsp + 0x80]
jmp 0x1400059bc
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x100]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
mov rdi, rcx
test ecx, ecx
jne 0x14000592c
lea rdx, [rbx - 0x18]
mov rdi, qword [rdx]
cmp dword [rdx + 8], eax
je 0x1400059bc
cmp dword [rdx + 0x10], eax
jge 0x1400058fa
cmp dword [rbx - 0xc], eax
jl 0x140005c31
mov dword [rbx - 0x10], r13d
mov word [rbx], ax
jmp 0x1400059bc
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140005912
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov rax, qword [rdi]
mov rcx, rdi
call qword [rax + 0x18]
lea rbx, [rax + 0x18]
mov qword [rsp + 0x80], rbx
jmp 0x1400059bc
mov ebp, dword [rbx - 0x10]
lea r12, [rsp + 0x100]
sub r12, rbx
sar r12, 1
mov ecx, 1
sub ecx, dword [rbx - 8]
mov eax, dword [rbx - 0xc]
sub eax, edi
or eax, ecx
jge 0x140005965
mov edx, edi
lea rcx, [rsp + 0x80]
call fcn.140003be0
mov rbx, qword [rsp + 0x80]
cmp r12, rbp
ja 0x140005985
movsxd rax, edi
lea rbp, [rax + rax]
lea r8, [rbx + r12*2]
mov r9, rbp
mov rdx, rbp
mov rcx, rbx
call fcn.140011ea0
jmp 0x1400059a2
movsxd rax, edi
lea rbp, [rax + rax]
mov r9, rbp
lea r8, [rsp + 0x100]
mov rdx, rbp
mov rcx, rbx
call fcn.140011dd0
test edi, edi
js 0x140005c3c
cmp edi, dword [rbx - 0xc]
jg 0x140005c3c
mov dword [rbx - 0x10], edi
mov word [rbx + rbp], 0
mov rbp, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
test rdi, rdi
je 0x140005a2a
mov rcx, rbp
sub rcx, rdi
sar rcx, 3
mov rax, qword [rsp + 0xa8]
sub rax, rdi
sar rax, 3
cmp rcx, rax
jae 0x140005a2a
xor eax, eax
mov byte [rsp + 0x60], al
mov byte [rsp + 0x28], al
mov byte [rsp + 0x20], sil
lea r9, [rsp + 0x90]
lea r8, [rsp + 0x80]
lea edx, [rax + 1]
mov rcx, rbp
call fcn.1400041d0
lea rdx, [rbp + 8]
mov qword [rsp + 0xa0], rdx
jmp 0x140005afb
mov r12, rbp
cmp rdi, rbp
jbe 0x140005a47
call fcn.140012380
mov rbp, qword [rsp + 0xa0]
mov rdi, qword [rsp + 0x98]
lea rax, [rsp + 0x90]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], r12
test rdi, rdi
je 0x140005a83
mov rax, rbp
sub rax, rdi
sar rax, 3
je 0x140005a83
cmp rdi, rbp
jbe 0x140005a7a
call fcn.140012380
sub r12, rdi
sar r12, 3
jmp 0x140005a86
mov r12, r13
movaps xmm0, xmmword [rsp + 0xd0]
movdqa xmmword [rsp + 0xe0], xmm0
lea r9, [rsp + 0x80]
mov r8d, 1
lea rdx, [rsp + 0xe0]
lea rcx, [rsp + 0x90]
call fcn.1400048b0
mov rdx, qword [rsp + 0x98]
mov rdi, rdx
mov rcx, qword [rsp + 0xa0]
cmp rdx, rcx
jbe 0x140005ae7
call fcn.140012380
mov rcx, qword [rsp + 0xa0]
mov rdx, qword [rsp + 0x98]
lea rax, [rdi + r12*8]
cmp rax, rcx
ja 0x140005af5
cmp rax, rdx
jae 0x140005afb
call fcn.140012380
nop
lea rdx, [rbx - 0x18]
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140005c13
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
mov edi, dword [rsp + 0xb4]
mov ebx, dword [rsp + 0xb8]
mov ebp, dword [rsp + 0x6c]
jmp 0x140005c25
mov dword [rsp + 0x64], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.Key_Modifiers
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140005b83
add r14d, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140005c25
mov dword [rsp + 0x64], 4
lea rax, [rsp + 0x64]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xbc]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x78]
xor r8d, r8d
lea rdx, str.Virtual_Key
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x140005bd1
add r14d, 1
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x140005c25
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [rsp + 0xbc], ebx
jne 0x140005c0d
cmp edi, dword [rsp + 0xc0]
jne 0x140005c0d
xor edx, edx
lea r8d, [rdx + 0x10]
lea rcx, [rsp + 0x100]
call fcn.140013680
mov ebp, eax
mov dword [rsp + 0x6c], eax
add r14d, 1
jmp 0x140005c25
add r14d, 1
jmp 0x140005c25
mov edi, dword [rsp + 0xb4]
mov ebx, dword [rsp + 0xb8]
mov ebp, dword [rsp + 0x6c]
cmp r14d, dword [rsp + 0x68]
jae 0x140005c47
jmp 0x140005770
mov ecx, 0x80070057
call fcn.140003830
int3
mov ecx, 0x80070057
call fcn.140003830
nop
mov rax, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x98]
mov rdi, r13
cmp r13, rax
jbe 0x140005c74
call fcn.140012380
mov rax, qword [rsp + 0xa0]
mov r13, qword [rsp + 0x98]
mov rbx, rax
cmp r13, rax
jbe 0x140005c89
call fcn.140012380
mov rax, qword [rsp + 0xa0]
cmp rdi, rbx
je 0x140005cd1
cmp rdi, rax
jb 0x140005c98
call fcn.140012380
mov rdx, qword [rdi]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov rax, qword [rsp + 0xa0]
cmp rdi, rax
jb 0x140005cc3
call fcn.140012380
mov rax, qword [rsp + 0xa0]
add rdi, 8
mov r13, qword [rsp + 0x98]
jmp 0x140005c74
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rdi, qword [rsp + 0x98]
test rdi, rdi
je 0x140005d38
mov rbx, qword [rsp + 0xa0]
cmp rdi, rbx
je 0x140005d30
nop
nop
mov rdx, qword [rdi]
sub rdx, 0x18
or eax, 0xffffffff
lock xadd dword [rdx + 0x10], eax
add eax, 0xffffffff
test eax, eax
jg 0x140005d1f
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + 8]
add rdi, 8
cmp rdi, rbx
jne 0x140005d00
mov rdi, qword [rsp + 0x98]
mov rcx, rdi
call fcn.140011dc0
mov eax, ebp
mov rcx, qword [rsp + 0x310]
xor rcx, rsp
call fcn.140011c90
lea r11, [rsp + 0x320]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret