Function at 0x140001450
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, [0x140022440]
lea rcx, [rsp + 0x68]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400014f5
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptOpenAlgorithmProvider_failed_with_error_0x_x
call fcn.140001fd0
mov dword [rsp + 0x54], 0
jmp 0x140001809
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 0x14000154b
mov edx, dword [rsp + 0x50]
lea rcx, str.____BcryptGetProperty_1__failed_with_error:_0x_x
call fcn.140001fd0
mov dword [rsp + 0x54], 0
jmp 0x140001809
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 0x1400015a1
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptGetProperty_2__failed_with_error:_0x_x
call fcn.140001fd0
mov dword [rsp + 0x54], 0
jmp 0x140001809
cmp dword [rsp + 0x70], 0x10
je 0x1400015b5
mov dword [rsp + 0x54], 0
jmp 0x140001809
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 0x1400015fd
mov dword [rsp + 0x54], 0
jmp 0x140001809
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 0x14000164b
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptSetProperty_failed_with_error:_0x_x
call fcn.140001fd0
mov dword [rsp + 0x54], 0
jmp 0x140001809
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 0x1400016b0
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptGenerateSymmetricKey_failed_with_error:_0x_x
call fcn.140001fd0
mov dword [rsp + 0x54], 0
jmp 0x140001809
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 0x140001739
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptDecrypt_1__failed_with_error:_0x_x
call fcn.140001fd0
mov dword [rsp + 0x54], 0
jmp 0x140001809
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 0x140001781
mov dword [rsp + 0x54], 0
jmp 0x140001809
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 0x140001809
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptDecrypt_2__failed_with_error:_0x_x
call fcn.140001fd0
mov dword [rsp + 0x54], 0
cmp qword [rsp + 0x78], 0
je 0x14000181c
mov rcx, qword [rsp + 0x78]
call sub.bcrypt.dll_BCryptDestroyKey
nop
cmp qword [rsp + 0x68], 0
je 0x140001831
xor edx, edx
mov rcx, qword [rsp + 0x68]
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
nop
cmp qword [rsp + 0x80], 0
je 0x140001856
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]
nop
cmp qword [rsp + 0x88], 0
je 0x14000188a
cmp dword [rsp + 0x54], 0
je 0x14000188a
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