Function at 0x1401d55a0
Capabilities:
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x7e8]
sub rsp, 0x8e8
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x14041da10]
xor rax, rsp
mov qword [rbp + 0x7d0], rax
mov qword [rbp - 0x40], r9
mov rsi, r8
mov rdi, rdx
mov qword [rsp + 0x30], rdx
mov qword [rbp - 0x58], rcx
mov rax, qword [rbp + 0x830]
mov qword [rbp - 0x60], rax
mov r8, qword [r9]
lea rdx, str.CLSID_s_
lea rcx, [rbp - 0x78]
call fcn.140202d40
nop
xor eax, eax
mov qword [rsp + 0x60], rax
lea rax, [0x14034d1a0]
mov edx, dword [rbp - 0x6c]
test edx, edx
jne 0x1401d561b
mov qword [rsp + 0x58], rax
jmp 0x1401d5643
lea rcx, [rsp + 0x58]
call fcn.1402028a0
movsxd r9, dword [rbp - 0x6c]
mov eax, dword [rsp + 0x60]
inc eax
movsxd rdx, eax
mov r8, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x58]
call fcn.1402c06dc
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.140203bb0
nop
lea rdx, str.InprocServer32
lea rcx, [rsp + 0x58]
call fcn.140200ef0
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x1401d57de
cmp byte [rbp + 0x838], 0
jne 0x1401d57d7
lea rdx, str.TreatAs
lea rcx, [rbp - 0x78]
call fcn.140200ef0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x58]
call fcn.1402028a0
movsxd r9, dword [rbx + 0xc]
mov ecx, dword [rsp + 0x60]
inc ecx
movsxd rdx, ecx
mov r8, qword [rbx]
mov rcx, qword [rsp + 0x58]
call fcn.1402c06dc
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x58]
call fcn.140203bb0
lea rax, [rbp - 0x68]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401d57d7
mov dword [rsp + 0x40], 0x800
lea r9, [rsp + 0x40]
lea r8, [rbp - 0x30]
xor edx, edx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ebx, eax
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
jne 0x1401d57d7
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401d5740
xor eax, eax
mov qword [rsp + 0x70], rax
test ebx, ebx
jne 0x1401d5763
lea rax, [0x14034d1a0]
mov qword [rsp + 0x68], rax
jmp 0x1401d5789
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140203bb0
nop
mov byte [rsp + 0x28], 1
mov rdx, qword [rbp - 0x60]
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x68]
mov r8, rsi
mov rdx, rdi
mov rcx, qword [rbp - 0x58]
call fcn.1401d55a0
mov byte [rsp + 0x44], al
cmp dword [rsp + 0x70], 0
jle 0x1401d57cd
mov rcx, qword [rsp + 0x68]
call fcn.1402bd0e0
movzx ebx, byte [rsp + 0x44]
jmp 0x1401d5df4
xor bl, bl
jmp 0x1401d5df4
mov dword [rsp + 0x40], 0x800
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401d5de7
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
mov rdi, rbx
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1401d5820
xor eax, eax
mov qword [rsp + 0x50], rax
test edi, edi
jne 0x1401d5843
lea rax, [0x14034d1a0]
mov qword [rsp + 0x48], rax
jmp 0x1401d5869
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1402028a0
movsxd r9, edi
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.1402c06dc
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140203bb0
nop
lea rdx, [rsp + 0x48]
call fcn.1401d86e0
mov r8b, 1
lea rdx, [rsp + 0x48]
mov rcx, qword [rbp - 0x58]
mov rcx, qword [rcx + 8]
call fcn.1400fa8d0
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1401d5dd2
or qword [rax + 0x40], 0x1000
mov rdx, qword [rbp - 0x60]
mov rcx, rax
call fcn.1400edab0
xor eax, eax
mov qword [rsp + 0x70], rax
mov edx, dword [rsi + 0xc]
test edx, edx
jne 0x1401d58d2
lea rax, [0x14034d1a0]
mov qword [rsp + 0x68], rax
jmp 0x1401d58f6
lea rcx, [rsp + 0x68]
call fcn.1402028a0
movsxd r9, dword [rsi + 0xc]
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
mov r8, qword [rsi]
mov rcx, qword [rsp + 0x68]
call fcn.1402c06dc
mov edx, dword [rsi + 0xc]
lea rcx, [rsp + 0x68]
call fcn.140203bb0
nop
mov edi, dword [rsp + 0x74]
add edi, dword [rbp - 0x6c]
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.1402028a0
movsxd r9, dword [rbp - 0x6c]
mov ecx, dword [rsp + 0x70]
movsxd rax, dword [rsp + 0x74]
sub ecx, eax
inc ecx
movsxd rdx, ecx
mov rcx, rax
mov rax, qword [rsp + 0x68]
lea rcx, [rax + rcx*2]
mov r8, qword [rbp - 0x78]
call fcn.1402c06dc
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.140203bb0
lea rdx, [rsp + 0x68]
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call fcn.1400e5650
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.1402028a0
movsxd r9, dword [rbp - 0x6c]
mov eax, dword [rsp + 0x60]
inc eax
movsxd rdx, eax
mov r8, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x58]
call fcn.1402c06dc
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.140203bb0
lea rdx, str.ProgID
lea rcx, [rsp + 0x58]
call fcn.140200ef0
lea rax, [rbp - 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401d5b87
mov dword [rsp + 0x40], 0x800
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401d5b7d
lea rax, [rbp - 0x30]
mov rdi, rbx
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1401d5a10
test edi, edi
jle 0x1401d5a46
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1402028a0
movsxd r9, edi
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.1402c06dc
jmp 0x1401d5a4d
cmp dword [rsp + 0x54], 0
jle 0x1401d5a59
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140203bb0
xor eax, eax
mov qword [rbp - 0x80], rax
mov edx, dword [rsi + 0xc]
test edx, edx
jne 0x1401d5a74
lea rax, [0x14034d1a0]
mov qword [rsp + 0x78], rax
jmp 0x1401d5a97
lea rcx, [rsp + 0x78]
call fcn.1402028a0
movsxd r9, dword [rsi + 0xc]
mov eax, dword [rbp - 0x80]
inc eax
movsxd rdx, eax
mov r8, qword [rsi]
mov rcx, qword [rsp + 0x78]
call fcn.1402c06dc
mov edx, dword [rsi + 0xc]
lea rcx, [rsp + 0x78]
call fcn.140203bb0
nop
mov edi, dword [rbp - 0x7c]
add edi, dword [rsp + 0x54]
mov edx, edi
lea rcx, [rsp + 0x78]
call fcn.1402028a0
movsxd r9, dword [rsp + 0x54]
mov ecx, dword [rbp - 0x80]
movsxd rax, dword [rbp - 0x7c]
sub ecx, eax
inc ecx
movsxd rdx, ecx
mov rcx, rax
mov rax, qword [rsp + 0x78]
lea rcx, [rax + rcx*2]
mov r8, qword [rsp + 0x48]
call fcn.1402c06dc
mov edx, edi
lea rcx, [rsp + 0x78]
call fcn.140203bb0
mov edx, dword [rbp - 0x7c]
inc edx
lea rcx, [rsp + 0x78]
call fcn.1402028a0
movsxd rcx, dword [rbp - 0x7c]
mov rax, qword [rsp + 0x78]
mov edx, 0x5c
mov word [rax + rcx*2], dx
mov edx, dword [rbp - 0x7c]
inc edx
lea rcx, [rsp + 0x78]
call fcn.140203bb0
lea rdx, [rsp + 0x78]
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call fcn.1400e5650
mov r8d, 1
lea rdx, [0x140369cf8]
lea rcx, [rsp + 0x48]
call fcn.140202750
test al, al
je 0x1401d5b6d
mov edx, dword [rbp - 0x7c]
add edx, 0xfffffffd
mov r8d, 2
lea rcx, [rsp + 0x78]
call fcn.140203cb0
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400e5650
nop
cmp dword [rbp - 0x80], 0
jle 0x1401d5b7d
mov rcx, qword [rsp + 0x78]
call fcn.1402bd0e0
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.1402028a0
movsxd r9, dword [rbp - 0x6c]
mov eax, dword [rsp + 0x60]
inc eax
movsxd rdx, eax
mov r8, qword [rbp - 0x78]
mov rcx, qword [rsp + 0x58]
call fcn.1402c06dc
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.140203bb0
lea rdx, [0x14035f530]
lea rcx, [rsp + 0x58]
call fcn.140200ef0
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
mov r9d, 0x20019
xor r8d, r8d
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1401d5dad
mov dword [rsp + 0x40], 0x800
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1401d5da3
lea rax, [rbp - 0x30]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401d5c30
test ebx, ebx
jle 0x1401d5c66
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1402028a0
movsxd r9, ebx
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.1402c06dc
jmp 0x1401d5c6d
cmp dword [rsp + 0x54], 0
jle 0x1401d5c79
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140203bb0
xor eax, eax
mov qword [rsp + 0x38], rax
mov edx, dword [rsi + 0xc]
test edx, edx
jne 0x1401d5c95
lea rax, [0x14034d1a0]
mov qword [rsp + 0x30], rax
jmp 0x1401d5cb9
lea rcx, [rsp + 0x30]
call fcn.1402028a0
movsxd r9, dword [rsi + 0xc]
mov eax, dword [rsp + 0x38]
inc eax
movsxd rdx, eax
mov r8, qword [rsi]
mov rcx, qword [rsp + 0x30]
call fcn.1402c06dc
mov edx, dword [rsi + 0xc]
lea rcx, [rsp + 0x30]
call fcn.140203bb0
nop
lea rdx, [0x14035f530]
lea rcx, [rsp + 0x30]
call fcn.140200ef0
mov edx, dword [rsp + 0x3c]
inc edx
lea rcx, [rsp + 0x30]
call fcn.1402028a0
movsxd rcx, dword [rsp + 0x3c]
mov rax, qword [rsp + 0x30]
mov esi, 0x5c
mov word [rax + rcx*2], si
mov edx, dword [rsp + 0x3c]
inc edx
lea rcx, [rsp + 0x30]
call fcn.140203bb0
mov ebx, dword [rsp + 0x3c]
add ebx, dword [rsp + 0x54]
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1402028a0
movsxd r9, dword [rsp + 0x54]
mov ecx, dword [rsp + 0x38]
movsxd rax, dword [rsp + 0x3c]
sub ecx, eax
inc ecx
movsxd rdx, ecx
mov rcx, rax
mov rax, qword [rsp + 0x30]
lea rcx, [rax + rcx*2]
mov r8, qword [rsp + 0x48]
call fcn.1402c06dc
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140203bb0
mov edx, dword [rsp + 0x3c]
inc edx
lea rcx, [rsp + 0x30]
call fcn.1402028a0
movsxd rcx, dword [rsp + 0x3c]
mov rax, qword [rsp + 0x30]
mov word [rax + rcx*2], si
mov edx, dword [rsp + 0x3c]
inc edx
lea rcx, [rsp + 0x30]
call fcn.140203bb0
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400e5650
nop
cmp dword [rsp + 0x38], 0
jle 0x1401d5da3
mov rcx, qword [rsp + 0x30]
call fcn.1402bd0e0
mov rcx, qword [rbp - 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov r8, rdi
mov rdx, qword [rbp - 0x40]
mov rcx, qword [rbp - 0x58]
call fcn.1401d5000
mov bl, 1
cmp dword [rsp + 0x70], 0
jle 0x1401d5dd4
mov rcx, qword [rsp + 0x68]
call fcn.1402bd0e0
jmp 0x1401d5dd4
xor bl, bl
cmp dword [rsp + 0x50], 0
jle 0x1401d5de9
mov rcx, qword [rsp + 0x48]
call fcn.1402bd0e0
jmp 0x1401d5de9
xor bl, bl
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x60], 0
jle 0x1401d5e06
mov rcx, qword [rsp + 0x58]
call fcn.1402bd0e0
nop
cmp dword [rbp - 0x70], 0
jle 0x1401d5e15
mov rcx, qword [rbp - 0x78]
call fcn.1402bd0e0
movzx eax, bl
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1402bcad0
add rsp, 0x8e8
pop rdi
pop rsi
pop rbx
pop rbp
ret