Function at 0x1401d1d80
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 [0x140415a10]
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.1401fcfe0
nop
xor eax, eax
mov qword [rsp + 0x60], rax
lea rax, [0x140346ce0]
mov edx, dword [rbp - 0x6c]
test edx, edx
jne 0x1401d1dfb
mov qword [rsp + 0x58], rax
jmp 0x1401d1e23
lea rcx, [rsp + 0x58]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.1401fde50
nop
lea rdx, str.InprocServer32
lea rcx, [rsp + 0x58]
call fcn.1401fb190
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 0x1401d1fbe
cmp byte [rbp + 0x838], 0
jne 0x1401d1fb7
lea rdx, str.TreatAs
lea rcx, [rbp - 0x78]
call fcn.1401fb190
mov rbx, rax
mov edx, dword [rax + 0xc]
lea rcx, [rsp + 0x58]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rbx + 0xc]
lea rcx, [rsp + 0x58]
call fcn.1401fde50
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 0x1401d1fb7
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 0x1401d1fb7
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
nop dword [rax]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401d1f20
xor eax, eax
mov qword [rsp + 0x70], rax
test ebx, ebx
jne 0x1401d1f43
lea rax, [0x140346ce0]
mov qword [rsp + 0x68], rax
jmp 0x1401d1f69
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x70]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x68]
call fcn.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x68]
call fcn.1401fde50
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.1401d1d80
mov byte [rsp + 0x44], al
cmp dword [rsp + 0x70], 0
jle 0x1401d1fad
mov rcx, qword [rsp + 0x68]
call fcn.1402b7350
movzx ebx, byte [rsp + 0x44]
jmp 0x1401d25d4
xor bl, bl
jmp 0x1401d25d4
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 0x1401d25c7
lea rax, [rbp - 0x30]
or rbx, 0xffffffffffffffff
mov rdi, rbx
nop
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1401d2000
xor eax, eax
mov qword [rsp + 0x50], rax
test edi, edi
jne 0x1401d2023
lea rax, [0x140346ce0]
mov qword [rsp + 0x48], rax
jmp 0x1401d2049
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401fcb40
movsxd r9, edi
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.1402ba94c
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401fde50
nop
lea rdx, [rsp + 0x48]
call fcn.1401d4ec0
mov r8b, 1
lea rdx, [rsp + 0x48]
mov rcx, qword [rbp - 0x58]
mov rcx, qword [rcx + 8]
call fcn.1400f8340
mov qword [rbp - 0x48], rax
test rax, rax
je 0x1401d25b2
or qword [rax + 0x40], 0x1000
mov rdx, qword [rbp - 0x60]
mov rcx, rax
call fcn.1400eb2a0
xor eax, eax
mov qword [rsp + 0x70], rax
mov edx, dword [rsi + 0xc]
test edx, edx
jne 0x1401d20b2
lea rax, [0x140346ce0]
mov qword [rsp + 0x68], rax
jmp 0x1401d20d6
lea rcx, [rsp + 0x68]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rsi + 0xc]
lea rcx, [rsp + 0x68]
call fcn.1401fde50
nop
mov edi, dword [rsp + 0x74]
add edi, dword [rbp - 0x6c]
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.1401fcb40
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.1402ba94c
mov edx, edi
lea rcx, [rsp + 0x68]
call fcn.1401fde50
lea rdx, [rsp + 0x68]
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call fcn.1400e4160
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.1401fde50
lea rdx, str.ProgID
lea rcx, [rsp + 0x58]
call fcn.1401fb190
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 0x1401d2367
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 0x1401d235d
lea rax, [rbp - 0x30]
mov rdi, rbx
nop dword [rax]
inc rdi
cmp word [rax + rdi*2], 0
jne 0x1401d21f0
test edi, edi
jle 0x1401d2226
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401fcb40
movsxd r9, edi
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.1402ba94c
jmp 0x1401d222d
cmp dword [rsp + 0x54], 0
jle 0x1401d2239
mov edx, edi
lea rcx, [rsp + 0x48]
call fcn.1401fde50
xor eax, eax
mov qword [rbp - 0x80], rax
mov edx, dword [rsi + 0xc]
test edx, edx
jne 0x1401d2254
lea rax, [0x140346ce0]
mov qword [rsp + 0x78], rax
jmp 0x1401d2277
lea rcx, [rsp + 0x78]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rsi + 0xc]
lea rcx, [rsp + 0x78]
call fcn.1401fde50
nop
mov edi, dword [rbp - 0x7c]
add edi, dword [rsp + 0x54]
mov edx, edi
lea rcx, [rsp + 0x78]
call fcn.1401fcb40
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.1402ba94c
mov edx, edi
lea rcx, [rsp + 0x78]
call fcn.1401fde50
mov edx, dword [rbp - 0x7c]
inc edx
lea rcx, [rsp + 0x78]
call fcn.1401fcb40
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.1401fde50
lea rdx, [rsp + 0x78]
mov rdi, qword [rbp - 0x48]
mov rcx, rdi
call fcn.1400e4160
mov r8d, 1
lea rdx, [0x1403632c8]
lea rcx, [rsp + 0x48]
call fcn.1401fc9f0
test al, al
je 0x1401d234d
mov edx, dword [rbp - 0x7c]
add edx, 0xfffffffd
mov r8d, 2
lea rcx, [rsp + 0x78]
call fcn.1401fdf50
lea rdx, [rsp + 0x78]
mov rcx, rdi
call fcn.1400e4160
nop
cmp dword [rbp - 0x80], 0
jle 0x1401d235d
mov rcx, qword [rsp + 0x78]
call fcn.1402b7350
mov rcx, qword [rbp - 0x60]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rbp - 0x6c]
lea rcx, [rsp + 0x58]
call fcn.1401fde50
lea rdx, [0x140358e90]
lea rcx, [rsp + 0x58]
call fcn.1401fb190
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 0x1401d258d
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 0x1401d2583
lea rax, [rbp - 0x30]
inc rbx
cmp word [rax + rbx*2], 0
jne 0x1401d2410
test ebx, ebx
jle 0x1401d2446
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401fcb40
movsxd r9, ebx
mov eax, dword [rsp + 0x50]
inc eax
movsxd rdx, eax
lea r8, [rbp - 0x30]
mov rcx, qword [rsp + 0x48]
call fcn.1402ba94c
jmp 0x1401d244d
cmp dword [rsp + 0x54], 0
jle 0x1401d2459
mov edx, ebx
lea rcx, [rsp + 0x48]
call fcn.1401fde50
xor eax, eax
mov qword [rsp + 0x38], rax
mov edx, dword [rsi + 0xc]
test edx, edx
jne 0x1401d2475
lea rax, [0x140346ce0]
mov qword [rsp + 0x30], rax
jmp 0x1401d2499
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
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.1402ba94c
mov edx, dword [rsi + 0xc]
lea rcx, [rsp + 0x30]
call fcn.1401fde50
nop
lea rdx, [0x140358e90]
lea rcx, [rsp + 0x30]
call fcn.1401fb190
mov edx, dword [rsp + 0x3c]
inc edx
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
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.1401fde50
mov ebx, dword [rsp + 0x3c]
add ebx, dword [rsp + 0x54]
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
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.1402ba94c
mov edx, ebx
lea rcx, [rsp + 0x30]
call fcn.1401fde50
mov edx, dword [rsp + 0x3c]
inc edx
lea rcx, [rsp + 0x30]
call fcn.1401fcb40
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.1401fde50
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400e4160
nop
cmp dword [rsp + 0x38], 0
jle 0x1401d2583
mov rcx, qword [rsp + 0x30]
call fcn.1402b7350
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.1401d17e0
mov bl, 1
cmp dword [rsp + 0x70], 0
jle 0x1401d25b4
mov rcx, qword [rsp + 0x68]
call fcn.1402b7350
jmp 0x1401d25b4
xor bl, bl
cmp dword [rsp + 0x50], 0
jle 0x1401d25c9
mov rcx, qword [rsp + 0x48]
call fcn.1402b7350
jmp 0x1401d25c9
xor bl, bl
mov rcx, qword [rbp - 0x68]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp dword [rsp + 0x60], 0
jle 0x1401d25e6
mov rcx, qword [rsp + 0x58]
call fcn.1402b7350
nop
cmp dword [rbp - 0x70], 0
jle 0x1401d25f5
mov rcx, qword [rbp - 0x78]
call fcn.1402b7350
movzx eax, bl
mov rcx, qword [rbp + 0x7d0]
xor rcx, rsp
call fcn.1402b6d40
add rsp, 0x8e8
pop rdi
pop rsi
pop rbx
pop rbp
ret