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

Disassembly:
mov rax, rsp
mov qword [rax + 0x18], r8
mov dword [rax + 0x10], edx
push rbp
push rbx
push rsi
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
movdqa xmm2, xmmword [str.EEEEEEEEEEEEEEEE]
xor ebx, ebx
movups xmm0, xmmword [str.C110DD4FE9434147B92A5A1E3FDBF29A]
mov qword [rax + 8], rdi
lea rdi, [rbp - 9]
movups xmm1, xmmword [0x1401917d8]
mov qword [rax - 0x20], r12
xor r8d, r8d
mov qword [rax - 0x28], r13
mov r12, rcx
mov qword [rax - 0x30], r14
mov ecx, 0x2e
mov qword [rax - 0x38], r15
xor edx, edx
xor eax, eax
mov qword [rbp - 0x31], rbx
rep stosb byte [rdi], al
lea rdi, [rbp - 0x29]
mov qword [rbp - 0x39], rbx
mov ecx, 0x20
mov dword [rbp + 0x6f], ebx
rep stosb byte [rdi], al
movq rax, xmm2
mov edi, 0x15
movups xmmword [rbp - 0x29], xmm0
xor ecx, ecx
mov dword [rbp - 7], edi
movups xmmword [rbp - 0x19], xmm1
mov r13, r9
mov dword [rbp + 0xd], eax
mov r14d, ebx
mov byte [rbp + 0x11], al
movups xmmword [rbp - 3], xmm2
movups xmmword [rbp + 0x12], xmm2
movups xmmword [rbp - 0x1c], xmm2
call qword [sym.imp.KERNEL32.dll_HeapCreate]
mov rsi, rax
test rax, rax
je 0x1400044bf
xor r9d, r9d
lea rdx, [0x1401917f0]
xor r8d, r8d
lea rcx, [rbp - 0x31]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x1400044bf
mov rcx, qword [rbp - 0x31]
lea rax, [rbp - 0x29]
mov dword [rsp + 0x30], ebx
lea rdx, [rbp - 0x39]
mov dword [rsp + 0x28], 0x20
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
js 0x1400044bf
mov r8d, edi
mov edx, 8
mov rcx, rsi
mov r15d, edi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1400044bf
mov r8d, r15d
lea rdx, [rbp - 3]
mov rcx, rax
call sub.VCRUNTIME140.dll_memcpy
mov edx, 8
mov r8d, 0x60
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x1400044bf
mov rcx, qword [rbp - 0x39]
lea rax, [rbp + 0x6f]
mov dword [rsp + 0x48], 1
xor r9d, r9d
mov qword [rsp + 0x40], rax
mov r8d, 0x20
mov dword [rsp + 0x38], 0x60
mov rdx, r12
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x15
mov qword [rsp + 0x20], rdi
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
not eax
shr eax, 0x1f
mov ebx, eax
mov rcx, qword [rbp - 0x39]
test rcx, rcx
je 0x1400044ce
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov rcx, qword [rbp - 0x31]
test rcx, rcx
je 0x1400044df
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
test ebx, ebx
je 0x140004568
mov eax, dword [rbp + 0x6f]
test eax, eax
je 0x140004568
test r14, r14
je 0x140004568
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 0x140004568
movups xmm0, xmmword [rbp - 9]
lea rcx, [rdi + 0x2e]
mov rdx, r14
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 sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rbp + 0x77]
mov ecx, dword [rbp + 0x6f]
mov dword [r15 + rdi - 6], ecx
mov dword [r13], r15d
mov qword [rax], rdi
mov r15, qword [rsp + 0xb0]
mov r14, qword [rsp + 0xb8]
mov r13, qword [rsp + 0xc0]
mov r12, qword [rsp + 0xc8]
mov rdi, qword [rsp + 0xf0]
test rsi, rsi
je 0x14000459e
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_HeapDestroy]
mov eax, ebx
add rsp, 0xd0
pop rsi
pop rbx
pop rbp
ret