Function at 0x1401d33a0
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 [0x140418a10]
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.1401ff700
nop
xor eax, eax
mov qword [rsp + 0x60], rax
lea rax, [0x140348ca0]
mov edx, dword [rbp - 0x6c]
test edx, edx
jne 0x1401d341b
mov qword [rsp + 0x58], rax
jmp 0x1401d3443
lea rcx, [rsp + 0x58]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.140200570
nop
lea rdx, str.InprocServer32
lea rcx, [rsp + 0x58]
call fcn.1401fd8b0
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 0x1401d35de
cmp byte [rbp + 0x838], 0
jne 0x1401d35d7
lea rdx, str.TreatAs
lea rcx, [rbp - 0x78]
call fcn.1401fd8b0
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x58]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x58]
call fcn.140200570
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 0x1401d35d7
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 0x1401d35d7
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401d3540
xor eax, eax
mov qword [rsp + 0x70], rax
test ebx, ebx
jne 0x1401d3563
lea rax, [0x140348ca0]
mov qword [rsp + 0x68], rax
jmp 0x1401d3589
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.140200570
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.1401d33a0
mov byte [rsp + 0x44], al
cmp dword [rsp + 0x70], 0
jle 0x1401d35cd
mov rcx, qword [rsp + 0x68]
call fcn.1402b9c20
movzx ebx, byte [rsp + 0x44]
jmp 0x1401d3bf4
xor bl, bl
jmp 0x1401d3bf4
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 0x1401d3be7
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
mov rdi, rbx
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1401d3620
xor eax, eax
mov qword [rsp + 0x50], rax
test edi, edi
jne 0x1401d3643
lea rax, [0x140348ca0]
mov qword [rsp + 0x48], rax
jmp 0x1401d3669
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401ff260
movsxd r9, edi
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.1402bd21c
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140200570
nop
lea rdx, [rsp + 0x48]
call fcn.1401d64e0
mov r8b, 1
lea rdx, [rsp + 0x48]
mov rcx, qword [rbp - 0x58]
mov rcx, qword [rcx + 8]
call fcn.1400f92f0
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1401d3bd2
or qword [rax + 0x40], 0x1000
mov rdx, qword [rbp - 0x60]
mov rcx, rax
call fcn.1400ec540
xor eax, eax
mov qword [rsp + 0x70], rax
mov edx, dword [rsi + 0xc]
test edx, edx
jne 0x1401d36d2
lea rax, [0x140348ca0]
mov qword [rsp + 0x68], rax
jmp 0x1401d36f6
lea rcx, [rsp + 0x68]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rsi + 0xc]
lea rcx, [rsp + 0x68]
call fcn.140200570
nop
mov edi, dword [rsp + 0x74]
add edi, dword [rbp - 0x6c]
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.1401ff260
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.1402bd21c
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.140200570
lea rdx, [rsp + 0x68]
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call fcn.1400e41d0
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.140200570
lea rdx, str.ProgID
lea rcx, [rsp + 0x58]
call fcn.1401fd8b0
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 0x1401d3987
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 0x1401d397d
lea rax, [rbp - 0x30]
mov rdi, rbx
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1401d3810
test edi, edi
jle 0x1401d3846
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401ff260
movsxd r9, edi
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.1402bd21c
jmp 0x1401d384d
cmp dword [rsp + 0x54], 0
jle 0x1401d3859
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.140200570
xor eax, eax
mov qword [rbp - 0x80], rax
mov edx, dword [rsi + 0xc]
test edx, edx
jne 0x1401d3874
lea rax, [0x140348ca0]
mov qword [rsp + 0x78], rax
jmp 0x1401d3897
lea rcx, [rsp + 0x78]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rsi + 0xc]
lea rcx, [rsp + 0x78]
call fcn.140200570
nop
mov edi, dword [rbp - 0x7c]
add edi, dword [rsp + 0x54]
mov edx, edi
lea rcx, [rsp + 0x78]
call fcn.1401ff260
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.1402bd21c
mov edx, edi
lea rcx, [rsp + 0x78]
call fcn.140200570
mov edx, dword [rbp - 0x7c]
inc edx
lea rcx, [rsp + 0x78]
call fcn.1401ff260
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.140200570
lea rdx, [rsp + 0x78]
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call fcn.1400e41d0
mov r8d, 1
lea rdx, [0x1403655f0]
lea rcx, [rsp + 0x48]
call fcn.1401ff110
test al, al
je 0x1401d396d
mov edx, dword [rbp - 0x7c]
add edx, 0xfffffffd
mov r8d, 2
lea rcx, [rsp + 0x78]
call fcn.140200670
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400e41d0
nop
cmp dword [rbp - 0x80], 0
jle 0x1401d397d
mov rcx, qword [rsp + 0x78]
call fcn.1402b9c20
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.140200570
lea rdx, [0x14035aee8]
lea rcx, [rsp + 0x58]
call fcn.1401fd8b0
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 0x1401d3bad
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 0x1401d3ba3
lea rax, [rbp - 0x30]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401d3a30
test ebx, ebx
jle 0x1401d3a66
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401ff260
movsxd r9, ebx
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.1402bd21c
jmp 0x1401d3a6d
cmp dword [rsp + 0x54], 0
jle 0x1401d3a79
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.140200570
xor eax, eax
mov qword [rsp + 0x38], rax
mov edx, dword [rsi + 0xc]
test edx, edx
jne 0x1401d3a95
lea rax, [0x140348ca0]
mov qword [rsp + 0x30], rax
jmp 0x1401d3ab9
lea rcx, [rsp + 0x30]
call fcn.1401ff260
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.1402bd21c
mov edx, dword [rsi + 0xc]
lea rcx, [rsp + 0x30]
call fcn.140200570
nop
lea rdx, [0x14035aee8]
lea rcx, [rsp + 0x30]
call fcn.1401fd8b0
mov edx, dword [rsp + 0x3c]
inc edx
lea rcx, [rsp + 0x30]
call fcn.1401ff260
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.140200570
mov ebx, dword [rsp + 0x3c]
add ebx, dword [rsp + 0x54]
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401ff260
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.1402bd21c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.140200570
mov edx, dword [rsp + 0x3c]
inc edx
lea rcx, [rsp + 0x30]
call fcn.1401ff260
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.140200570
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400e41d0
nop
cmp dword [rsp + 0x38], 0
jle 0x1401d3ba3
mov rcx, qword [rsp + 0x30]
call fcn.1402b9c20
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.1401d2e00
mov bl, 1
cmp dword [rsp + 0x70], 0
jle 0x1401d3bd4
mov rcx, qword [rsp + 0x68]
call fcn.1402b9c20
jmp 0x1401d3bd4
xor bl, bl
cmp dword [rsp + 0x50], 0
jle 0x1401d3be9
mov rcx, qword [rsp + 0x48]
call fcn.1402b9c20
jmp 0x1401d3be9
xor bl, bl
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x60], 0
jle 0x1401d3c06
mov rcx, qword [rsp + 0x58]
call fcn.1402b9c20
nop
cmp dword [rbp - 0x70], 0
jle 0x1401d3c15
mov rcx, qword [rbp - 0x78]
call fcn.1402b9c20
movzx eax, bl
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1402b9610
add rsp, 0x8e8
pop rdi
pop rsi
pop rbx
pop rbp
ret