Function at 0x140001d80
Capabilities:
Encrypt data using dpapi
Encrypt or decrypt data via bcrypt

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
mov eax, 0x2678
call fcn.1400b0030
sub rsp, rax
mov rax, qword [rsp + 0x2690]
mov rcx, qword [rax + 0x108]
call fcn.14001ad40
cmp eax, 0x64
jne 0x14000231b
lea rcx, [rsp + 0x1c0]
call fcn.140001870
nop
xor edx, edx
mov rax, qword [rsp + 0x2690]
mov rcx, qword [rax + 0x108]
call fcn.14001b0c0
mov qword [rsp + 0x90], rax
mov edx, 1
mov rax, qword [rsp + 0x2690]
mov rcx, qword [rax + 0x108]
call fcn.14001b0c0
mov qword [rsp + 0x98], rax
mov edx, 2
mov rax, qword [rsp + 0x2690]
mov rcx, qword [rax + 0x108]
call fcn.14001b0c0
mov qword [rsp + 0xd0], rax
mov edx, 3
mov rax, qword [rsp + 0x2690]
mov rcx, qword [rax + 0x108]
call fcn.14001b0c0
mov qword [rsp + 0xa0], rax
mov edx, 4
mov rax, qword [rsp + 0x2690]
mov rcx, qword [rax + 0x108]
call fcn.14001b0c0
mov qword [rsp + 0xd8], rax
cmp qword [rsp + 0x90], 0
jne 0x140001e99
cmp qword [rsp + 0x98], 0
jne 0x140001e99
cmp qword [rsp + 0xa0], 0
jne 0x140001e99
lea rcx, [rsp + 0x1c0]
call fcn.140001b40
jmp 0x14000231b
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0xb8], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
inc qword [rsp + 0x70]
mov rax, qword [rsp + 0xb8]
mov rcx, qword [rsp + 0x70]
cmp byte [rax + rcx], 0
jne 0x140001eb2
mov rax, qword [rsp + 0x70]
test rax, rax
jne 0x140001f6c
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0xc0], rax
mov qword [rsp + 0x78], 0xffffffffffffffff
inc qword [rsp + 0x78]
mov rax, qword [rsp + 0xc0]
mov rcx, qword [rsp + 0x78]
cmp byte [rax + rcx], 0
jne 0x140001ef1
mov rax, qword [rsp + 0x78]
test rax, rax
jne 0x140001f6c
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0xc8], rax
mov qword [rsp + 0x80], 0xffffffffffffffff
inc qword [rsp + 0x80]
mov rax, qword [rsp + 0xc8]
mov rcx, qword [rsp + 0x80]
cmp byte [rax + rcx], 0
jne 0x140001f2f
mov rax, qword [rsp + 0x80]
test rax, rax
jne 0x140001f6c
lea rcx, [rsp + 0x1c0]
call fcn.140001b40
jmp 0x140001d99
mov rdx, qword [rsp + 0x90]
lea rcx, [rsp + 0x1c0]
call fcn.140001c30
mov rdx, qword [rsp + 0x98]
lea rcx, [rsp + 0x1e0]
call fcn.140001c30
mov rdx, qword [rsp + 0xd0]
lea rcx, [rsp + 0x220]
call fcn.140001c30
mov rdx, qword [rsp + 0xd8]
lea rcx, [rsp + 0x240]
call fcn.140001c30
lea rcx, [rsp + 0x1a0]
call fcn.140001780
nop
lea rax, [rsp + 0x660]
mov rdi, rax
xor eax, eax
mov ecx, 0x2004
rep stosb byte [rdi], al
mov rax, qword [rsp + 0xa0]
mov qword [rsp + 0x58], rax
mov edx, 3
mov rax, qword [rsp + 0x2690]
mov rcx, qword [rax + 0x108]
call fcn.14001af80
mov dword [rsp + 0x64], eax
mov byte [rsp + 0x50], 0
lea rcx, [rsp + 0x60]
call fcn.140001410
mov qword [rsp + 0xe0], rax
lea rcx, [rsp + 0x51]
mov r8, rcx
lea rdx, [rsp + 0x50]
lea rcx, [rsp + 0x170]
call fcn.1400017d0
lea rcx, [rsp + 0x100]
mov rdi, rcx
mov rsi, rax
mov ecx, 0x10
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0xe0]
mov r8, rax
lea rdx, [rsp + 0x100]
lea rcx, [rsp + 0x180]
call fcn.1400016d0
nop
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
movsx eax, byte [rcx + rax]
cmp eax, 0x76
jne 0x1400020b8
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x58]
movsx eax, byte [rcx + rax]
cmp eax, 0x31
jne 0x1400020b8
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x58]
movsx eax, byte [rcx + rax]
cmp eax, 0x30
je 0x140002109
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x58]
movsx eax, byte [rcx + rax]
cmp eax, 0x76
jne 0x140002201
mov eax, 1
imul rax, rax, 1
mov rcx, qword [rsp + 0x58]
movsx eax, byte [rcx + rax]
cmp eax, 0x31
jne 0x140002201
mov eax, 1
imul rax, rax, 2
mov rcx, qword [rsp + 0x58]
movsx eax, byte [rcx + rax]
cmp eax, 0x31
jne 0x140002201
mov dword [rsp + 0x8c], 0x400
mov dword [rsp + 0x88], 0
lea rax, [rsp + 0x110]
mov rdi, rax
xor eax, eax
mov ecx, 0x58
rep stosb byte [rdi], al
mov dword [rsp + 0x110], 0x58
mov dword [rsp + 0x114], 1
mov rax, qword [rsp + 0x58]
add rax, 3
mov qword [rsp + 0x118], rax
mov dword [rsp + 0x120], 0xc
movsxd rax, dword [rsp + 0x64]
mov rcx, qword [rsp + 0x58]
lea rax, [rcx + rax - 0x10]
mov qword [rsp + 0x138], rax
mov dword [rsp + 0x140], 0x10
mov dword [rsp + 0x68], 0
mov eax, dword [rsp + 0x64]
sub eax, 0x1f
mov rcx, qword [rsp + 0x58]
add rcx, 0xf
mov dword [rsp + 0x48], 0
lea rdx, [rsp + 0x88]
mov qword [rsp + 0x40], rdx
mov edx, dword [rsp + 0x8c]
mov dword [rsp + 0x38], edx
lea rdx, [rsp + 0x660]
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea r9, [rsp + 0x110]
mov r8d, eax
mov rdx, rcx
mov rcx, qword [rsp + 0x2698]
call sub.bcrypt.dll_BCryptDecrypt
mov dword [rsp + 0x68], eax
jmp 0x1400022ed
lea rax, [rsp + 0x260]
mov rdi, rax
xor eax, eax
mov ecx, 0x400
rep stosb byte [rdi], al
lea rax, [rsp + 0xe8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
lea rax, [rsp + 0xa8]
mov rdi, rax
xor eax, eax
mov ecx, 0x10
rep stosb byte [rdi], al
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0xf0], rax
mov eax, dword [rsp + 0x64]
mov dword [rsp + 0xe8], eax
mov dword [rsp + 0x6c], 0
lea rax, [rsp + 0xa8]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0xe8]
call sub.CRYPT32.dll_CryptUnprotectData
test eax, eax
je 0x1400022ed
mov dword [rsp + 0x54], 0
jmp 0x1400022a8
mov eax, dword [rsp + 0x54]
inc eax
mov dword [rsp + 0x54], eax
mov eax, dword [rsp + 0xa8]
cmp dword [rsp + 0x54], eax
jae 0x1400022de
movsxd rax, dword [rsp + 0x54]
movsxd rcx, dword [rsp + 0x54]
mov rdx, qword [rsp + 0xb0]
movzx eax, byte [rdx + rax]
mov byte [rsp + rcx + 0x260], al
mov eax, dword [rsp + 0x6c]
inc eax
mov dword [rsp + 0x6c], eax
jmp 0x14000229e
mov eax, dword [rsp + 0xa8]
mov byte [rsp + rax + 0x260], 0
lea rcx, [rsp + 0x180]
call fcn.140001b10
nop
lea rcx, [rsp + 0x1a0]
call fcn.140001b10
nop
lea rcx, [rsp + 0x1c0]
call fcn.140001b40
jmp 0x140001d99
mov al, 1
add rsp, 0x2678
pop rdi
pop rsi
ret