Function at 0x140030df0
Capabilities:
Encrypt data using dpapi

Disassembly:
push rbp
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x100
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x78], 0xfffffffffffffffe
mov rsi, rcx
mov rax, qword [rdx + 8]
mov r8, qword [rdx + 0x10]
lea rcx, [rbp + 0x30]
mov rdx, rax
call fcn.140061fa0
mov rax, qword [rbp + 0x30]
movabs rbx, 0x8000000000000000
cmp rax, rbx
jne 0x140030e4c
mov rcx, qword [rbp + 0x38]
call fcn.14002f060
mov qword [rsi], rbx
jmp 0x14003112e
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x38]
mov rax, qword [rbp + 0x40]
mov qword [rbp], rcx
mov qword [rbp + 0x48], rcx
mov qword [rbp + 0x50], rax
mov qword [rbp + 0x58], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 1
mov qword [rbp + 0x40], 0
mov byte [rbp + 0x60], 0x80
lea rcx, [rbp + 8]
lea rdx, [rbp + 0x30]
call fcn.14002fd10
cmp byte [rbp + 8], 6
jne 0x140030ec8
mov rax, qword [rbp + 0x10]
mov qword [rbp - 0x18], rax
mov byte [rbp - 0x20], 6
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x140030f5e
mov rcx, qword [rbp + 0x38]
mov r8d, 1
call fcn.140031dc0
jmp 0x140030f5e
movups xmm0, xmmword [rbp + 8]
movups xmm1, xmmword [rbp + 0x18]
movaps xmmword [rbp - 0x30], xmm1
movaps xmmword [rbp - 0x40], xmm0
mov rax, qword [rbp + 0x50]
mov rcx, qword [rbp + 0x58]
cmp rcx, rax
jae 0x140030f2e
mov rdx, qword [rbp + 0x48]
neg rax
inc rcx
movabs r8, 0x100002600
nop dword [rax]
movzx r9d, byte [rdx + rcx - 1]
cmp r9, 0x20
ja 0x140031048
bt r8, r9
jae 0x140031048
mov qword [rbp + 0x58], rcx
lea r9, [rax + rcx]
inc r9
inc rcx
cmp r9, 1
jne 0x140030f00
movaps xmm0, xmmword [rbp - 0x40]
movaps xmm1, xmmword [rbp - 0x30]
movaps xmmword [rbp - 0x10], xmm1
movaps xmmword [rbp - 0x20], xmm0
mov rdx, qword [rbp + 0x30]
test rdx, rdx
je 0x140030f56
mov rcx, qword [rbp + 0x38]
mov r8d, 1
call fcn.140031dc0
movzx eax, byte [rbp - 0x20]
cmp al, 6
jne 0x140030f6f
lea rcx, [rbp - 0x20]
call fcn.14002ef40
mov qword [rsi], rbx
jmp 0x140031116
movups xmm0, xmmword [rbp - 0x1f]
movups xmm1, xmmword [rbp - 0x10]
movups xmmword [rbp + 0x40], xmm1
movups xmmword [rbp + 0x31], xmm0
mov byte [rbp + 0x30], al
lea rcx, [0x1401bf0bb]
lea r8, [rbp + 0x30]
mov edx, 8
call fcn.1400580a0
test rax, rax
jne 0x140030fa3
mov rax, qword [0x14020e050]
lea rcx, [0x1401bf0c3]
mov edx, 0xd
mov r8, rax
call fcn.1400580a0
test rax, rax
jne 0x140030fc3
mov rax, qword [0x14020e050]
cmp byte [rax], 3
jne 0x140030fec
mov r8, qword [rax + 0x10]
mov r9, qword [rax + 0x18]
lea rdx, [0x1401bf0d0]
lea rdi, [rbp + 8]
mov rcx, rdi
call fcn.140018d10
mov r14, qword [rbp + 8]
cmp r14, rbx
jne 0x140030ff4
mov qword [rsi], rbx
jmp 0x14003110d
mov r15, qword [rbp + 0x10]
mov rbx, qword [rbp + 0x18]
cmp rbx, 5
jb 0x140031143
add rbx, 0xfffffffffffffffb
je 0x140031073
js 0x140031161
movzx eax, byte [0x140213501]
mov edx, 1
mov rcx, rbx
call fcn.140031db0
mov r12, rax
test rax, rax
jne 0x140031079
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x70], r14
mov ecx, 1
mov rdx, rbx
call fcn.1401b8890
jmp 0x14003116e
mov qword [rbp + 8], 0x16
lea rcx, [rbp + 0x30]
lea rdx, [rbp + 8]
call fcn.1401b4cb0
mov qword [rbp - 0x18], rax
mov byte [rbp - 0x20], 6
lea rcx, [rbp - 0x40]
call fcn.14002f130
jmp 0x140030ea7
mov r12d, 1
lea rdx, [r15 + 5]
mov rcx, r12
mov r8, rbx
call sub.VCRUNTIME140.dll_memcpy
test r14, r14
je 0x14003109e
mov r8d, 1
mov rcx, r15
mov rdx, r14
call fcn.140031dc0
mov dword [rbp - 0x40], ebx
mov qword [rbp + 0x68], r12
mov qword [rbp - 0x38], r12
mov dword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rcx, [rbp - 0x40]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
mov qword [rbp + 0x70], rbx
call sub.crypt32.dll_CryptUnprotectData
mov rdi, qword [rbp + 0x10]
mov ebx, dword [rbp + 8]
mov rdx, qword [rbp + 0x70]
test rdx, rdx
je 0x140031102
mov r8d, 1
mov rcx, qword [rbp + 0x68]
call fcn.140031dc0
mov qword [rsi], rbx
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], rbx
lea rcx, [rbp + 0x30]
call fcn.14002f130
mov rdx, qword [rbp + 0x28]
test rdx, rdx
je 0x14003112e
mov r8d, 1
mov rcx, qword [rbp]
call fcn.140031dc0
mov rax, rsi
add rsp, 0x100
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
pop rbp
ret
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x70], r14
lea r8, str.src_browsercrypto.rsWarning:_AES_GCM_decryption_failed__falling_back_to_DPAPI_decryption_n
mov ecx, 5
mov rdx, rbx
call fcn.1401b8fc0
jmp 0x14003116e
mov qword [rbp + 0x68], r15
mov qword [rbp + 0x70], r14
call fcn.140077c10
ud2