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

Disassembly:
push rbp
push rbx
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0x98
mov rax, qword [0x140086240]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r15, qword [rbp + 0x7f]
lea rcx, [rbp - 0x19]
mov qword [rbp - 0x19], rdx
mov rbx, r9
mov r14, r8
mov rdi, rdx
xor r12d, r12d
lea rdx, [0x140078e20]
xor r9d, r9d
mov qword [rbp - 0x19], r12
xor r8d, r8d
mov qword [rbp - 0x11], r12
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jne 0x14000b220
mov ecx, dword [rbx + 8]
lea rdx, [rbp - 0x11]
sub ecx, dword [rbx]
xor r9d, r9d
mov rax, qword [rbx]
xor r8d, r8d
mov dword [rsp + 0x30], r12d
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x19]
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
jne 0x14000b214
mov ecx, dword [r15 + 8]
lea rdx, [rbp - 9]
sub ecx, dword [r15]
xor r9d, r9d
mov r8d, dword [r14 + 8]
mov rax, qword [r15]
sub r8d, dword [r14]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x40], rdx
mov rdx, qword [r14]
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x11]
mov dword [rbp - 9], r12d
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
je 0x14000b230
mov rcx, qword [rbp - 0x11]
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov rcx, qword [rbp - 0x19]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
jmp 0x14000b34d
mov qword [rsp + 0x90], rsi
xorps xmm0, xmm0
mov esi, dword [rbp - 9]
mov r9d, r12d
mov qword [rbp + 0xf], r12
movdqu xmmword [rbp - 1], xmm0
test rsi, rsi
je 0x14000b273
mov edx, esi
lea rcx, [rbp - 1]
call fcn.140015a50
mov rbx, qword [rbp - 1]
mov r8d, esi
mov rcx, rbx
xor edx, edx
call fcn.140068a80
lea r9, [rbx + rsi]
mov qword [rbp + 7], r9
mov rdx, qword [rbp - 1]
lea r10, [rbp - 9]
mov ecx, dword [r15 + 8]
sub r9d, edx
sub ecx, dword [r15]
mov r8d, dword [r14 + 8]
mov rax, qword [r15]
sub r8d, dword [r14]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x40], r10
mov dword [rsp + 0x38], r9d
xor r9d, r9d
mov qword [rsp + 0x30], rdx
mov rdx, qword [r14]
mov dword [rsp + 0x28], ecx
mov rcx, qword [rbp - 0x11]
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov rsi, qword [rsp + 0x90]
mov rcx, qword [rbp - 0x11]
test eax, eax
je 0x14000b324
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov rcx, qword [rbp - 0x19]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov rcx, qword [rbp - 1]
mov qword [rdi], r12
mov qword [rdi + 8], r12
mov qword [rdi + 0x10], r12
test rcx, rcx
je 0x14000b34d
mov rdx, qword [rbp + 0xf]
mov rax, rcx
sub rdx, rcx
cmp rdx, 0x1000
jb 0x14000b31d
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000b36d
call fcn.14003f0f8
jmp 0x14000b34d
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov rcx, qword [rbp - 0x19]
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov rdx, qword [rbp + 0xf]
mov rcx, qword [rbp + 7]
mov rax, qword [rbp - 1]
mov qword [rdi], rax
mov qword [rdi + 8], rcx
mov qword [rdi + 0x10], rdx
mov rax, rdi
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.14003f0d0
add rsp, 0x98
pop r15
pop r14
pop r12
pop rdi
pop rbx
pop rbp
ret
call fcn.140045efc
int3