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 [0x1401cf048]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
mov rdi, r9
mov r15, r8
mov r13, rdx
mov r12, rcx
mov qword [rbp + 0x110], rcx
xor ebx, ebx
mov dword [rsp + 0x64], ebx
mov qword [rsp + 0x58], rbx
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x140136a18]
lea rcx, [rsp + 0x58]
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
test eax, eax
js 0x140002676
lea rax, fcn.140001ce0
mov qword [rbp + 0x90], rax
mov rax, qword [rsp + 0x58]
mov qword [rbp + 0x98], rax
lea rax, [rbp + 0x90]
mov qword [rbp + 0xc8], rax
lea rax, [rbp + 0x90]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x170]
mov qword [rbp - 0x30], rax
mov qword [rbp + 0x1a8], rbx
lea rdx, [rbp + 0x170]
lea rcx, [rbp + 0x90]
call fcn.140001ce0
mov qword [rbp + 0x1a8], rax
mov rcx, qword [rbp + 0xc8]
test rcx, rcx
je 0x140002082
mov rax, qword [rcx]
lea rdx, [rbp + 0x90]
cmp rcx, rdx
setne dl
call qword [rax + 0x20]
mov qword [rbp + 0xc8], 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 0x140002699
mov dword [rsp + 0x54], ebx
mov dword [rsp + 0x60], ebx
xor eax, eax
mov qword [rbp + 0x118], rax
mov dword [rbp + 0x120], 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 0x1400026bc
mov dword [rsp + 0x28], ebx
lea rax, [rsp + 0x54]
mov qword [rsp + 0x20], rax
mov esi, 0xc
mov r9d, esi
lea r8, [rbp + 0x118]
lea rdx, str.AuthTagLength
mov rcx, qword [rsp + 0x58]
call sub.bcrypt.dll_BCryptGetProperty
test eax, eax
js 0x1400026df
mov r14d, dword [rbp + 0x118]
add r14d, esi
cmp rdi, r14
jb 0x140002702
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov rax, rbx
mov qword [rbp - 0x40], rbx
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], rbx
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], rbx
mov rbx, r15
mov rdx, qword [rbp - 0x48]
cmp rdx, rax
je 0x14000217d
movzx eax, byte [rbx]
mov byte [rdx], al
mov rdx, qword [rbp - 0x48]
inc rdx
mov qword [rbp - 0x48], rdx
jmp 0x14000218d
mov r8, rbx
lea rcx, [rbp - 0x50]
call fcn.1400016b0
mov rdx, qword [rbp - 0x48]
sub esi, 1
je 0x14000219b
inc rbx
mov rax, qword [rbp - 0x40]
jmp 0x140002166
lea rbx, [r15 + 0xc]
mov esi, dword [rbp + 0x118]
test esi, esi
je 0x1400021e2
mov rdx, qword [rbp - 0x60]
nop dword [rax]
cmp rdx, qword [rbp - 0x58]
je 0x1400021c8
movzx eax, byte [rbx]
mov byte [rdx], al
mov rdx, qword [rbp - 0x60]
inc rdx
mov qword [rbp - 0x60], rdx
jmp 0x1400021d8
mov r8, rbx
lea rcx, [rbp - 0x68]
call fcn.1400016b0
mov rdx, qword [rbp - 0x60]
add esi, 0xffffffff
je 0x1400021e2
inc rbx
jmp 0x1400021b0
lea rbx, [r14 + r15]
sub rdi, r14
je 0x140002223
mov rdx, qword [rbp - 0x78]
nop
cmp rdx, qword [rbp - 0x70]
je 0x140002208
movzx eax, byte [rbx]
mov byte [rdx], al
mov rdx, qword [rbp - 0x78]
inc rdx
mov qword [rbp - 0x78], rdx
jmp 0x140002218
mov r8, rbx
lea rcx, [rbp - 0x80]
call fcn.1400016b0
mov rdx, qword [rbp - 0x78]
sub rdi, 1
je 0x140002223
inc rbx
jmp 0x1400021f0
xor r14d, r14d
mov qword [rbp - 0x38], r14
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x10], xmm0
mov edi, r14d
mov qword [rbp + 0x20], r14
lea rax, str.SHA256
mov qword [rbp - 0x30], rax
mov qword [rbp - 0x28], 6
movaps xmm0, xmmword [rbp - 0x30]
movdqa xmmword [rbp - 0x30], xmm0
mov r9, qword [r13 + 8]
mov r8, qword [r13]
lea rdx, [rbp - 0x30]
lea rcx, [rbp - 8]
call fcn.140002f60
mov dword [rsp + 0x64], 2
mov edx, dword [rsp + 0x60]
test rdx, rdx
je 0x14000228d
lea r8, [rsp + 0x50]
lea rcx, [rbp + 0x10]
call fcn.140001950
mov rdi, qword [rbp + 0x20]
mov rcx, qword [rbp]
mov rax, qword [rbp - 8]
sub rcx, rax
mov r9, qword [rbp + 0x18]
mov rbx, qword [rbp + 0x10]
sub r9, rbx
mov dword [rsp + 0x30], r14d
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r8, rbx
lea rdx, [rbp - 0x38]
mov rcx, qword [rsp + 0x58]
call sub.bcrypt.dll_BCryptGenerateSymmetricKey
test eax, eax
js 0x140002725
lea rax, fcn.140001d40
mov qword [rbp + 0xd0], rax
mov rax, qword [rbp - 0x38]
mov qword [rbp + 0xd8], rax
lea rax, [rbp + 0xd0]
mov qword [rbp + 0x108], rax
lea rax, [rbp + 0xd0]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x130]
mov qword [rbp - 0x10], rax
mov qword [rbp + 0x168], r14
lea rdx, [rbp + 0x130]
lea rcx, [rbp + 0xd0]
call fcn.140001d40
mov qword [rbp + 0x168], rax
mov rcx, qword [rbp + 0x108]
test rcx, rcx
je 0x140002348
mov rax, qword [rcx]
lea rdx, [rbp + 0xd0]
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 + 0x68], xmm0
mov qword [rsp + 0x78], r14
mov rdx, qword [rbp - 0x78]
sub rdx, qword [rbp - 0x80]
mov rcx, r12
call fcn.1400033f0
mov edx, dword [rbp + 0x11c]
lea rcx, [rsp + 0x68]
call fcn.1400033f0
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp + 0x30], xmm0
movups xmmword [rbp + 0x40], xmm0
movups xmmword [rbp + 0x50], xmm0
movups xmmword [rbp + 0x60], xmm0
movups xmmword [rbp + 0x70], xmm0
mov qword [rbp + 0x80], rax
mov dword [rbp + 0x30], 0x58
mov dword [rbp + 0x34], 1
mov rcx, qword [rbp - 0x50]
mov qword [rbp + 0x38], rcx
mov rax, qword [rbp - 0x48]
sub rax, rcx
mov dword [rbp + 0x40], eax
mov qword [rbp + 0x48], rcx
mov dword [rbp + 0x50], eax
mov rax, qword [rbp - 0x68]
mov qword [rbp + 0x58], rax
mov rcx, qword [rbp - 0x60]
sub rcx, rax
mov dword [rbp + 0x60], ecx
mov rsi, qword [rsp + 0x68]
mov qword [rbp + 0x68], rsi
mov rax, qword [rsp + 0x70]
sub rax, rsi
mov dword [rbp + 0x70], eax
mov rcx, qword [r12]
mov rax, qword [r12 + 8]
sub rax, rcx
mov r8, qword [rbp - 0x78]
mov rdx, qword [rbp - 0x80]
sub r8, rdx
mov dword [rsp + 0x48], r14d
lea r9, [rsp + 0x54]
mov qword [rsp + 0x40], r9
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x30]
mov rcx, qword [rbp - 0x38]
call sub.bcrypt.dll_BCryptDecrypt
test eax, eax
js 0x140002748
test rsi, rsi
je 0x140002482
mov rdx, qword [rsp + 0x78]
sub rdx, rsi
mov rax, rsi
cmp rdx, 0x1000
jb 0x140002479
add rdx, 0x27
mov rsi, qword [rsi - 8]
sub rax, rsi
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002769
mov rcx, rsi
call fcn.1401009e8
nop
mov rcx, qword [rbp + 0x168]
test rcx, rcx
je 0x1400024ba
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rbp + 0x168]
test rcx, rcx
je 0x1400024ba
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 - 8]
test rcx, rcx
je 0x140002500
mov rdx, qword [rbp + 8]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400024ef
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000276f
call fcn.1401009e8
xorps xmm0, xmm0
movdqu xmmword [rbp - 8], xmm0
mov qword [rbp + 8], r14
test rbx, rbx
je 0x140002539
sub rdi, rbx
mov rax, rbx
cmp rdi, 0x1000
jb 0x14000252d
add rdi, 0x27
mov rbx, qword [rbx - 8]
sub rax, rbx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002775
mov rdx, rdi
mov rcx, rbx
call fcn.1401009e8
nop
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14000257f
mov rdx, qword [rbp - 0x70]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x14000256e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x14000277b
call fcn.1401009e8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x80], xmm0
mov qword [rbp - 0x70], r14
mov rcx, qword [rbp - 0x68]
test rcx, rcx
je 0x1400025c5
mov rdx, qword [rbp - 0x58]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025b4
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002781
call fcn.1401009e8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x68], xmm0
mov qword [rbp - 0x58], r14
mov rcx, qword [rbp - 0x50]
test rcx, rcx
je 0x140002607
mov rdx, qword [rbp - 0x40]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400025f6
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002670
call fcn.1401009e8
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x50], xmm0
mov qword [rbp - 0x40], r14
mov r9, qword [rbp + 0x1a8]
test r9, r9
je 0x140002643
mov rax, qword [r9]
mov rcx, r9
call qword [rax + 0x10]
mov r9, qword [rbp + 0x1a8]
test r9, r9
je 0x140002643
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.140100a80
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.140107a98
nop
lea rdx, str.Failed_to_open_algorithm_provider
lea rcx, [rsp + 0x68]
call fcn.140001430
lea rdx, [0x1401c8d30]
lea rcx, [rsp + 0x68]
call fcn.140101e78
nop
lea rdx, str.Failed_to_set_the_algorithm_chaining_mode
lea rcx, [rsp + 0x68]
call fcn.140001430
lea rdx, [0x1401c8d30]
lea rcx, [rsp + 0x68]
call fcn.140101e78
int3
lea rdx, str.Failed_to_get_algorithm_object_length
lea rcx, [rsp + 0x68]
call fcn.140001430
lea rdx, [0x1401c8d30]
lea rcx, [rsp + 0x68]
call fcn.140101e78
int3
lea rdx, str.Failed_to_get_algorithm_auth_tag_lengths
lea rcx, [rsp + 0x68]
call fcn.140001430
lea rdx, [0x1401c8d30]
lea rcx, [rsp + 0x68]
call fcn.140101e78
int3
lea rdx, str.Supplied_buffer_is_too_small_to_decrypt
lea rcx, [rsp + 0x68]
call fcn.140001430
lea rdx, [0x1401c8d30]
lea rcx, [rsp + 0x68]
call fcn.140101e78
nop
lea rdx, str.Failed_to_generate_symmetric_key_object_from_password
lea rcx, [rsp + 0x68]
call fcn.140001430
lea rdx, [0x1401c8d30]
lea rcx, [rsp + 0x68]
call fcn.140101e78
nop
lea rdx, str.Failed_to_decrypt_input_buffer
lea rcx, [rbp - 0x30]
call fcn.140001430
lea rdx, [0x1401c8d30]
lea rcx, [rbp - 0x30]
call fcn.140101e78
nop
call fcn.140107a98
nop
call fcn.140107a98
nop
call fcn.140107a98
nop
call fcn.140107a98
nop
call fcn.140107a98
int3