Function at 0x140175250
Capabilities:
Delete registry value
Set registry value

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x280
mov rax, qword [0x1402bf5c8]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov r15, rcx
mov qword [rsp + 0x1c0], rcx
xor r14d, r14d
mov esi, r14d
mov dword [rsp + 0x50], r14d
lea r13, str.DELETE
lea rdi, str.REG_DWORD
lea r12, str.REG_SZ
nop word [rax + rax]
mov rcx, qword [r15 + 0x20]
test rcx, rcx
je 0x140175710
dec rcx
mov qword [rsp + 0x90], r15
add rcx, qword [r15 + 0x18]
mov rax, r15
mov rdx, qword [rax + 0x10]
dec rdx
and rdx, rcx
mov rax, qword [rax + 8]
mov rbx, qword [rax + rdx*8]
mov rdx, rbx
lea rcx, [rsp + 0x1f0]
call fcn.140018e70
nop
lea rdx, [rbx + 0x20]
lea rcx, [rsp + 0x210]
call fcn.140018e70
nop
lea rdx, [rbx + 0x40]
lea rcx, [rsp + 0x230]
call fcn.140018e70
nop
lea rdx, [rbx + 0x60]
lea rcx, [rsp + 0x250]
call fcn.140018e70
nop
lea r9, [rsp + 0x210]
cmp qword [rsp + 0x228], 8
setae bl
mov r10, qword [rsp + 0x210]
cmovae r9, r10
mov r11, qword [rsp + 0x220]
cmp r11, 6
jne 0x140175390
mov r8, r11
mov rax, r13
movzx ecx, word [r9]
mov edx, MsiGetPropertyW
cmp cx, dx
jb 0x140175390
sub r9, r13
cmp cx, dx
ja 0x140175390
cmp r8, 1
je 0x14017543d
dec r8
add rax, 2
movzx ecx, word [rax + r9]
movzx edx, word [rax]
cmp cx, dx
jae 0x140175370
lea r9, [rsp + 0x210]
test bl, bl
cmovne r9, r10
cmp r11, 9
jne 0x1401753de
mov r8, r11
mov rax, rdi
movzx ecx, word [r9]
mov edx, 0x52
cmp cx, dx
jb 0x1401753de
sub r9, rdi
cmp cx, dx
ja 0x1401753de
cmp r8, 1
je 0x1401754cd
dec r8
add rax, 2
movzx ecx, word [rax + r9]
movzx edx, word [rax]
cmp cx, dx
jae 0x1401753be
lea r9, [rsp + 0x210]
test bl, bl
cmovne r9, r10
cmp r11, 6
jne 0x14017569d
mov r8, r11
mov rax, r12
movzx ecx, word [r9]
mov edx, 0x52
cmp cx, dx
jb 0x14017569d
sub r9, r12
cmp cx, dx
ja 0x14017569d
cmp r8, 1
je 0x1401755b2
dec r8
add rax, 2
movzx ecx, word [rax + r9]
movzx edx, word [rax]
cmp cx, dx
jae 0x140175414
jmp 0x14017569d
lea rdx, [rsp + 0x1f0]
cmp qword [rsp + 0x208], 8
cmovae rdx, qword [rsp + 0x1f0]
lea rax, [rsp + 0x1c8]
mov qword [rsp + 0x20], rax
mov r9d, 0x2001f
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test eax, eax
jne 0x1401758af
or esi, 1
mov dword [rsp + 0x50], esi
lea rdx, [rsp + 0x230]
cmp qword [rsp + 0x248], 8
cmovae rdx, qword [rsp + 0x230]
mov rbx, qword [rsp + 0x1c8]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test rbx, rbx
je 0x14017569d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x14017569d
lea rdx, [rsp + 0x1f0]
cmp qword [rsp + 0x208], 8
cmovae rdx, qword [rsp + 0x1f0]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x1401758e2
mov rbx, qword [rsp + 0x1d0]
mov qword [rsp + 0x58], rbx
or esi, 2
mov dword [rsp + 0x50], esi
lea rcx, [rsp + 0x250]
cmp qword [rsp + 0x268], 8
cmovae rcx, qword [rsp + 0x250]
call fcn.1401e92b0
mov dword [rsp + 0x1e0], eax
lea rdx, [rsp + 0x230]
cmp qword [rsp + 0x248], 8
cmovae rdx, qword [rsp + 0x230]
mov dword [rsp + 0x28], 4
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x20], rax
mov r9d, 4
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jne 0x140175915
jmp 0x140175688
lea rdx, [rsp + 0x1f0]
cmp qword [rsp + 0x208], 8
cmovae rdx, qword [rsp + 0x1f0]
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x1d8]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x140175974
mov rbx, qword [rsp + 0x1d8]
mov qword [rsp + 0x58], rbx
or esi, 4
mov dword [rsp + 0x50], esi
mov eax, dword [rsp + 0x260]
lea eax, [rax*2 + 2]
lea rcx, [rsp + 0x250]
cmp qword [rsp + 0x268], 8
cmovae rcx, qword [rsp + 0x250]
lea rdx, [rsp + 0x230]
cmp qword [rsp + 0x248], 8
cmovae rdx, qword [rsp + 0x230]
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rcx
mov r9d, 1
xor r8d, r8d
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edi, eax
test eax, eax
jne 0x1401759a7
test rbx, rbx
je 0x140175696
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rdi, str.REG_DWORD
lea rcx, [rsp + 0x250]
call fcn.1400272a0
lea rcx, [rsp + 0x230]
call fcn.1400272a0
lea rcx, [rsp + 0x210]
call fcn.1400272a0
lea rcx, [rsp + 0x1f0]
call fcn.1400272a0
nop
mov rcx, r15
call fcn.140175a40
jmp 0x1401752b0
mov qword [rsp + 0x40], r14
lea rax, [rsp + 0x1c0]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x2001f
mov dword [rsp + 0x20], r14d
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SOFTWAREAIX_INSTALLERINSTALL
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov ebx, eax
test eax, eax
jne 0x140175a03
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x1e0], rax
mov qword [rsp + 0x60], r14
mov ecx, 0x30
call fcn.1401a9cf4
mov qword [rax], rax
mov qword [rax + 8], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x68], r14
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], 7
mov word [rsp + 0x68], r14w
mov r8d, 0x12
lea rdx, str.RegistrysToRestore
lea rcx, [rsp + 0x68]
call fcn.140018360
nop
lea r8, [rsp + 0x58]
lea rdx, [rsp + 0x68]
lea rcx, [rsp + 0x1e0]
call fcn.14013a690
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x140175814
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017580f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140175a36
call fcn.1401a9a50
mov qword [rsp + 0x78], r14
mov qword [rsp + 0x80], 7
mov word [rsp + 0x68], r14w
mov rsi, qword [rsp + 0x58]
mov rax, qword [rsi + 8]
mov qword [rax], r14
mov rdi, qword [rsi]
test rdi, rdi
je 0x140175861
nop
mov rbx, qword [rdi]
lea rcx, [rdi + 0x10]
call fcn.1400272a0
mov edx, 0x30
mov rcx, rdi
call fcn.1401a9a50
mov rdi, rbx
test rbx, rbx
jne 0x140175840
mov edx, 0x30
mov rcx, rsi
call fcn.1401a9a50
nop
mov rcx, qword [rsp + 0x1e0]
test rcx, rcx
je 0x140175882
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401a9a30
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
call fcn.140015e70
nop
mov r8, rax
lea r9, str.Unable_to_open_registry_key
mov edx, ebx
lea rcx, [rsp + 0xd0]
call fcn.140046020
lea rdx, [0x1402ba948]
lea rcx, [rsp + 0xd0]
call fcn.1401cfc8c
call fcn.140015e70
mov r8, rax
lea r9, str.Unable_to_get_create_registry_key
mov edx, ebx
lea rcx, [rsp + 0xf8]
call fcn.140046020
lea rdx, [0x1402ba948]
lea rcx, [rsp + 0xf8]
call fcn.1401cfc8c
nop
lea r8, [rsp + 0x1e0]
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0xa0]
call fcn.1400422b0
lea rdx, [rsp + 0xb0]
mov rcx, rax
call fcn.140052070
mov rbx, rax
call fcn.140015e70
mov r9, rbx
mov r8, rax
mov edx, edi
lea rcx, [rsp + 0x120]
call fcn.140045fe0
lea rdx, [0x1402ba948]
lea rcx, [rsp + 0x120]
call fcn.1401cfc8c
nop
call fcn.140015e70
mov r8, rax
lea r9, str.Unable_to_get_create_registry_key
mov edx, ebx
lea rcx, [rsp + 0x148]
call fcn.140046020
lea rdx, [0x1402ba948]
lea rcx, [rsp + 0x148]
call fcn.1401cfc8c
nop
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x68]
call fcn.1400422b0
lea rdx, [rsp + 0xb0]
mov rcx, rax
call fcn.1400521d0
mov rbx, rax
call fcn.140015e70
mov r9, rbx
mov r8, rax
mov edx, edi
lea rcx, [rsp + 0x170]
call fcn.140045fe0
lea rdx, [0x1402ba948]
lea rcx, [rsp + 0x170]
call fcn.1401cfc8c
nop
call fcn.140015e70
mov r8, rax
lea r9, str.Unable_to_get_create_registry_key
mov edx, ebx
lea rcx, [rsp + 0x198]
call fcn.140046020
lea rdx, [0x1402ba948]
lea rcx, [rsp + 0x198]
call fcn.1401cfc8c
nop
call fcn.1401e3dbc
int3