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

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0xa8
mov dword [rsp + 0x54], 1
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x78], 0
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x70], 0
mov dword [rsp + 0x5c], 0
mov qword [rsp + 0x80], 0
mov qword [rsp + 0x88], 0
mov dword [rsp + 0x58], 0
mov dword [rsp + 0x50], 0
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140025200]
lea rcx, [rsp + 0x68]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400010a5
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptOpenAlgorithmProvider_Failed_With_Error:_0x_0.8X__n
call fcn.140001b30
mov dword [rsp + 0x54], 0
jmp 0x1400013b9
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x5c]
lea rdx, str.ObjectLength
mov rcx, qword [rsp + 0x68]
call sub.bcrypt.dll_BCryptGetProperty
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400010fb
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptGetProperty_1__Failed_With_Error:_0x_0.8X__n
call fcn.140001b30
mov dword [rsp + 0x54], 0
jmp 0x1400013b9
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x70]
lea rdx, str.BlockLength
mov rcx, qword [rsp + 0x68]
call sub.bcrypt.dll_BCryptGetProperty
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140001151
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptGetProperty_2__Failed_With_Error:_0x_0.8X__n
call fcn.140001b30
mov dword [rsp + 0x54], 0
jmp 0x1400013b9
cmp dword [rsp + 0x70], 0x10
je 0x140001165
mov dword [rsp + 0x54], 0
jmp 0x1400013b9
mov eax, dword [rsp + 0x5c]
mov qword [rsp + 0x90], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x90]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
jne 0x1400011ad
mov dword [rsp + 0x54], 0
jmp 0x1400013b9
mov dword [rsp + 0x20], 0
mov r9d, 0x20
lea r8, str.ChainingModeCBC
lea rdx, str.ChainingMode
mov rcx, qword [rsp + 0x68]
call sub.bcrypt.dll_BCryptSetProperty
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400011fb
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptSetProperty_Failed_With_Error:_0x_0.8X__n
call fcn.140001b30
mov dword [rsp + 0x54], 0
jmp 0x1400013b9
mov dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x20]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x5c]
mov r8, qword [rsp + 0x80]
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call sub.bcrypt.dll_BCryptGenerateSymmetricKey
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140001260
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptGenerateSymmetricKey_Failed_With_Error:_0x_0.8X__n
call fcn.140001b30
mov dword [rsp + 0x54], 0
jmp 0x1400013b9
mov dword [rsp + 0x48], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x10
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rax, qword [rsp + 0xb0]
mov r8d, dword [rax + 0x18]
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x78]
call sub.bcrypt.dll_BCryptDecrypt
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400012e9
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptDecrypt_1__Failed_With_Error:_0x_0.8X__n
call fcn.140001b30
mov dword [rsp + 0x54], 0
jmp 0x1400013b9
mov eax, dword [rsp + 0x58]
mov qword [rsp + 0x98], rax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, qword [rsp + 0x98]
mov r8, rcx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov qword [rsp + 0x88], rax
cmp qword [rsp + 0x88], 0
jne 0x140001331
mov dword [rsp + 0x54], 0
jmp 0x1400013b9
mov dword [rsp + 0x48], 1
lea rax, [rsp + 0x60]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x88]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x10
mov rax, qword [rsp + 0xb0]
mov rax, qword [rax + 0x28]
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rax, qword [rsp + 0xb0]
mov r8d, dword [rax + 0x18]
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax + 0x10]
mov rcx, qword [rsp + 0x78]
call sub.bcrypt.dll_BCryptDecrypt
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400013b9
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptDecrypt_2__Failed_With_Error:_0x_0.8X__n
call fcn.140001b30
mov dword [rsp + 0x54], 0
cmp qword [rsp + 0x78], 0
je 0x1400013cb
mov rcx, qword [rsp + 0x78]
call sub.bcrypt.dll_BCryptDestroyKey
cmp qword [rsp + 0x68], 0
je 0x1400013df
xor edx, edx
mov rcx, qword [rsp + 0x68]
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
cmp qword [rsp + 0x80], 0
je 0x140001403
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, qword [rsp + 0x80]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp qword [rsp + 0x88], 0
je 0x140001437
cmp dword [rsp + 0x54], 0
je 0x140001437
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x88]
mov qword [rax], rcx
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 8], ecx
mov eax, dword [rsp + 0x54]
add rsp, 0xa8
ret