Function at 0x180014088
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 0x180014134
cmp edi, 0x132e03f0
je 0x180014120
cmp edi, 0x13c403f0
je 0x18001410c
cmp edi, 0x142803f0
jne 0x1800143ed
lea rbx, [0x18003a271]
mov dword [rsp + 0x90], 0x19
jmp 0x180014146
lea rbx, [0x18003a276]
mov dword [rsp + 0x90], 0x6e
jmp 0x180014146
lea rbx, [0x18003a268]
mov dword [rsp + 0x90], 0x50
jmp 0x180014146
lea rbx, [0x18003a27b]
mov dword [rsp + 0x90], 0x8f
lea r8, [0x18003a2f7]
mov rdx, rbx
mov rcx, rsi
call fcn.180013fd4
test rax, rax
mov qword [rsp + 0x70], rax
je 0x1800143ed
lea r8, [0x18003a2fe]
mov rdx, rbx
mov rcx, rsi
call fcn.180013fd4
lea r8, [0x18003a317]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x78], rax
call fcn.180013fd4
lea r8, [0x18003a312]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x88], rax
call fcn.180013fd4
test rax, rax
mov rdi, rax
je 0x180014223
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x180036838]
xor edx, edx
lea r8d, [rax + rax + 6]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
je 0x18001421a
lea rdx, [0x18003a51c]
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 [0x180036838]
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, [0x18003a308]
mov rdx, rbx
mov rcx, rsi
call fcn.180013fd4
test rax, rax
mov rdi, rax
je 0x180014390
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jbe 0x180014390
mov rcx, qword [0x180036838]
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 0x180014387
mov rcx, rdi
mov rbp, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
mov r11d, eax
je 0x1800142ea
mov dl, byte [rsp + 0xd0]
movzx ecx, word [rbp]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x1800142a8
sub cl, 0x30
jmp 0x1800142c2
lea eax, [rcx - 0x41]
cmp ax, 5
ja 0x1800142b6
sub cl, 0x37
jmp 0x1800142c2
lea eax, [rcx - 0x61]
cmp ax, 5
ja 0x1800142e1
sub cl, r12b
test r11b, 1
je 0x1800142d2
add dl, cl
mov byte [rsi], dl
add rsi, 1
jmp 0x1800142d7
mov dl, cl
shl dl, 4
add rbp, 2
add r11d, 0xffffffff
jne 0x180014296
test r11d, r11d
jne 0x180014373
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 0x180014373
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x180036838]
xor edx, edx
add r8d, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov qword [rsp + 0x80], rax
je 0x180014368
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 [0x180036838]
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.180013268
mov r8, qword [rsp + 0x80]
test r8, r8
mov r12d, eax
je 0x1800143bf
mov rcx, qword [0x180036838]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x1800143d2
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1800143e2
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