Function at 0x180015d90
Capabilities:
Encrypt data using dpapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
sub rsp, 0xa0
mov edi, r8d
mov r12, rcx
mov rbp, rdx
mov esi, 0x57
lea rcx, [rax - 0x40]
xor edx, edx
lea r8d, [rsi - 0x2b]
mov rbx, r9
call sub.ntdll.dll_memset
cmp edi, 0x129803f0
mov rax, qword [rsp + 0xd0]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rbx
je 0x180015e3e
cmp edi, 0x132e03f0
je 0x180015e2a
cmp edi, 0x13c403f0
je 0x180015e16
cmp edi, 0x142803f0
jne 0x180016098
lea rbx, [0x180058292]
mov dword [rsp + 0x90], 0x19
jmp 0x180015e50
lea rbx, [0x180058297]
mov dword [rsp + 0x90], 0x6e
jmp 0x180015e50
lea rbx, [0x180058289]
mov dword [rsp + 0x90], 0x50
jmp 0x180015e50
lea rbx, [0x18005829c]
mov dword [rsp + 0x90], 0x8f
lea r8, [0x180058318]
mov rdx, rbx
mov rcx, rbp
call fcn.180015cdc
test rax, rax
mov qword [rsp + 0x70], rax
je 0x180016098
lea r8, [0x18005831f]
mov rdx, rbx
mov rcx, rbp
call fcn.180015cdc
lea r8, [0x180058338]
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x78], rax
call fcn.180015cdc
lea r8, [0x180058333]
mov rdx, rbx
mov rcx, rbp
mov qword [rsp + 0x88], rax
call fcn.180015cdc
test rax, rax
mov rdi, rax
je 0x180015f2d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x180052eb0]
xor edx, edx
lea r8d, [rax + rax + 6]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rsi, rax
je 0x180015f24
lea rdx, [0x180058504]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r8, [rsp + 0x90]
mov edx, 1
mov rcx, rsi
call qword [sym.imp.SHLWAPI.dll_StrToIntExW]
mov rcx, qword [0x180052eb0]
mov r8, rsi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea r8, [0x180058329]
mov rdx, rbx
mov rcx, rbp
call fcn.180015cdc
test rax, rax
mov rdi, rax
je 0x18001603c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jbe 0x18001603c
mov rcx, qword [0x180052eb0]
shr eax, 1
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov qword [rsp + 0x54], rax
je 0x180016033
mov rdx, rax
mov rcx, rdi
call fcn.180019e44
test eax, eax
je 0x18001601f
mov r8, qword [rsp + 0xd8]
lea rax, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rax
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x18001601f
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x180052eb0]
xor edx, edx
add r8d, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov qword [rsp + 0x80], rax
je 0x180016014
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x44]
mov rcx, rax
call sub.ntdll.dll_memcpy
mov r11d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x80]
shr r11, 1
and word [rax + r11*2], 0
mov rcx, qword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8, qword [rsp + 0x54]
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea r8, [rsp + 0x60]
mov rdx, rbx
mov rcx, r12
call fcn.180014f70
mov r8, qword [rsp + 0x80]
test r8, r8
mov esi, eax
je 0x18001606a
mov rcx, qword [0x180052eb0]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x18001607d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18001608d
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea r11, [rsp + 0xa0]
mov eax, esi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r12
ret