Function at 0x14000c940
Capabilities:
Encrypt data using dpapi

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x118
mov rsi, rcx
mov rdi, qword [rdx]
mov rbx, qword [rdx + 0x10]
mov rcx, rdi
mov rdx, rbx
call fcn.14013df90
test rax, rax
je 0x14000d05f
mov r14, rax
mov r15, rdx
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], 0
lea rax, [0x1402247b3]
mov qword [rsp + 0x40], rax
lea rax, [0x1402247ba]
mov qword [rsp + 0x48], rax
lea rax, [0x1402253a9]
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 0x20
mov qword [rsp + 0x60], 0
lea rcx, [rsp + 0xb0]
lea rdx, [rsp + 0x40]
call fcn.1400166b0
mov r12, qword [rsp + 0xb0]
mov r13, qword [rsp + 0xc0]
lea rcx, [rsp + 0x40]
mov rdx, r12
mov r8, r13
call fcn.140159030
cmp qword [rsp + 0x40], 0
je 0x14000ca21
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rsp + 0x50]
mov edx, dword [rsp + 0x51]
mov dword [rsp + 0x90], edx
mov edx, dword [rsp + 0x54]
mov dword [rsp + 0x93], edx
cmp cl, 2
jne 0x14000d270
mov rbp, qword [rsp + 0xb8]
mov qword [rsp + 0x20], r13
lea rcx, [rsp + 0xf8]
mov rdx, r14
mov r8, r15
mov r9, r12
call fcn.14013e620
test rbp, rbp
je 0x14000ca5a
mov r8d, 1
mov rcx, r12
mov rdx, rbp
call fcn.140018810
mov r14, qword [rsp + 0xf8]
mov r15, qword [rsp + 0x108]
mov qword [rsp + 0x20], r15
lea rcx, [rsp + 0x40]
mov rdx, rdi
mov r8, rbx
mov r9, r14
call fcn.140142e40
cmp qword [rsp + 0x40], 0
jne 0x14000d1e4
mov rdi, qword [rsp + 0x100]
lea rcx, [rsp + 0x40]
mov rdx, r14
mov r8, r15
call fcn.1401398e0
test rdi, rdi
je 0x14000cabc
mov r8d, 1
mov rcx, r14
mov rdx, rdi
call fcn.140018810
mov rdi, qword [rsp + 0x40]
test rdi, rdi
lea r15, [0x1402253a9]
je 0x14000d1fa
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x90], rdi
mov qword [rsp + 0x98], rax
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0x90]
call fcn.140001150
cmp byte [rsp + 0x40], 6
je 0x14000d235
movups xmm0, xmmword [rsp + 0x40]
movups xmm1, xmmword [rsp + 0x50]
movaps xmmword [rsp + 0xc0], xmm1
movaps xmmword [rsp + 0xb0], xmm0
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], 0
lea rax, str.gBxy__m_ir6_6a
mov qword [rsp + 0x40], rax
lea rax, [0x140224818]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 0x20
mov qword [rsp + 0x60], 0
lea rcx, [rsp + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.1400166b0
mov rdx, qword [rsp + 0xd0]
mov r8, qword [rsp + 0xe0]
lea rcx, [rsp + 0x40]
call fcn.140159030
cmp qword [rsp + 0x40], 0
je 0x14000cbec
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rsp + 0x50]
mov edx, dword [rsp + 0x51]
mov dword [rsp + 0x88], edx
mov edx, dword [rsp + 0x54]
mov dword [rsp + 0x8b], edx
movups xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x90], xmm0
mov rdx, qword [rsp + 0xe0]
mov qword [rsp + 0xa0], rdx
cmp cl, 2
je 0x14000cc0c
jmp 0x14000cd1a
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xa0], rax
movups xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x90], xmm0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
lea rdx, [rsp + 0xb0]
call fcn.140133a20
mov r14, rax
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14000cc55
mov rcx, qword [rsp + 0x40]
mov r8d, 1
call fcn.140018810
test r14, r14
jne 0x14000cc61
mov r14, qword [str.h___]
xorps xmm0, xmm0
movups xmmword [rsp + 0x68], xmm0
mov qword [rsp + 0x78], 0
lea rax, [0x140224818]
mov qword [rsp + 0x40], rax
lea rax, [0x140224825]
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], r15
mov qword [rsp + 0x58], 0x20
mov qword [rsp + 0x60], 0
lea rcx, [rsp + 0xd0]
lea rdx, [rsp + 0x40]
call fcn.1400166b0
mov rdx, qword [rsp + 0xd0]
mov r8, qword [rsp + 0xe0]
lea rcx, [rsp + 0x40]
call fcn.140159030
cmp qword [rsp + 0x40], 0
je 0x14000cd50
mov rax, qword [rsp + 0x48]
movzx ecx, byte [rsp + 0x50]
mov edx, dword [rsp + 0x51]
mov dword [rsp + 0x88], edx
mov edx, dword [rsp + 0x54]
mov dword [rsp + 0x8b], edx
movups xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x90], xmm0
mov rdx, qword [rsp + 0xe0]
mov qword [rsp + 0xa0], rdx
cmp cl, 2
je 0x14000cd70
mov rdx, qword [rsp + 0xe0]
mov qword [rsp + 0x50], rdx
movups xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x60], cl
mov eax, dword [rsp + 0x88]
mov ecx, dword [rsp + 0x8b]
jmp 0x14000d2a1
mov rax, qword [rsp + 0xe0]
mov qword [rsp + 0xa0], rax
movups xmm0, xmmword [rsp + 0xd0]
movaps xmmword [rsp + 0x90], xmm0
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x50], rax
movaps xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x40], xmm0
lea rcx, [rsp + 0x40]
mov rdx, r14
call fcn.140133a20
mov r14, rax
mov rdx, qword [rsp + 0x48]
test rdx, rdx
je 0x14000cdb4
mov rcx, qword [rsp + 0x40]
mov r8d, 1
call fcn.140018810
test r14, r14
je 0x14000ce5f
xor ecx, ecx
cmp byte [r14], 3
mov rax, qword [r14 + 0x18]
je 0x14000ce76
mov qword [rsp + 0xe8], rcx
mov qword [rsp + 0xf0], rax
jne 0x14000ce90
lea r13, [rsp + 0x40]
lea rdx, [rsp + 0xe8]
mov rcx, r13
mov r8d, 1
call fcn.140014510
mov r14, qword [rsp + 0x40]
test r14, r14
je 0x14000d2d4
mov r15, qword [rsp + 0x50]
cmp r15, 4
jbe 0x14000d30f
mov r12, qword [rsp + 0x48]
add r15, 0xfffffffffffffffb
je 0x14000cf09
js 0x14000d325
movzx eax, byte [0x1402e6951]
mov edx, 1
mov rcx, r15
call fcn.140018800
mov rbp, rax
test rax, rax
jne 0x14000cf0e
mov ecx, 1
mov rdx, r15
call fcn.140222360
ud2
mov r14, qword [str.h___]
xor ecx, ecx
cmp byte [r14], 3
mov rax, qword [r14 + 0x18]
jne 0x14000cdcd
mov rcx, qword [r14 + 8]
mov qword [rsp + 0xe8], rcx
mov qword [rsp + 0xf0], rax
je 0x14000cde3
movzx eax, byte [rsp + 0xb0]
cmp rax, 3
jb 0x14000d049
cmp eax, 3
je 0x14000d029
cmp eax, 4
jne 0x14000d08f
mov r15, qword [rsp + 0xc8]
test r15, r15
je 0x14000cee1
mov r14, qword [rsp + 0xb8]
nop dword [rax]
mov rcx, r14
call fcn.1400161c0
add r14, 0x20
dec r15
jne 0x14000ced0
mov rdx, qword [rsp + 0xc0]
test rdx, rdx
je 0x14000d049
mov rcx, qword [rsp + 0xb8]
shl rdx, 5
mov r8d, 8
jmp 0x14000d044
mov ebp, 1
lea rdx, [r14 + 5]
mov rcx, rbp
mov r8, r15
call sub.VCRUNTIME140.dll_memcpy
mov dword [rsp + 0x90], r15d
mov qword [rsp + 0x98], rbp
mov dword [rsp + 0x40], 0
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rcx, [rsp + 0x90]
xor edx, edx
xor r8d, r8d
xor r9d, r9d
call sub.crypt32.dll_CryptUnprotectData
mov rax, qword [rsp + 0x48]
mov ecx, dword [rsp + 0x40]
mov qword [rsi], rax
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rcx
test r15, r15
je 0x14000cf93
mov r8d, 1
mov rcx, rbp
mov rdx, r15
call fcn.140018810
test r12, r12
je 0x14000cfa9
mov r8d, 1
mov rcx, r14
mov rdx, r12
call fcn.140018810
movzx eax, byte [rsp + 0xb0]
cmp rax, 3
jb 0x14000d100
cmp eax, 3
je 0x14000d0e0
cmp eax, 4
jne 0x14000d12d
mov r15, qword [rsp + 0xc8]
test r15, r15
je 0x14000d001
mov r14, qword [rsp + 0xb8]
nop word cs:[rax + rax]
mov rcx, r14
call fcn.1400161c0
add r14, 0x20
dec r15
jne 0x14000cff0
mov rdx, qword [rsp + 0xc0]
test rdx, rdx
je 0x14000d100
mov rcx, qword [rsp + 0xb8]
shl rdx, 5
mov r8d, 8
jmp 0x14000d0fb
mov rdx, qword [rsp + 0xc0]
test rdx, rdx
je 0x14000d049
mov rcx, qword [rsp + 0xb8]
mov r8d, 1
call fcn.140018810
test rbx, rbx
je 0x14000d05f
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140018810
mov ecx, 0x20
mov edx, 1
call fcn.140018830
test rax, rax
je 0x14000d1d3
mov qword [rsi], rax
mov qword [rsi + 8], 0x20
mov qword [rsi + 0x10], 0x20
jmp 0x14000d116
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x14000d177
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rdx
mov ecx, 1
jmp 0x14000d17b
mov rdx, qword [rsp + 0xc0]
test rdx, rdx
je 0x14000d100
mov rcx, qword [rsp + 0xb8]
mov r8d, 1
call fcn.140018810
test rbx, rbx
je 0x14000d116
mov r8d, 1
mov rcx, rdi
mov rdx, rbx
call fcn.140018810
mov rax, rsi
add rsp, 0x118
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rcx, qword [rsp + 0xb8]
test rcx, rcx
je 0x14000d1a5
mov rdx, qword [rsp + 0xc0]
mov rax, qword [rsp + 0xc8]
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], rcx
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], rcx
mov qword [rsp + 0x78], rdx
mov ecx, 1
jmp 0x14000d1a9
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x40]
call fcn.1400182b0
test rbx, rbx
jne 0x14000d04e
jmp 0x14000d05f
xor ecx, ecx
xor eax, eax
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x80], rax
lea rcx, [rsp + 0x40]
call fcn.1400182b0
test rbx, rbx
jne 0x14000d105
jmp 0x14000d116
mov ecx, 1
mov edx, 0x20
call fcn.140222360
ud2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xb0], rax
lea rax, [0x1402247c8]
jmp 0x14000d20e
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0xb0], rax
lea rax, [0x1402247e0]
mov qword [rsp + 0x20], rax
lea rcx, [0x140224654]
lea r9, [0x140224700]
lea r8, [rsp + 0xb0]
mov edx, 0x2b
call fcn.140222a70
ud2
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x90], rax
lea rax, [0x1402247f8]
mov qword [rsp + 0x20], rax
lea rcx, [0x140224654]
lea r9, [0x140224720]
lea r8, [rsp + 0x90]
mov edx, 0x2b
call fcn.140222a70
ud2
mov rdx, qword [rsp + 0xc0]
mov qword [rsp + 0x50], rdx
movups xmm0, xmmword [rsp + 0xb0]
movaps xmmword [rsp + 0x40], xmm0
mov qword [rsp + 0x58], rax
mov byte [rsp + 0x60], cl
mov eax, dword [rsp + 0x90]
mov ecx, dword [rsp + 0x93]
mov dword [rsp + 0x61], eax
mov dword [rsp + 0x64], ecx
lea rax, [0x1402253d8]
mov qword [rsp + 0x20], rax
lea rcx, [0x1402251c8]
lea r9, [0x140225218]
lea r8, [rsp + 0x40]
mov edx, 0x2b
call fcn.140222a70
ud2
movups xmm0, xmmword [rsp + 0x48]
movaps xmmword [rsp + 0x90], xmm0
lea rax, [0x140224828]
mov qword [rsp + 0x20], rax
lea rcx, [0x140224654]
lea r9, [0x140224740]
lea r8, [rsp + 0x90]
mov edx, 0x2b
call fcn.140222a70
ud2
lea r8, [0x140224840]
mov ecx, 5
mov rdx, r15
call fcn.140222b10
ud2
call fcn.14014ebe0
ud2