Function at 0x180013cd8
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0xa0
mov rsi, rdx
xor edx, edx
mov edi, r8d
mov r13, rcx
lea r8d, [rdx + 0x2c]
lea rcx, [rsp + 0x68]
mov rbx, r9
lea r12d, [rdx + 0x57]
call sub.ntdll.dll_memset
mov rax, qword [rsp + 0xf0]
mov qword [rsp + 0x68], rbx
mov qword [rsp + 0x60], rax
cmp edi, 0x129803f0
je 0x180013d83
cmp edi, 0x132e03f0
je 0x180013d6f
cmp edi, 0x13c403f0
je 0x180013d5b
cmp edi, 0x142803f0
jne 0x18001403d
lea rbx, str.SMTP
mov dword [rsp + 0x90], 0x19
jmp 0x180013d95
lea rbx, str.POP3
mov dword [rsp + 0x90], 0x6e
jmp 0x180013d95
lea rbx, str.HTTPMail
mov dword [rsp + 0x90], 0x50
jmp 0x180013d95
lea rbx, str.IMAP
mov dword [rsp + 0x90], 0x8f
lea r8, str.Server
mov rdx, rbx
mov rcx, rsi
call fcn.180013c24
xor r14d, r14d
mov qword [rsp + 0x70], rax
cmp rax, r14
je 0x18001403d
lea r8, str.User_Name
mov rdx, rbx
mov rcx, rsi
call fcn.180013c24
lea r8, str.Secure_Connection
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x78], rax
call fcn.180013c24
lea r8, str.Port
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x88], rax
call fcn.180013c24
mov rdi, rax
cmp rax, r14
je 0x180013e74
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x180023a50]
xor edx, edx
lea r8d, [rax + rax + 6]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
cmp rax, r14
je 0x180013e6b
lea rdx, [0x18001e9ec]
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 [0x180023a50]
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, str.Password2
mov rdx, rbx
mov rcx, rsi
call fcn.180013c24
mov rdi, rax
cmp rax, r14
je 0x180013fe0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jbe 0x180013fe0
mov rcx, qword [0x180023a50]
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 + 0x54], rax
cmp rax, r14
je 0x180013fd7
mov rcx, rdi
mov rbp, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov r11d, eax
cmp eax, r14d
je 0x180013f3b
mov dl, byte [rsp + 0xe0]
movzx ecx, word [rbp]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x180013efa
sub cl, 0x30
jmp 0x180013f14
lea eax, [rcx - 0x41]
cmp ax, 5
ja 0x180013f08
sub cl, 0x37
jmp 0x180013f14
lea eax, [rcx - 0x61]
cmp ax, 5
ja 0x180013f32
sub cl, r12b
test r11b, 1
je 0x180013f23
add dl, cl
mov byte [rsi], dl
inc rsi
jmp 0x180013f28
mov dl, cl
shl dl, 4
add rbp, 2
add r11d, 0xffffffff
jne 0x180013ee8
cmp r11d, r14d
jne 0x180013fc3
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 0x180013fc3
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x180023a50]
xor edx, edx
add r8d, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x80], rax
cmp rax, r14
je 0x180013fb8
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
mov word [rax + r11*2], r14w
mov rcx, qword [rsp + 0x44]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8, qword [rsp + 0x54]
mov rcx, qword [0x180023a50]
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.180012ebc
mov r8, qword [rsp + 0x80]
mov r12d, eax
cmp r8, r14
je 0x18001400f
mov rcx, qword [0x180023a50]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x88]
cmp rcx, r14
je 0x180014022
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x78]
cmp rcx, r14
je 0x180014032
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 rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret