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

Disassembly:
mov rax, rsp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x340
mov qword [rsp + 0xe8], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x20], rbp
mov rax, qword [0x140039680]
xor rax, rsp
mov qword [rsp + 0x330], rax
mov r13d, r9d
mov rbp, r8
mov r12, rdx
test rdx, rdx
jne 0x140004f9d
xor al, al
jmp 0x1400055f4
lea rax, [rsp + 0x60]
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 0x140004fcf
xor al, al
jmp 0x1400055f4
xor r14d, r14d
mov dword [rsp + 0x78], 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 + 0x78]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
je 0x14000502d
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x1400055f4
mov esi, r14d
mov dword [rsp + 0xa0], 0x208
mov rcx, r14
mov qword [rsp + 0x88], rcx
mov rax, r14
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x98], r14
cmp dword [rsp + 0x78], 0
jbe 0x140005329
nop
nop
nop
mov dword [rsp + 0xa0], 0x208
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xa0]
lea r8, [rsp + 0x120]
mov edx, esi
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea rdx, [rsp + 0xa8]
mov qword [rsp + 0x20], rdx
mov r9d, 0xf003f
xor r8d, r8d
lea rdx, [rsp + 0x120]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140005278
mov dword [rsp + 0xb8], 3
mov dword [rsp + 0xb4], 4
lea rax, [rsp + 0xb4]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0xbc]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xb8]
xor r8d, r8d
lea rdx, str.Target_IME
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14000526a
lea rcx, [rsp + 0x120]
call fcn.140012f40
mov dword [rsp + 0xb0], eax
mov r8, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
test rdi, rdi
je 0x140005190
mov rdx, r8
sub rdx, rdi
sar rdx, 2
mov rcx, qword [rsp + 0x98]
sub rcx, rdi
sar rcx, 2
cmp rdx, rcx
jae 0x140005190
mov dword [r8], eax
lea rax, [r8 + 4]
mov qword [rsp + 0x90], rax
jmp 0x140005260
mov rbx, r8
cmp rdi, r8
jbe 0x1400051ad
call fcn.140012380
mov r8, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
lea rax, [rsp + 0x80]
mov qword [rsp + 0xd0], rax
mov qword [rsp + 0xd8], rbx
test rdi, rdi
je 0x1400051e9
mov rax, r8
sub rax, rdi
sar rax, 2
je 0x1400051e9
cmp rdi, r8
jbe 0x1400051e0
call fcn.140012380
sub rbx, rdi
sar rbx, 2
jmp 0x1400051ec
mov rbx, r14
movaps xmm0, xmmword [rsp + 0xd0]
movdqa xmmword [rsp + 0xf0], xmm0
lea r9, [rsp + 0xb0]
mov r8d, 1
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x80]
call fcn.140004460
mov rdx, qword [rsp + 0x88]
mov rdi, rdx
mov rcx, qword [rsp + 0x90]
cmp rdx, rcx
jbe 0x14000524d
call fcn.140012380
mov rcx, qword [rsp + 0x90]
mov rdx, qword [rsp + 0x88]
lea rax, [rdi + rbx*4]
cmp rax, rcx
ja 0x14000525b
cmp rax, rdx
jae 0x140005260
call fcn.140012380
cmp dword [rsp + 0xbc], r12d
je 0x14000528a
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add esi, 1
cmp esi, dword [rsp + 0x78]
jae 0x140005319
jmp 0x140005070
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x120]
repne scasw ax, word [rdi]
not rcx
lea rdi, [rcx - 1]
mov rcx, qword [rsp + 0xa8]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, r13d
jle 0x1400052d9
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400052d2
call fcn.140011dc0
xor al, al
jmp 0x1400055f4
lea rcx, [rsp + 0x120]
lea rax, [rsp + 0x120]
sub rbp, rax
nop
movzx eax, word [rcx]
mov word [rcx + rbp], ax
add rcx, 2
test ax, ax
jne 0x1400052f0
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140005312
call fcn.140011dc0
mov al, 1
jmp 0x1400055f4
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
mov ebx, 0x64
nop
mov rsi, rax
cmp rcx, rax
jbe 0x14000534d
call fcn.140012380
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
mov rdi, rcx
cmp rcx, rax
jbe 0x14000536a
call fcn.140012380
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
cmp rdi, rsi
je 0x14000537d
nop
cmp dword [rdi], ebx
je 0x14000537d
add rdi, 4
cmp rdi, rsi
jne 0x140005370
mov rsi, rax
cmp rcx, rax
jbe 0x14000539a
call fcn.140012380
mov rax, qword [rsp + 0x90]
mov rcx, qword [rsp + 0x88]
cmp rdi, rsi
je 0x1400053aa
add ebx, 1
cmp ebx, 0x96
jle 0x140005330
mov r8d, 0x64
lea rdx, str._08d
lea rcx, [rsp + 0x100]
call fcn.140011ce0
mov qword [rsp + 0x70], r14
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0xf003f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x100]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x140005434
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14000542d
call fcn.140011dc0
xor al, al
jmp 0x1400055f4
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.Key_Modifiers
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x14000549a
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x140005493
call fcn.140011dc0
xor al, al
jmp 0x1400055f4
mov dword [rsp + 0x68], r12d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.Target_IME
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140005500
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400054f9
call fcn.140011dc0
xor al, al
jmp 0x1400055f4
mov dword [rsp + 0x68], r14d
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 3
xor r8d, r8d
lea rdx, str.Virtual_Key
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x140005566
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x14000555f
call fcn.140011dc0
xor al, al
jmp 0x1400055f4
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
or rcx, 0xffffffffffffffff
lea rdi, [rsp + 0x100]
repne scasw ax, word [rdi]
not rcx
sub rcx, 1
cmp ecx, r13d
jle 0x1400055af
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400055ab
call fcn.140011dc0
xor al, al
jmp 0x1400055f4
lea rcx, [rsp + 0x100]
lea rax, [rsp + 0x100]
sub rbp, rax
nop
nop
nop
nop
movzx eax, word [rcx]
mov word [rcx + rbp], ax
add rcx, 2
test ax, ax
jne 0x1400055d0
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1400055f2
call fcn.140011dc0
mov al, 1
mov rcx, qword [rsp + 0x330]
xor rcx, rsp
call fcn.140011c90
lea r11, [rsp + 0x340]
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret