Function at 0x14000b3e8
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x888]
sub rsp, 0x960
mov qword [rbp - 0x10], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x14006d9f8]
xor rax, rsp
mov qword [rbp + 0x850], rax
mov rdi, rdx
mov r13d, 7
mov qword [rsp + 0x68], r13
xor r15d, r15d
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
lea ebx, [r13 - 3]
mov r8d, ebx
lea rdx, str.Root
lea rcx, [rsp + 0x50]
call fcn.140006368
nop
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14000be40
mov qword [rbp + 0x48], r13
mov qword [rbp + 0x40], r15
mov word [rbp + 0x30], r15w
or r14, 0xffffffffffffffff
mov r9, r14
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp + 0x30]
call fcn.14000584c
nop
lea r12d, [r13 + 1]
cmp qword [rsp + 0x68], r12
jb 0x14000b4a2
mov rcx, qword [rsp + 0x50]
call fcn.14003440c
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
mov r9, rbx
xor r8d, r8d
lea rdx, str.HKCU
lea rcx, [rbp + 0x30]
call fcn.14000598c
cmp rax, r14
je 0x14000b4d9
mov rbx, 0xffffffff80000001
jmp 0x14000b56e
mov r9, rbx
xor r8d, r8d
lea rdx, str.HKLM
lea rcx, [rbp + 0x30]
call fcn.14000598c
cmp rax, r14
je 0x14000b4fd
mov rbx, 0xffffffff80000002
jmp 0x14000b56e
mov r9, rbx
xor r8d, r8d
lea rdx, str.HKCR
lea rcx, [rbp + 0x30]
call fcn.14000598c
cmp rax, r14
je 0x14000b521
mov rbx, 0xffffffff80000000
jmp 0x14000b56e
mov r9d, 3
xor r8d, r8d
lea rdx, [0x140060758]
lea rcx, [rbp + 0x30]
call fcn.14000598c
cmp rax, r14
je 0x14000b548
mov rbx, 0xffffffff80000003
jmp 0x14000b56e
mov r9, rbx
xor r8d, r8d
lea rdx, str.HKCC
lea rcx, [rbp + 0x30]
call fcn.14000598c
cmp rax, r14
je 0x14000bbf6
mov rbx, 0xffffffff80000005
mov r9d, 2
xor r8d, r8d
lea rdx, [0x140060304]
lea rcx, [rbp + 0x30]
call fcn.14000598c
mov esi, 0x100
mov ecx, 0x200
cmp rax, r14
cmovne si, cx
mov qword [rbp - 8], r15
mov dword [rbp + 0x28], r15d
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x10], r15
mov word [rbp], r15w
mov r8d, 6
lea rdx, [0x140060868]
lea rcx, [rbp]
call fcn.140006368
nop
lea rdx, [rbp]
mov rcx, rdi
call fcn.14000be40
mov rdx, rax
cmp qword [rax + 0x18], r12
jb 0x14000b5dc
mov rdx, qword [rax]
movzx eax, si
or eax, 0x20006
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x40], rcx
lea rcx, [rbp - 8]
mov qword [rsp + 0x38], rcx
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x20], r15d
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov esi, eax
cmp qword [rbp + 0x18], r12
jb 0x14000b624
mov rcx, qword [rbp]
call fcn.14003440c
test esi, esi
jne 0x14000bad2
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r15
mov word [rbp - 0x30], r15w
lea ebx, [rsi + 9]
mov r8d, ebx
lea rdx, str.ValueType
lea rcx, [rbp - 0x30]
call fcn.140006368
nop
lea rdx, [rbp - 0x30]
mov rcx, rdi
call fcn.14000be40
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x10], r15
mov word [rbp], r15w
mov r9, r14
xor r8d, r8d
mov rdx, rax
lea rcx, [rbp]
call fcn.14000584c
nop
cmp qword [rbp - 0x18], r12
jb 0x14000b68b
mov rcx, qword [rbp - 0x30]
call fcn.14003440c
mov qword [rbp - 0x18], r13
mov qword [rbp - 0x20], r15
mov word [rbp - 0x30], r15w
lea rdx, [rbp]
lea rcx, str.string
call fcn.140006d70
test al, al
je 0x14000b7b0
mov word [rbp + 0x50], r15w
xor edx, edx
mov r8d, 0x7fe
lea rcx, [rbp + 0x52]
call fcn.140035510
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
mov r8, rbx
lea rdx, [0x1400608a0]
lea rcx, [rsp + 0x50]
call fcn.140006368
nop
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14000be40
cmp qword [rax + 0x18], r12
jb 0x14000b701
mov rax, qword [rax]
mov edx, 0x400
mov r9d, edx
mov r8, rax
lea rcx, [rbp + 0x50]
call fcn.140034414
nop
cmp qword [rsp + 0x68], r12
jb 0x14000b727
mov rcx, qword [rsp + 0x50]
call fcn.14003440c
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
mov r8, rbx
lea rdx, [0x1400608b8]
lea rcx, [rsp + 0x50]
call fcn.140006368
nop
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14000be40
mov rbx, rax
cmp qword [rax + 0x18], r12
jb 0x14000b765
mov rbx, qword [rax]
lea rcx, [rbp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
mov dword [rsp + 0x28], eax
lea rax, [rbp + 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 1
xor r8d, r8d
mov rdx, rbx
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp qword [rsp + 0x68], r12
jb 0x14000b973
mov rcx, qword [rsp + 0x50]
call fcn.14003440c
jmp 0x14000b973
lea rdx, [rbp]
lea rcx, str.dword
call fcn.140006d70
test al, al
je 0x14000b89d
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
mov r8, rbx
lea rdx, [0x1400608e0]
lea rcx, [rsp + 0x50]
call fcn.140006368
nop
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14000be40
cmp qword [rax + 0x18], r12
jb 0x14000b803
mov rax, qword [rax]
mov rcx, rax
call fcn.14003488c
mov dword [rbp + 0x20], eax
cmp qword [rsp + 0x68], r12
jb 0x14000b81f
mov rcx, qword [rsp + 0x50]
call fcn.14003440c
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
mov r8, rbx
lea rdx, [0x1400608f8]
lea rcx, [rsp + 0x50]
call fcn.140006368
nop
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14000be40
cmp qword [rax + 0x18], r12
jb 0x14000b85a
mov rax, qword [rax]
mov dword [rsp + 0x28], 4
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x20], rcx
mov r9d, 4
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
cmp qword [rsp + 0x68], r12
jb 0x14000b978
mov rcx, qword [rsp + 0x50]
call fcn.14003440c
jmp 0x14000b978
lea rdx, [rbp]
lea rcx, str.qword
call fcn.140006d70
test al, al
je 0x14000babf
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
mov r8, rbx
lea rdx, [0x140060920]
lea rcx, [rsp + 0x50]
call fcn.140006368
nop
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14000be40
cmp qword [rax + 0x18], r12
jb 0x14000b8f0
mov rax, qword [rax]
mov rcx, rax
call fcn.140034898
mov qword [rbp + 0x20], rax
cmp qword [rsp + 0x68], r12
jb 0x14000b90d
mov rcx, qword [rsp + 0x50]
call fcn.14003440c
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
mov r8, rbx
lea rdx, [0x140060938]
lea rcx, [rsp + 0x50]
call fcn.140006368
nop
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14000be40
cmp qword [rax + 0x18], r12
jb 0x14000b948
mov rax, qword [rax]
mov dword [rsp + 0x28], r12d
lea rcx, [rbp + 0x20]
mov qword [rsp + 0x20], rcx
mov r9d, 0xb
xor r8d, r8d
mov rdx, rax
mov rcx, qword [rbp - 8]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
jmp 0x14000b883
mov ebx, 9
test esi, esi
je 0x14000babf
cmp qword [0x1400716b0], r15
je 0x14000babf
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x60], r15
mov word [rbp - 0x70], r15w
mov r8, rbx
lea rdx, str.ValueData
lea rcx, [rbp - 0x70]
call fcn.140006368
nop
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
mov r8, rbx
lea rdx, str.ValueName
lea rcx, [rsp + 0x50]
call fcn.140006368
nop
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.14000be40
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400026bc
mov r14, rax
lea rdx, [rsp + 0x50]
mov rcx, rdi
call fcn.14000be40
mov rdx, rax
lea rcx, [rbp - 0x50]
call fcn.1400026bc
mov rbx, rax
cmp qword [r14 + 0x18], 0x10
jb 0x14000ba15
mov r14, qword [r14]
cmp qword [rax + 0x18], 0x10
jb 0x14000ba1f
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov dword [rsp + 0x30], esi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], rbx
lea r8, str._ERROR___d___write_registry_failed__set_key__s___value__s____err__d_.
mov edx, 1
mov rcx, qword [0x1400716b0]
call fcn.14000d154
nop
cmp qword [rbp - 0x38], 0x10
jb 0x14000ba5f
mov rcx, qword [rbp - 0x50]
call fcn.14003440c
mov ebx, 0xf
mov qword [rbp - 0x38], rbx
mov qword [rbp - 0x40], r15
mov byte [rbp - 0x50], r15b
cmp qword [rbp - 0x78], 0x10
jb 0x14000ba81
mov rcx, qword [rsp + 0x70]
call fcn.14003440c
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x80], r15
mov byte [rsp + 0x70], r15b
cmp qword [rsp + 0x68], r12
jb 0x14000ba9f
mov rcx, qword [rsp + 0x50]
call fcn.14003440c
mov qword [rsp + 0x68], r13
mov qword [rsp + 0x60], r15
mov word [rsp + 0x50], r15w
cmp qword [rbp - 0x58], r12
jb 0x14000babf
mov rcx, qword [rbp - 0x70]
call fcn.14003440c
nop
cmp qword [rbp + 0x18], r12
jb 0x14000bbe5
mov rcx, qword [rbp]
jmp 0x14000bbe0
cmp qword [0x1400716b0], r15
je 0x14000bbe5
mov qword [rbp - 0x58], r13
mov qword [rbp - 0x60], r15
mov word [rbp - 0x70], r15w
mov r8d, 6
lea rdx, str.SubKey
lea rcx, [rbp - 0x70]
call fcn.140006368
nop
lea r8, [0x140060174]
lea rdx, [rbp + 0x30]
lea rcx, [rbp]
call fcn.140006ca0
mov rbx, rax
lea rdx, [rbp - 0x70]
mov rcx, rdi
call fcn.14000be40
mov r8, rax
mov rdx, rbx
lea rcx, [rbp - 0x50]
call fcn.14000c774
nop
mov rdx, rax
lea rcx, [rsp + 0x70]
call fcn.1400026bc
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14000bb50
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
lea r8, str._ERROR___d___write_registry_failed__create_key__s___err__d_.
mov edx, 1
mov rcx, qword [0x1400716b0]
call fcn.14000d154
nop
cmp qword [rbp - 0x78], 0x10
jb 0x14000bb8c
mov rcx, qword [rsp + 0x70]
call fcn.14003440c
mov ebx, 0xf
mov qword [rbp - 0x78], rbx
mov qword [rbp - 0x80], r15
mov byte [rsp + 0x70], r15b
cmp qword [rbp - 0x38], r12
jb 0x14000bbad
mov rcx, qword [rbp - 0x50]
call fcn.14003440c
mov qword [rbp - 0x38], r13
mov qword [rbp - 0x40], r15
mov word [rbp - 0x50], r15w
cmp qword [rbp + 0x18], r12
jb 0x14000bbc9
mov rcx, qword [rbp]
call fcn.14003440c
mov qword [rbp + 0x18], r13
mov qword [rbp + 0x10], r15
mov word [rbp], r15w
cmp qword [rbp - 0x58], r12
jb 0x14000bbe5
mov rcx, qword [rbp - 0x70]
call fcn.14003440c
mov rcx, qword [rbp - 8]
test rcx, rcx
je 0x14000bc53
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14000bc53
cmp qword [0x1400716b0], r15
je 0x14000bc53
lea rdx, [rbp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.1400026bc
mov rbx, rax
cmp qword [rax + 0x18], 0x10
jb 0x14000bc1a
mov rbx, qword [rax]
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov r9d, eax
mov qword [rsp + 0x20], rbx
lea r8, str._ERROR___d___write_registry_failed__unknown_root__s_.
mov edx, 1
mov rcx, qword [0x1400716b0]
call fcn.14000d154
nop
cmp qword [rbp - 0x78], 0x10
jb 0x14000bc53
mov rcx, qword [rsp + 0x70]
call fcn.14003440c
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x30]
call fcn.140005a88
mov rcx, qword [rbp + 0x850]
xor rcx, rsp
call fcn.1400326d0
lea r11, [rsp + 0x960]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret