Function at 0x180004770
Capabilities:
Encrypt data using dpapi

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x90
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x88], rax
mov rsi, rdx
xor r14d, r14d
mov dword [r11 - 0x58], r14d
mov qword [r11 - 0x50], r14
xorps xmm0, xmm0
mov rbp, qword [rcx]
add rbp, 5
movdqu xmmword [rsp + 0x70], xmm0
mov qword [r11 - 0x28], r14
mov rdi, qword [rcx + 8]
sub rdi, rbp
mov ecx, r14d
je 0x1800047ee
mov rdx, rdi
lea rcx, [r11 - 0x38]
call fcn.18001bbd0
mov rbx, qword [rsp + 0x70]
mov r8, rdi
mov rdx, rbp
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rcx, [rdi + rbx]
mov qword [rsp + 0x78], rcx
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x68], rax
sub ecx, eax
mov dword [rsp + 0x60], ecx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 1
mov qword [rsp + 0x20], r14
xor r9d, r9d
lea r8, [rsp + 0x50]
xor edx, edx
lea rcx, [rsp + 0x60]
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x1800048b2
mov edi, dword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsi]
mov rax, qword [rsi + 0x10]
sub rax, rbx
cmp rdi, rax
jbe 0x18000486b
mov edx, edi
mov rcx, rsi
call fcn.180027f70
mov rbx, qword [rsi]
mov r8d, edi
mov rdx, rbp
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + rdi]
jmp 0x18000489f
mov r14, qword [rsi + 8]
sub r14, rbx
mov rdx, rbp
mov rcx, rbx
cmp rdi, r14
jbe 0x180004893
mov r8, r14
call sub.VCRUNTIME140.dll_memmove
lea rdx, [r14 + rbp]
mov rbx, qword [rsi + 8]
sub rdi, r14
mov rcx, rbx
mov r8, rdi
call sub.VCRUNTIME140.dll_memmove
lea rax, [rdi + rbx]
mov qword [rsi + 8], rax
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov bl, 1
jmp 0x1800048eb
lea rdx, str.CryptUnprotectData_failed._Error_code:
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
call fcn.180018220
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___unsigned_long_int____ptr64]
lea rdx, [0x1800183f0]
mov rcx, rax
call qword [sym.imp.MSVCP140.dll_public:_class_std::basic_ostream_char__struct_std::char_traits_char______ptr64___cdecl_std::basic_ostream_char__struct_std::char_traits_char__::operator___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64____cdecl___class_std::basic_ostream_char__struct_std::char_traits_char______ptr64_____ptr64]
xor bl, bl
mov rcx, qword [rsp + 0x70]
test rcx, rcx
je 0x18000492d
mov rdx, qword [rsp + 0x80]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180004928
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180004928
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180034744
movzx eax, bl
mov rcx, qword [rsp + 0x88]
xor rcx, rsp
call fcn.1800346e0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret