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

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x1401ca1c8]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, r9
mov r15, r8
mov r13, rdx
mov r12, rcx
mov qword [rbp + 0x100], rcx
xor ebx, ebx
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x58], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140131a58]
lea rcx, [rsp + 0x58]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x14000267b
lea rax, [0x140131d28]
mov qword [rbp + 0x80], rax
mov rax, qword [rsp + 0x58]
mov qword [rbp + 0x88], rax
lea rax, [rbp + 0x80]
mov qword [rbp + 0xb8], rax
lea rax, [rbp + 0x80]
mov qword [rbp - 8], rax
lea rax, [rbp + 0x170]
mov qword [rsp + 0x70], rax
mov qword [rbp + 0x1a8], rbx
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x80]
call qword [0x140131d28]
mov qword [rbp + 0x1a8], rax
mov rcx, qword [rbp + 0xb8]
test rcx, rcx
je 0x140002084
mov rax, qword [rcx]
lea rdx, [rbp + 0x80]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0xb8], rbx
mov dword [rsp + 0x20], ebx
mov r9d, 0x20
lea r8, str.ChainingModeGCM
lea rdx, str.ChainingMode
mov rcx, qword [rsp + 0x58]
call sub.bcrypt.dll_BCryptSetProperty
test eax, eax
js 0x14000269c
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x60], ebx
xor eax, eax
mov qword [rbp + 0x120], rax
mov dword [rbp + 0x128], eax
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rsp + 0x60]
lea rdx, str.ObjectLength
mov rcx, qword [rsp + 0x58]
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x1400026bd
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov esi, 0xc
mov r9d, esi
lea r8, [rbp + 0x120]
lea rdx, str.AuthTagLength
mov rcx, qword [rsp + 0x58]
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x1400026de
mov r14d, dword [rbp + 0x120]
add r14d, esi
cmp rdi, r14
jb 0x1400026ff
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov rax, rbx
mov qword [rbp - 0x18], rbx
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], rbx
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], rbx
mov rbx, r15
mov rdx, qword [rbp - 0x20]
cmp rdx, rax
je 0x14000217f
movzx eax, byte [rbx]
mov byte [rdx], al
mov rdx, qword [rbp - 0x20]
inc rdx
mov qword [rbp - 0x20], rdx
jmp 0x14000218f
mov r8, rbx
lea rcx, [rbp - 0x28]
call fcn.1400016b0
mov rdx, qword [rbp - 0x20]
sub esi, 1
je 0x14000219d
inc rbx
mov rax, qword [rbp - 0x18]
jmp 0x140002168
lea rbx, [r15 + 0xc]
mov esi, dword [rbp + 0x120]
test esi, esi
je 0x1400021e2
mov rdx, qword [rbp - 0x38]
nop
cmp rdx, qword [rbp - 0x30]
je 0x1400021c8
movzx eax, byte [rbx]
mov byte [rdx], al
mov rdx, qword [rbp - 0x38]
inc rdx
mov qword [rbp - 0x38], rdx
jmp 0x1400021d8
mov r8, rbx
lea rcx, [rbp - 0x40]
call fcn.1400016b0
mov rdx, qword [rbp - 0x38]
add esi, 0xffffffff
je 0x1400021e2
inc rbx
jmp 0x1400021b0
lea rbx, [r14 + r15]
sub rdi, r14
je 0x140002223
mov rdx, qword [rbp - 0x68]
nop
cmp rdx, qword [rbp - 0x60]
je 0x140002208
movzx eax, byte [rbx]
mov byte [rdx], al
mov rdx, qword [rbp - 0x68]
inc rdx
mov qword [rbp - 0x68], rdx
jmp 0x140002218
mov r8, rbx
lea rcx, [rbp - 0x70]
call fcn.1400016b0
mov rdx, qword [rbp - 0x68]
sub rdi, 1
je 0x140002223
inc rbx
jmp 0x1400021f0
xor r14d, r14d
mov qword [rbp - 0x10], r14
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
mov edi, r14d
mov qword [rbp - 0x48], r14
lea rax, str.SHA256
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x78], 6
movaps xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x70], xmm0
mov r9, qword [r13 + 8]
mov r8, qword [r13]
lea rdx, [rsp + 0x70]
lea rcx, [rbp]
call fcn.140002f50
mov dword [rsp + 0x64], 2
mov edx, dword [rsp + 0x60]
test rdx, rdx
je 0x140002292
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x58]
call fcn.140001950
mov rdi, qword [rbp - 0x48]
mov rdx, qword [rbp + 8]
mov rcx, qword [rbp]
sub rdx, rcx
mov r9, qword [rbp - 0x50]
mov rbx, qword [rbp - 0x58]
sub r9, rbx
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], edx
mov qword [rsp + 0x20], rcx
mov r8, rbx
lea rdx, [rbp - 0x10]
mov rcx, qword [rsp + 0x58]
call sub.bcrypt.dll_BCryptGenerateSymmetricKey
test eax, eax
js 0x140002720
lea rax, [0x140131d60]
mov qword [rbp + 0xc0], rax
mov rax, qword [rbp - 0x10]
mov qword [rbp + 0xc8], rax
lea rax, [rbp + 0xc0]
mov qword [rbp + 0xf8], rax
lea rax, [rbp + 0xc0]
mov qword [rsp + 0x70], rax
lea rax, [rbp + 0x130]
mov qword [rbp - 8], rax
mov qword [rbp + 0x168], r14
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0xc0]
call qword [0x140131d60]
mov qword [rbp + 0x168], rax
mov rcx, qword [rbp + 0xf8]
test rcx, rcx
je 0x14000234f
mov rax, qword [rcx]
lea rdx, [rbp + 0xc0]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
nop
mov qword [r12], r14
mov qword [r12 + 8], r14
mov qword [r12 + 0x10], r14
mov dword [rsp + 0x64], 3
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x70], xmm0
mov qword [rbp - 0x80], r14
mov rdx, qword [rbp - 0x68]
sub rdx, qword [rbp - 0x70]
mov rcx, r12
call fcn.1400033e0
mov edx, dword [rbp + 0x124]
lea rcx, [rsp + 0x70]
call fcn.1400033e0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
mov qword [rbp + 0x70], rax
mov dword [rbp + 0x20], 0x58
mov dword [rbp + 0x24], 1
mov rcx, qword [rbp - 0x28]
mov qword [rbp + 0x28], rcx
mov rax, qword [rbp - 0x20]
sub rax, rcx
mov dword [rbp + 0x30], eax
mov qword [rbp + 0x38], rcx
mov dword [rbp + 0x40], eax
mov rax, qword [rbp - 0x40]
mov qword [rbp + 0x48], rax
mov rcx, qword [rbp - 0x38]
sub rcx, rax
mov dword [rbp + 0x50], ecx
mov rsi, qword [rsp + 0x70]
mov qword [rbp + 0x58], rsi
mov rax, qword [rsp + 0x78]
sub rax, rsi
mov dword [rbp + 0x60], eax
mov r8, qword [r12]
mov rax, qword [r12 + 8]
sub rax, r8
mov rcx, qword [rbp - 0x68]
mov rdx, qword [rbp - 0x70]
sub rcx, rdx
mov dword [rsp + 0x48], r14d
lea r9, [rsp + 0x54]
mov qword [rsp + 0x40], r9
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r8
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x20]
mov r8d, ecx
mov rcx, qword [rbp - 0x10]
call sub.bcrypt.dll_BCryptDecrypt
test eax, eax
js 0x140002743
test rsi, rsi
je 0x140002487
mov rdx, qword [rbp - 0x80]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x14000247e
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000276a
mov rcx, rsi
call fcn.1400fb310
nop
mov rcx, qword [rbp + 0x168]
test rcx, rcx
je 0x1400024bf
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x168]
test rcx, rcx
je 0x1400024bf
mov rax, qword [rcx]
lea rdx, [rbp + 0x130]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0x168], r14
mov rcx, qword [rbp]
test rcx, rcx
je 0x140002505
mov rdx, qword [rbp + 0x10]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024f4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002770
call fcn.1400fb310
xorps xmm0, xmm0
movdqu xmmword [rbp], xmm0
mov qword [rbp + 0x10], r14
test rbx, rbx
je 0x14000253e
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x140002532
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002776
mov rdx, rdi
mov rcx, rbx
call fcn.1400fb310
nop
mov rcx, qword [rbp - 0x70]
test rcx, rcx
je 0x140002584
mov rdx, qword [rbp - 0x60]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002573
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000277c
call fcn.1400fb310
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x70], xmm0
mov qword [rbp - 0x60], r14
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x1400025ca
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025b9
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002782
call fcn.1400fb310
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r14
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x14000260c
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002675
call fcn.1400fb310
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r14
mov r9, qword [rbp + 0x1a8]
test r9, r9
je 0x140002648
mov rax, qword [r9]
mov rcx, r9
call qword [rax + 0x10]
mov r9, qword [rbp + 0x1a8]
test r9, r9
je 0x140002648
mov rcx, qword [r9]
mov r8, qword [rcx + 0x20]
lea rax, [rbp + 0x170]
cmp r9, rax
setne dl
mov rcx, r9
call r8
nop
mov rax, r12
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.1400fb3b0
mov rbx, qword [rsp + 0x310]
add rsp, 0x2c0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401025e4
nop
lea rdx, str.Failed_to_open_algorithm_provider
lea rcx, [rbp - 0x58]
call fcn.140001430
lea rdx, [0x1401c3140]
lea rcx, [rbp - 0x58]
call fcn.1400fc9b0
nop
lea rdx, str.Failed_to_set_the_algorithm_chaining_mode
lea rcx, [rbp - 0x58]
call fcn.140001430
lea rdx, [0x1401c3140]
lea rcx, [rbp - 0x58]
call fcn.1400fc9b0
int3
lea rdx, str.Failed_to_get_algorithm_object_length
lea rcx, [rbp - 0x58]
call fcn.140001430
lea rdx, [0x1401c3140]
lea rcx, [rbp - 0x58]
call fcn.1400fc9b0
int3
lea rdx, str.Failed_to_get_algorithm_auth_tag_lengths
lea rcx, [rbp - 0x58]
call fcn.140001430
lea rdx, [0x1401c3140]
lea rcx, [rbp - 0x58]
call fcn.1400fc9b0
int3
lea rdx, str.Supplied_buffer_is_too_small_to_decrypt
lea rcx, [rbp - 0x58]
call fcn.140001430
lea rdx, [0x1401c3140]
lea rcx, [rbp - 0x58]
call fcn.1400fc9b0
nop
lea rdx, str.Failed_to_generate_symmetric_key_object_from_password
lea rcx, [rsp + 0x70]
call fcn.140001430
lea rdx, [0x1401c3140]
lea rcx, [rsp + 0x70]
call fcn.1400fc9b0
nop
lea rdx, str.Failed_to_decrypt_input_buffer
lea rcx, [rbp + 0x108]
call fcn.140001430
lea rdx, [0x1401c3140]
lea rcx, [rbp + 0x108]
call fcn.1400fc9b0
nop
call fcn.1401025e4
nop
call fcn.1401025e4
nop
call fcn.1401025e4
nop
call fcn.1401025e4
nop
call fcn.1401025e4
int3