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

Disassembly:
mov rax, rsp
mov dword [rax + 0x20], r9d
mov dword [rax + 0x18], r8d
mov qword [rax + 0x10], rdx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x47]
sub rsp, 0x90
mov qword [rbp - 0x11], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov rbx, rdx
mov r14, rcx
xor edi, edi
mov dword [rbp + 0x5f], edi
lea ecx, [rdi + 0xc]
call fcn.140153a84
mov r13, rax
mov qword [rbp - 0x19], rdi
mov dword [rax], 0x10ec2379
mov r8, qword [rbp + 0x6f]
movsd xmm0, qword [r8]
movsd qword [rax + 4], xmm0
call fcn.140162c14
mov rcx, rax
test rax, rax
je 0x14003b5c7
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp - 0x29], rax
mov rdx, r14
lea rcx, [rbp - 0x29]
call fcn.1400168b0
lea rsi, [rdi - 1]
test al, al
jne 0x14003b3cb
test r14, r14
jne 0x14003b3ab
mov eax, edi
jmp 0x14003b3bb
mov rax, rsi
nop
inc rax
cmp word [r14 + rax*2], 0
jne 0x14003b3b0
mov r8d, eax
mov rdx, r14
lea rcx, [rbp - 0x29]
call fcn.140016ad0
nop
mov r15, qword [rbp - 0x29]
lea rcx, [r15 - 0x18]
call fcn.140012250
lea rdx, [rax + 0x18]
mov qword [rbp - 0x31], rdx
lea rax, [rbp - 0x31]
mov qword [rbp - 1], rax
mov qword [rbp - 0x21], rdi
lea r8, [rbp - 0x21]
lea rcx, [0x140466788]
call fcn.140174248
cmp eax, 1
jne 0x14003b566
mov r12, qword [rbp - 0x21]
test r12, r12
je 0x14003b566
mov dword [rbp + 0x67], edi
mov rcx, qword [r12]
test rcx, rcx
jne 0x14003b428
mov edi, 0xc0000008
jmp 0x14003b4f1
mov dword [rsp + 0x48], 2
lea rax, [rbp + 0x67]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], edi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rdi
xor r9d, r9d
lea r8d, [r9 + 0xc]
mov rdx, r13
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
mov edi, eax
test eax, eax
js 0x14003b4f1
mov ebx, dword [rbp + 0x67]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x14003b48b
mov edi, 0xc0000017
jmp 0x14003b4ed
mov dword [rsp + 0x48], 2
lea rax, [rbp + 0x67]
mov qword [rsp + 0x40], rax
mov eax, dword [rbp + 0x67]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rbx
xor eax, eax
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rax
xor r9d, r9d
lea r8d, [rax + 0xc]
mov rdx, r13
mov rcx, qword [r12]
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
mov edi, eax
test eax, eax
js 0x14003b4d9
mov qword [rbp - 0x19], rbx
mov eax, dword [rbp + 0x67]
mov dword [rbp + 0x5f], eax
jmp 0x14003b4ed
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rbx, qword [rbp + 0x57]
not edi
shr edi, 0x1f
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003b513
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
je 0x14003b583
movaps xmm0, xmmword [rbx]
movdqa xmmword [rbp - 1], xmm0
mov rax, qword [rbp + 0x7f]
mov qword [rsp + 0x30], rax
mov eax, dword [rbp + 0x5f]
mov dword [rsp + 0x28], eax
mov rbx, qword [rbp - 0x19]
mov qword [rsp + 0x20], rbx
mov r9d, 1
lea r8d, [r9 + 0x4d]
lea rdx, [rbp - 1]
mov rcx, r14
call fcn.14003b1f0
mov edi, eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x14003b583
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14003b583
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 1
mov rcx, r13
call fcn.1400114d0
nop
lock xadd dword [r15 - 8], esi
sub esi, 1
jg 0x14003b5aa
mov rcx, qword [r15 - 0x18]
mov rax, qword [rcx]
lea rdx, [r15 - 0x18]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov eax, edi
mov rbx, qword [rsp + 0xd0]
add rsp, 0x90
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.140012800
int3