Function at 0x140174c60
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 [0x1402be5c8]
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 0x140175120
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 0x140174da0
mov r8, r11
mov rax, r13
movzx ecx, word [r9]
mov edx, MsiGetPropertyW
cmp cx, dx
jb 0x140174da0
sub r9, r13
cmp cx, dx
ja 0x140174da0
cmp r8, 1
je 0x140174e4d
dec r8
add rax, 2
movzx ecx, word [rax + r9]
movzx edx, word [rax]
cmp cx, dx
jae 0x140174d80
lea r9, [rsp + 0x210]
test bl, bl
cmovne r9, r10
cmp r11, 9
jne 0x140174dee
mov r8, r11
mov rax, rdi
movzx ecx, word [r9]
mov edx, 0x52
cmp cx, dx
jb 0x140174dee
sub r9, rdi
cmp cx, dx
ja 0x140174dee
cmp r8, 1
je 0x140174edd
dec r8
add rax, 2
movzx ecx, word [rax + r9]
movzx edx, word [rax]
cmp cx, dx
jae 0x140174dce
lea r9, [rsp + 0x210]
test bl, bl
cmovne r9, r10
cmp r11, 6
jne 0x1401750ad
mov r8, r11
mov rax, r12
movzx ecx, word [r9]
mov edx, 0x52
cmp cx, dx
jb 0x1401750ad
sub r9, r12
cmp cx, dx
ja 0x1401750ad
cmp r8, 1
je 0x140174fc2
dec r8
add rax, 2
movzx ecx, word [rax + r9]
movzx edx, word [rax]
cmp cx, dx
jae 0x140174e24
jmp 0x1401750ad
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 0x1401752bf
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 0x1401750ad
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x1401750ad
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 0x1401752f2
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.1401e8cc0
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 0x140175325
jmp 0x140175098
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 0x140175384
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 0x1401753b7
test rbx, rbx
je 0x1401750a6
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.140175450
jmp 0x140174cc0
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 0x140175413
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x1e0], rax
mov qword [rsp + 0x60], r14
mov ecx, 0x30
call fcn.1401a9704
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.14013a0a0
nop
mov rdx, qword [rsp + 0x80]
cmp rdx, 8
jb 0x140175224
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x68]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14017521f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140175446
call fcn.1401a9460
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 0x140175271
nop
mov rbx, qword [rdi]
lea rcx, [rdi + 0x10]
call fcn.1400272a0
mov edx, 0x30
mov rcx, rdi
call fcn.1401a9460
mov rdi, rbx
test rbx, rbx
jne 0x140175250
mov edx, 0x30
mov rcx, rsi
call fcn.1401a9460
nop
mov rcx, qword [rsp + 0x1e0]
test rcx, rcx
je 0x140175292
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.1401a9440
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.140045e00
lea rdx, [0x1402b97a8]
lea rcx, [rsp + 0xd0]
call fcn.1401cf69c
call fcn.140015e70
mov r8, rax
lea r9, str.Unable_to_get_create_registry_key
mov edx, ebx
lea rcx, [rsp + 0xf8]
call fcn.140045e00
lea rdx, [0x1402b97a8]
lea rcx, [rsp + 0xf8]
call fcn.1401cf69c
nop
lea r8, [rsp + 0x1e0]
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0xa0]
call fcn.1400420b0
lea rdx, [rsp + 0xb0]
mov rcx, rax
call fcn.140051d30
mov rbx, rax
call fcn.140015e70
mov r9, rbx
mov r8, rax
mov edx, edi
lea rcx, [rsp + 0x120]
call fcn.140045dc0
lea rdx, [0x1402b97a8]
lea rcx, [rsp + 0x120]
call fcn.1401cf69c
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.140045e00
lea rdx, [0x1402b97a8]
lea rcx, [rsp + 0x148]
call fcn.1401cf69c
nop
lea r8, [rsp + 0x250]
lea rdx, [rsp + 0x230]
lea rcx, [rsp + 0x68]
call fcn.1400420b0
lea rdx, [rsp + 0xb0]
mov rcx, rax
call fcn.140051e90
mov rbx, rax
call fcn.140015e70
mov r9, rbx
mov r8, rax
mov edx, edi
lea rcx, [rsp + 0x170]
call fcn.140045dc0
lea rdx, [0x1402b97a8]
lea rcx, [rsp + 0x170]
call fcn.1401cf69c
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.140045e00
lea rdx, [0x1402b97a8]
lea rcx, [rsp + 0x198]
call fcn.1401cf69c
nop
call fcn.1401e37cc
int3