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

Disassembly:
mov r11, rsp
push rsi
push rdi
push r12
push r14
push r15
sub rsp, 0xc0
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov rax, qword [0x1402e7080]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov rdi, r9
mov r15, r8
mov rbx, rdx
mov qword [rsp + 0x50], rdx
mov qword [r11 - 0x70], r9
mov r14, qword [rsp + 0x110]
mov qword [r11 - 0x68], r14
xor esi, esi
mov qword [r11 - 0x80], rsi
mov qword [r11 - 0x78], rsi
xor eax, eax
mov qword [r11 - 0x58], rax
mov qword [r11 - 0x50], rax
mov qword [r11 - 0x48], rax
mov qword [r11 - 0x40], rax
mov rdx, qword [r8 + 0x18]
add rdx, 0x10
lea rcx, [r11 - 0x58]
call fcn.1400214b0
nop
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x1401ceda0]
lea rcx, [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
jns 0x140025158
mov qword [rbx], rsi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
lea ecx, [rsi + 0x10]
call fcn.140004af0
mov qword [rbx], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rax, qword [rbx]
mov qword [rax], rbx
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], 0xf
mov byte [rbx + 8], sil
xor r8d, r8d
lea rdx, [0x1401cc042]
mov rcx, rbx
call fcn.140014260
nop
lea rcx, [rsp + 0x90]
call fcn.140001a50
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x1400250e9
mov rdx, qword [rsp + 0xa8]
sub rdx, rcx
mov qword [rsp + 0x60], rdx
mov qword [rsp + 0x88], rcx
cmp rdx, 0x1000
jb 0x1400250cc
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x88]
call fcn.140001b60
mov rdx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x88]
call fcn.140068260
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
lea rcx, [rsp + 0x90]
call fcn.140001a50
mov edx, 0x10
mov rcx, qword [rsp + 0x90]
call fcn.140068260
mov qword [rsp + 0x90], rsi
mov rcx, rdi
call fcn.140004810
mov rcx, rdi
call fcn.140001a50
mov edx, 0x10
mov rcx, qword [rdi]
call fcn.140068260
mov qword [rdi], rsi
mov rcx, r14
call fcn.140004810
mov rcx, r14
call fcn.140001a50
mov edx, 0x10
mov rcx, qword [r14]
call fcn.140068260
mov qword [r14], rsi
mov rax, rbx
jmp 0x140025670
mov rcx, qword [rdi + 0x18]
lea rax, [rdi + 8]
cmp qword [rdi + 0x20], 0x10
jb 0x14002516a
mov rax, qword [rax]
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
lea rdx, [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
jns 0x1400252cf
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov qword [rbx], rsi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
mov ecx, 0x10
call fcn.140004af0
mov qword [rbx], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rax, qword [rbx]
mov qword [rax], rbx
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], 0xf
mov byte [rbx + 8], 0
xor r8d, r8d
lea rdx, [0x1401cc042]
mov rcx, rbx
call fcn.140014260
nop
lea rcx, [rsp + 0x90]
call fcn.140001a50
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140025260
mov rdx, qword [rsp + 0xa8]
sub rdx, rcx
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x60], rcx
cmp rdx, 0x1000
jb 0x140025243
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x60]
call fcn.140001b60
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
call fcn.140068260
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
lea rcx, [rsp + 0x90]
call fcn.140001a50
mov edx, 0x10
mov rcx, qword [rsp + 0x90]
call fcn.140068260
mov qword [rsp + 0x90], rsi
mov rcx, rdi
call fcn.140004810
mov rcx, rdi
call fcn.140001a50
mov edx, 0x10
mov rcx, qword [rdi]
call fcn.140068260
mov qword [rdi], rsi
mov rcx, r14
call fcn.140004810
mov rcx, r14
call fcn.140001a50
mov edx, 0x10
mov rcx, qword [r14]
call fcn.140068260
mov qword [r14], rsi
mov rax, rbx
jmp 0x140025670
mov r8, qword [rsp + 0xa0]
mov r9, qword [rsp + 0x98]
sub r8, r9
mov r10, qword [r14 + 0x18]
lea rcx, [r14 + 8]
cmp qword [r14 + 0x20], 0x10
jb 0x1400252f4
mov rcx, qword [rcx]
mov rax, qword [r15 + 0x18]
and eax, 0xfffffff0
lea rdx, [r15 + 8]
cmp qword [r15 + 0x20], 0x10
jb 0x140025309
mov rdx, qword [rdx]
mov dword [rsp + 0x48], esi
lea r11, [rsp + 0xb0]
mov qword [rsp + 0x40], r11
mov dword [rsp + 0x38], r8d
mov qword [rsp + 0x30], r9
mov dword [rsp + 0x28], r10d
mov qword [rsp + 0x20], rcx
xor r9d, r9d
mov r8d, eax
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
mov rcx, qword [rsp + 0x70]
test eax, eax
jns 0x14002548c
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov qword [rbx], rsi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
mov ecx, 0x10
call fcn.140004af0
mov qword [rbx], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rax, qword [rbx]
mov qword [rax], rbx
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], 0xf
mov byte [rbx + 8], 0
xor r8d, r8d
lea rdx, [0x1401cc042]
mov rcx, rbx
call fcn.140014260
nop
lea rcx, [rsp + 0x90]
call fcn.140001a50
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x14002541d
mov rdx, qword [rsp + 0xa8]
sub rdx, rcx
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x60], rcx
cmp rdx, 0x1000
jb 0x140025400
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x60]
call fcn.140001b60
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
call fcn.140068260
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
lea rcx, [rsp + 0x90]
call fcn.140001a50
mov edx, 0x10
mov rcx, qword [rsp + 0x90]
call fcn.140068260
mov qword [rsp + 0x90], rsi
mov rcx, rdi
call fcn.140004810
mov rcx, rdi
call fcn.140001a50
mov edx, 0x10
mov rcx, qword [rdi]
call fcn.140068260
mov qword [rdi], rsi
mov rcx, r14
call fcn.140004810
mov rcx, r14
call fcn.140001a50
mov edx, 0x10
mov rcx, qword [r14]
call fcn.140068260
mov qword [r14], rsi
mov rax, rbx
jmp 0x140025670
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
xor edx, edx
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
mov r15d, dword [rsp + 0xb0]
mov r12, qword [rsp + 0x98]
mov qword [rbx], rsi
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], rsi
mov ecx, 0x10
call fcn.140004af0
mov qword [rbx], rax
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov rax, qword [rbx]
mov qword [rax], rbx
mov qword [rbx + 0x18], rsi
mov qword [rbx + 0x20], 0xf
mov byte [rbx + 8], 0
mov r8d, r15d
mov rdx, r12
mov rcx, rbx
call fcn.140014260
nop
lea rcx, [rsp + 0x90]
call fcn.140001a50
mov rcx, qword [rsp + 0x98]
test rcx, rcx
je 0x140025569
mov rdx, qword [rsp + 0xa8]
sub rdx, rcx
mov qword [rsp + 0x88], rdx
mov qword [rsp + 0x60], rcx
cmp rdx, 0x1000
jb 0x14002554c
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0x60]
call fcn.140001b60
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x60]
call fcn.140068260
mov qword [rsp + 0x98], rsi
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
lea rcx, [rsp + 0x90]
call fcn.140001a50
mov edx, 0x10
mov rcx, qword [rsp + 0x90]
call fcn.140068260
mov qword [rsp + 0x90], rsi
mov rcx, rdi
call fcn.140004810
mov rcx, rdi
call fcn.140001a50
mov edx, 0x10
mov rcx, qword [rdi]
call fcn.140068260
mov qword [rdi], rsi
mov rcx, r14
call fcn.140004810
mov rcx, r14
call fcn.140001a50
mov edx, 0x10
mov rcx, qword [r14]
call fcn.140068260
mov qword [r14], rsi
mov rax, rbx
jmp 0x140025670
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400681e0
mov rbx, qword [rsp + 0xf0]
add rsp, 0xc0
pop r15
pop r14
pop r12
pop rdi
pop rsi
ret