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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xb0
movdqa xmm0, xmmword [str.EEEEEEEEEEEEEEEE]
lea rdi, [rbp - 9]
movups xmm1, xmmword [0x140032970]
mov r12, rcx
xor eax, eax
xor esi, esi
xor r14d, r14d
and qword [rbp - 0x31], r14
movdqa xmm2, xmm0
and qword [rbp - 0x39], r14
xor r8d, r8d
and dword [rbp + 0x6f], esi
xor edx, edx
lea ecx, [rsi + 0x2e]
mov r13, r9
rep stosb byte [rdi], al
movups xmmword [rbp - 3], xmm0
lea r15d, [r14 + 0x20]
movups xmmword [rbp + 0x12], xmm0
lea rdi, [rbp - 0x29]
mov ecx, r15d
rep stosb byte [rdi], al
movq rax, xmm0
lea edi, [rsi + 0x15]
movups xmm0, xmmword [str.C110DD4FE9434147B92A5A1E3FDBF29A]
xor ecx, ecx
mov dword [rbp - 7], edi
movups xmmword [rbp - 0x19], xmm1
mov dword [rbp + 0xd], eax
movups xmmword [rbp - 0x29], xmm0
mov byte [rbp + 0x11], al
movdqu xmmword [rbp - 0x1c], xmm2
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov rbx, rax
test rax, rax
je 0x140004876
xor r9d, r9d
lea rdx, [0x140032988]
xor r8d, r8d
lea rcx, [rbp - 0x31]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x140004876
and dword [rsp + 0x30], esi
lea rax, [rbp - 0x29]
mov rcx, qword [rbp - 0x31]
lea rdx, [rbp - 0x39]
mov dword [rsp + 0x28], r15d
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
js 0x140004876
mov r8d, edi
lea edx, [rsi + 8]
mov rcx, rbx
mov r15d, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x140004876
mov r8d, r15d
lea rdx, [rbp - 3]
mov rcx, rax
call fcn.140012ca0
lea r15d, [r14 + 0x60]
mov rcx, rbx
mov r8d, r15d
lea edx, [rsi + 8]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rsi, rax
test rax, rax
je 0x140004876
mov rcx, qword [rbp - 0x39]
lea rax, [rbp + 0x6f]
mov dword [rsp + 0x48], 1
lea r8d, [r14 + 0x20]
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov dword [rsp + 0x38], r15d
mov rdx, r12
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
setns r14b
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x140004885
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x140004896
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
test r14d, r14d
je 0x140004920
mov eax, dword [rbp + 0x6f]
test eax, eax
je 0x140004920
test rsi, rsi
je 0x140004920
lea r15d, [rax + 0x34]
mov edx, 8
mov rax, qword gs:[0x30]
mov r8d, r15d
mov rcx, qword [rax + 0x60]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
test rax, rax
je 0x140004920
movups xmm0, xmmword [rbp - 9]
lea rcx, [rdi + 0x2e]
mov rdx, rsi
movups xmm1, xmmword [rbp + 7]
movups xmmword [rax], xmm0
movsd xmm0, qword [rbp + 0x17]
movups xmmword [rax + 0x10], xmm1
movsd qword [rax + 0x20], xmm0
mov eax, dword [rbp + 0x1f]
mov dword [rdi + 0x28], eax
movzx eax, word [rbp + 0x23]
mov word [rdi + 0x2c], ax
mov r8d, dword [rbp + 0x6f]
call fcn.140012ca0
mov rax, qword [rbp + 0x77]
mov ecx, dword [rbp + 0x6f]
mov dword [r15 + rdi - 6], ecx
mov dword [r13], r15d
mov qword [rax], rdi
test rbx, rbx
je 0x14000492e
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov rbx, qword [rsp + 0xf0]
mov eax, r14d
add rsp, 0xb0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret