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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
push r14
push r15
sub rsp, 0x150
mov esi, r9d
mov r14, r8
xor eax, eax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
lea rax, [r11 - 0xe8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x30], rax
lea rax, [r11 + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [r11 - 0xe0]
mov qword [rsp + 0x20], rax
lea r9, [r11 + 0x10]
lea r8, [rsp + 0x68]
call fcn.140005d50
mov ebx, eax
mov dword [rsp + 0x50], eax
test eax, eax
js 0x14000629a
mov qword [rsp + 0xa0], reloc.Cabinet.dll_FCIDestroy
xor r15d, r15d
lea rax, str.SHA256
mov qword [rsp + 0xa8], rax
mov dword [rsp + 0xb0], SQLAllocHandle
mov dword [rsp + 0xb4], reloc.Cabinet.dll_FCIFlushCabinet
lea rax, str.IUMDATAPROTECT
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0xc0], Ordinal_41
mov dword [rsp + 0xc4], reloc.Cabinet.dll_FCIDestroy
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0x90], r15d
mov dword [rsp + 0x94], 3
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x98], rax
mov dword [rsp + 0x28], r15d
lea rax, [rsp + 0x1b8]
mov qword [rsp + 0x20], rax
lea r9d, [r15 + 0x20]
lea r8, [rsp + 0x130]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptKeyDerivation]
mov ebx, eax
mov dword [rsp + 0x50], eax
test eax, eax
js 0x140006254
mov edx, dword [rsp + 0x178]
lea ecx, [r15 + 0x40]
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140006262
mov dword [rsp + 0x30], r15d
mov dword [rsp + 0x28], Ordinal_36
lea rax, [rsp + 0x130]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x178]
mov r8, rdi
lea rdx, [rsp + 0x58]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
mov ebx, eax
mov dword [rsp + 0x50], eax
test eax, eax
js 0x14000623b
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xd0], xmm0
movups xmmword [rsp + 0xe0], xmm0
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0x110], xmm0
mov qword [rsp + 0x120], rax
mov dword [rsp + 0xd0], reloc.WLDAP32.dll_Ordinal_88
mov dword [rsp + 0xd4], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0xd8], rax
mov dword [rsp + 0xe0], reloc.WLDAP32.dll_Ordinal_12
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0xe8], rax
mov eax, dword [rsp + 0x198]
mov dword [rsp + 0xf0], eax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0xf8], rax
mov dword [rsp + Ordinal_260], 0x10
mov dword [rsp + 0x48], r15d
lea rax, [rsp + 0x1d0]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x1c8]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_12
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xd0]
mov r8d, esi
mov rdx, r14
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov ebx, eax
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140006262
mov edx, eax
lea rcx, str.ERROR_SkpEncryptionWorker___BCryptGenerateSymmetricKey:_0x_08x_n
call fcn.14000afb0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140006262
mov edx, eax
lea rcx, str.ERROR_SkpEncryptionWorker___SkpDeriveSymmetricKey:_0x_08x_n
call fcn.14000afb0
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor edx, edx
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x1400062a8
mov edx, eax
lea rcx, str.ERROR_SkpEncryptionWorker___SkpInitSymmetricEncryption:_0x_08x_n
call fcn.14000afb0
jmp 0x1400062ba
mov eax, ebx
lea r11, [rsp + 0x150]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret