Function at 0x180014384
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 0x18001443a
cmp edi, 0x132e03f0
je 0x180014426
cmp edi, 0x13c403f0
je 0x180014412
cmp edi, 0x142803f0
jne 0x1800146f8
lea rbx, [0x18003e1d2]
mov dword [rsp + 0x90], 0x19
jmp 0x18001444c
lea rbx, [0x18003e1d7]
mov dword [rsp + 0x90], 0x6e
jmp 0x18001444c
lea rbx, [0x18003e1c9]
mov dword [rsp + 0x90], 0x50
jmp 0x18001444c
lea rbx, [0x18003e1dc]
mov dword [rsp + 0x90], 0x8f
lea r8, [0x18003e258]
mov rdx, rbx
mov rcx, rsi
call fcn.1800142d0
xor r14d, r14d
mov qword [rsp + 0x70], rax
cmp rax, r14
je 0x1800146f8
lea r8, [0x18003e25f]
mov rdx, rbx
mov rcx, rsi
call fcn.1800142d0
lea r8, [0x18003e278]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x78], rax
call fcn.1800142d0
lea r8, [0x18003e273]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x88], rax
call fcn.1800142d0
mov rdi, rax
cmp rax, r14
je 0x18001452b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x180039b48]
xor edx, edx
lea r8d, [rax + rax + 6]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
cmp rax, r14
je 0x180014522
lea rdx, [0x18003e464]
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 [0x180039b48]
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, [0x18003e269]
mov rdx, rbx
mov rcx, rsi
call fcn.1800142d0
mov rdi, rax
cmp rax, r14
je 0x18001469b
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jbe 0x18001469b
mov rcx, qword [0x180039b48]
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 0x180014692
mov rcx, rdi
mov rbp, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r11d, eax
cmp eax, r14d
je 0x1800145f6
mov dl, byte [rsp + 0xe0]
movzx ecx, word [rbp]
movzx eax, cx
sub ax, r15w
cmp ax, 9
ja 0x1800145b5
sub cl, r15b
jmp 0x1800145cf
lea eax, [rcx - 0x41]
cmp ax, 5
ja 0x1800145c3
sub cl, 0x37
jmp 0x1800145cf
lea eax, [rcx - 0x61]
cmp ax, 5
ja 0x1800145ed
sub cl, r12b
test r11b, 1
je 0x1800145de
add dl, cl
mov byte [rsi], dl
inc rsi
jmp 0x1800145e3
mov dl, cl
shl dl, 4
add rbp, 2
add r11d, 0xffffffff
jne 0x18001459f
cmp r11d, r14d
jne 0x18001467e
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 0x18001467e
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x180039b48]
xor edx, edx
add r8d, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x80], rax
cmp rax, r14
je 0x180014673
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 [0x180039b48]
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.180013568
mov r8, qword [rsp + 0x80]
mov r12d, eax
cmp r8, r14
je 0x1800146ca
mov rcx, qword [0x180039b48]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x88]
cmp rcx, r14
je 0x1800146dd
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x78]
cmp rcx, r14
je 0x1800146ed
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