Function at 0x1800240f8
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 [0x1800339a8]
xor edx, edx
mov r8d, 0x208
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
jne 0x18002413a
lea eax, [rsi + 8]
jmp 0x1800245c2
mov rcx, qword [0x1800339a8]
xor edx, edx
mov r8d, 0x1000
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
jne 0x18002415f
lea edi, [rax + 8]
jmp 0x180024597
lea r14, [0x180032108]
lea rbp, [0x180032060]
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]
cmp eax, 0x103
mov edi, eax
je 0x1800244b7
mov r13, qword [rsp + 0x100]
test edi, edi
jne 0x180024454
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 0x180024243
cmp dword [rsp + 0x110], 3
je 0x18002422f
cmp dword [rsp + 0x110], 1
jne 0x180024243
mov edx, dword [rsp + 0x118]
mov rcx, rbx
call fcn.180027e48
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 0x18002428a
cmp dword [rsp + 0x110], 3
je 0x180024276
cmp dword [rsp + 0x110], 1
jne 0x18002428a
mov edx, dword [rsp + 0x118]
mov rcx, rbx
call fcn.180027e48
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 0x1800242d4
cmp dword [rsp + 0x110], 3
je 0x1800242bd
cmp dword [rsp + 0x110], 1
jne 0x1800242d4
mov edx, dword [rsp + 0x118]
mov rcx, rbx
call fcn.180027e48
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 0x18002431e
cmp dword [rsp + 0x110], 3
je 0x180024307
cmp dword [rsp + 0x110], 1
jne 0x18002431e
mov edx, dword [rsp + 0x118]
mov rcx, rbx
call fcn.180027e48
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 0x18002435a
cmp dword [rsp + 0x118], 4
jne 0x18002435a
cmp dword [rsp + 0x110], 4
jne 0x18002435a
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 0x1800243fe
cmp dword [rsp + 0x110], 3
jne 0x1800243fe
cmp byte [rbx], 2
jne 0x1800243fe
xor eax, eax
lea rcx, [rsp + 0x60]
xor r9d, r9d
mov qword [rsp + 0x58], rax
mov eax, dword [rsp + 0x118]
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 0x1800243ee
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.180027e48
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x58]
cmp rcx, rdi
je 0x1800243fe
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 0x180024456
cmp dword [rsp + 0x118], 4
jne 0x180024456
cmp dword [rsp + 0x110], 4
jne 0x180024456
cmp dword [rbx], edi
je 0x18002444b
lea rcx, [0x18002d818]
call fcn.18000cec8
mov qword [rsp + 0x98], rax
jmp 0x180024456
lea rcx, [0x18002d81c]
jmp 0x18002443c
xor edi, edi
lea rax, [rsp + 0x118]
add r12d, 1
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]
cmp eax, 0x103
mov edi, eax
jne 0x1800241f2
mov r13, qword [rsp + 0x48]
mov r8, qword [rsp + 0x70]
test r8, r8
je 0x1800244fc
cmp qword [rsp + 0x80], 0
je 0x1800244e8
mov rcx, qword [rsp + 0x108]
lea r8, [rsp + 0x70]
mov rdx, r13
call fcn.18001a774
mov r8, qword [rsp + 0x70]
mov edi, eax
test r8, r8
je 0x1800244fc
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x78]
test r8, r8
je 0x180024515
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x90]
test r8, r8
je 0x180024531
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x80]
test r8, r8
je 0x18002454d
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x88]
test r8, r8
je 0x180024569
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov r8, qword [rsp + 0x98]
test r8, r8
je 0x180024585
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
add rbp, 0x38
add r14, 8
sub r15, 1
jne 0x180024173
mov rcx, qword [0x1800339a8]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test rbx, rbx
je 0x1800245c0
mov rcx, qword [0x1800339a8]
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