Function at 0x14005f7e0
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.1400f816c
mov r13, rax
mov qword [rbp - 0x19], rdi
mov r8d, dword [0x1403d995c]
mov dword [rax], r8d
mov r8, qword [rbp + 0x6f]
movsd xmm0, qword [r8]
movsd qword [rax + 4], xmm0
call fcn.1400f9930
mov rcx, rax
test rax, rax
je 0x14005fa99
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.140015a40
or rsi, 0xffffffffffffffff
test al, al
jne 0x14005f89d
test r14, r14
jne 0x14005f87f
mov eax, edi
jmp 0x14005f88d
mov rax, rsi
inc rax
cmp word [r14 + rax*2], 0
jne 0x14005f882
mov r8d, eax
mov rdx, r14
lea rcx, [rbp - 0x29]
call fcn.1400105e0
nop
mov r15, qword [rbp - 0x29]
lea rcx, [r15 - 0x18]
call fcn.140015740
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, [0x140400628]
call fcn.1401190f0
cmp eax, 1
jne 0x14005fa38
mov r12, qword [rbp - 0x21]
test r12, r12
je 0x14005fa38
mov dword [rbp + 0x67], edi
mov rcx, qword [r12]
test rcx, rcx
jne 0x14005f8fa
mov edi, 0xc0000008
jmp 0x14005f9c3
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 0x14005f9c3
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 0x14005f95d
mov edi, 0xc0000017
jmp 0x14005f9bf
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 0x14005f9ab
mov qword [rbp - 0x19], rbx
mov eax, dword [rbp + 0x67]
mov dword [rbp + 0x5f], eax
jmp 0x14005f9bf
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 0x14005f9e5
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
test edi, edi
je 0x14005fa55
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.14005f420
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 0x14005fa55
mov rdx, qword [rbp - 0x31]
add rdx, 0xffffffffffffffe8
mov eax, esi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x14005fa55
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov edx, 1
mov rcx, r13
call fcn.14000e0f0
nop
lock xadd dword [r15 - 8], esi
sub esi, 1
jg 0x14005fa7c
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.14000de90
int3