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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x148]
sub rsp, 0x220
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rbx, r8
mov r15, rdx
mov r13, rcx
and dword [rbp - 0x38], 0
xor edx, edx
lea rcx, [rbp - 0x80]
call fcn.14012a788
nop
xor edx, edx
lea rcx, [rbp - 0x68]
call fcn.140102308
nop
lea r12, [r13 + 0x90]
mov rcx, r12
call fcn.1400ce2ac
test rax, rax
je 0x14012cbb3
cmp r12, rbx
je 0x14012cbb3
mov qword [rbp - 0x30], r12
mov qword [rbp - 0x28], rbx
lea r8, [rbp - 0x20]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 0x50]
call fcn.1401016f8
movups xmm0, xmmword [rax]
movdqu xmmword [rbp - 0x10], xmm0
lea rcx, [rbp + 0x150]
call fcn.140076c14
mov r8, rax
lea rdx, [rbp - 0x10]
lea rcx, [rbp]
call fcn.140101a64
nop
lea rdx, [rbp]
lea rcx, [rsp + 0x68]
call fcn.140102290
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.140104344
lea rcx, [rsp + 0x68]
call fcn.1401037a8
nop
lea rcx, [rbp]
call fcn.140103674
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140102308
mov rdx, rax
mov rcx, r12
call fcn.140104344
lea rcx, [rsp + 0x68]
call fcn.1401037a8
jmp 0x14012cbbf
mov rdx, rbx
lea rcx, [rbp - 0x68]
call fcn.14012b84c
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140121a1c
nop
lea rcx, [rbp - 0x68]
call fcn.1400ce2ac
mov r8, qword [0x1402743b8]
cmp rax, r8
jbe 0x14012cc08
lea rdx, [rsp + 0x68]
lea rcx, [rbp - 0x68]
call fcn.140121bf0
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14012b7b4
lea rcx, [rsp + 0x68]
call fcn.140121aa8
jmp 0x14012cc46
mov edx, 1
lea rcx, [rsp + 0x68]
call fcn.140121a1c
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.14012b7b4
lea rcx, [rsp + 0x68]
call fcn.140121aa8
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.140121b04
mov rcx, rax
lea rdx, [rbp - 0x68]
call fcn.14012b84c
lea rcx, [rsp + 0x50]
call fcn.1400ce2ac
mov rdx, rax
lea rcx, [rsp + 0x68]
call fcn.14012a788
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.14012b810
lea rcx, [rsp + 0x68]
call fcn.140103674
lea rcx, [rbp - 0x80]
call fcn.14012e050
xor r14d, r14d
lea rcx, [rsp + 0x50]
call fcn.1400ce2ac
mov rbx, rax
test rax, rax
je 0x14012ceb9
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140121b04
mov rcx, rax
call fcn.1400ce2ac
mov rdi, qword [0x1402743b8]
cmp rax, rdi
je 0x14012cd12
mov rcx, r12
call fcn.1400ce2ac
test rax, rax
je 0x14012ccc9
cmp rbx, 1
je 0x14012cd12
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140121b04
mov rdx, rax
mov rcx, r12
call fcn.14012b84c
and dword [rbp + 0x150], 0
lea rdx, [rbp + 0x150]
mov rcx, qword [str.BCrypt_AES_CTR_Cipher]
call fcn.14012a6b8
mov rbx, rax
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.1401049c4
mov qword [rax], rbx
jmp 0x14012ce13
mov dword [rbp + 0x150], edi
mov rdx, rdi
lea rcx, [rbp - 0x50]
call fcn.140102308
nop
lea rcx, [rbp - 0x50]
call fcn.1400ce2ac
mov rsi, rax
lea rcx, [rbp - 0x50]
call fcn.1400d5658
mov rbx, rax
lea rcx, [r13 + 0x70]
call fcn.1400ce2ac
mov rdi, rax
lea rcx, [r13 + 0x70]
call fcn.1400d5658
mov rdx, rax
mov ecx, dword [r13 + 0x68]
mov dword [rsp + 0x48], ecx
lea rax, [rbp + 0x150]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rbx
and dword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, edi
mov rcx, qword [r13 + 0x60]
call sub.bcrypt.dll_BCryptEncrypt
mov edi, eax
test eax, eax
js 0x14012ce31
lea rdx, [0x1402743b8]
mov rcx, qword [str.BCrypt_AES_CTR_Cipher]
call fcn.14012a658
mov rbx, rax
mov rdx, r14
lea rcx, [rsp + 0x50]
call fcn.140121b04
mov rcx, rax
lea rdx, [rbp - 0x50]
call fcn.140121b14
mov rdx, rax
mov rcx, rbx
call fcn.14012b84c
mov rdx, r14
lea rcx, [rbp - 0x80]
call fcn.1401049c4
mov qword [rax], rbx
mov r8d, 1
lea rdx, [r13 + 0x70]
lea rcx, [rsp + 0x68]
call fcn.14010d71c
mov rdx, rax
lea rcx, [r13 + 0x70]
call fcn.140104344
lea rcx, [rsp + 0x68]
call fcn.1401037a8
nop
lea rcx, [rbp - 0x50]
call fcn.1401037a8
inc r14
lea rcx, [rsp + 0x50]
call fcn.1400ce2ac
mov rbx, rax
cmp r14, rax
jb 0x14012cc95
jmp 0x14012ceb9
mov byte [r13 + 0x50], 1
call fcn.14010cdc0
mov rbx, rax
test rax, rax
je 0x14012ce9f
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + reloc.OLEAUT32.dll_VariantClear]
mov esi, 2
cmp eax, esi
jl 0x14012ce9f
lea r8d, [rsi - 1]
mov edx, esi
lea rcx, [rbp + 0x30]
call fcn.140027a90
nop
lea rdx, str.Failed_to_compute_encrypted_output_with_error_code
lea rcx, [rbp + 0x30]
call fcn.14002c360
mov rcx, rax
mov edx, edi
call fcn.1401046dc
mov rax, qword [rbx]
lea r9, [rbp + 0x30]
mov r8, qword [str.BCrypt_AES_CTR_Cipher]
mov edx, esi
mov rcx, rbx
call qword [rax + 0x18]
nop
lea rcx, [rbp + 0x30]
call fcn.14001a870
lea rcx, [rbp - 0x80]
call fcn.14012bf7c
xor edx, edx
mov rcx, r15
call fcn.140102308
nop
lea rcx, [rbp - 0x50]
jmp 0x14012cee9
lea rcx, [rbp - 0x80]
call fcn.140076c14
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.140102290
nop
lea rcx, [rbp - 0x80]
call fcn.14012bf7c
lea rdx, [rbp + 0x18]
mov rcx, r15
call fcn.140102260
nop
lea rcx, [rbp + 0x18]
call fcn.1401037a8
nop
lea rcx, [rsp + 0x50]
call fcn.140121aa8
nop
lea rcx, [rbp - 0x68]
call fcn.1401037a8
nop
lea rcx, [rbp - 0x80]
call fcn.140103674
mov rax, r15
lea r11, [rsp + 0x220]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret