Function at 0x140005e90
Capabilities:
Set registry value

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x290]
sub rsp, 0x390
mov rax, qword [0x14009e080]
xor rax, rsp
mov qword [rbp + 0x280], rax
mov rbx, r8
mov qword [rbp + 0x50], rdx
xor edx, edx
mov dword [rbp + 0x68], 1
mov r8d, 0x208
lea rcx, [rbp + 0x70]
call fcn.140041850
cmp qword [rbx + 0x18], 7
jbe 0x140005ee9
mov rbx, qword [rbx]
mov r9, rbx
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp + 0x70]
call fcn.1400010d0
mov edi, 0xa
mov eax, 0x65
mov word [rsp + 0x44], ax
mov r10d, 0x6f
mov eax, 0x59
mov dword [rbp - 0x50], edi
mov word [rsp + 0x4c], ax
mov ebx, 0x79
movzx eax, word [0x140096984]
lea edx, [rdi + 0x6e]
xor ax, di
mov word [rbp - 0x40], di
mov word [rsp + 0x56], ax
lea r11d, [rdi + 0x74]
movzx eax, word [0x140096986]
lea r9d, [rdi + 0x4c]
xor ax, di
mov word [rsp + 0x7c], bx
mov word [rsp + 0x58], ax
lea r8d, [rdi + 0x3f]
movzx eax, word [str.ImagePath]
mov ecx, 0x64
xor ax, di
mov word [rsp + 0x7e], dx
mov word [rsp + 0x5a], ax
movzx eax, word [0x14009698a]
xor ax, di
mov word [rsp + 0x38], r10w
mov word [rsp + 0x5c], ax
movzx eax, word [0x14009698c]
xor ax, di
mov word [rsp + 0x3a], r11w
mov word [rsp + 0x5e], ax
movzx eax, word [0x14009698e]
xor ax, di
mov word [rsp + 0x3c], r8w
mov word [rsp + 0x60], ax
movzx eax, word [0x140096990]
xor ax, di
mov word [rsp + 0x3e], cx
mov word [rsp + 0x62], ax
movzx eax, word [0x140096992]
xor ax, di
mov word [rsp + 0x40], r11w
mov word [rsp + 0x64], ax
movzx eax, word [0x140096994]
xor ax, di
mov word [rsp + 0x42], dx
mov word [rsp + 0x66], ax
movzx eax, word [0x140096996]
xor ax, di
mov word [rsp + 0x46], r10w
mov word [rsp + 0x68], ax
movzx eax, word [0x140096998]
xor ax, di
mov word [rsp + 0x48], r11w
mov word [rsp + 0x6a], ax
movzx eax, word [0x14009699a]
xor ax, di
mov word [rsp + 0x4a], r9w
mov word [rsp + 0x6c], ax
movzx eax, word [0x14009699c]
xor ax, di
mov word [rsp + 0x4e], r10w
mov word [rsp + 0x6e], ax
movzx eax, word [0x14009699e]
xor ax, di
mov word [rsp + 0x50], dx
mov word [rsp + 0x70], ax
movzx eax, word [str.Type]
xor ax, di
mov word [rsp + 0x52], r10w
mov word [rsp + 0x72], ax
movzx eax, word [0x1400969a2]
xor ax, di
mov word [rsp + 0x54], bx
movzx r13d, word [0x1400969aa]
movzx r12d, word [0x1400969ac]
xor r13w, di
movzx r15d, word [0x1400969ae]
xor r12w, di
movzx r14d, word [0x1400969b0]
xor r15w, di
movzx esi, word [0x1400969b2]
xor r14w, di
movzx ebx, word [0x1400969b6]
xor si, di
movzx r11d, word [0x1400969b8]
xor bx, 0xa
movzx r10d, word [0x1400969ba]
xor r11w, 0xa
movzx r9d, word [0x1400969bc]
xor r10w, 0xa
movzx r8d, word [0x1400969be]
xor r9w, 0xa
movzx edx, word [0x1400969c0]
xor r8w, 0xa
movzx ecx, word [0x1400969c2]
xor dx, 0xa
mov word [rsp + 0x34], r13w
xor cx, 0xa
mov word [rsp + 0x74], ax
mov r13d, 0x79
movzx eax, word [0x1400969a4]
xor ax, di
mov word [rsp + 0x30], r12w
mov r12d, 0xa
mov word [rsp + 0x76], ax
movzx eax, word [0x1400969a6]
xor r13w, r12w
mov word [rbp - 0x3e], r13w
xor ax, di
mov word [rsp + 0x78], ax
mov r13d, 0x73
movzx eax, word [0x1400969a8]
xor r13w, r12w
mov word [rbp - 0x3c], r13w
xor ax, di
movzx r13d, word [rsp + 0x7c]
movzx edi, word [0x1400969b4]
xor r13w, r12w
mov word [rbp - 0x3a], r13w
xor di, 0xa
mov r13d, 0x7e
mov word [rsp + 0x7a], ax
movzx eax, word [0x1400969c4]
xor r13w, r12w
mov word [rbp - 0x38], r13w
xor ax, 0xa
mov r13d, 0x6f
xor r13w, r12w
mov word [rbp - 0x36], r13w
mov r13d, 0x67
xor r13w, r12w
mov word [rbp - 0x34], r13w
mov r13d, 0x56
xor r13w, r12w
mov word [rbp - 0x32], r13w
mov r13d, 0x49
xor r13w, r12w
mov r12d, 0x7f
xor r12w, word [rbp - 0x50]
mov word [rbp - 0x30], r13w
mov r13d, 0x78
mov word [rbp - 0x2e], r12w
mov r12d, 0xa
xor r13w, r12w
mov word [rbp - 0x2c], r13w
movzx r13d, word [rsp + 0x7e]
xor r13w, r12w
mov word [rbp - 0x2a], r13w
movzx r13d, word [rsp + 0x38]
xor r13w, r12w
mov word [rbp - 0x28], r13w
mov r13d, 0x64
xor r13w, r12w
mov word [rbp - 0x26], r13w
movzx r13d, word [rsp + 0x3a]
xor r13w, r12w
mov word [rbp - 0x24], r13w
movzx r13d, word [rsp + 0x3c]
xor r13w, r12w
mov word [rbp - 0x22], r13w
mov r13d, 0x65
xor r13w, r12w
mov word [rbp - 0x20], r13w
movzx r13d, word [rsp + 0x3e]
xor r13w, r12w
mov word [rbp - 0x1e], r13w
movzx r13d, word [rsp + 0x40]
xor r13w, r12w
mov word [rbp - 0x1c], r13w
movzx r13d, word [rsp + 0x42]
xor r13w, r12w
mov word [rbp - 0x1a], r13w
movzx r13d, word [rsp + 0x44]
xor r13w, r12w
mov r12d, 0x66
mov word [rbp - 0x18], r13w
mov r13d, 0x59
xor r12w, word [rbp - 0x50]
mov word [rbp - 0x16], r12w
mov r12d, 0xa
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
movzx r13d, word [rsp + 0x4a]
xor r13w, r12w
mov word [rbp - 0xe], r13w
movzx r13d, word [rsp + 0x4c]
xor r13w, r12w
mov word [rbp - 0xc], r13w
movzx r13d, word [rsp + 0x4e]
xor r13w, r12w
mov word [rbp - 0xa], r13w
movzx r13d, word [rsp + 0x50]
xor r13w, r12w
mov word [rbp - 8], r13w
mov r13d, 0x7c
xor r13w, r12w
mov word [rbp - 6], r13w
mov r13d, 0x63
xor r13w, r12w
mov word [rbp - 4], r13w
mov r13d, 0x69
xor r13w, r12w
mov word [rbp - 2], r13w
movzx r13d, word [rsp + 0x52]
xor r13w, r12w
mov word [rbp], r13w
movzx r13d, word [rsp + 0x54]
xor r13w, r12w
mov word [rbp + 2], r13w
movzx r13d, r12w
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
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
mov word [rbp + 0x24], r13w
movzx r13d, word [rsp + 0x76]
xor r13w, r12w
mov word [rbp + 0x26], r13w
movzx r13d, word [rsp + 0x78]
xor r13w, r12w
mov word [rbp + 0x28], r13w
movzx r13d, word [rsp + 0x7a]
xor r13w, r12w
mov word [rbp + 0x2a], r13w
movzx r13d, word [rsp + 0x34]
xor r13w, r12w
movzx r12d, word [rsp + 0x30]
mov word [rbp + 0x2c], r13w
mov r13d, 0xa
xor ax, r13w
xor r8w, r13w
xor dx, r13w
mov word [rbp + 0x46], ax
xor cx, r13w
mov word [rbp + 0x40], r8w
xor eax, eax
mov word [rbp + 0x42], dx
xor r11w, r13w
mov word [rbp + 0x44], cx
xor r10w, r13w
mov word [rbp + 0x48], ax
xor r9w, r13w
mov word [rbp + 0x3a], r11w
xor r12w, r13w
mov word [rbp + 0x3c], r10w
xor r15w, r13w
mov word [rbp + 0x2e], r12w
xor r14w, r13w
mov word [rbp + 0x30], r15w
xor si, r13w
mov word [rbp + 0x32], r14w
xor di, r13w
mov word [rbp + 0x34], si
xor bx, r13w
mov word [rbp + 0x36], di
lea r8, [rbp + 0x60]
mov word [rbp + 0x38], bx
lea rdx, [rbp - 0x3e]
mov word [rbp + 0x3e], r9w
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400067f5
mov rax, qword [rbp + 0x50]
cmp qword [rax + 0x18], 7
jbe 0x14000654a
mov rax, qword [rax]
mov rcx, qword [rbp + 0x60]
lea r8, [rbp + 0x58]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
jne 0x140006717
movzx esi, word [0x14009699e]
lea ebx, [rax + 0x4e]
movzx r11d, word [str.Type]
lea r15d, [rax + 0x4a]
movzx r10d, word [0x1400969a2]
lea r12d, [rax + 0x5b]
movzx r9d, word [0x1400969a4]
lea r13d, [rax + 0x47]
movzx eax, word [0x14009699c]
mov ecx, 0x2f
movzx r8d, word [0x1400969a6]
xor ax, cx
movzx edx, word [0x1400969a8]
movzx edi, cx
mov dword [rsp + 0x34], ecx
xor si, cx
xor r11w, cx
mov word [rsp + 0x30], ax
movzx eax, word [0x1400969ac]
xor r10w, cx
xor r9w, cx
mov word [rbp - 0x80], cx
xor r8w, cx
xor dx, cx
movzx ecx, word [0x1400969aa]
xor r15w, di
xor cx, di
mov word [rbp - 0x76], r15w
mov r15d, 0x2f
xor ax, di
xor cx, r15w
xor ax, r15w
mov r14d, 0x66
mov word [rbp - 0x5c], cx
xor r14w, word [rsp + 0x34]
lea rcx, [rbp + 0x70]
mov word [rbp - 0x7e], r14w
xor r12w, r15w
mov r14d, 0x42
mov word [rbp - 0x5a], ax
xor r14w, word [rsp + 0x34]
xor r13w, r15w
mov word [rbp - 0x7c], r14w
xor di, r15w
mov r14d, ebx
mov word [rbp - 0x70], r12w
xor r14w, word [rsp + 0x34]
xor bx, r15w
mov word [rbp - 0x7a], r14w
xor si, r15w
mov r14d, 0x48
mov word [rbp - 0x72], bx
xor r14w, word [rsp + 0x34]
xor r11w, r15w
movzx ebx, word [rsp + 0x30]
xor r10w, r15w
mov word [rbp - 0x78], r14w
xor bx, r15w
xor r9w, r15w
mov word [rbp - 0x6e], r13w
xor r8w, r15w
mov word [rbp - 0x6c], di
xor dx, r15w
mov word [rbp - 0x6a], bx
mov r14d, 0x7f
mov word [rbp - 0x68], si
xor r14w, r15w
mov word [rbp - 0x66], r11w
xor r15d, r15d
mov word [rbp - 0x74], r14w
mov word [rbp - 0x58], r15w
mov rax, 0xffffffffffffffff
mov word [rbp - 0x64], r10w
mov word [rbp - 0x62], r9w
mov word [rbp - 0x60], r8w
mov word [rbp - 0x5e], dx
cmp word [rcx + rax*2 + 2], r15w
lea rax, [rax + 1]
jne 0x1400066d0
mov rcx, qword [rbp + 0x58]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [rbp - 0x7e]
lea rax, [rbp + 0x70]
mov r9d, 1
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x140006728
mov rcx, qword [rbp + 0x58]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400067f5
movzx eax, word [0x1400969b0]
mov r14d, 0x6e
movzx r8d, word [0x1400969ac]
xor ax, r14w
movzx ecx, word [0x1400969ae]
xor r8w, r14w
movzx edi, word [0x1400969aa]
xor cx, r14w
lea r9d, [r14 - 0x34]
mov dword [rsp + 0x28], 4
xor ax, r14w
mov word [rbp - 0x80], r14w
xor r9w, r14w
mov word [rbp - 0x6e], ax
xor r8w, r14w
mov word [rbp - 0x7e], r9w
xor cx, r14w
mov word [rbp - 0x72], r8w
movzx edx, r14w
mov word [rbp - 0x70], cx
mov rcx, qword [rbp + 0x58]
lea r10d, [r14 - 0x57]
xor dx, r14w
mov word [rbp - 0x6c], r15w
lea r11d, [r14 - 0x50]
mov word [rbp - 0x76], dx
xor r10w, r14w
lea rax, [rbp + 0x68]
xor r11w, r14w
mov word [rbp - 0x7c], r10w
lea ebx, [r14 - 0x63]
mov word [rbp - 0x7a], r11w
xor di, r14w
mov qword [rsp + 0x20], rax
xor bx, r14w
lea r9d, [r14 - 0x6a]
xor di, r14w
mov word [rbp - 0x78], bx
xor r8d, r8d
mov word [rbp - 0x74], di
lea rdx, [rbp - 0x7e]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x14000670d
mov rcx, qword [rbp + 0x280]
xor rcx, rsp
call fcn.140018460
mov rbx, qword [rsp + 0x3d0]
add rsp, 0x390
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret