Function at 0x18001f26c
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 [0x180035a68]
xor edx, edx
mov r8d, 0x208
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
jne 0x18001f2ae
lea eax, [rsi + 8]
jmp 0x18001f776
mov rcx, qword [0x180035a68]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.kERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
jne 0x18001f2d3
lea ebx, [rax + 8]
jmp 0x18001f74b
lea r13, [0x180034108]
lea rbp, [0x180034060]
mov r15d, 3
xor edx, edx
lea rcx, [rsp + 0x70]
lea r8d, [rdx + 0x38]
call sub.ntdll.dll_memset
mov r14, qword [0x180035c60]
mov rcx, qword [rsp + 0x100]
add r14, qword [r13]
lea rax, [rsp + 0x118]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
xor r12d, r12d
mov r8, rsi
and qword [rsp + 0x20], r12
xor edx, edx
mov qword [rsp + 0x48], r14
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x118], 0x1000
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
cmp eax, 0x103
je 0x18001f66b
mov r14, qword [rsp + 0x100]
test ebx, ebx
jne 0x18001f60a
mov rbx, qword [0x180035c60]
add rbx, qword [rbp]
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov rdx, rbx
mov rcx, rsi
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x18001f3c6
cmp dword [rsp + 0x110], 3
je 0x18001f3b2
cmp dword [rsp + 0x110], 1
jne 0x18001f3c6
mov edx, dword [rsp + 0x118]
mov rcx, rdi
call fcn.18001e900
mov qword [rsp + 0x70], rax
mov rbx, qword [0x180035c60]
add rbx, qword [rbp + 8]
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov rdx, rbx
mov rcx, rsi
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x18001f416
cmp dword [rsp + 0x110], 3
je 0x18001f402
cmp dword [rsp + 0x110], 1
jne 0x18001f416
mov edx, dword [rsp + 0x118]
mov rcx, rdi
call fcn.18001e900
mov qword [rsp + 0x78], rax
mov rbx, qword [0x180035c60]
add rbx, qword [rbp + 0x10]
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov rdx, rbx
mov rcx, rsi
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x18001f469
cmp dword [rsp + 0x110], 3
je 0x18001f452
cmp dword [rsp + 0x110], 1
jne 0x18001f469
mov edx, dword [rsp + 0x118]
mov rcx, rdi
call fcn.18001e900
mov qword [rsp + 0x80], rax
mov rbx, qword [0x180035c60]
add rbx, qword [rbp + 0x20]
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov rdx, rbx
mov rcx, rsi
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x18001f4bc
cmp dword [rsp + 0x110], 3
je 0x18001f4a5
cmp dword [rsp + 0x110], 1
jne 0x18001f4bc
mov edx, dword [rsp + 0x118]
mov rcx, rdi
call fcn.18001e900
mov qword [rsp + 0x88], rax
mov rbx, qword [0x180035c60]
add rbx, qword [rbp + 0x18]
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov rdx, rbx
mov rcx, rsi
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x18001f501
cmp dword [rsp + 0x118], 4
jne 0x18001f501
cmp dword [rsp + 0x110], 4
jne 0x18001f501
mov eax, dword [rdi]
mov dword [rsp + 0xa0], eax
mov rbx, qword [0x180035c60]
add rbx, qword [rbp + 0x28]
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov rdx, rbx
mov rcx, rsi
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
xor ebx, ebx
cmp eax, ebx
jne 0x18001f5af
cmp dword [rsp + 0x110], 3
jne 0x18001f5af
cmp byte [rdi], 2
jne 0x18001f5af
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], ebx
mov dword [rsp + 0x60], eax
lea rax, [rdi + 1]
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp eax, ebx
je 0x18001f59f
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.18001e900
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x58]
cmp rcx, rbx
je 0x18001f5af
call qword [sym.imp.kERNEL32.dll_LocalFree]
mov rbx, qword [0x180035c60]
add rbx, qword [rbp + 0x30]
mov rcx, rbx
call qword [sym.imp.kERNEL32.dll_lstrlenW]
mov rdx, rbx
mov rcx, rsi
lea r8d, [rax + 1]
call qword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x18001f60a
cmp dword [rsp + 0x118], 4
jne 0x18001f60a
cmp dword [rsp + 0x110], 4
jne 0x18001f60a
lea rcx, [0x18002f2c8]
cmp dword [rdi], eax
jne 0x18001f5fd
lea rcx, [0x18002f2cc]
call fcn.180014f1c
mov qword [rsp + 0x98], rax
lea rax, [rsp + 0x118]
inc r12d
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x110]
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
mov r8, rsi
mov edx, r12d
mov rcx, r14
mov dword [rsp + 0x40], 0x104
mov dword [rsp + 0x118], 0x1000
call qword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov ebx, eax
cmp eax, 0x103
jne 0x18001f36e
mov r14, qword [rsp + 0x48]
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x18001f6b0
cmp qword [rsp + 0x80], 0
je 0x18001f69c
mov rcx, qword [rsp + 0x108]
lea r8, [rsp + 0x70]
mov rdx, r14
call fcn.18000b938
mov r8, qword [rsp + 0x70]
mov ebx, eax
test r8, r8
je 0x18001f6b0
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x18001f6c9
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x90]
test r8, r8
je 0x18001f6e5
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x80]
test r8, r8
je 0x18001f701
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x88]
test r8, r8
je 0x18001f71d
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x18001f739
mov rcx, qword [0x180035a68]
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
add rbp, 0x38
add r13, 8
sub r15, 1
jne 0x18001f2e7
mov rcx, qword [0x180035a68]
mov r8, rsi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
test rdi, rdi
je 0x18001f774
mov rcx, qword [0x180035a68]
mov r8, rdi
xor edx, edx
call qword [sym.imp.kERNEL32.dll_HeapFree]
mov eax, ebx
add rsp, 0xb8
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret