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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov qword [r11 + 0x18], rdi
push r12
sub rsp, 0x160
mov esi, r9d
mov r12, r8
mov byte [rsp + 0x58], 0
xor eax, eax
mov qword [rsp + 0x59], rax
mov word [rsp + 0x61], ax
mov byte [rsp + 0x63], al
lea rax, [r11 - 0xc8]
mov qword [rsp + 0x38], rax
lea rax, [rsp + 0x70]
mov qword [rsp + 0x30], rax
lea rax, [r11 - 0xbc]
mov qword [rsp + 0x28], rax
lea rax, [r11 - 0xe8]
mov qword [rsp + 0x20], rax
lea r9, [r11 + 0x68]
lea r8, [rsp + 0x68]
mov edx, 0x20
call fcn.140006904
mov ebx, eax
mov dword [rsp + 0x50], eax
test eax, eax
js 0x140006e08
mov ecx, 0xe
mov dword [rsp + 0xb0], ecx
and dword [rsp + 0xb4], 0
lea rax, str.SHA256
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0xc0], 0xf
mov dword [rsp + 0xc4], 0xd
lea rax, str.IUMDATAPROTECT
mov qword [rsp + 0xc8], rax
mov dword [rsp + 0xd0], 0x20
mov dword [rsp + 0xd4], ecx
mov rax, qword [rsp + 0x1a0]
mov qword [rsp + 0xd8], rax
and dword [rsp + 0x90], 0
mov dword [rsp + 0x94], 3
lea rax, [rsp + 0xb0]
mov qword [rsp + 0x98], rax
and dword [rsp + 0x28], 0
lea rax, [rsp + 0x88]
mov qword [rsp + 0x20], rax
lea r9d, [rcx + 0x12]
lea r8, [rsp + 0x140]
lea rdx, [rsp + 0x90]
mov rcx, qword [rsp + 0x70]
call sub.bcrypt.dll_BCryptKeyDerivation
mov ebx, eax
mov dword [rsp + 0x50], eax
test eax, eax
js 0x140006dc5
mov edx, dword [rsp + 0x1d0]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140006dd3
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x20
lea rax, [rsp + 0x140]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x1d0]
mov r8, rdi
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x68]
call sub.bcrypt.dll_BCryptGenerateSymmetricKey
mov ebx, eax
mov dword [rsp + 0x50], eax
test eax, eax
js 0x140006dac
mov ebx, 0x58
mov r8, rbx
xor edx, edx
lea rcx, [rsp + 0xe0]
call sub.msvcrt.dll_memset
mov dword [rsp + 0xe0], ebx
mov dword [rsp + 0xe4], 1
lea rax, [rsp + 0x58]
mov qword [rsp + 0xe8], rax
lea ecx, [rbx - 0x4c]
mov dword [rsp + 0xf0], ecx
mov rax, qword [rsp + 0x190]
mov qword [rsp + 0xf8], rax
mov eax, dword [rsp + 0x198]
mov dword [rsp + 0x100], eax
mov rax, qword [rsp + 0x1b0]
mov qword [rsp + 0x108], rax
mov dword [rsp + 0x110], 0x10
and dword [rsp + 0x48], 0
lea rax, [rsp + 0xa8]
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], ecx
lea rax, [rsp + 0x58]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xe0]
mov r8d, esi
mov rdx, r12
mov rcx, qword [rsp + 0x78]
call sub.bcrypt.dll_BCryptDecrypt
mov ebx, eax
mov dword [rsp + 0x50], eax
mov rcx, qword [rsp + 0x78]
call sub.bcrypt.dll_BCryptDestroyKey
jmp 0x140006dba
mov edx, eax
lea rcx, str.PA7LB_SkpEncryptionWorker___BCryptGenerateSymmetricKey:_0x_08x_n
call fcn.14000c030
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140006dd3
mov edx, eax
lea rcx, str.PA7LB_SkpEncryptionWorker___SkpDeriveSymmetricKey:_0x_08x_n
call fcn.14000c030
mov rcx, qword [rsp + 0x70]
call sub.bcrypt.dll_BCryptDestroyKey
mov rcx, qword [rsp + 0xa0]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor edx, edx
mov rcx, qword [rsp + 0x80]
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
xor edx, edx
mov rcx, qword [rsp + 0x68]
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
jmp 0x140006e16
mov edx, eax
lea rcx, str.PA7LB_SkpEncryptionWorker___SkpInitSymmetricEncryption:_0x_08x_n
call fcn.14000c030
jmp 0x140006e28
mov eax, ebx
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop r12
ret