Function at 0x180013c7c
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
sub rsp, 0xa0
mov rsi, rdx
xor edx, edx
mov edi, r8d
mov r13, rcx
lea r8d, [rdx + 0x30]
lea rcx, [rax - 0x50]
mov rbx, r9
lea r12d, [rdx + 0x57]
call sub.ntdll.dll_memset
cmp edi, 0x129803f0
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rax
je 0x180013d28
cmp edi, 0x132e03f0
je 0x180013d14
cmp edi, 0x13c403f0
je 0x180013d00
cmp edi, 0x142803f0
jne 0x180013fe1
lea rbx, [0x180034252]
mov dword [rsp + 0x90], 0x19
jmp 0x180013d3a
lea rbx, [0x180034257]
mov dword [rsp + 0x90], 0x6e
jmp 0x180013d3a
lea rbx, [0x180034249]
mov dword [rsp + 0x90], 0x50
jmp 0x180013d3a
lea rbx, [0x18003425c]
mov dword [rsp + 0x90], 0x8f
lea r8, [0x1800342d8]
mov rdx, rbx
mov rcx, rsi
call fcn.180013bc8
test rax, rax
mov qword [rsp + 0x70], rax
je 0x180013fe1
lea r8, [0x1800342df]
mov rdx, rbx
mov rcx, rsi
call fcn.180013bc8
lea r8, [0x1800342f8]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x78], rax
call fcn.180013bc8
lea r8, [0x1800342f3]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x88], rax
call fcn.180013bc8
test rax, rax
mov rdi, rax
je 0x180013e17
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x1800307d8]
xor edx, edx
lea r8d, [rax + rax + 6]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
je 0x180013e0e
lea rdx, [0x1800344e4]
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]
mov edx, 1
mov rcx, rbp
call qword [sym.imp.SHLWAPI.dll_StrToIntExW]
mov rcx, qword [0x1800307d8]
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, [0x1800342e9]
mov rdx, rbx
mov rcx, rsi
call fcn.180013bc8
test rax, rax
mov rdi, rax
je 0x180013f84
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jbe 0x180013f84
mov rcx, qword [0x1800307d8]
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 rsi, rax
mov qword [rsp + 0x58], rax
je 0x180013f7b
mov rcx, rdi
mov rbp, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
mov r11d, eax
je 0x180013ede
mov dl, byte [rsp + 0xd0]
movzx ecx, word [rbp]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x180013e9c
sub cl, 0x30
jmp 0x180013eb6
lea eax, [rcx - 0x41]
cmp ax, 5
ja 0x180013eaa
sub cl, 0x37
jmp 0x180013eb6
lea eax, [rcx - 0x61]
cmp ax, 5
ja 0x180013ed5
sub cl, r12b
test r11b, 1
je 0x180013ec6
add dl, cl
mov byte [rsi], dl
add rsi, 1
jmp 0x180013ecb
mov dl, cl
shl dl, 4
add rbp, 2
add r11d, 0xffffffff
jne 0x180013e8a
test r11d, r11d
jne 0x180013f67
mov r8, qword [rsp + 0xe8]
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 0x180013f67
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x1800307d8]
xor edx, edx
add r8d, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov qword [rsp + 0x80], rax
je 0x180013f5c
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
and word [rax + r11*2], 0
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8, qword [rsp + 0x58]
mov rcx, qword [0x1800307d8]
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.180012e5c
mov r8, qword [rsp + 0x80]
test r8, r8
mov r12d, eax
je 0x180013fb3
mov rcx, qword [0x1800307d8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x180013fc6
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x180013fd6
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 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r13
pop r12
pop rdi
ret