Function at 0x14000c330
Capabilities:
Set registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
lea rbp, [rsp - 0x27]
sub rsp, 0xd0
mov qword [rbp - 0x41], 0xfffffffffffffffe
mov rax, qword [0x14002c868]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, r8
mov rdi, rdx
mov r13d, ecx
xor r14d, r14d
mov qword [rbp - 0x59], r14
mov dword [rbp - 0x51], r14d
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x61], r14
lea rax, [rbp - 0x61]
mov qword [rsp + 0x20], rax
mov r9d, 0xf013f
xor r8d, r8d
lea rdx, [0x140024290]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x14000c6fa
mov rbx, qword [rbp - 0x61]
mov qword [rbp - 0x59], rbx
mov dword [rbp - 0x51], 0x100
test rbx, rbx
je 0x14000c6fa
mov qword [rbp - 0x79], r14
mov dword [rbp - 0x71], r14d
mov qword [rbp - 0x69], r14
mov r8d, r13d
lea rdx, str._08X
lea rcx, [rbp - 0x39]
call fcn.1400024e0
nop
lea r8, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae r8, qword [rbp - 0x39]
mov r9d, 0xf013f
mov rdx, rbx
lea rcx, [rbp - 0x79]
call fcn.14000b790
mov r12, qword [rbp - 0x79]
test r12, r12
jne 0x14000c437
cmp qword [rbp - 0x21], 8
jb 0x14000c418
mov rcx, qword [rbp - 0x39]
call fcn.14000e0cc
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r14
mov word [rbp - 0x39], r14w
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000c6fa
cmp qword [rdi + 0x18], 8
jb 0x14000c441
mov rdi, qword [rdi]
mov eax, r14d
test rdi, rdi
setne al
test eax, eax
je 0x14000c6a5
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.Ime_File
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000c6a5
cmp qword [rsi + 0x18], 8
jb 0x14000c493
mov rsi, qword [rsi]
mov eax, r14d
test rsi, rsi
setne al
test eax, eax
je 0x14000c650
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rsi
mov r9d, 1
xor r8d, r8d
lea rdx, str.Layout_Text
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000c650
mov qword [rbp + 7], 7
mov qword [rbp - 1], r14
mov word [rbp - 0x11], r14w
movzx ecx, r13b
sub ecx, 0x11
je 0x14000c513
dec ecx
lea rcx, [rbp - 0x11]
je 0x14000c50a
lea r8d, [rax + 9]
lea rdx, str.kbdus.dll
jmp 0x14000c524
lea rdx, str.kbdkor.dll
jmp 0x14000c51e
lea rdx, str.kbdjpn.dll
lea rcx, [rbp - 0x11]
mov r8d, 0xa
call fcn.140001d00
lea rdi, [rbp - 0x11]
cmp qword [rbp + 7], 8
cmovae rdi, qword [rbp - 0x11]
mov eax, r14d
test rdi, rdi
setne al
test eax, eax
je 0x14000c5d7
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [rax + rax + 2]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
mov r9d, 1
xor r8d, r8d
lea rdx, str.Layout_File
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x14000c5d7
cmp qword [rbp + 7], 8
jb 0x14000c58b
mov rcx, qword [rbp - 0x11]
call fcn.14000e0cc
mov qword [rbp + 7], 7
mov qword [rbp - 1], r14
mov word [rbp - 0x11], r14w
cmp qword [rbp - 0x21], 8
jb 0x14000c5ac
mov rcx, qword [rbp - 0x39]
call fcn.14000e0cc
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r14
mov word [rbp - 0x39], r14w
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x14000c6fc
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x79], r14
mov dword [rbp - 0x71], r14d
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x59]
call fcn.14000b6e0
nop
cmp qword [rbp + 7], 8
jb 0x14000c610
mov rcx, qword [rbp - 0x11]
call fcn.14000e0cc
mov qword [rbp + 7], 7
mov qword [rbp - 1], r14
mov word [rbp - 0x11], r14w
cmp qword [rbp - 0x21], 8
jb 0x14000c631
mov rcx, qword [rbp - 0x39]
call fcn.14000e0cc
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r14
mov word [rbp - 0x39], r14w
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000c6fa
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x79], r14
mov dword [rbp - 0x71], r14d
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x59]
call fcn.14000b6e0
nop
cmp qword [rbp - 0x21], 8
jb 0x14000c689
mov rcx, qword [rbp - 0x39]
call fcn.14000e0cc
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r14
mov word [rbp - 0x39], r14w
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000c6fa
mov rcx, r12
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov qword [rbp - 0x79], r14
mov dword [rbp - 0x71], r14d
lea rdx, [rbp - 0x39]
cmp qword [rbp - 0x21], 8
cmovae rdx, qword [rbp - 0x39]
lea rcx, [rbp - 0x59]
call fcn.14000b6e0
nop
cmp qword [rbp - 0x21], 8
jb 0x14000c6de
mov rcx, qword [rbp - 0x39]
call fcn.14000e0cc
mov qword [rbp - 0x21], 7
mov qword [rbp - 0x29], r14
mov word [rbp - 0x39], r14w
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000c6fa
xor al, al
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14000e0f0
add rsp, 0xd0
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret