Function at 0x14000ac94
Capabilities:
Encrypt or decrypt data via bcrypt

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], rbx
mov qword [rax + 0x10], rdx
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov rsi, r8
mov rbx, rdx
xor r15d, r15d
mov dword [rbp - 0x19], r15d
mov dword [rbp - 0x39], r15d
mov dword [rbp - 0x35], 1
mov qword [rbp - 0x29], r15
xor r9d, r9d
lea r8, str.Microsoft_Primitive_Provider
lea rdx, str.3DES
lea rcx, [rbp - 0x29]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
nop dword [rax + rax]
mov dword [rbp - 0x31], eax
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x39]
call fcn.1400081dc
lea r14d, [r15 + 3]
mov dword [rbp - 0x35], r14d
mov edi, dword [rbp - 0x39]
shr edi, 0x1e
lea eax, [rdi - 1]
cmp eax, 2
ja 0x14000ad32
mov edx, 0x12c
call fcn.14000aaa8
mov dword [rbp - 0x35], r14d
lea eax, [rdi - 1]
cmp eax, 2
jbe 0x14000b00e
mov dword [rsp + 0x20], r15d
mov r9d, 0x20
lea r8, str.ChainingModeCBC
lea rdx, str.ChainingMode
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
nop dword [rax + rax]
mov dword [rbp - 0x31], eax
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x39]
call fcn.1400081dc
mov dword [rbp - 0x35], r14d
mov edi, dword [rbp - 0x39]
shr edi, 0x1e
lea eax, [rdi - 1]
cmp eax, 2
ja 0x14000ad97
mov edx, 0x12e
call fcn.14000aaa8
mov dword [rbp - 0x35], r14d
lea eax, [rdi - 1]
cmp eax, 2
jbe 0x14000b02c
mov dword [rbp + 0x67], r15d
mov dword [rbp + 0x7f], r15d
mov dword [rsp + 0x28], r15d
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 0x7f]
lea rdx, str.ObjectLength
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
nop dword [rax + rax]
mov dword [rbp - 0x31], eax
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x39]
call fcn.1400081dc
mov dword [rbp - 0x35], r14d
mov edi, dword [rbp - 0x39]
shr edi, 0x1e
lea eax, [rdi - 1]
cmp eax, 2
ja 0x14000ae0a
mov edx, 0x12f
call fcn.14000aaa8
mov dword [rbp - 0x35], r14d
lea eax, [rdi - 1]
cmp eax, 2
jbe 0x14000b04a
mov edx, dword [rbp + 0x7f]
lea rcx, [rbp - 0x11]
call fcn.140008828
nop
mov rdx, qword [rsi]
mov rcx, qword [rsi + 8]
sub rcx, rdx
mov r9, qword [rbp - 9]
mov r8, qword [rbp - 0x11]
sub r9, r8
mov qword [rbp - 0x21], r15
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rdx
lea rdx, [rbp - 0x21]
mov rcx, qword [rbp - 0x29]
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
nop dword [rax + rax]
mov dword [rbp - 0x31], eax
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x39]
call fcn.1400081dc
mov dword [rbp - 0x35], r14d
mov edi, dword [rbp - 0x39]
shr edi, 0x1e
lea eax, [rdi - 1]
cmp eax, 2
ja 0x14000ae8e
mov edx, 0x130
call fcn.14000aaa8
mov dword [rbp - 0x35], r14d
lea eax, [rdi - 1]
cmp eax, 2
jbe 0x14000b068
mov dword [rbp - 0x2d], r15d
mov dword [rsp + 0x28], r15d
lea rax, [rbp + 0x67]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp - 0x2d]
lea rdx, str.BlockLength
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
nop dword [rax + rax]
mov dword [rbp - 0x31], eax
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x39]
call fcn.1400081dc
mov dword [rbp - 0x35], r14d
mov edi, dword [rbp - 0x39]
shr edi, 0x1e
lea eax, [rdi - 1]
cmp eax, 2
ja 0x14000aefd
mov edx, 0x12f
call fcn.14000aaa8
mov dword [rbp - 0x35], r14d
lea eax, [rdi - 1]
cmp eax, 2
jbe 0x14000b086
mov edx, dword [rbp - 0x2d]
mov rcx, rbx
call fcn.140008828
mov dword [rbp - 0x19], 1
mov rdx, qword [rbx]
mov rax, qword [rbx + 8]
sub rax, rdx
mov dword [rsp + 0x48], r15d
lea rcx, [rbp + 0x67]
mov qword [rsp + 0x40], rcx
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rdx
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
xor r9d, r9d
mov r8d, eax
mov rcx, qword [rbp - 0x21]
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
nop dword [rax + rax]
mov dword [rbp - 0x31], eax
lea rdx, [rbp - 0x31]
lea rcx, [rbp - 0x39]
call fcn.1400081dc
mov dword [rbp - 0x35], r14d
mov edi, dword [rbp - 0x39]
shr edi, 0x1e
lea eax, [rdi - 1]
cmp eax, 2
ja 0x14000af88
mov edx, 0x132
call fcn.14000aaa8
mov dword [rbp - 0x35], r14d
lea eax, [rdi - 1]
cmp eax, 2
jbe 0x14000aff0
mov rdx, r14
mov rcx, rbx
call fcn.14000ca84
nop
mov rcx, qword [rbp - 0x21]
test rcx, rcx
je 0x14000afaa
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x11]
call fcn.14000bf74
nop
mov rcx, qword [rbp - 0x29]
test rcx, rcx
je 0x14000afcc
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop dword [rax + rax]
nop
lea rcx, [rbp - 0x39]
call fcn.140008ea4
mov rax, rbx
mov rbx, qword [rsp + 0x100]
add rsp, 0xc0
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0xf]
call fcn.1400087c4
lea rdx, [0x140017a78]
lea rcx, [rbp + 0xf]
call fcn.1400026ee
nop
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x11]
call fcn.1400087c4
lea rdx, [0x140017a78]
lea rcx, [rbp - 0x11]
call fcn.1400026ee
int3
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x11]
call fcn.1400087c4
lea rdx, [0x140017a78]
lea rcx, [rbp - 0x11]
call fcn.1400026ee
int3
lea rdx, [rbp - 0x39]
lea rcx, [rbp - 0x11]
call fcn.1400087c4
lea rdx, [0x140017a78]
lea rcx, [rbp - 0x11]
call fcn.1400026ee
nop
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0xf]
call fcn.1400087c4
lea rdx, [0x140017a78]
lea rcx, [rbp + 0xf]
call fcn.1400026ee
int3
lea rdx, [rbp - 0x39]
lea rcx, [rbp + 0xf]
call fcn.1400087c4
lea rdx, [0x140017a78]
lea rcx, [rbp + 0xf]
call fcn.1400026ee
int3