Function at 0x180005db0
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 [0x18009f080]
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.1800425f0
cmp qword [rbx + 0x18], 7
jbe 0x180005e09
mov rbx, qword [rbx]
mov r9, rbx
lea r8, str.___s
mov edx, 0x104
lea rcx, [rbp + 0x60]
call fcn.1800011b0
mov edi, 0x38
mov eax, 0x6b
mov word [rsp + 0x44], ax
mov r8d, 0x5d
movzx eax, word [0x180097b34]
mov r9d, 0x4c
xor ax, di
mov dword [rsp + 0x30], edi
mov word [rsp + 0x4c], ax
mov ecx, 0x7b
movzx eax, word [0x180097b36]
mov r10d, 0x4b
xor ax, di
mov word [rsp + 0x38], cx
mov word [rsp + 0x4e], ax
mov edx, 0x64
movzx eax, word [str.ImagePath]
mov ecx, 0x57
xor ax, di
mov word [rbp - 0x50], di
mov word [rsp + 0x50], ax
movzx eax, word [0x180097b3a]
xor ax, di
mov word [rsp + 0x78], r10w
mov word [rsp + 0x52], ax
movzx eax, word [0x180097b3c]
xor ax, di
mov word [rsp + 0x34], r8w
mov word [rsp + 0x54], ax
movzx eax, word [0x180097b3e]
xor ax, di
mov word [rsp + 0x36], r9w
mov word [rsp + 0x56], ax
movzx eax, word [0x180097b40]
xor ax, di
mov word [rsp + 0x3a], r9w
mov word [rsp + 0x58], ax
movzx eax, word [0x180097b42]
xor ax, di
mov word [rsp + 0x3c], cx
mov word [rsp + 0x5a], ax
movzx eax, word [0x180097b44]
xor ax, di
mov word [rsp + 0x3e], r8w
mov word [rsp + 0x5c], ax
movzx eax, word [0x180097b46]
xor ax, di
mov word [rsp + 0x40], r9w
mov word [rsp + 0x5e], ax
movzx eax, word [0x180097b48]
xor ax, di
mov word [rsp + 0x42], dx
mov word [rsp + 0x60], ax
movzx eax, word [0x180097b4a]
xor ax, di
mov word [rsp + 0x46], r8w
mov word [rsp + 0x62], ax
movzx eax, word [0x180097b4c]
xor ax, di
mov word [rsp + 0x48], r8w
mov word [rsp + 0x64], ax
movzx eax, word [0x180097b4e]
xor ax, di
mov word [rsp + 0x4a], r10w
mov word [rsp + 0x66], ax
movzx eax, word [str.Type]
xor ax, di
mov word [rsp + 0x68], ax
movzx eax, word [0x180097b52]
xor ax, di
mov word [rsp + 0x6a], ax
movzx eax, word [0x180097b54]
xor ax, di
mov word [rsp + 0x6c], ax
movzx eax, word [0x180097b56]
xor ax, di
movzx r13d, word [0x180097b5a]
movzx r15d, word [0x180097b5e]
xor r13w, di
movzx r12d, word [0x180097b5c]
xor r15w, di
movzx r14d, word [0x180097b60]
xor r12w, di
movzx esi, word [0x180097b62]
xor r14w, di
movzx ebx, word [0x180097b66]
xor si, di
movzx r11d, word [0x180097b68]
xor bx, 0x38
movzx r10d, word [0x180097b6a]
xor r11w, 0x38
movzx r9d, word [0x180097b6c]
xor r10w, 0x38
movzx r8d, word [0x180097b6e]
xor r9w, 0x38
movzx edx, word [0x180097b70]
xor r8w, 0x38
movzx ecx, word [0x180097b72]
xor dx, 0x38
mov word [rsp + 0x72], r13w
xor cx, 0x38
mov word [rsp + 0x6e], ax
mov r13d, 0x4b
movzx eax, word [0x180097b58]
xor ax, di
mov word [rsp + 0x76], r15w
movzx edi, word [0x180097b64]
mov r15d, 0x38
xor r13w, r15w
mov word [rsp + 0x70], ax
movzx eax, word [0x180097b74]
xor di, 0x38
mov word [rbp - 0x4e], r13w
xor ax, 0x38
mov r13d, 0x41
mov word [rsp + 0x74], r12w
xor r13w, r15w
mov r12d, 0x4a
mov word [rbp - 0x4c], r13w
movzx r13d, word [rsp + 0x78]
xor r13w, r15w
mov word [rbp - 0x4a], r13w
mov r13d, 0x4c
xor r13w, r15w
mov word [rbp - 0x48], r13w
mov r13d, 0x5d
xor r13w, r15w
mov word [rbp - 0x46], r13w
mov r13d, 0x55
xor r13w, r15w
mov word [rbp - 0x44], r13w
mov r13d, 0x64
xor r13w, r15w
mov word [rbp - 0x42], r13w
mov r13d, 0x7b
xor r13w, r15w
mov word [rbp - 0x40], r13w
mov r13d, 0x4d
xor r13w, r15w
mov word [rbp - 0x3e], r13w
movzx r13d, r12w
xor r13w, r15w
mov word [rbp - 0x3c], r13w
movzx r13d, r12w
xor r13w, r15w
mov word [rbp - 0x3a], r13w
movzx r13d, word [rsp + 0x34]
xor r13w, r15w
mov r15d, 0x56
mov word [rbp - 0x38], r13w
movzx r13d, r15w
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, 0x57
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x30], r13w
movzx r13d, r15w
xor r13w, word [rsp + 0x30]
mov r15d, 0x38
mov word [rbp - 0x2e], r13w
movzx r13d, word [rsp + 0x3a]
xor r13w, r15w
mov word [rbp - 0x2c], r13w
movzx r13d, r12w
xor r13w, r15w
mov word [rbp - 0x2a], r13w
movzx r13d, word [rsp + 0x3c]
xor r13w, r15w
mov word [rbp - 0x28], r13w
mov r13d, 0x54
xor r13w, r15w
mov word [rbp - 0x26], r13w
mov r13d, 0x6b
xor r13w, r15w
mov word [rbp - 0x24], r13w
movzx r13d, word [rsp + 0x3e]
xor r13w, r15w
mov word [rbp - 0x22], r13w
movzx r13d, word [rsp + 0x40]
xor r13w, r15w
mov word [rbp - 0x20], r13w
movzx r13d, word [rsp + 0x42]
xor r13w, r15w
mov word [rbp - 0x1e], r13w
movzx r13d, word [rsp + 0x44]
xor r13w, r15w
mov word [rbp - 0x1c], r13w
movzx r13d, word [rsp + 0x46]
xor r13w, r15w
mov word [rbp - 0x1a], r13w
movzx r13d, r12w
xor r13w, r15w
mov r12d, r15d
mov word [rbp - 0x18], r13w
mov r13d, 0x4e
xor r13w, r15w
mov word [rbp - 0x16], r13w
mov r13d, 0x51
xor r13w, r15w
mov r15d, 0x5b
mov word [rbp - 0x14], r13w
xor r15w, r12w
movzx r13d, word [rsp + 0x48]
xor r13w, r12w
mov word [rbp - 0x12], r15w
mov word [rbp - 0x10], r13w
movzx r13d, word [rsp + 0x4a]
xor r13w, r12w
mov word [rbp - 0xe], r13w
movzx r13d, r12w
xor r13w, r12w
mov word [rbp - 0xc], r13w
movzx r13d, word [rsp + 0x4c]
xor r13w, r12w
mov word [rbp - 0xa], r13w
movzx r13d, word [rsp + 0x4e]
xor r13w, r12w
mov word [rbp - 8], r13w
movzx r13d, word [rsp + 0x50]
xor r13w, r12w
mov word [rbp - 6], r13w
movzx r13d, word [rsp + 0x52]
xor r13w, r12w
mov word [rbp - 4], r13w
movzx r13d, word [rsp + 0x54]
xor r13w, r12w
mov word [rbp - 2], r13w
movzx r13d, word [rsp + 0x56]
xor r13w, r12w
mov word [rbp], r13w
movzx r13d, word [rsp + 0x58]
xor r13w, r12w
movzx r15d, word [rsp + 0x76]
mov word [rbp + 2], r13w
movzx r13d, word [rsp + 0x5a]
xor r13w, r12w
mov word [rbp + 4], r13w
movzx r13d, word [rsp + 0x5c]
xor r13w, r12w
mov word [rbp + 6], r13w
movzx r13d, word [rsp + 0x5e]
xor r13w, r12w
mov word [rbp + 8], r13w
movzx r13d, word [rsp + 0x60]
xor r13w, r12w
mov word [rbp + 0xa], r13w
movzx r13d, word [rsp + 0x62]
xor r13w, r12w
mov word [rbp + 0xc], r13w
movzx r13d, word [rsp + 0x64]
xor r13w, r12w
mov word [rbp + 0xe], r13w
movzx r13d, word [rsp + 0x66]
xor r13w, r12w
mov word [rbp + 0x10], r13w
movzx r13d, word [rsp + 0x68]
xor r13w, r12w
mov word [rbp + 0x12], r13w
movzx r13d, word [rsp + 0x6a]
xor r13w, r12w
mov word [rbp + 0x14], r13w
movzx r13d, word [rsp + 0x6c]
xor r13w, r12w
mov word [rbp + 0x16], r13w
movzx r13d, word [rsp + 0x6e]
xor r13w, r12w
mov word [rbp + 0x18], r13w
movzx r13d, word [rsp + 0x70]
xor r13w, r12w
mov word [rbp + 0x1a], r13w
movzx r13d, word [rsp + 0x72]
xor r13w, r12w
movzx r12d, word [rsp + 0x74]
mov word [rbp + 0x1c], r13w
mov r13d, 0x38
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 0x18000671e
mov rax, qword [rbp + 0x40]
cmp qword [rax + 0x18], 7
jbe 0x180006465
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 0x180006637
movzx eax, word [0x180097b5c]
mov ecx, 0x3e
movzx r12d, word [0x180097b4c]
movzx edi, cx
movzx esi, word [0x180097b4e]
xor r12w, cx
movzx r11d, word [str.Type]
xor si, cx
movzx r10d, word [0x180097b52]
xor r11w, cx
movzx r9d, word [0x180097b54]
xor r10w, cx
movzx r8d, word [0x180097b56]
xor r9w, cx
movzx edx, word [0x180097b58]
xor r8w, cx
mov dword [rsp + 0x30], ecx
xor dx, cx
mov word [rbp - 0x80], cx
xor ax, di
movzx ecx, word [0x180097b5a]
mov ebx, 0x5f
xor cx, di
mov r13d, 0x77
xor r13w, word [rsp + 0x30]
mov r14d, 0x59
mov word [rbp - 0x7e], r13w
mov r15d, 0x6e
mov r13d, 0x53
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x7c], r13w
mov r13d, ebx
xor r13w, word [rsp + 0x30]
mov word [rbp - 0x7a], r13w
mov r13d, 0x3e
xor bx, r13w
xor r14w, r13w
mov word [rbp - 0x72], bx
xor cx, r13w
xor ax, r13w
mov word [rbp - 0x78], r14w
mov ebx, 0x4a
mov word [rbp - 0x5c], cx
xor bx, r13w
mov word [rbp - 0x5a], ax
mov word [rbp - 0x70], bx
lea rcx, [rbp + 0x60]
xor r15w, r13w
xor di, r13w
xor r12w, r13w
mov word [rbp - 0x74], r15w
xor si, r13w
mov word [rbp - 0x6c], di
xor r11w, r13w
mov word [rbp - 0x6a], r12w
xor r10w, r13w
mov word [rbp - 0x68], si
xor r9w, r13w
mov word [rbp - 0x66], r11w
xor r8w, r13w
mov word [rbp - 0x64], r10w
xor dx, r13w
mov word [rbp - 0x62], r9w
mov ebx, 0x56
mov word [rbp - 0x60], r8w
xor bx, r13w
mov word [rbp - 0x5e], dx
mov r14d, 0x5b
mov word [rbp - 0x6e], bx
xor r14w, r13w
mov rax, 0xffffffffffffffff
xor r15d, r15d
mov word [rbp - 0x76], r14w
mov word [rbp - 0x58], r15w
nop word [rax + rax]
cmp word [rcx + rax*2 + 2], r15w
lea rax, [rax + 1]
jne 0x1800065f0
mov rcx, qword [rbp + 0x48]
lea eax, [rax*2 + 2]
mov dword [rsp + 0x28], eax
lea rdx, [rbp - 0x7e]
lea rax, [rbp + 0x60]
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 0x180006648
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 0x18000671e
movzx eax, word [0x180097b60]
mov r14d, 0x52
movzx r8d, word [0x180097b5c]
xor ax, r14w
movzx ecx, word [0x180097b5e]
mov r9d, 6
movzx edi, word [0x180097b5a]
xor r8w, r14w
xor cx, r14w
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 + 0x48]
lea rax, [rbp + 0x58]
xor dx, r14w
mov qword [rsp + 0x20], rax
mov r10d, 0x2b
mov word [rbp - 0x76], dx
mov r11d, 0x22
mov word [rbp - 0x6c], r15w
xor r10w, r14w
lea rdx, [rbp - 0x7e]
xor r11w, r14w
mov word [rbp - 0x7c], r10w
mov ebx, 0x37
mov word [rbp - 0x7a], r11w
xor di, r14w
xor bx, r14w
xor di, r14w
mov word [rbp - 0x78], bx
mov r9d, 4
mov word [rbp - 0x74], di
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ebx, eax
test eax, eax
jne 0x18000662d
mov rcx, qword [rbp + 0x270]
xor rcx, rsp
call fcn.1800188c0
mov rbx, qword [rsp + 0x3c0]
add rsp, 0x380
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret