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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
lea rbp, [rsp - 0x37]
sub rsp, 0xb0
mov rax, qword [0x14005c040]
xor rax, rsp
mov qword [rbp + 0x2f], rax
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
mov rax, qword [0x1400607f8]
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
jne 0x1400041f5
nop word [rax + rax]
mov rdx, qword [rax + 0x20]
cmp rbx, rdx
jb 0x1400041a2
add rdx, qword [rax + 0x28]
cmp rbx, rdx
jbe 0x140004211
mov rcx, qword [rax + 0x10]
cmp byte [rcx + 0x19], 0
je 0x1400041ce
mov rcx, qword [rax + 8]
cmp byte [rcx + 0x19], 0
jne 0x1400041c9
cmp rax, qword [rcx + 0x10]
jne 0x1400041c9
mov rax, rcx
mov rcx, qword [rcx + 8]
cmp byte [rcx + 0x19], 0
je 0x1400041b6
mov rax, rcx
jmp 0x1400041ef
mov rax, rcx
mov rdx, qword [rcx]
cmp byte [rdx + 0x19], 0
jne 0x1400041ef
nop word [rax + rax]
mov rax, rdx
mov rcx, qword [rdx]
mov rdx, rcx
cmp byte [rcx + 0x19], 0
je 0x1400041e0
cmp byte [rax + 0x19], 0
je 0x140004190
xor eax, eax
mov rcx, qword [rbp + 0x2f]
xor rcx, rsp
call fcn.140048370
add rsp, 0xb0
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret
xor r14d, r14d
mov qword [rbp - 9], r14
mov qword [rbp - 1], r14
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], r14
mov qword [rbp + 0x17], r14
mov qword [rbp + 0x27], r14
xor ecx, ecx
call qword [sym.imp.api_ms_win_crt_time_l1_1_0.dll__time64]
inc rax
mov qword [rbp + 0x1f], rax
mov dword [rbp - 0x11], r14d
mov dword [rsp + 0x48], r14d
lea rax, [rbp - 0x11]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], 0x10
lea rax, [rbp + 0x1f]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
xor r9d, r9d
mov r8d, 0x10
lea rdx, [rbp + 0x1f]
mov rcx, qword [0x1400607b0]
mov rcx, qword [rcx + 8]
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
mov qword [rbp - 1], rbx
mov qword [rbp - 9], rsi
mov dword [rbp - 0x19], r14d
mov qword [rsp + 0x38], r14
lea rax, [rbp - 0x19]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x1c
lea rax, [rbp - 9]
mov qword [rsp + 0x20], rax
mov r9d, 0x38
lea r8, [rbp - 9]
mov edx, 0x80102040
mov rcx, qword [rdi + 0x10]
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1400041f5
lea rbx, [rdi + 0x20]
mov qword [rbp - 0x11], rbx
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400042f3
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov eax, dword [rbx + 0x4c]
cmp eax, 0x7fffffff
jne 0x14000430e
dec eax
mov dword [rbx + 0x4c], eax
mov ecx, 6
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
nop
mov rax, qword [rbp + 0x17]
mov qword [rbp - 0x29], rax
mov rax, qword [rbp + 7]
mov qword [rbp - 0x21], rax
mov rax, qword [rdi + 0x90]
inc rax
cmp qword [rdi + 0x80], rax
ja 0x14000433a
lea rcx, [rdi + 0x70]
call fcn.140007060
mov r8, qword [rdi + 0x80]
dec r8
mov rdx, r8
and rdx, qword [rdi + 0x88]
mov qword [rdi + 0x88], rdx
mov r14, qword [rdi + 0x90]
add r14, rdx
and r8, r14
lea rsi, [r8*8]
mov rax, qword [rdi + 0x78]
cmp qword [rsi + rax], 0
jne 0x140004387
mov ecx, 0x10
call fcn.140048474
mov rcx, qword [rdi + 0x78]
mov qword [rsi + rcx], rax
mov rcx, qword [rdi + 0x80]
dec rcx
and rcx, r14
mov rax, qword [rdi + 0x78]
mov rcx, qword [rax + rcx*8]
movups xmm0, xmmword [rbp - 0x29]
movups xmmword [rcx], xmm0
inc qword [rdi + 0x90]
mov rcx, rbx
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rax, qword [rbp + 0xf]
jmp 0x1400041f7