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

Disassembly:
jmp 0x140002060
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0xe0
lea rbp, [rsp + 0x50]
lea rcx, [0x14000922a]
call fcn.140001082
nop
mov dword [rbp], 1
mov qword [rbp + 8], 0
mov qword [rbp + 0x10], 0
mov dword [rbp + 0x18], 0
mov dword [rbp + 0x1c], 0
mov dword [rbp + 0x20], 0
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov dword [rbp + 0x38], 0
mov dword [rbp + 0x3c], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140005010]
lea rcx, [rbp + 8]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
mov dword [rbp + 0x3c], eax
cmp dword [rbp + 0x3c], 0
jge 0x1400020f4
mov dword [rbp], 0
jmp 0x14000235b
mov dword [rsp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 0x20]
lea rdx, str.ObjectLength
mov rcx, qword [rbp + 8]
call sub.bcrypt.dll_BCryptGetProperty
mov dword [rbp + 0x3c], eax
cmp dword [rbp + 0x3c], 0
jge 0x140002134
mov dword [rbp], 0
jmp 0x14000235b
mov dword [rsp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp + 0x1c]
lea rdx, str.BlockLength
mov rcx, qword [rbp + 8]
call sub.bcrypt.dll_BCryptGetProperty
mov dword [rbp + 0x3c], eax
cmp dword [rbp + 0x3c], 0
jge 0x140002174
mov dword [rbp], 0
jmp 0x14000235b
cmp dword [rbp + 0x1c], 0x10
je 0x140002186
mov dword [rbp], 0
jmp 0x14000235b
mov eax, dword [rbp + 0x20]
mov qword [rbp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x80]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400021c2
mov dword [rbp], 0
jmp 0x14000235b
mov dword [rsp + 0x20], 0
mov r9d, 0x20
lea r8, str.ChainingModeCBC
lea rdx, str.ChainingMode
mov rcx, qword [rbp + 8]
call sub.bcrypt.dll_BCryptSetProperty
mov dword [rbp + 0x3c], eax
cmp dword [rbp + 0x3c], 0
jge 0x1400021fc
mov dword [rbp], 0
jmp 0x14000235b
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp + 0x20]
mov r8, qword [rbp + 0x28]
lea rdx, [rbp + 0x10]
mov rcx, qword [rbp + 8]
call sub.bcrypt.dll_BCryptGenerateSymmetricKey
mov dword [rbp + 0x3c], eax
cmp dword [rbp + 0x3c], 0
jge 0x140002246
mov dword [rbp], 0
jmp 0x14000235b
mov dword [rsp + 0x48], 1
lea rax, [rbp + 0x38]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x18]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp + 0x10]
call sub.bcrypt.dll_BCryptDecrypt
mov dword [rbp + 0x3c], eax
cmp dword [rbp + 0x3c], 0
jge 0x1400022b7
mov dword [rbp], 0
jmp 0x14000235b
mov eax, dword [rbp + 0x38]
mov qword [rbp + 0x80], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rbp + 0x80]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rbp + 0x30], rax
cmp qword [rbp + 0x30], 0
jne 0x1400022f0
mov dword [rbp], 0
jmp 0x14000235b
mov dword [rsp + 0x48], 1
lea rax, [rbp + 0x18]
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x38]
mov dword [rsp + 0x38], eax
mov rax, qword [rbp + 0x30]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x10
mov rax, qword [rbp + 0xa0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rax, qword [rbp + 0xa0]
mov r8d, dword [rax + 0x18]
mov rax, qword [rbp + 0xa0]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rbp + 0x10]
call sub.bcrypt.dll_BCryptDecrypt
mov dword [rbp + 0x3c], eax
cmp dword [rbp + 0x3c], 0
jge 0x14000235b
mov dword [rbp], 0
cmp qword [rbp + 0x10], 0
je 0x14000236c
mov rcx, qword [rbp + 0x10]
call sub.bcrypt.dll_BCryptDestroyKey
nop
cmp qword [rbp + 8], 0
je 0x14000237f
xor edx, edx
mov rcx, qword [rbp + 8]
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
nop
cmp qword [rbp + 0x28], 0
je 0x14000239c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rbp + 0x28]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
nop
cmp qword [rbp + 0x30], 0
je 0x1400023c4
cmp dword [rbp], 0
je 0x1400023c4
mov rax, qword [rbp + 0xa0]
mov rcx, qword [rbp + 0x30]
mov qword [rax], rcx
mov rax, qword [rbp + 0xa0]
mov ecx, dword [rbp + 0x38]
mov dword [rax + 8], ecx
mov eax, dword [rbp]
lea rsp, [rbp + 0x90]
pop rbp
ret