Function at 0x180013194
Capabilities:
Encrypt data using dpapi

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xa0
mov r13, rcx
mov edi, r8d
mov rsi, rdx
mov r12d, 0x57
lea rcx, [rax - 0x60]
xor edx, edx
lea r15d, [r12 - 0x27]
mov rbx, r9
mov r8, r15
call sub.ntdll.dll_memset
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rax
cmp edi, 0x129803f0
je 0x18001324a
cmp edi, 0x132e03f0
je 0x180013236
cmp edi, 0x13c403f0
je 0x180013222
cmp edi, 0x142803f0
jne 0x180013508
lea rbx, [0x18003c13f]
mov dword [rsp + 0x90], 0x19
jmp 0x18001325c
lea rbx, [0x18003c144]
mov dword [rsp + 0x90], 0x6e
jmp 0x18001325c
lea rbx, [0x18003c136]
mov dword [rsp + 0x90], 0x50
jmp 0x18001325c
lea rbx, [0x18003c149]
mov dword [rsp + 0x90], 0x8f
lea r8, [0x18003c1c5]
mov rdx, rbx
mov rcx, rsi
call fcn.1800130e0
xor r14d, r14d
mov qword [rsp + 0x70], rax
cmp rax, r14
je 0x180013508
lea r8, [0x18003c1cc]
mov rdx, rbx
mov rcx, rsi
call fcn.1800130e0
lea r8, [0x18003c1e5]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x78], rax
call fcn.1800130e0
lea r8, [0x18003c1e0]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x88], rax
call fcn.1800130e0
mov rdi, rax
cmp rax, r14
je 0x18001333b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x180037ae8]
xor edx, edx
lea r8d, [rax + rax + 6]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
cmp rax, r14
je 0x180013332
lea rdx, [0x18003c3e4]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrcpyW]
mov rdx, rdi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_lstrcatW]
lea r8, [rsp + 0x90]
lea edx, [r14 + 1]
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrToIntExW]
mov rcx, qword [0x180037ae8]
mov r8, rbp
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, rdi
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
lea r8, [0x18003c1d6]
mov rdx, rbx
mov rcx, rsi
call fcn.1800130e0
mov rdi, rax
cmp rax, r14
je 0x1800134ab
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jbe 0x1800134ab
mov rcx, qword [0x180037ae8]
shr eax, 1
xor edx, edx
mov r8d, eax
mov dword [rsp + 0x50], eax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
mov qword [rsp + 0x58], rax
cmp rax, r14
je 0x1800134a2
mov rcx, rdi
mov rbp, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r11d, eax
cmp eax, r14d
je 0x180013406
mov dl, byte [rsp + 0xe0]
movzx ecx, word [rbp]
movzx eax, cx
sub ax, r15w
cmp ax, 9
ja 0x1800133c5
sub cl, r15b
jmp 0x1800133df
lea eax, [rcx - 0x41]
cmp ax, 5
ja 0x1800133d3
sub cl, 0x37
jmp 0x1800133df
lea eax, [rcx - 0x61]
cmp ax, 5
ja 0x1800133fd
sub cl, r12b
test r11b, 1
je 0x1800133ee
add dl, cl
mov byte [rsi], dl
inc rsi
jmp 0x1800133f3
mov dl, cl
shl dl, 4
add rbp, 2
add r11d, 0xffffffff
jne 0x1800133af
cmp r11d, r14d
jne 0x18001348e
mov r8, qword [rsp + 0xf8]
lea rax, [rsp + 0x40]
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x30], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
cmp eax, r14d
je 0x18001348e
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x180037ae8]
xor edx, edx
add r8d, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x80], rax
cmp rax, r14
je 0x180013483
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, rax
call sub.ntdll.dll_memcpy
mov r11d, dword [rsp + 0x40]
mov rax, qword [rsp + 0x80]
shr r11, 1
mov word [rax + r11*2], r14w
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8, qword [rsp + 0x58]
mov rcx, qword [0x180037ae8]
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, r13
call fcn.180012378
mov r8, qword [rsp + 0x80]
mov r12d, eax
cmp r8, r14
je 0x1800134da
mov rcx, qword [0x180037ae8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x88]
cmp rcx, r14
je 0x1800134ed
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x78]
cmp rcx, r14
je 0x1800134fd
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, r12d
mov rbx, qword [r11 + 0x30]
mov rbp, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret