Function at 0x18001668c
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 [0x180052eb0]
xor edx, edx
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
jne 0x1800166ce
lea eax, [rbp + 8]
jmp 0x180016b34
mov rcx, qword [0x180052eb0]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
jne 0x1800166f3
lea edi, [rax + 8]
jmp 0x180016b09
lea r13, [0x180051ac8]
lea rsi, [0x180051ae0]
mov r15d, 3
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x34]
call sub.ntdll.dll_memset
mov r14, qword [r13]
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, rbp
xor edx, edx
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x110], 0x1000
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
mov edi, eax
je 0x180016a29
mov r14, qword [rsp + 0x100]
test edi, edi
jne 0x1800169c7
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsi]
mov rcx, rbp
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x1800167ca
cmp dword [rsp + 0x118], 3
jne 0x1800167ca
mov edx, dword [rsp + 0x110]
mov rcx, rbx
call fcn.1800165cc
mov qword [rsp + 0x70], rax
mov rcx, qword [rsi + 8]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsi + 8]
mov rcx, rbp
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x180016807
cmp dword [rsp + 0x118], 3
jne 0x180016807
mov edx, dword [rsp + 0x110]
mov rcx, rbx
call fcn.1800165cc
mov qword [rsp + 0x78], rax
mov rcx, qword [rsi + 0x10]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsi + 0x10]
mov rcx, rbp
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x180016847
cmp dword [rsp + 0x118], 3
jne 0x180016847
mov edx, dword [rsp + 0x110]
mov rcx, rbx
call fcn.1800165cc
mov qword [rsp + 0x80], rax
mov rcx, qword [rsi + 0x20]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsi + 0x20]
mov rcx, rbp
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x180016887
cmp dword [rsp + 0x118], 3
jne 0x180016887
mov edx, dword [rsp + 0x110]
mov rcx, rbx
call fcn.1800165cc
mov qword [rsp + 0x88], rax
mov rcx, qword [rsi + 0x18]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsi + 0x18]
mov rcx, rbp
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x1800168c3
cmp dword [rsp + 0x110], 4
jne 0x1800168c3
cmp dword [rsp + 0x118], 4
jne 0x1800168c3
mov eax, dword [rbx]
mov dword [rsp + 0xa0], eax
mov rcx, qword [rsi + 0x28]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsi + 0x28]
mov rcx, rbp
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x180016975
cmp dword [rsp + 0x118], 3
jne 0x180016975
cmp byte [rbx], 2
jne 0x180016975
lea r8d, [rax + 0xc]
lea rcx, [rsp + 0x50]
xor edx, edx
call sub.ntdll.dll_memset
mov r11d, dword [rsp + 0x110]
lea rax, [rbx + 1]
mov qword [rsp + 0x64], rax
lea rax, [rsp + 0x50]
add r11d, 0xffffffff
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
lea rcx, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x60], r11d
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x180016965
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x54]
call fcn.1800165cc
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x54]
test rcx, rcx
je 0x180016975
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rdx, qword [rsi + 0x30]
mov rcx, rbp
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x1800169c7
cmp dword [rsp + 0x110], 4
jne 0x1800169c7
cmp dword [rsp + 0x118], 4
jne 0x1800169c7
cmp dword [rbx], eax
lea rcx, [0x1800498f0]
jne 0x1800169ba
lea rcx, [0x1800498f4]
call fcn.180016630
mov qword [rsp + 0x98], rax
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
and qword [rsp + 0x20], 0
mov r8, rbp
mov edx, r12d
mov rcx, r14
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x110], 0x1000
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
cmp eax, 0x103
mov edi, eax
jne 0x180016787
mov r14, qword [rsp + 0x48]
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x180016a6e
cmp qword [rsp + 0x80], 0
je 0x180016a5a
mov rcx, qword [rsp + 0x108]
lea r8, [rsp + 0x70]
mov rdx, r14
call fcn.180014f70
mov r8, qword [rsp + 0x70]
mov edi, eax
test r8, r8
je 0x180016a6e
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x180016a87
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x90]
test r8, r8
je 0x180016aa3
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x80]
test r8, r8
je 0x180016abf
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x88]
test r8, r8
je 0x180016adb
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x180016af7
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rsi, 0x38
add r13, 8
sub r15, 1
jne 0x180016707
mov rcx, qword [0x180052eb0]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x180016b32
mov rcx, qword [0x180052eb0]
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