Function at 0x180014cf8
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 [0x180039b48]
xor edx, edx
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x180014d3a
lea eax, [rsi + 8]
jmp 0x1800151c0
mov rcx, qword [0x180039b48]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x180014d5f
lea edi, [rax + 8]
jmp 0x180015195
lea r14, [0x1800386b8]
lea rbp, [0x1800386d0]
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 + 0x118]
lea r9, [rsp + 0x40]
xor r12d, r12d
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x110]
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 + 0x118], 0x1000
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp eax, 0x103
je 0x1800150b5
mov r13, qword [rsp + 0x100]
test edi, edi
jne 0x180015053
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 0x180014e43
cmp dword [rsp + 0x110], 3
je 0x180014e2f
cmp dword [rsp + 0x110], 1
jne 0x180014e43
mov edx, dword [rsp + 0x118]
mov rcx, rbx
call fcn.180014c30
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 0x180014e8a
cmp dword [rsp + 0x110], 3
je 0x180014e76
cmp dword [rsp + 0x110], 1
jne 0x180014e8a
mov edx, dword [rsp + 0x118]
mov rcx, rbx
call fcn.180014c30
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 0x180014ed4
cmp dword [rsp + 0x110], 3
je 0x180014ebd
cmp dword [rsp + 0x110], 1
jne 0x180014ed4
mov edx, dword [rsp + 0x118]
mov rcx, rbx
call fcn.180014c30
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 0x180014f1e
cmp dword [rsp + 0x110], 3
je 0x180014f07
cmp dword [rsp + 0x110], 1
jne 0x180014f1e
mov edx, dword [rsp + 0x118]
mov rcx, rbx
call fcn.180014c30
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 0x180014f5a
cmp dword [rsp + 0x118], 4
jne 0x180014f5a
cmp dword [rsp + 0x110], 4
jne 0x180014f5a
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 0x180014ffd
cmp dword [rsp + 0x110], 3
jne 0x180014ffd
cmp byte [rbx], 2
jne 0x180014ffd
xor eax, eax
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x118]
xor r8d, r8d
dec eax
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 0x180014fed
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.180014c30
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x180014ffd
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 0x180015055
cmp dword [rsp + 0x118], 4
jne 0x180015055
cmp dword [rsp + 0x110], 4
jne 0x180015055
cmp dword [rbx], edi
je 0x18001504a
lea rcx, [0x1800317d0]
call fcn.180014c9c
mov qword [rsp + 0x98], rax
jmp 0x180015055
lea rcx, [0x1800317d4]
jmp 0x18001503b
xor edi, edi
lea rax, [rsp + 0x118]
inc r12d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x110]
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 + 0x118], 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov edi, eax
cmp eax, 0x103
jne 0x180014df2
mov r13, qword [rsp + 0x48]
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x1800150fa
cmp qword [rsp + 0x80], 0
je 0x1800150e6
mov rcx, qword [rsp + 0x108]
lea r8, [rsp + 0x70]
mov rdx, r13
call fcn.180013568
mov r8, qword [rsp + 0x70]
mov edi, eax
test r8, r8
je 0x1800150fa
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x180015113
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x90]
test r8, r8
je 0x18001512f
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x80]
test r8, r8
je 0x18001514b
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x88]
test r8, r8
je 0x180015167
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x180015183
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rbp, 0x38
add r14, 8
sub r15, 1
jne 0x180014d73
mov rcx, qword [0x180039b48]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x1800151be
mov rcx, qword [0x180039b48]
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