Function at 0x140005a50
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 - 0x280]
sub rsp, 0x380
mov rax, qword [0x1400a0060]
xor rax, rsp
mov qword [rbp + 0x270], rax
mov rbx, r8
mov qword [rbp + 0x40], rdx
xor edx, edx
mov dword [rbp + 0x58], 1
mov r8d, 0x208
lea rcx, [rbp + 0x60]
call fcn.14001d5c0
cmp qword [rbx + 0x18], 8
jb 0x140005aa9
mov rbx, qword [rbx]
mov r9, rbx
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp + 0x60]
call fcn.1400010d0
mov ebx, 0x50
mov r8d, 0x35
mov edx, 0x22
mov dword [rsp + 0x30], ebx
mov ecx, 0x3e
mov word [rbp - 0x50], bx
mov word [rsp + 0x3a], cx
mov ecx, 3
lea eax, [rbx - 0x3d]
mov word [rsp + 0x76], dx
mov word [rsp + 0x38], ax
lea r9d, [rbx - 0x2c]
mov eax, 0x3f
mov word [rsp + 0x78], r8w
mov word [rsp + 0x40], ax
movzx eax, word [0x140098bc4]
xor ax, bx
mov word [rsp + 0x36], r9w
mov word [rsp + 0x4e], ax
movzx eax, word [0x140098bc6]
xor ax, bx
mov word [rsp + 0x3c], r9w
mov word [rsp + 0x50], ax
movzx eax, word [str.ImagePath]
xor ax, bx
mov word [rsp + 0x3e], dx
mov word [rsp + 0x52], ax
movzx eax, word [0x140098bca]
xor ax, bx
mov word [rsp + 0x42], r8w
mov word [rsp + 0x54], ax
movzx eax, word [0x140098bcc]
xor ax, bx
mov word [rsp + 0x44], r9w
mov word [rsp + 0x56], ax
movzx eax, word [0x140098bce]
xor ax, bx
mov word [rsp + 0x46], cx
mov word [rsp + 0x58], ax
movzx eax, word [0x140098bd0]
xor ax, bx
mov word [rsp + 0x48], r8w
mov word [rsp + 0x5a], ax
movzx eax, word [0x140098bd2]
xor ax, bx
mov word [rsp + 0x4a], dx
mov word [rsp + 0x5c], ax
movzx eax, word [0x140098bd4]
xor ax, bx
mov word [rsp + 0x4c], r8w
mov word [rsp + 0x5e], ax
movzx eax, word [0x140098bd6]
xor ax, bx
mov word [rsp + 0x60], ax
movzx eax, word [0x140098bd8]
xor ax, bx
mov word [rsp + 0x62], ax
movzx eax, word [0x140098bda]
xor ax, bx
mov word [rsp + 0x64], ax
movzx eax, word [0x140098bdc]
xor ax, bx
mov word [rsp + 0x66], ax
movzx eax, word [0x140098bde]
xor ax, bx
mov word [rsp + 0x68], ax
movzx eax, word [str.Type]
xor ax, bx
mov word [rsp + 0x6a], ax
movzx eax, word [0x140098be2]
xor ax, bx
mov word [rsp + 0x6c], ax
movzx eax, word [0x140098be4]
xor ax, bx
mov word [rsp + 0x6e], ax
movzx eax, word [0x140098be6]
movzx r12d, word [0x140098bec]
xor ax, bx
movzx r13d, word [0x140098bea]
xor r12w, bx
movzx r15d, word [0x140098bee]
xor r13w, bx
movzx r14d, word [0x140098bf0]
xor r15w, bx
movzx esi, word [0x140098bf2]
xor r14w, bx
movzx edi, word [0x140098bf4]
xor si, bx
movzx r11d, word [0x140098bf8]
xor di, bx
movzx r10d, word [0x140098bfa]
xor r11w, 0x50
movzx r9d, word [0x140098bfc]
xor r10w, 0x50
movzx r8d, word [0x140098bfe]
xor r9w, 0x50
movzx edx, word [0x140098c00]
xor r8w, 0x50
movzx ecx, word [0x140098c02]
xor dx, 0x50
mov word [rsp + 0x74], r13w
xor cx, 0x50
mov word [rsp + 0x34], r12w
mov r12d, 0x23
movzx r13d, r12w
mov word [rsp + 0x70], ax
xor r13w, word [rsp + 0x30]
movzx eax, word [0x140098be8]
mov word [rbp - 0x4e], r13w
xor ax, bx
movzx ebx, word [0x140098bf6]
mov r13d, 0x29
xor r13w, word [rsp + 0x30]
xor bx, 0x50
mov word [rbp - 0x4c], r13w
movzx r13d, r12w
xor r13w, word [rsp + 0x30]
mov r12d, 0x50
mov word [rbp - 0x4a], r13w
mov r13d, 0x24
xor r13w, r12w
mov word [rsp + 0x72], ax
movzx eax, word [0x140098c04]
mov word [rbp - 0x48], r13w
xor ax, 0x50
mov r13d, 0x35
xor r13w, r12w
mov r12d, 0x3d
xor r12w, word [rsp + 0x30]
mov word [rbp - 0x46], r13w
mov word [rbp - 0x44], r12w
mov r12d, 0xc
movzx r13d, r12w
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x42], r13w
mov r13d, 0x13
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x40], r13w
mov r13d, 0x25
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x3e], r13w
mov r13d, 0x22
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x3c], r13w
movzx r13d, word [rsp + 0x76]
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x3a], r13w
movzx r13d, word [rsp + 0x78]
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x38], r13w
mov r13d, 0x3e
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x36], r13w
movzx r13d, word [rsp + 0x36]
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x34], r13w
movzx r13d, word [rsp + 0x38]
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x32], r13w
mov r13d, 0x3f
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x30], r13w
movzx r13d, word [rsp + 0x3a]
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x2e], r13w
movzx r13d, word [rsp + 0x3c]
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x2c], r13w
movzx r13d, word [rsp + 0x3e]
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x2a], r13w
movzx r13d, word [rsp + 0x40]
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x28], r13w
mov r13d, 0x3c
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x26], r13w
mov r13d, 3
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x24], r13w
movzx r13d, word [rsp + 0x42]
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x22], r13w
movzx r13d, word [rsp + 0x44]
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x20], r13w
movzx r13d, r12w
xor r13w, word [rsp + 0x30]
mov r12d, 0x50
mov word [rbp - 0x1e], r13w
movzx r13d, word [rsp + 0x46]
xor r13w, r12w
mov word [rbp - 0x1c], r13w
movzx r13d, word [rsp + 0x48]
xor r13w, r12w
mov word [rbp - 0x1a], r13w
movzx r13d, word [rsp + 0x4a]
xor r13w, r12w
mov word [rbp - 0x18], r13w
mov r13d, 0x26
xor r13w, r12w
mov word [rbp - 0x16], r13w
mov r13d, 0x39
xor r13w, r12w
mov word [rbp - 0x14], r13w
mov r13d, 0x33
xor r13w, r12w
mov word [rbp - 0x12], r13w
movzx r13d, word [rsp + 0x4c]
xor r13w, r12w
mov r12d, 0x23
xor r12w, word [rsp + 0x30]
mov word [rbp - 0x10], r13w
mov word [rbp - 0xe], r12w
mov r12d, 0x50
movzx r13d, r12w
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
movzx r13d, word [rsp + 0x52]
xor r13w, r12w
mov word [rbp - 6], 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 - 2], r13w
movzx r13d, word [rsp + 0x58]
xor r13w, r12w
mov word [rbp], r13w
movzx r13d, word [rsp + 0x5a]
xor r13w, r12w
mov word [rbp + 2], r13w
movzx r13d, word [rsp + 0x5c]
xor r13w, r12w
mov word [rbp + 4], r13w
movzx r13d, word [rsp + 0x5e]
xor r13w, r12w
mov word [rbp + 6], r13w
movzx r13d, word [rsp + 0x60]
xor r13w, r12w
mov word [rbp + 8], r13w
movzx r13d, word [rsp + 0x62]
xor r13w, r12w
mov word [rbp + 0xa], r13w
movzx r13d, word [rsp + 0x64]
xor r13w, r12w
mov word [rbp + 0xc], r13w
movzx r13d, word [rsp + 0x66]
xor r13w, r12w
mov word [rbp + 0xe], r13w
movzx r13d, word [rsp + 0x68]
xor r13w, r12w
mov word [rbp + 0x10], r13w
movzx r13d, word [rsp + 0x6a]
xor r13w, r12w
mov word [rbp + 0x12], r13w
movzx r13d, word [rsp + 0x6c]
xor r13w, r12w
mov word [rbp + 0x14], r13w
movzx r13d, word [rsp + 0x6e]
xor r13w, r12w
mov word [rbp + 0x16], r13w
movzx r13d, word [rsp + 0x70]
xor r13w, r12w
mov word [rbp + 0x18], r13w
movzx r13d, word [rsp + 0x72]
xor r13w, r12w
mov word [rbp + 0x1a], r13w
movzx r13d, word [rsp + 0x74]
xor r13w, r12w
movzx r12d, word [rsp + 0x34]
mov word [rbp + 0x1c], r13w
mov r13d, 0x50
xor ax, r13w
xor r8w, r13w
xor dx, r13w
mov word [rbp + 0x36], ax
xor cx, r13w
mov word [rbp + 0x30], r8w
xor eax, eax
mov word [rbp + 0x32], dx
xor r11w, r13w
mov word [rbp + 0x34], cx
xor r10w, r13w
mov word [rbp + 0x38], ax
xor r9w, r13w
mov word [rbp + 0x2a], r11w
xor r12w, r13w
mov word [rbp + 0x2c], r10w
xor r15w, r13w
mov word [rbp + 0x1e], r12w
xor r14w, r13w
mov word [rbp + 0x20], r15w
xor si, r13w
mov word [rbp + 0x22], r14w
xor di, r13w
mov word [rbp + 0x24], si
xor bx, r13w
mov word [rbp + 0x26], di
lea r8, [rbp + 0x50]
mov word [rbp + 0x28], bx
lea rdx, [rbp - 0x4e]
mov word [rbp + 0x2e], r9w
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x1400063c4
mov rax, qword [rbp + 0x40]
cmp qword [rax + 0x18], 8
jb 0x140006123
mov rax, qword [rax]
mov rcx, qword [rbp + 0x50]
lea r8, [rbp + 0x48]
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov ebx, eax
test eax, eax
jne 0x1400062eb
movzx esi, word [0x140098bde]
lea ebx, [rax + 0xb]
movzx r11d, word [str.Type]
lea r15d, [rax + 0xf]
movzx r10d, word [0x140098be2]
lea r12d, [rax + 0x3a]
movzx r9d, word [0x140098be4]
lea r13d, [rax + 0x1e]
movzx eax, word [0x140098bdc]
mov ecx, 0x6a
movzx r8d, word [0x140098be6]
xor ax, cx
movzx edx, word [0x140098be8]
movzx edi, cx
mov dword [rsp + 0x30], ecx
xor si, cx
xor r11w, cx
mov word [rsp + 0x34], ax
movzx eax, word [0x140098bec]
xor r10w, cx
xor r9w, cx
mov word [rbp - 0x80], cx
xor r8w, cx
xor dx, cx
movzx ecx, word [0x140098bea]
xor ax, di
xor cx, di
mov r14d, 0x23
xor r14w, word [rsp + 0x30]
mov word [rbp - 0x7e], r14w
mov r14d, 7
xor r14w, word [rsp + 0x30]
mov word [rbp - 0x7c], r14w
mov r14d, ebx
xor r14w, word [rsp + 0x30]
mov word [rbp - 0x7a], r14w
mov r14d, 0xd
xor r14w, word [rsp + 0x30]
mov word [rbp - 0x78], r14w
mov r14d, 0x6a
xor bx, r14w
xor cx, r14w
mov word [rbp - 0x72], bx
xor ax, r14w
xor si, r14w
mov word [rbp - 0x5c], cx
xor r15w, r14w
mov word [rbp - 0x68], si
xor r12w, r14w
mov word [rbp - 0x5a], ax
xor r13w, r14w
mov word [rbp - 0x76], r15w
xor di, r14w
mov word [rbp - 0x74], r12w
xor r11w, r14w
mov word [rbp - 0x70], r13w
xor r10w, r14w
mov word [rbp - 0x6c], di
xor r9w, r14w
mov word [rbp - 0x66], r11w
xor r8w, r14w
mov word [rbp - 0x64], r10w
xor dx, r14w
mov word [rbp - 0x62], r9w
mov ebx, 2
mov word [rbp - 0x60], r8w
xor bx, r14w
mov word [rbp - 0x5e], dx
mov word [rbp - 0x6e], bx
lea rcx, [rbp + 0x60]
movzx ebx, word [rsp + 0x34]
mov rax, 0xffffffffffffffff
xor bx, r14w
xor esi, esi
mov word [rbp - 0x6a], bx
mov word [rbp - 0x58], si
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1400062a5
lea ecx, [rax*2 + 2]
mov r9d, 1
mov dword [rsp + 0x28], ecx
lea rax, [rbp + 0x60]
mov rcx, qword [rbp + 0x48]
lea rdx, [rbp - 0x7e]
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
je 0x1400062fc
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rbp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
jmp 0x1400063c4
movzx eax, word [0x140098bf0]
mov edi, 0x69
movzx r8d, word [0x140098bec]
xor ax, di
movzx ecx, word [0x140098bee]
xor r8w, di
movzx r11d, word [0x140098bea]
xor cx, di
lea r9d, [rdi - 0x59]
mov dword [rsp + 0x28], 4
xor r9w, di
mov word [rbp - 0x80], di
mov word [rbp - 0x7c], r9w
lea r10d, [rdi - 0x50]
mov r9d, 0xc
mov word [rbp - 0x6c], si
xor ax, di
xor r9w, di
xor r8w, di
mov word [rbp - 0x6e], ax
xor cx, di
mov word [rbp - 0x78], r9w
movzx edx, di
mov word [rbp - 0x72], r8w
xor dx, di
mov word [rbp - 0x70], cx
mov rcx, qword [rbp + 0x48]
lea rax, [rbp + 0x58]
xor r11w, di
mov word [rbp - 0x76], dx
xor r10w, di
mov qword [rsp + 0x20], rax
xor r11w, di
mov word [rbp - 0x7a], r10w
mov ebx, 0x3d
mov word [rbp - 0x74], r11w
xor bx, di
lea r9d, [rdi - 0x65]
xor r8d, r8d
mov word [rbp - 0x7e], bx
lea rdx, [rbp - 0x7e]
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x1400062e1
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.140016930
mov rbx, qword [rsp + 0x3c0]
add rsp, 0x380
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret