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, [0x140022250]
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__dec__failed_with_error:_0x_x
call fcn.140001fd0
mov dword [rsp + 0x54], 0
jmp 0x1400013b7
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x5c]
lea rdx, [0x140022298]
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_x
call fcn.140001fd0
mov dword [rsp + 0x54], 0
jmp 0x1400013b7
mov dword [rsp + 0x28], 0
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x70]
lea rdx, [0x1400222f0]
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.____BCryptProperty_2__failed_with_error:_0x_x
call fcn.140001fd0
mov dword [rsp + 0x54], 0
jmp 0x1400013b7
cmp dword [rsp + 0x70], 0x10
je 0x140001165
mov dword [rsp + 0x54], 0
jmp 0x1400013b7
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 0x1400013b7
mov dword [rsp + 0x20], 0
mov r9d, 0x20
lea r8, [0x140022338]
lea rdx, [0x140022358]
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, [0x140022378]
call fcn.140001fd0
mov dword [rsp + 0x54], 0
jmp 0x1400013b7
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, [0x1400223a8]
call fcn.140001fd0
mov dword [rsp + 0x54], 0
jmp 0x1400013b7
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 + 8]
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x78]
call sub.bcrypt.dll_BCryptEncrypt
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400012e8
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptEncrypt_1__failed_with_error_0x_x
call fcn.140001fd0
mov dword [rsp + 0x54], 0
jmp 0x1400013b7
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 0x140001330
mov dword [rsp + 0x54], 0
jmp 0x1400013b7
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 + 8]
mov rax, qword [rsp + 0xb0]
mov rdx, qword [rax]
mov rcx, qword [rsp + 0x78]
call sub.bcrypt.dll_BCryptEncrypt
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x1400013b7
mov edx, dword [rsp + 0x50]
lea rcx, str.____BCryptEncrypt_2__failed_with_error:_0x_x
call fcn.140001fd0
mov dword [rsp + 0x54], 0
cmp qword [rsp + 0x78], 0
je 0x1400013ca
mov rcx, qword [rsp + 0x78]
call sub.bcrypt.dll_BCryptDestroyKey
nop
cmp qword [rsp + 0x68], 0
je 0x1400013df
xor edx, edx
mov rcx, qword [rsp + 0x68]
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
nop
cmp qword [rsp + 0x80], 0
je 0x140001404
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 0x140001439
cmp dword [rsp + 0x54], 0
je 0x140001439
mov rax, qword [rsp + 0xb0]
mov rcx, qword [rsp + 0x88]
mov qword [rax + 0x10], rcx
mov rax, qword [rsp + 0xb0]
mov ecx, dword [rsp + 0x58]
mov dword [rax + 0x18], ecx
mov eax, dword [rsp + 0x54]
add rsp, 0xa8
ret