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

Disassembly:
mov r11, rsp
push rbp
push rbx
push r14
lea rbp, [r11 - 0x5f]
sub rsp, 0x100
mov rax, qword [0x1801e4940]
xor rax, rsp
mov qword [rbp + 0xf], rax
movdqa xmm2, xmmword [str.EEEEEEEEEEEEEEEEAuthenticAMD]
xor eax, eax
movups xmm0, xmmword [str.C110DD4FE9434147B92A5A1E3FDBF29A]
mov qword [r11 - 0x20], rsi
xor ebx, ebx
movups xmm1, xmmword [0x180031960]
mov qword [r11 - 0x28], rdi
mov esi, ebx
mov qword [r11 - 0x30], r12
lea rdi, [rbp - 0x41]
mov r12, rcx
mov qword [r11 - 0x38], r13
mov qword [rbp - 0x51], r8
mov r13d, edx
mov ecx, 0x2e
mov qword [r11 - 0x40], r15
rep stosb byte [rdi], al
lea rdi, [rbp - 0x11]
mov qword [rbp - 0x49], r9
mov ecx, 0x20
mov qword [rbp - 0x59], rbx
rep stosb byte [rdi], al
movq rax, xmm2
mov qword [rbp - 0x61], rbx
movups xmmword [rbp - 0x11], xmm0
mov edi, 0x15
xor r8d, r8d
movups xmmword [rbp - 1], xmm1
xor edx, edx
mov dword [rbp - 0x3f], edi
xor ecx, ecx
mov dword [rbp - 0x69], ebx
movups xmmword [rbp - 0x3b], xmm2
mov dword [rbp - 0x2b], eax
mov byte [rbp - 0x27], al
movups xmmword [rbp - 0x26], xmm2
movups xmmword [rbp - 4], xmm2
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov r14, rax
test rax, rax
je 0x18001efc6
xor r9d, r9d
lea rdx, [0x180031978]
xor r8d, r8d
lea rcx, [rbp - 0x59]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x18001efc6
mov rcx, qword [rbp - 0x59]
lea rax, [rbp - 0x11]
mov dword [rsp + 0x30], ebx
lea rdx, [rbp - 0x61]
mov dword [rsp + 0x28], 0x20
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call sub.bcrypt.dll_BCryptGenerateSymmetricKey
test eax, eax
js 0x18001efc6
mov r8d, edi
mov edx, 8
mov rcx, r14
mov r15d, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x18001efc6
mov r8d, r15d
lea rdx, [rbp - 0x3b]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
lea r15d, [r13 + 0x40]
mov edx, 8
mov r8d, r15d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x18001efc6
mov rcx, qword [rbp - 0x61]
lea rax, [rbp - 0x69]
mov dword [rsp + 0x48], 1
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, r13d
mov dword [rsp + 0x38], r15d
mov rdx, r12
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x15
mov qword [rsp + 0x20], rdi
call sub.bcrypt.dll_BCryptEncrypt
not eax
shr eax, 0x1f
mov ebx, eax
mov rcx, qword [rbp - 0x61]
mov r13, qword [rsp + 0xe0]
test rcx, rcx
je 0x18001efdc
call sub.bcrypt.dll_BCryptDestroyKey
mov rcx, qword [rbp - 0x59]
test rcx, rcx
je 0x18001efec
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
test ebx, ebx
je 0x18001f05d
mov eax, dword [rbp - 0x69]
test eax, eax
je 0x18001f05d
test rsi, rsi
je 0x18001f05d
lea r15d, [rax + 0x34]
mov ecx, r15d
call fcn.180021290
mov rdi, rax
test rax, rax
je 0x18001f05d
movups xmm0, xmmword [rbp - 0x41]
lea rcx, [rdi + 0x2e]
mov rdx, rsi
movups xmm1, xmmword [rbp - 0x31]
movups xmmword [rax], xmm0
movsd xmm0, qword [rbp - 0x21]
movups xmmword [rax + 0x10], xmm1
movsd qword [rax + 0x20], xmm0
mov eax, dword [rbp - 0x19]
mov dword [rdi + 0x28], eax
movzx eax, word [rbp - 0x15]
mov word [rdi + 0x2c], ax
mov r8d, dword [rbp - 0x69]
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp - 0x51]
mov ecx, dword [rbp - 0x69]
mov dword [r15 + rdi - 6], ecx
mov qword [rax], rdi
mov rax, qword [rbp - 0x49]
mov dword [rax], r15d
mov r15, qword [rsp + 0xd8]
mov r12, qword [rsp + 0xe8]
mov rdi, qword [rsp + 0xf0]
mov rsi, qword [rsp + 0xf8]
test r14, r14
je 0x18001f08b
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, ebx
mov rcx, qword [rbp + 0xf]
xor rcx, rsp
call fcn.180028780
add rsp, 0x100
pop r14
pop rbx
pop rbp
ret