Function at 0x180025010
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 0x1800250bc
cmp edi, 0x132e03f0
je 0x1800250a8
cmp edi, 0x13c403f0
je 0x180025094
cmp edi, 0x142803f0
jne 0x180025375
lea rbx, [0x180037467]
mov dword [rsp + 0x90], 0x19
jmp 0x1800250ce
lea rbx, [0x18003746c]
mov dword [rsp + 0x90], 0x6e
jmp 0x1800250ce
lea rbx, [0x18003745e]
mov dword [rsp + 0x90], 0x50
jmp 0x1800250ce
lea rbx, [0x180037471]
mov dword [rsp + 0x90], 0x8f
lea r8, [0x1800374ed]
mov rdx, rbx
mov rcx, rsi
call fcn.180008a7c
test rax, rax
mov qword [rsp + 0x70], rax
je 0x180025375
lea r8, [0x1800374f4]
mov rdx, rbx
mov rcx, rsi
call fcn.180008a7c
lea r8, [0x18003750d]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x78], rax
call fcn.180008a7c
lea r8, [0x180037508]
mov rdx, rbx
mov rcx, rsi
mov qword [rsp + 0x88], rax
call fcn.180008a7c
test rax, rax
mov rdi, rax
je 0x1800251ab
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
mov rcx, qword [0x1800339a8]
xor edx, edx
lea r8d, [rax + rax + 6]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbp, rax
je 0x1800251a2
lea rdx, [0x180037744]
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 [0x1800339a8]
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, [0x1800374fe]
mov rdx, rbx
mov rcx, rsi
call fcn.180008a7c
test rax, rax
mov rdi, rax
je 0x180025318
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 1
jbe 0x180025318
mov rcx, qword [0x1800339a8]
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 0x18002530f
mov rcx, rdi
mov rbp, rdi
call qword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
mov r11d, eax
je 0x180025272
mov dl, byte [rsp + 0xd0]
movzx ecx, word [rbp]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x180025230
sub cl, 0x30
jmp 0x18002524a
lea eax, [rcx - 0x41]
cmp ax, 5
ja 0x18002523e
sub cl, 0x37
jmp 0x18002524a
lea eax, [rcx - 0x61]
cmp ax, 5
ja 0x180025269
sub cl, r12b
test r11b, 1
je 0x18002525a
add dl, cl
mov byte [rsi], dl
add rsi, 1
jmp 0x18002525f
mov dl, cl
shl dl, 4
add rbp, 2
add r11d, 0xffffffff
jne 0x18002521e
test r11d, r11d
jne 0x1800252fb
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 0x1800252fb
mov r8d, dword [rsp + 0x40]
mov rcx, qword [0x1800339a8]
xor edx, edx
add r8d, 2
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov qword [rsp + 0x80], rax
je 0x1800252f0
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 [0x1800339a8]
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.18001a774
mov r8, qword [rsp + 0x80]
test r8, r8
mov r12d, eax
je 0x180025347
mov rcx, qword [0x1800339a8]
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rsp + 0x88]
test rcx, rcx
je 0x18002535a
call qword [sym.imp.OLEAUT32.dll_SysStringLen]
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x18002536a
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