Function at 0x180013b08
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 [0x180037ae8]
xor edx, edx
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x180013b4a
lea eax, [rsi + 8]
jmp 0x180013fd0
mov rcx, qword [0x180037ae8]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x180013b6f
lea edi, [rax + 8]
jmp 0x180013fa5
lea r14, [0x1800366a8]
lea rbp, [0x1800366c0]
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 0x180013ec5
mov r13, qword [rsp + 0x100]
test edi, edi
jne 0x180013e63
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 0x180013c53
cmp dword [rsp + 0x110], 3
je 0x180013c3f
cmp dword [rsp + 0x110], 1
jne 0x180013c53
mov edx, dword [rsp + 0x118]
mov rcx, rbx
call fcn.180013a40
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 0x180013c9a
cmp dword [rsp + 0x110], 3
je 0x180013c86
cmp dword [rsp + 0x110], 1
jne 0x180013c9a
mov edx, dword [rsp + 0x118]
mov rcx, rbx
call fcn.180013a40
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 0x180013ce4
cmp dword [rsp + 0x110], 3
je 0x180013ccd
cmp dword [rsp + 0x110], 1
jne 0x180013ce4
mov edx, dword [rsp + 0x118]
mov rcx, rbx
call fcn.180013a40
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 0x180013d2e
cmp dword [rsp + 0x110], 3
je 0x180013d17
cmp dword [rsp + 0x110], 1
jne 0x180013d2e
mov edx, dword [rsp + 0x118]
mov rcx, rbx
call fcn.180013a40
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 0x180013d6a
cmp dword [rsp + 0x118], 4
jne 0x180013d6a
cmp dword [rsp + 0x110], 4
jne 0x180013d6a
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 0x180013e0d
cmp dword [rsp + 0x110], 3
jne 0x180013e0d
cmp byte [rbx], 2
jne 0x180013e0d
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 0x180013dfd
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.180013a40
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x180013e0d
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 0x180013e65
cmp dword [rsp + 0x118], 4
jne 0x180013e65
cmp dword [rsp + 0x110], 4
jne 0x180013e65
cmp dword [rbx], edi
je 0x180013e5a
lea rcx, [0x18002f7a8]
call fcn.180013aac
mov qword [rsp + 0x98], rax
jmp 0x180013e65
lea rcx, [0x18002f7ac]
jmp 0x180013e4b
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 0x180013c02
mov r13, qword [rsp + 0x48]
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x180013f0a
cmp qword [rsp + 0x80], 0
je 0x180013ef6
mov rcx, qword [rsp + 0x108]
lea r8, [rsp + 0x70]
mov rdx, r13
call fcn.180012378
mov r8, qword [rsp + 0x70]
mov edi, eax
test r8, r8
je 0x180013f0a
mov rcx, qword [0x180037ae8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x180013f23
mov rcx, qword [0x180037ae8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x90]
test r8, r8
je 0x180013f3f
mov rcx, qword [0x180037ae8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x80]
test r8, r8
je 0x180013f5b
mov rcx, qword [0x180037ae8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x88]
test r8, r8
je 0x180013f77
mov rcx, qword [0x180037ae8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x180013f93
mov rcx, qword [0x180037ae8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rbp, 0x38
add r14, 8
sub r15, 1
jne 0x180013b83
mov rcx, qword [0x180037ae8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x180013fce
mov rcx, qword [0x180037ae8]
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