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

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov dword [rsp + 0x10], edx
push r14
sub rsp, 0x110
mov esi, r9d
mov r14, r8
xor eax, eax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
lea rax, [r11 - 0x98]
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 - 0x90]
mov qword [rsp + 0x20], rax
lea r9, [r11 + 0x10]
lea r8, [rsp + 0x68]
call fcn.140007ad4
mov ebx, eax
mov dword [rsp + 0x50], eax
test eax, eax
js 0x140007eb6
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x28], rax
mov r9, qword [rsp + 0x150]
mov rcx, qword [rsp + 0x60]
call fcn.140007bf0
mov ebx, eax
mov dword [rsp + 0x50], eax
test eax, eax
js 0x140007e70
mov edx, dword [rsp + 0x128]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x140007e7e
and dword [rsp + 0x30], 0
mov dword [rsp + 0x28], Ordinal_36
lea rax, [rsp + 0xf0]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x128]
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 0x140007e57
mov ebx, reloc.WLDAP32.dll_Ordinal_88
mov r8d, ebx
xor edx, edx
lea rcx, [rsp + 0x90]
call fcn.1400cb080
mov dword [rsp + 0x90], ebx
mov dword [rsp + 0x94], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x98], rax
lea ecx, [rbx - 0x4c]
mov dword [rsp + 0xa0], ecx
mov rax, qword [rsp + 0x140]
mov qword [rsp + 0xa8], rax
mov eax, dword [rsp + 0x148]
mov dword [rsp + 0xb0], eax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0xb8], rax
mov dword [rsp + 0xc0], SQLAllocHandle
and dword [rsp + 0x48], 0
lea rax, [rsp + 0x168]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x178]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], ecx
lea rax, [rsp + 0x70]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x90]
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]
jmp 0x140007e65
mov edx, eax
lea rcx, str.ERROR_SkpEncryptionWorker___BCryptGenerateSymmetricKey:_0x_08x_n
call fcn.14000d9f0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140007e7e
mov edx, eax
lea rcx, str.ERROR_SkpEncryptionWorker___SkpDeriveSymmetricKey:_0x_08x_n
call fcn.14000d9f0
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 0x140007ec4
mov edx, eax
lea rcx, str.ERROR_SkpEncryptionWorker___SkpInitSymmetricEncryption:_0x_08x_n
call fcn.14000d9f0
jmp 0x140007ed6
mov eax, ebx
lea r11, [rsp + 0x110]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret