Function at 0x1800145d4
Capabilities:
Encrypt data using dpapi
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb8
mov rcx, qword [0x1800307d8]
xor edx, edx
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
jne 0x180014616
lea eax, [rsi + 8]
jmp 0x180014a76
mov rcx, qword [0x1800307d8]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
jne 0x18001463b
lea edi, [rax + 8]
jmp 0x180014a4b
lea r14, [0x18002f6c8]
lea rbp, [0x18002f620]
mov r15d, 3
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x38]
call sub.ntdll.dll_memset
mov r13, qword [r14]
mov rcx, qword [rsp + 0x100]
lea rax, [rsp + 0x110]
lea r9, [rsp + 0x40]
xor r12d, r12d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x118]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], r12
mov r8, rsi
xor edx, edx
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x110], 0x1000
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
mov edi, eax
je 0x18001496b
mov r13, qword [rsp + 0x100]
test edi, edi
jne 0x180014908
mov rcx, qword [rbp]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rbp]
mov rcx, rsi
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
xor edi, edi
cmp eax, edi
jne 0x180014715
cmp dword [rsp + 0x118], 3
jne 0x180014715
mov edx, dword [rsp + 0x110]
mov rcx, rbx
call fcn.180014514
mov qword [rsp + 0x70], rax
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rbp + 8]
mov rcx, rsi
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
jne 0x180014752
cmp dword [rsp + 0x118], 3
jne 0x180014752
mov edx, dword [rsp + 0x110]
mov rcx, rbx
call fcn.180014514
mov qword [rsp + 0x78], rax
mov rcx, qword [rbp + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rbp + 0x10]
mov rcx, rsi
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
jne 0x180014792
cmp dword [rsp + 0x118], 3
jne 0x180014792
mov edx, dword [rsp + 0x110]
mov rcx, rbx
call fcn.180014514
mov qword [rsp + 0x80], rax
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rbp + 0x20]
mov rcx, rsi
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
jne 0x1800147d2
cmp dword [rsp + 0x118], 3
jne 0x1800147d2
mov edx, dword [rsp + 0x110]
mov rcx, rbx
call fcn.180014514
mov qword [rsp + 0x88], rax
mov rcx, qword [rbp + 0x18]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rbp + 0x18]
mov rcx, rsi
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
jne 0x18001480e
cmp dword [rsp + 0x110], 4
jne 0x18001480e
cmp dword [rsp + 0x118], 4
jne 0x18001480e
mov eax, dword [rbx]
mov dword [rsp + 0xa0], eax
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rbp + 0x28]
mov rcx, rsi
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
jne 0x1800148b2
cmp dword [rsp + 0x118], 3
jne 0x1800148b2
cmp byte [rbx], 2
jne 0x1800148b2
xor eax, eax
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x110]
xor r8d, r8d
add eax, 0xffffffff
xor edx, edx
mov dword [rsp + 0x50], edi
mov dword [rsp + 0x60], eax
lea rax, [rbx + 1]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp eax, edi
je 0x1800148a2
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.180014514
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x1800148b2
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rbp + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rbp + 0x30]
mov rcx, rsi
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
cmp eax, edi
jne 0x18001490a
cmp dword [rsp + 0x110], 4
jne 0x18001490a
cmp dword [rsp + 0x118], 4
jne 0x18001490a
cmp dword [rbx], edi
je 0x1800148ff
lea rcx, [0x18002a798]
call fcn.180014578
mov qword [rsp + 0x98], rax
jmp 0x18001490a
lea rcx, [0x18002a79c]
jmp 0x1800148f0
xor edi, edi
lea rax, [rsp + 0x110]
add r12d, 1
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x118]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rax
mov r8, rsi
mov edx, r12d
mov rcx, r13
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x110], 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
mov edi, eax
jne 0x1800146ce
mov r13, qword [rsp + 0x48]
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x1800149b0
cmp qword [rsp + 0x80], 0
je 0x18001499c
mov rcx, qword [rsp + 0x108]
lea r8, [rsp + 0x70]
mov rdx, r13
call fcn.180012e5c
mov r8, qword [rsp + 0x70]
mov edi, eax
test r8, r8
je 0x1800149b0
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x1800149c9
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x90]
test r8, r8
je 0x1800149e5
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x80]
test r8, r8
je 0x180014a01
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x88]
test r8, r8
je 0x180014a1d
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x180014a39
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rbp, 0x38
add r14, 8
sub r15, 1
jne 0x18001464f
mov rcx, qword [0x1800307d8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x180014a74
mov rcx, qword [0x1800307d8]
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, edi
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret