Function at 0x1800149e0
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 [0x180036838]
xor edx, edx
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
jne 0x180014a22
lea eax, [rsi + 8]
jmp 0x180014e82
mov rcx, qword [0x180036838]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
jne 0x180014a47
lea edi, [rax + 8]
jmp 0x180014e57
lea r14, [0x180035728]
lea rbp, [0x180035680]
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 0x180014d77
mov r13, qword [rsp + 0x100]
test edi, edi
jne 0x180014d14
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 0x180014b21
cmp dword [rsp + 0x118], 3
jne 0x180014b21
mov edx, dword [rsp + 0x110]
mov rcx, rbx
call fcn.180014920
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 0x180014b5e
cmp dword [rsp + 0x118], 3
jne 0x180014b5e
mov edx, dword [rsp + 0x110]
mov rcx, rbx
call fcn.180014920
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 0x180014b9e
cmp dword [rsp + 0x118], 3
jne 0x180014b9e
mov edx, dword [rsp + 0x110]
mov rcx, rbx
call fcn.180014920
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 0x180014bde
cmp dword [rsp + 0x118], 3
jne 0x180014bde
mov edx, dword [rsp + 0x110]
mov rcx, rbx
call fcn.180014920
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 0x180014c1a
cmp dword [rsp + 0x110], 4
jne 0x180014c1a
cmp dword [rsp + 0x118], 4
jne 0x180014c1a
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 0x180014cbe
cmp dword [rsp + 0x118], 3
jne 0x180014cbe
cmp byte [rbx], 2
jne 0x180014cbe
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 0x180014cae
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.180014920
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x180014cbe
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 0x180014d16
cmp dword [rsp + 0x110], 4
jne 0x180014d16
cmp dword [rsp + 0x118], 4
jne 0x180014d16
cmp dword [rbx], edi
je 0x180014d0b
lea rcx, [0x18002e798]
call fcn.180014984
mov qword [rsp + 0x98], rax
jmp 0x180014d16
lea rcx, [0x18002e79c]
jmp 0x180014cfc
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 0x180014ada
mov r13, qword [rsp + 0x48]
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x180014dbc
cmp qword [rsp + 0x80], 0
je 0x180014da8
mov rcx, qword [rsp + 0x108]
lea r8, [rsp + 0x70]
mov rdx, r13
call fcn.180013268
mov r8, qword [rsp + 0x70]
mov edi, eax
test r8, r8
je 0x180014dbc
mov rcx, qword [0x180036838]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x180014dd5
mov rcx, qword [0x180036838]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x90]
test r8, r8
je 0x180014df1
mov rcx, qword [0x180036838]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x80]
test r8, r8
je 0x180014e0d
mov rcx, qword [0x180036838]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x88]
test r8, r8
je 0x180014e29
mov rcx, qword [0x180036838]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x180014e45
mov rcx, qword [0x180036838]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rbp, 0x38
add r14, 8
sub r15, 1
jne 0x180014a5b
mov rcx, qword [0x180036838]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x180014e80
mov rcx, qword [0x180036838]
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