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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov dword [rsp + 0x10], edx
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x170
mov r12d, r9d
mov r13, r8
mov r15, rcx
xor eax, eax
mov qword [rsp + 0x90], rax
mov dword [rsp + 0x98], eax
xor r14b, r14b
mov byte [rsp + 0x50], r14b
xor sil, sil
mov byte [rsp + 0x51], sil
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140068248]
lea rcx, [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov ebx, eax
mov dword [rsp + 0x60], eax
xor edi, edi
test eax, eax
js 0x14002f18d
mov dword [rsp + 0x20], edi
lea r9d, [rdi + 0x20]
lea r8, str.ChainingModeGCM
lea rdx, str.ChainingMode
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
mov ebx, eax
mov dword [rsp + 0x60], eax
test eax, eax
js 0x14002f17c
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x1e8]
mov qword [rsp + 0x20], rax
lea r9d, [rdi + 4]
lea r8, [rsp + 0x1d8]
lea rdx, str.ObjectLength
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov ebx, eax
mov dword [rsp + 0x60], eax
test ebx, ebx
jns 0x14002f18d
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov dword [rsp + 0x64], ebx
test ebx, ebx
js 0x14002f286
mov r14b, 1
mov byte [rsp + 0x50], r14b
xor r9d, r9d
xor r8d, r8d
lea rdx, str.SP800_108_CTR_HMAC
lea rcx, [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov ebx, eax
mov dword [rsp + 0x70], eax
test eax, eax
js 0x14002f20b
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x200]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x1a8]
lea rdx, str.ObjectLength
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov ebx, eax
mov dword [rsp + 0x70], eax
test eax, eax
jns 0x14002f20b
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov dword [rsp + 0x64], ebx
test ebx, ebx
js 0x14002f286
movzx esi, r14b
mov byte [rsp + 0x51], r14b
mov edx, dword [rsp + 0x1a8]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov qword [rsp + 0x88], rax
test rax, rax
je 0x14002f282
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], Ordinal_36
mov qword [rsp + 0x20], r15
mov r9d, dword [rsp + 0x1a8]
mov r8, rax
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
mov ebx, eax
mov dword [rsp + 0x64], eax
test eax, eax
jns 0x14002f282
lea rcx, [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
test ebx, ebx
jns 0x14002f2aa
test r14b, r14b
je 0x14002f298
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
test sil, sil
je 0x14002f2aa
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov dword [rsp + 0x54], ebx
test ebx, ebx
js 0x14002f527
mov qword [rsp + 0xb8], reloc.Cabinet.dll_FCIDestroy
lea rax, str.SHA256
mov qword [rsp + 0xc0], rax
mov dword [rsp + 0xc8], 0xf
mov dword [rsp + 0xcc], reloc.Cabinet.dll_FCIFlushCabinet
lea rax, str.IUMDATAPROTECT
mov qword [rsp + 0xd0], rax
mov dword [rsp + 0xd8], Ordinal_36
mov dword [rsp + 0xdc], reloc.Cabinet.dll_FCIDestroy
mov rax, qword [rsp + 0x1d0]
mov qword [rsp + 0xe0], rax
mov dword [rsp + 0xa8], edi
mov dword [rsp + 0xac], 3
lea rax, [rsp + 0xb8]
mov qword [rsp + 0xb0], rax
mov dword [rsp + 0x28], edi
lea rax, [rsp + 0x1e8]
mov qword [rsp + 0x20], rax
mov r9d, Ordinal_36
lea r8, [rsp + 0x150]
lea rdx, [rsp + 0xa8]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.bcrypt.dll_BCryptKeyDerivation]
mov ebx, eax
mov dword [rsp + 0x54], eax
test eax, eax
js 0x14002f4f1
mov edx, dword [rsp + 0x1d8]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
je 0x14002f4f1
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], Ordinal_36
lea rax, [rsp + 0x150]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x1d8]
mov r8, rsi
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
mov ebx, eax
mov dword [rsp + 0x54], eax
test eax, eax
js 0x14002f4e8
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rsp + 0xf0], xmm0
movups xmmword [rsp + 0x100], xmm0
movups xmmword [rsp + 0x110], xmm0
movups xmmword [rsp + 0x120], xmm0
movups xmmword [rsp + reloc.WLDAP32.dll_Ordinal_304], xmm0
mov qword [rsp + 0x140], rax
mov dword [rsp + 0xf0], reloc.WLDAP32.dll_Ordinal_88
mov dword [rsp + 0xf4], 1
lea rax, [rsp + 0x90]
mov qword [rsp + 0xf8], rax
mov dword [rsp + 0x100], reloc.WLDAP32.dll_Ordinal_12
mov rax, qword [rsp + 0x1c0]
mov qword [rsp + 0x108], rax
mov eax, dword [rsp + 0x1c8]
mov dword [rsp + 0x110], eax
mov rax, qword [rsp + 0x1e0]
mov qword [rsp + 0x118], rax
mov dword [rsp + 0x120], Ordinal_26
mov dword [rsp + 0x48], edi
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov eax, dword [rsp + 0x1f8]
mov dword [rsp + 0x38], eax
mov rax, qword [rsp + 0x1f0]
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], reloc.WLDAP32.dll_Ordinal_12
lea rax, [rsp + 0x90]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0xf0]
mov r8d, r12d
mov rdx, r13
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
mov ebx, eax
mov dword [rsp + 0x54], eax
mov rcx, qword [rsp + 0x78]
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov rcx, qword [rsp + 0x88]
call qword [sym.imp.KERNEL32.dll_LocalFree]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
xor edx, edx
mov rcx, qword [rsp + 0x58]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
jmp 0x14002f52d
mov eax, ebx
lea r11, [rsp + 0x170]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret