Function at 0x14007766c
Capabilities:
Encrypt data using dpapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
xorps xmm0, xmm0
mov r12, r9
movups xmmword [rbp - 0x20], xmm0
mov r13, r8
mov r15, rdx
mov rbx, rcx
xor esi, esi
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x1400776d2
test byte [rcx + 0x1c], 2
je 0x1400776d2
cmp byte [rcx + 0x19], 5
jb 0x1400776d2
mov rcx, qword [rcx + 0x10]
lea edx, [rsi + 0x10]
lea r8, [0x14008c4c8]
call fcn.140001024
mov rdi, qword [rbp + 0x58]
test rdi, rdi
je 0x1400776dd
and dword [rdi], esi
lea r8, [rbp - 0x30]
mov rdx, r15
mov rcx, rbx
call fcn.14006aeb0
mov qword [rbp - 0x28], rax
mov r14, rax
test rax, rax
jne 0x140077743
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x14007773c
test byte [rcx + 0x1c], 2
je 0x14007773c
cmp byte [rcx + 0x19], 3
jb 0x14007773c
mov rcx, qword [rcx + 0x10]
lea edx, [r14 + 0x11]
mov r9d, edi
lea r8, [0x14008c4c8]
call fcn.140001050
mov eax, edi
jmp 0x140077941
mov ebx, dword [rbp - 0x30]
cmp ebx, 1
jne 0x140077792
mov rcx, r14
call fcn.140066f24
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x140077788
test byte [rcx + 0x1c], 2
je 0x140077788
cmp byte [rcx + 0x19], 3
jb 0x140077788
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0x11]
mov r9, r15
lea r8, [0x14008c4c8]
call fcn.1400011fc
mov eax, 2
jmp 0x140077941
mov r15d, 0x14
lea rax, [0x14008c4d8]
mov qword [rbp - 8], rax
mov dword [rbp - 0x10], r15d
lea r8d, [r15 + 0x38]
cmp ebx, r8d
jbe 0x14007792c
lea rdx, str.5b04adaa_5e01_4160_a61e_02d27d44f9db
mov rcx, r14
call sub.msvcrt.dll_memcmp
test eax, eax
jne 0x14007792c
test rdi, rdi
je 0x1400777d6
mov dword [rdi], 1
add ebx, 0xffffffb4
mov ecx, ebx
mov dword [rbp - 0x30], ebx
call fcn.140066e68
mov rdi, rax
test rax, rax
jne 0x14007783f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x1400778ff
test byte [rcx + 0x1c], 2
je 0x1400778ff
cmp byte [rcx + 0x19], 2
jb 0x1400778ff
lea edx, [rdi + 0x13]
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c4c8]
mov r9d, esi
call fcn.140001050
jmp 0x1400778ff
mov rdx, qword [rbp - 0x28]
mov rcx, rdi
mov r8d, dword [rbp - 0x30]
add rdx, 0x4c
call sub.msvcrt.dll_memcpy
mov rcx, qword [rbp - 0x28]
call fcn.140066f24
lea rax, [rbp - 0x20]
mov qword [rbp - 0x28], rdi
mov qword [rsp + 0x30], rax
lea r8, [rbp - 0x10]
mov dword [rsp + 0x28], 1
lea rcx, [rbp - 0x30]
and qword [rsp + 0x20], rsi
xor r9d, r9d
xor edx, edx
call qword [sym.imp.CRYPT32.dll_CryptUnprotectData]
nop dword [rax + rax]
test eax, eax
jne 0x1400778c8
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
mov rcx, qword [0x14009b028]
lea rax, [0x14009b028]
cmp rcx, rax
je 0x1400778ff
test byte [rcx + 0x1c], 2
je 0x1400778ff
cmp byte [rcx + 0x19], 2
jb 0x1400778ff
mov edx, r15d
jmp 0x140077827
mov eax, dword [rbp - 0x20]
mov ecx, eax
mov dword [r12], eax
call fcn.140066e68
mov qword [r13], rax
test rax, rax
jne 0x1400778ef
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov esi, eax
jmp 0x1400778ff
mov r8d, dword [rbp - 0x20]
mov rcx, rax
mov rdx, qword [rbp - 0x18]
call sub.msvcrt.dll_memcpy
mov rdi, qword [rbp - 0x18]
test rdi, rdi
je 0x14007791f
mov ecx, dword [rbp - 0x20]
xor eax, eax
rep stosb byte [rdi], al
mov rcx, qword [rbp - 0x18]
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop dword [rax + rax]
mov rcx, qword [rbp - 0x28]
call fcn.140066f24
mov eax, esi
jmp 0x140077941
mov dword [r12], ebx
mov qword [r13], r14
test rdi, rdi
je 0x14007793f
mov dword [rdi], 2
xor eax, eax
lea r11, [rsp + 0x70]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret