Function at 0x14000da50
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x268]
sub rsp, 0x368
mov rbx, r8
mov dword [rbp + 0x48], 1
mov r8d, 0x208
lea rcx, [rbp + 0x50]
xor edx, edx
call fcn.140023b70
cmp qword [rbx + 0x18], 8
jb 0x14000da9a
mov rbx, qword [rbx]
mov r9, rbx
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp + 0x50]
call fcn.140009030
mov edi, 0x7e
mov eax, 0x11
mov word [rsp + 0x3c], ax
mov r10d, 0x1b
mov eax, 0x2d
mov dword [rbp + 0x44], edi
mov word [rsp + 0x44], ax
mov ebx, 0xd
mov eax, 8
mov word [rbp - 0x48], di
mov dword [rsp + 0x30], eax
lea edx, [rdi - 0x72]
movzx eax, word [0x14005ddc4]
lea r11d, [rdi - 0x74]
xor ax, di
mov word [rbp + 0x2b0], bx
mov word [rsp + 0x4e], ax
lea r9d, [rdi - 0x5c]
movzx eax, word [0x14005ddc6]
lea r8d, [rdi - 0x41]
xor ax, di
mov word [rbp + 0x2c0], dx
mov word [rsp + 0x50], ax
mov ecx, 0x10
movzx eax, word [str.ImagePath]
xor ax, di
mov word [rbp + 0x2c8], r10w
mov word [rsp + 0x52], ax
movzx eax, word [0x14005ddca]
xor ax, di
mov word [rsp + 0x7a], r11w
mov word [rsp + 0x54], ax
movzx eax, word [0x14005ddcc]
xor ax, di
mov word [rsp + 0x34], r8w
mov word [rsp + 0x56], ax
movzx eax, word [0x14005ddce]
xor ax, di
mov word [rsp + 0x36], cx
mov word [rsp + 0x58], ax
movzx eax, word [0x14005ddd0]
xor ax, di
mov word [rsp + 0x38], r11w
mov word [rsp + 0x5a], ax
movzx eax, word [0x14005ddd2]
xor ax, di
mov word [rsp + 0x3a], dx
mov word [rsp + 0x5c], ax
movzx eax, word [0x14005ddd4]
xor ax, di
mov word [rsp + 0x3e], r10w
mov word [rsp + 0x5e], ax
movzx eax, word [0x14005ddd6]
xor ax, di
mov word [rsp + 0x40], r11w
mov word [rsp + 0x60], ax
movzx eax, word [0x14005ddd8]
xor ax, di
mov word [rsp + 0x42], r9w
mov word [rsp + 0x62], ax
movzx eax, word [0x14005ddda]
xor ax, di
mov word [rsp + 0x46], r10w
mov word [rsp + 0x64], ax
movzx eax, word [0x14005dddc]
xor ax, di
mov word [rsp + 0x48], dx
mov word [rsp + 0x66], ax
movzx eax, word [0x14005ddde]
xor ax, di
mov word [rsp + 0x4a], r10w
mov word [rsp + 0x68], ax
movzx eax, word [str.Type]
xor ax, di
mov word [rsp + 0x4c], bx
mov word [rsp + 0x6a], ax
movzx r13d, word [0x14005ddea]
movzx r12d, word [0x14005ddec]
xor r13w, di
movzx eax, word [0x14005dde2]
xor r12w, di
movzx r15d, word [0x14005ddee]
xor ax, di
movzx r14d, word [0x14005ddf0]
xor r15w, di
movzx esi, word [0x14005ddf2]
xor r14w, di
movzx ebx, word [0x14005ddf6]
xor si, di
movzx r11d, word [str.invalid_string_position]
xor bx, 0x7e
movzx r10d, word [0x14005ddfa]
xor r11w, 0x7e
movzx r9d, word [0x14005ddfc]
xor r10w, 0x7e
movzx r8d, word [0x14005ddfe]
xor r9w, 0x7e
movzx edx, word [0x14005de00]
xor r8w, 0x7e
movzx ecx, word [0x14005de02]
xor dx, 0x7e
mov word [rsp + 0x74], r13w
xor cx, 0x7e
mov word [rsp + 0x6c], ax
mov r13d, 0xd
movzx eax, word [0x14005dde4]
xor ax, di
mov word [rsp + 0x76], r12w
mov r12d, 0x7e
mov word [rsp + 0x6e], ax
movzx eax, word [0x14005dde6]
xor r13w, r12w
mov word [rbp - 0x46], r13w
xor ax, di
mov word [rsp + 0x70], ax
mov r13d, 7
movzx eax, word [0x14005dde8]
xor r13w, r12w
mov word [rbp - 0x44], r13w
xor ax, di
movzx r13d, word [rbp + 0x2b0]
movzx edi, word [0x14005ddf4]
xor r13w, r12w
mov word [rbp - 0x42], r13w
xor di, 0x7e
mov r13d, 0xa
mov word [rsp + 0x72], ax
movzx eax, word [0x14005de04]
xor r13w, r12w
mov word [rbp - 0x40], r13w
xor ax, 0x7e
mov r13d, 0x1b
mov word [rsp + 0x78], r15w
xor r13w, r12w
mov word [rbp - 0x3e], r13w
mov r13d, 0x13
xor r13w, r12w
mov word [rbp - 0x3c], r13w
mov r13d, 0x22
xor r13w, r12w
mov word [rbp - 0x3a], r13w
mov r13d, 0x3d
xor r13w, r12w
mov r12d, 0xb
xor r12w, word [rbp + 0x44]
mov word [rbp - 0x38], r13w
mov r13d, 0xc
mov word [rbp - 0x36], r12w
mov r12d, 0x7e
xor r13w, r12w
mov word [rbp - 0x34], r13w
movzx r13d, word [rbp + 0x2c0]
xor r13w, r12w
mov word [rbp - 0x32], r13w
movzx r13d, word [rbp + 0x2c8]
xor r13w, r12w
mov word [rbp - 0x30], r13w
mov r13d, 0x10
mov r15d, 8
xor r13w, r12w
xor r15w, r12w
mov word [rbp - 0x2e], r13w
movzx r13d, word [rsp + 0x7a]
xor r13w, r12w
mov word [rbp - 0xe], r15w
mov word [rbp - 0x2c], r13w
movzx r13d, word [rsp + 0x34]
xor r13w, r12w
mov word [rbp - 0x2a], r13w
mov r13d, 0x11
xor r13w, r12w
mov word [rbp - 0x28], r13w
movzx r13d, word [rsp + 0x36]
xor r13w, r12w
mov word [rbp - 0x26], r13w
movzx r13d, word [rsp + 0x38]
xor r13w, r12w
mov word [rbp - 0x24], r13w
movzx r13d, word [rsp + 0x3a]
xor r13w, r12w
mov word [rbp - 0x22], r13w
movzx r13d, word [rsp + 0x3c]
xor r13w, r12w
mov word [rbp - 0x20], r13w
mov r13d, 0x12
xor r13w, r12w
mov word [rbp - 0x1e], r13w
mov r13d, 0x2d
xor r13w, r12w
mov word [rbp - 0x1c], r13w
movzx r13d, word [rsp + 0x3e]
xor r13w, r12w
mov word [rbp - 0x1a], r13w
movzx r13d, word [rsp + 0x40]
xor r13w, r12w
mov word [rbp - 0x18], r13w
movzx r13d, word [rsp + 0x42]
xor r13w, r12w
mov word [rbp - 0x16], r13w
movzx r13d, word [rsp + 0x44]
xor r13w, r12w
mov word [rbp - 0x14], r13w
movzx r13d, word [rsp + 0x46]
xor r13w, r12w
mov word [rbp - 0x12], r13w
movzx r13d, word [rsp + 0x48]
xor r13w, r12w
mov word [rbp - 0x10], r13w
mov r13d, 0x17
xor r13w, r12w
mov word [rbp - 0xc], r13w
mov r13d, 0x1d
xor r13w, r12w
mov word [rbp - 0xa], r13w
movzx r13d, word [rsp + 0x4a]
xor r13w, r12w
mov word [rbp - 8], r13w
movzx r13d, word [rsp + 0x4c]
xor r13w, r12w
mov word [rbp - 6], r13w
movzx r13d, r12w
xor r13w, r12w
mov word [rbp - 4], r13w
movzx r13d, word [rsp + 0x4e]
xor r13w, r12w
mov word [rbp - 2], r13w
movzx r13d, word [rsp + 0x50]
xor r13w, r12w
mov word [rbp], r13w
movzx r13d, word [rsp + 0x52]
xor r13w, r12w
mov word [rbp + 2], r13w
movzx r13d, word [rsp + 0x54]
xor r13w, r12w
mov word [rbp + 4], r13w
movzx r13d, word [rsp + 0x56]
xor r13w, r12w
mov word [rbp + 6], r13w
movzx r13d, word [rsp + 0x58]
xor r13w, r12w
movzx r15d, word [rsp + 0x78]
mov word [rbp + 8], r13w
movzx r13d, word [rsp + 0x5a]
xor r13w, r12w
mov word [rbp + 0xa], r13w
movzx r13d, word [rsp + 0x5c]
xor r13w, r12w
mov word [rbp + 0xc], r13w
movzx r13d, word [rsp + 0x5e]
xor r13w, r12w
mov word [rbp + 0xe], r13w
movzx r13d, word [rsp + 0x60]
xor r13w, r12w
mov word [rbp + 0x10], r13w
movzx r13d, word [rsp + 0x62]
xor r13w, r12w
mov word [rbp + 0x12], r13w
movzx r13d, word [rsp + 0x64]
xor r13w, r12w
mov word [rbp + 0x14], r13w
movzx r13d, word [rsp + 0x66]
xor r13w, r12w
mov word [rbp + 0x16], r13w
movzx r13d, word [rsp + 0x68]
xor r13w, r12w
mov word [rbp + 0x18], r13w
movzx r13d, word [rsp + 0x6a]
xor r13w, r12w
mov word [rbp + 0x1a], r13w
movzx r13d, word [rsp + 0x6c]
xor r13w, r12w
mov word [rbp + 0x1c], r13w
movzx r13d, word [rsp + 0x6e]
xor r13w, r12w
mov word [rbp + 0x1e], r13w
movzx r13d, word [rsp + 0x70]
xor r13w, r12w
mov word [rbp + 0x20], r13w
movzx r13d, word [rsp + 0x72]
xor r13w, r12w
mov word [rbp + 0x22], r13w
movzx r13d, word [rsp + 0x74]
xor r13w, r12w
movzx r12d, word [rsp + 0x76]
mov word [rbp + 0x24], r13w
mov r13d, 0x7e
xor ax, r13w
xor r8w, r13w
xor dx, r13w
mov word [rbp + 0x3e], ax
xor cx, r13w
mov word [rbp + 0x38], r8w
xor eax, eax
mov word [rbp + 0x3a], dx
xor r11w, r13w
mov word [rbp + 0x3c], cx
xor r10w, r13w
mov word [rbp + 0x40], ax
xor r9w, r13w
mov word [rbp + 0x32], r11w
xor r12w, r13w
mov word [rbp + 0x34], r10w
xor r15w, r13w
mov word [rbp + 0x26], r12w
xor r14w, r13w
mov word [rbp + 0x28], r15w
xor si, r13w
mov word [rbp + 0x2a], r14w
xor di, r13w
mov word [rbp + 0x2c], si
xor bx, r13w
mov word [rbp + 0x2e], di
lea r8, [rbp - 0x50]
mov word [rbp + 0x30], bx
lea rdx, [rbp - 0x46]
mov word [rbp + 0x36], r9w
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x14000e3bf
mov rax, qword [rbp + 0x2b8]
cmp qword [rax + 0x18], 8
jb 0x14000e118
mov rax, qword [rax]
mov rcx, qword [rbp - 0x50]
lea r8, [rbp - 0x58]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
jne 0x14000e2e8
movzx esi, word [0x14005ddde]
lea ebx, [rax + 0x69]
movzx r11d, word [str.Type]
lea r15d, [rax + 0x6d]
movzx r10d, word [0x14005dde2]
lea r12d, [rax + 0x58]
movzx r9d, word [0x14005dde4]
lea r13d, [rax + 0x7c]
movzx eax, word [0x14005dddc]
mov ecx, 8
movzx r8d, word [0x14005dde6]
xor ax, cx
movzx edx, word [0x14005dde8]
movzx edi, cx
xor si, cx
mov word [rbp + 0x2b0], ax
movzx eax, word [0x14005ddec]
xor r11w, cx
xor r10w, cx
mov word [rsp + 0x7c], cx
xor r9w, cx
xor r8w, cx
xor dx, cx
xor ax, di
movzx ecx, word [0x14005ddea]
mov r14d, SHGetSetSettings
xor r14w, word [rsp + 0x30]
xor cx, di
mov word [rsp + 0x7e], r14w
mov r14d, 0x65
xor r14w, word [rsp + 0x30]
mov word [rbp - 0x80], r14w
mov r14d, ebx
xor r14w, word [rsp + 0x30]
mov word [rbp - 0x7e], r14w
mov r14d, 0x6f
xor r14w, word [rsp + 0x30]
mov word [rbp - 0x7c], r14w
mov r14d, 8
xor bx, r14w
xor cx, r14w
mov word [rbp - 0x76], bx
xor ax, r14w
xor r15w, r14w
mov word [rbp - 0x60], cx
xor r12w, r14w
mov word [rbp - 0x5e], ax
xor r13w, r14w
mov word [rbp - 0x7a], r15w
xor di, r14w
mov word [rbp - 0x78], r12w
xor si, r14w
mov word [rbp - 0x74], r13w
xor r11w, r14w
mov word [rbp - 0x70], di
xor r10w, r14w
mov word [rbp - 0x6c], si
xor r9w, r14w
mov word [rbp - 0x6a], r11w
xor r8w, r14w
mov word [rbp - 0x68], r10w
xor dx, r14w
mov word [rbp - 0x66], r9w
mov ebx, 0x60
mov word [rbp - 0x64], r8w
xor bx, r14w
mov word [rbp - 0x62], dx
mov word [rbp - 0x72], bx
lea rcx, [rbp + 0x50]
movzx ebx, word [rbp + 0x2b0]
mov rax, 0xffffffffffffffff
xor bx, r14w
xor r14d, r14d
mov word [rbp - 0x6e], bx
mov word [rbp - 0x5c], r14w
nop
cmp word [rcx + rax*2 + 2], r14w
lea rax, [rax + 1]
jne 0x14000e2a0
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
lea rax, [rbp + 0x50]
mov rcx, qword [rbp - 0x58]
lea rdx, [rsp + 0x7e]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x14000e2f9
mov rcx, qword [rbp - 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x14000e3bf
movzx eax, word [0x14005ddf0]
mov esi, 0x5f
movzx r8d, word [0x14005ddec]
xor ax, si
movzx ecx, word [0x14005ddee]
xor r8w, si
movzx ebx, word [0x14005ddea]
xor cx, si
lea r9d, [rsi - 0x39]
mov dword [rsp + 0x28], 4
xor ax, si
mov word [rsp + 0x7c], si
xor r9w, si
mov word [rbp - 0x72], ax
xor r8w, si
mov word [rbp - 0x80], r9w
xor cx, si
mov word [rbp - 0x76], r8w
movzx edx, si
mov word [rbp - 0x74], cx
mov rcx, qword [rbp - 0x58]
lea r10d, [rsi - 0x30]
xor dx, si
mov word [rbp - 0x70], r14w
lea r11d, [rsi - 0x25]
mov word [rbp - 0x7a], dx
xor r10w, si
lea rax, [rbp + 0x48]
xor r11w, si
mov word [rbp - 0x7e], r10w
xor bx, si
mov word [rbp - 0x7c], r11w
mov edi, 0xb
mov qword [rsp + 0x20], rax
xor di, si
lea r9d, [rsi - 0x5b]
xor bx, si
mov word [rsp + 0x7e], di
xor r8d, r8d
mov word [rbp - 0x78], bx
lea rdx, [rsp + 0x7e]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14000e2de
add rsp, 0x368
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret