Function at 0x140139a44
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x218]
sub rsp, 0x2e0
mov qword [rbp - 0x50], 0xfffffffffffffffe
mov qword [rax + 0x20], rbx
mov rax, qword [0x140178010]
xor rax, rsp
mov qword [rbp + 0x1d0], rax
mov qword [rbp - 0x78], r8
mov r12, rdx
mov qword [rbp - 0x80], rdx
mov r13, rcx
xor r15d, r15d
mov r14d, r15d
mov qword [rsp + 0x70], r15
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x60], r15
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [0x14015eea8]
xor edx, edx
lea r8d, [r15 + 1]
lea rcx, [0x1401633d8]
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
test eax, eax
js 0x14013a35f
mov rbx, qword [rsp + 0x58]
test rbx, rbx
jne 0x140139af5
lea r8, str.p_0
mov edx, 0x9a
lea rcx, str.sdkinc_atlmfc_atlcomcli.h
call fcn.14008624c
mov rbx, qword [rsp + 0x58]
lea rcx, str.RegistryExcludes
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
jne 0x140139b1a
mov ecx, 0x8007000e
call fcn.140001b20
nop
cmp qword [rsp + 0x60], r15
je 0x140139b39
lea r8, str.p0
mov edx, reloc.OLEAUT32.dll_SysAllocStringByteLen
lea rcx, str.sdkinc_atlmfc_atlcomcli.h
call fcn.14008624c
mov rax, qword [rbx]
mov rsi, qword [rax + 0x178]
mov rcx, rsi
call qword [0x14014cce0]
lea r8, [rsp + 0x60]
mov rdx, rdi
mov rcx, rbx
call rsi
mov esi, eax
test eax, eax
sets bl
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, bl
jne 0x14013a35f
mov rbx, qword [rsp + 0x58]
test rbx, rbx
jne 0x140139b98
lea r8, str.p_0
mov edx, 0x9a
lea rcx, str.sdkinc_atlmfc_atlcomcli.h
call fcn.14008624c
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rdi, qword [rax + 0xa8]
mov rcx, rdi
call qword [0x14014cce0]
xor r8d, r8d
mov rdx, qword [rsp + 0x60]
mov rcx, rbx
call rdi
mov esi, eax
test eax, eax
js 0x14013a35f
mov ecx, 0x2000
call fcn.1401470a8
mov rsi, rax
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
lea rdx, str.SYSTEMCurrentControlSetControlBackupRestoreFilesNotToBackup
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x140139c4f
lea rdx, [0x1401782b0]
mov rcx, qword [0x1401782b0]
cmp rcx, rdx
je 0x140139fc6
test byte [rcx + 0x1c], 1
je 0x140139fc6
cmp byte [rcx + 0x19], 3
jb 0x140139fc6
mov edx, 0x20
mov dword [rsp + 0x20], eax
lea r9, str.SYSTEMCurrentControlSetControlBackupRestoreFilesNotToBackup
lea r8, [0x140161d88]
mov rcx, qword [rcx + 0x10]
call fcn.140005ce8
jmp 0x140139fc6
mov ebx, r15d
lea rdi, [0x1401782b0]
mov dword [rsp + 0x78], 0x104
mov dword [rsp + 0x6c], 0x2000
mov qword [rsp + 0x40], r15
xor edx, edx
mov r8d, 0x104
lea rcx, [rbp - 0x40]
call sub.msvcrt.dll_memset
lea rax, [rsp + 0x6c]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x78]
lea r8, [rbp - 0x40]
mov edx, ebx
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov r14d, eax
mov dword [rsp + 0x68], eax
inc ebx
mov dword [rsp + 0x48], ebx
lea rax, [rbp - 0x40]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [rax + rcx*2], r15w
jne 0x140139cc8
mov r8d, ecx
lea rdx, [rbp - 0x40]
lea rcx, [rsp + 0x40]
call fcn.14006cccc
test eax, eax
jns 0x140139cf9
xor r9d, r9d
xor r8d, r8d
lea edx, [r9 + 1]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_RaiseException]
test r14d, r14d
jne 0x140139ec8
cmp dword [rsp + 0x7c], 7
jne 0x140139ed1
mov rbx, r15
mov rax, qword [r13 + 8]
test rax, rax
je 0x140139dde
cmp rbx, rax
jb 0x140139d3a
lea r8, str.iElement___m_nSize
mov edx, 0x2c3
lea rcx, str.sdkinc_atlmfc_atlcoll.h
call fcn.14008624c
cmp rbx, qword [r13 + 8]
jae 0x140139f49
mov rdx, qword [r13]
mov rdx, qword [rdx + rbx*8]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.msvcrt.dll__wcsicmp]
test eax, eax
je 0x140139d69
inc rbx
mov rax, qword [r13 + 8]
cmp rbx, rax
jb 0x140139d3a
jmp 0x140139dde
mov rcx, qword [0x1401782b0]
cmp rcx, rdi
je 0x140139dce
test byte [rcx + 0x1c], 1
je 0x140139dce
cmp byte [rcx + 0x19], 4
jb 0x140139dce
cmp rbx, qword [r13 + 8]
jb 0x140139db0
lea r8, str.iElement___m_nSize
mov edx, 0x2c3
lea rcx, str.sdkinc_atlmfc_atlcoll.h
call fcn.14008624c
mov rcx, qword [0x1401782b0]
cmp rbx, qword [r13 + 8]
jae 0x140139f3e
mov rax, qword [r13]
mov edx, 0x21
mov r9, qword [rax + rbx*8]
lea r8, [0x140161d88]
mov rcx, qword [rcx + 0x10]
call fcn.140005c6c
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x140139f2c
mov qword [rbp - 0x70], r15
mov qword [rbp - 0x68], r15
mov qword [rbp - 0x60], r15
mov dword [rbp - 0x58], r15d
lea rax, [rbp - 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
mov r8d, dword [rsp + 0x6c]
mov rdx, rsi
lea rcx, [rsp + 0x40]
call fcn.14013a3ec
mov r14, qword [rbp - 0x70]
mov r12, qword [rbp - 0x68]
test eax, eax
js 0x140139e86
test r12, r12
je 0x140139e83
mov rbx, qword [rsp + 0x60]
test rbx, rbx
jne 0x140139e46
lea r8, str.p_0
mov edx, 0x9a
lea rcx, str.sdkinc_atlmfc_atlcomcli.h
call fcn.14008624c
mov rbx, qword [rsp + 0x60]
cmp r15, r12
jae 0x140139f9f
mov rdi, qword [r14 + r15*8]
mov rax, qword [rbx]
mov rsi, qword [rax + 0xa8]
mov rcx, rsi
call qword [0x14014cce0]
xor r8d, r8d
mov rdx, rdi
mov rcx, rbx
call rsi
mov esi, eax
test eax, eax
js 0x140139f54
inc r15
cmp r15, r12
jb 0x140139e1f
xor r15d, r15d
test r14, r14
je 0x140139f10
mov rdi, r15
test r12, r12
je 0x140139ebd
mov rsi, qword [r14 + rdi*8]
test rsi, rsi
je 0x140139eb5
mov rax, qword [rsi]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x14014cce0]
mov rcx, rsi
call rbx
inc rdi
cmp rdi, r12
jb 0x140139e97
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
jmp 0x140139f10
cmp r14d, 0x103
je 0x140139f15
mov rcx, qword [0x1401782b0]
cmp rcx, rdi
je 0x140139f15
test byte [rcx + 0x1c], 1
je 0x140139f15
cmp byte [rcx + 0x19], 3
jb 0x140139f15
mov edx, 0x22
mov dword [rsp + 0x28], r14d
mov dword [rsp + 0x20], ebx
lea r9, str.SYSTEMCurrentControlSetControlBackupRestoreFilesNotToBackup
lea r8, [0x140161d88]
mov rcx, qword [rcx + 0x10]
call fcn.140010c10
jmp 0x140139f15
mov r14d, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea rdi, [0x1401782b0]
mov rsi, qword [rsp + 0x50]
test r14d, r14d
jne 0x140139fc2
mov ebx, dword [rsp + 0x48]
jmp 0x140139c59
mov ecx, 0x80070057
call fcn.140001b20
int3
mov ecx, 0x80070057
call fcn.140001b20
int3
xor r15d, r15d
test r14, r14
je 0x140139f8f
mov edi, r15d
mov r15, qword [r14 + rdi*8]
test r15, r15
je 0x140139f7d
mov rax, qword [r15]
mov rbx, qword [rax + 0x10]
mov rcx, rbx
call qword [0x14014cce0]
mov rcx, r15
call rbx
inc rdi
cmp rdi, r12
jb 0x140139f5f
mov rcx, r14
call qword [sym.imp.msvcrt.dll_free]
nop
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
jmp 0x14013a35a
lea r8, str.iElement___m_nSize
mov edx, 0x2cd
lea rcx, str.sdkinc_atlmfc_atlcoll.h
call fcn.14008624c
mov ecx, 0x80070057
call fcn.140001b20
nop
mov r12, qword [rbp - 0x80]
mov r13, qword [r12 + 8]
mov r14, r15
test r13, r13
je 0x14013a306
and qword [rsp + 0x48], 0
cmp r14, qword [r12 + 8]
jb 0x14013a007
lea r8, str.iElement___m_nSize
mov edx, 0x271
lea rcx, str.sdkinc_atlmfc_atlcoll.h
call fcn.14008624c
cmp r14, qword [r12 + 8]
jae 0x14013a2fb
mov r12, qword [r12]
mov rbx, qword [rsp + 0x58]
test rbx, rbx
jne 0x14013a032
lea r8, str.p_0
mov edx, 0x9a
lea rcx, str.sdkinc_atlmfc_atlcomcli.h
call fcn.14008624c
mov rbx, qword [rsp + 0x58]
lea rcx, str.Exclude
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rdi, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14013a2f0
cmp qword [rsp + 0x48], 0
je 0x14013a070
lea r8, str.p0
mov edx, reloc.OLEAUT32.dll_SysAllocStringByteLen
lea rcx, str.sdkinc_atlmfc_atlcomcli.h
call fcn.14008624c
mov rax, qword [rbx]
mov rsi, qword [rax + 0x178]
mov rcx, rsi
call qword [0x14014cce0]
lea r8, [rsp + 0x48]
mov rdx, rdi
mov rcx, rbx
call rsi
mov esi, eax
test eax, eax
sets bl
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test bl, bl
jne 0x14013a2bd
lea rcx, str.Additional_Files_To_Exclude
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14013a2e5
lea r8, [rsp + 0x40]
lea rdx, str.Value
lea rcx, [rsp + 0x48]
call fcn.140138ff8
mov esi, eax
test eax, eax
sets dil
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test dil, dil
jne 0x14013a2bd
mov rcx, qword [r15 + r12]
test rcx, rcx
jne 0x14013a108
xor ebx, ebx
mov qword [rsp + 0x40], rbx
jmp 0x14013a11f
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14013a2da
lea r8, [rsp + 0x40]
lea rdx, str.FilePath
lea rcx, [rsp + 0x48]
call fcn.140138ff8
mov esi, eax
test eax, eax
sets dil
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test dil, dil
jne 0x14013a2bd
mov rcx, qword [r15 + r12 + 8]
test rcx, rcx
jne 0x14013a162
xor ebx, ebx
mov qword [rsp + 0x40], rbx
jmp 0x14013a179
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14013a2cf
lea r8, [rsp + 0x40]
lea rdx, str.FileSpec
lea rcx, [rsp + 0x48]
call fcn.140138ff8
mov esi, eax
test eax, eax
sets dil
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test dil, dil
jne 0x14013a2bd
lea rax, str.true
lea rcx, str.false
cmp byte [r15 + r12 + 0x10], dil
cmovne rcx, rax
test rcx, rcx
jne 0x14013a1ce
xor ebx, ebx
mov qword [rsp + 0x40], rbx
jmp 0x14013a1e5
call qword [sym.imp.OLEAUT32.dll_SysReAllocString]
mov rbx, rax
mov qword [rsp + 0x40], rax
test rax, rax
je 0x14013a2c4
lea r8, [rsp + 0x40]
lea rdx, str.IsRecursive
lea rcx, [rsp + 0x48]
call fcn.140138ff8
mov esi, eax
test eax, eax
sets dil
mov rcx, rbx
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
test dil, dil
jne 0x14013a2bd
mov rbx, qword [rsp + 0x60]
test rbx, rbx
jne 0x14013a23c
lea r8, str.p_0
mov edx, 0x9a
lea rcx, str.sdkinc_atlmfc_atlcomcli.h
call fcn.14008624c
mov rbx, qword [rsp + 0x60]
mov rax, qword [rbx]
mov rdi, qword [rax + 0xa8]
mov rcx, rdi
call qword [0x14014cce0]
xor r8d, r8d
mov rdx, qword [rsp + 0x48]
mov rcx, rbx
call rdi
mov esi, eax
mov rbx, qword [rsp + 0x48]
test eax, eax
js 0x14013a29a
test rbx, rbx
je 0x14013a281
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x14014cce0]
mov rcx, rbx
call rdi
inc r14
add r15, 0x18
cmp r14, r13
mov r12, qword [rbp - 0x80]
jb 0x140139fd7
xor r15d, r15d
jmp 0x14013a306
test rbx, rbx
je 0x14013a35a
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x14014cce0]
mov rcx, rbx
call rdi
jmp 0x14013a35a
mov rbx, qword [rsp + 0x48]
jmp 0x14013a29a
mov ecx, 0x8007000e
call fcn.140001b20
int3
mov ecx, 0x8007000e
call fcn.140001b20
int3
mov ecx, 0x8007000e
call fcn.140001b20
int3
mov ecx, 0x8007000e
call fcn.140001b20
int3
mov ecx, 0x8007000e
call fcn.140001b20
int3
mov ecx, 0x80070057
call fcn.140001b20
nop
mov rsi, qword [rbp - 0x78]
mov rcx, qword [rsi]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov qword [rsi], r15
mov rbx, qword [rsp + 0x58]
test rbx, rbx
jne 0x14013a33d
lea r8, str.p_0
mov edx, 0x9a
lea rcx, str.sdkinc_atlmfc_atlcomcli.h
call fcn.14008624c
mov rbx, qword [rsp + 0x58]
mov rax, qword [rbx]
mov rdi, qword [rax + 0x110]
mov rcx, rdi
call qword [0x14014cce0]
mov rdx, rsi
mov rcx, rbx
call rdi
mov esi, eax
mov r14, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x14013a36f
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rcx, r14
call fcn.14014709c
nop
mov rbx, qword [rsp + 0x60]
test rbx, rbx
je 0x14013a398
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x14014cce0]
mov rcx, rbx
call rdi
nop
mov rbx, qword [rsp + 0x58]
test rbx, rbx
je 0x14013a3b7
mov rax, qword [rbx]
mov rdi, qword [rax + 0x10]
mov rcx, rdi
call qword [0x14014cce0]
mov rcx, rbx
call rdi
mov eax, esi
mov rcx, qword [rbp + 0x1d0]
xor rcx, rsp
call fcn.1401474d0
mov rbx, qword [rsp + 0x338]
add rsp, 0x2e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret