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

Disassembly:
mov r11, rsp
mov qword [r11 + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xd0
mov rax, qword [0x14000e040]
xor rax, rsp
mov qword [rsp + 0xc8], rax
mov r15, rdx
mov r13, rcx
xorps xmm0, xmm0
xor eax, eax
mov rsi, qword [rdx + 8]
sub rsi, qword [rdx]
movdqu xmmword [r11 - 0x60], xmm0
mov edi, eax
mov qword [r11 - 0x50], rax
mov r12d, eax
mov r14d, eax
je 0x140001a69
movabs rax, 0x7fffffffffffffff
cmp rsi, rax
ja 0x140001c28
cmp rsi, 0x1000
jb 0x140001a2a
lea rcx, [rsi + 0x27]
cmp rcx, rsi
jbe 0x140001c2e
call fcn.140006e10
test rax, rax
je 0x140001ba7
lea r14, [rax + 0x27]
and r14, 0xffffffffffffffe0
mov qword [r14 - 8], rax
jmp 0x140001a35
mov rcx, rsi
call fcn.140006e10
mov r14, rax
mov rbx, r14
mov qword [rsp + 0xa8], rbx
lea rdi, [r14 + rsi]
mov r12, rdi
mov qword [rsp + 0xb8], rdi
mov r8, rsi
xor edx, edx
mov rcx, r14
call sub.VCRUNTIME140.dll_memset
mov rbp, rdi
mov qword [rsp + 0xb0], rdi
jmp 0x140001a79
mov rbp, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xa8]
mov rdx, qword [r15]
mov r8, qword [r15 + 8]
sub r8, rdx
sub r12d, r14d
mov dword [rsp + 0x48], 1
lea rax, [rsp + 0xc0]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov rcx, qword [r13 + 8]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
jne 0x140001beb
mov esi, dword [rsp + 0xc0]
mov rcx, rbp
sub rcx, rbx
cmp rsi, rcx
jae 0x140001ae3
lea rbp, [rsi + rbx]
jmp 0x140001b2d
jbe 0x140001b2d
mov rax, rdi
sub rax, rbx
cmp rsi, rax
jbe 0x140001b1a
mov rdx, rsi
lea rcx, [rsp + 0xa8]
call fcn.140006630
mov rdi, qword [rsp + 0xb8]
mov rbp, qword [rsp + 0xb0]
mov rbx, qword [rsp + 0xa8]
jmp 0x140001b2d
sub rsi, rcx
mov r8, rsi
xor edx, edx
mov rcx, rbp
call sub.VCRUNTIME140.dll_memset
add rbp, rsi
lea rax, [rsp + 0xa8]
cmp r15, rax
je 0x140001b7e
mov rcx, qword [r15]
test rcx, rcx
je 0x140001b6f
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x140001b6a
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140001bae
mov rcx, r8
call fcn.14000708c
mov qword [r15], rbx
mov qword [r15 + 8], rbp
mov qword [r15 + 0x10], rdi
xor ebx, ebx
xor edi, edi
test rbx, rbx
je 0x140001bc0
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x140001bb5
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140001bb5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
nop
mov rdx, rdi
mov rcx, rbx
call fcn.14000708c
mov rcx, qword [rsp + 0xc8]
xor rcx, rsp
call fcn.140006cd0
mov rbx, qword [rsp + 0x120]
add rsp, 0xd0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edx, eax
lea rcx, [rsp + 0x68]
call fcn.1400013e0
nop
mov r8, rax
lea rcx, [rsp + 0x88]
call fcn.140005ac0
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1400011e0
lea rdx, [0x14000b760]
lea rcx, [rsp + 0x50]
call sub.VCRUNTIME140.dll__CxxThrowException
nop
call fcn.140005fd0
int3
call fcn.140001120
int3