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

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10]
sub rsp, 0x110
mov rax, qword [0x180056040]
xor rax, rsp
mov qword [rbp + 8], rax
mov r15, r8
mov r12, rdx
mov qword [rsp + 0x78], rdx
mov qword [rbp - 0x68], r8
xor r13d, r13d
mov dword [rsp + 0x50], r13d
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
mov qword [rdx + 0x10], r13
mov qword [rdx + 0x18], 0xf
mov byte [rdx], r13b
mov dword [rsp + 0x50], 1
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x28], xmm1
mov qword [rbp - 0x18], r13
movdqu xmmword [rbp - 0x40], xmm1
mov qword [rbp - 0x30], r13
movdqu xmmword [rbp - 0x58], xmm1
mov qword [rbp - 0x48], r13
mov rdi, qword [r8]
mov edx, 0x20
lea rcx, [rbp - 0x28]
call fcn.18000fb30
mov rbx, qword [rbp - 0x28]
mov r8d, 0x20
mov rdx, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + 0x20]
mov qword [rbp - 0x20], rax
mov r14, qword [r15]
add r14, 0x20
mov rax, qword [rbp - 0x30]
mov rcx, qword [rbp - 0x40]
sub rax, rcx
cmp rax, 0x10
jae 0x180007239
mov edi, 0x10
mov edx, edi
lea rcx, [rbp - 0x40]
call fcn.18000fb30
mov rbx, qword [rbp - 0x40]
mov r8d, edi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
jmp 0x180007280
mov rsi, qword [rbp - 0x38]
sub rsi, rcx
mov rdx, r14
cmp rsi, 0x10
jae 0x180007271
mov r8, rsi
call sub.VCRUNTIME140.dll_memmove
lea rdx, [rsi + r14]
mov rbx, qword [rbp - 0x38]
mov edi, 0x10
sub rdi, rsi
mov r8, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
add rbx, rdi
jmp 0x180007280
lea rbx, [rcx + 0x10]
mov r8d, 0x10
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x38], rbx
mov rcx, qword [rbp - 0x20]
sub rcx, qword [rbp - 0x28]
sub rbx, qword [rbp - 0x40]
mov r14, qword [r15]
add r14, rbx
add r14, rcx
mov rdi, qword [r15 + 8]
sub rdi, r14
mov rax, qword [rbp - 0x48]
mov rcx, qword [rbp - 0x58]
sub rax, rcx
cmp rdi, rax
jbe 0x1800072d8
mov rdx, rdi
lea rcx, [rbp - 0x58]
call fcn.18000fb30
mov rbx, qword [rbp - 0x58]
mov r8, rdi
mov rdx, r14
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rbx + rdi]
mov qword [rbp - 0x50], rax
jmp 0x18000731f
mov rsi, qword [rbp - 0x50]
sub rsi, rcx
mov rdx, r14
cmp rdi, rsi
jbe 0x18000730f
mov r8, rsi
call sub.VCRUNTIME140.dll_memmove
lea rdx, [rsi + r14]
mov rbx, qword [rbp - 0x50]
sub rdi, rsi
mov r8, rdi
mov rcx, rbx
call sub.VCRUNTIME140.dll_memmove
lea rax, [rdi + rbx]
mov qword [rbp - 0x50], rax
jmp 0x18000731f
lea rbx, [rcx + rdi]
mov r8, rdi
call sub.VCRUNTIME140.dll_memmove
mov qword [rbp - 0x50], rbx
mov qword [rbp - 0x78], r13
mov qword [rbp - 0x70], r13
mov dword [rbp - 0x60], r13d
mov dword [rbp - 0x80], r13d
mov r14, r13
mov rdi, r13
xorps xmm1, xmm1
movdqu xmmword [rbp - 0x10], xmm1
mov qword [rbp], r13
xor r9d, r9d
xor r8d, r8d
lea rdx, [0x180049a28]
lea rcx, [rbp - 0x78]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x1800074c2
mov dword [rsp + 0x28], r13d
lea rax, [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9d, 4
lea r8, [rbp - 0x60]
lea rdx, str.ObjectLength
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x1800074c2
mov ebx, dword [rbp - 0x60]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8d, ebx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r14, rax
test rax, rax
je 0x1800074c2
mov ecx, dword [rbp - 0x20]
mov rax, qword [rbp - 0x28]
sub ecx, eax
mov dword [rsp + 0x30], r13d
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
mov r9d, dword [rbp - 0x60]
mov r8, r14
lea rdx, [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
js 0x1800074c2
mov esi, dword [rbp - 0x50]
sub esi, dword [rbp - 0x58]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, esi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rdi, rax
test rax, rax
je 0x1800074c2
mov ecx, dword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
sub ecx, eax
mov r8d, dword [rbp - 0x50]
mov rdx, qword [rbp - 0x58]
sub r8d, edx
mov dword [rsp + 0x48], r13d
lea r9, [rbp - 0x80]
mov qword [rsp + 0x40], r9
mov dword [rsp + 0x38], esi
mov qword [rsp + 0x30], rdi
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rax
xor r9d, r9d
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.bcrypt.dll_BCryptDecrypt]
test eax, eax
js 0x1800074c2
mov r8d, dword [rbp - 0x80]
xorps xmm0, xmm0
movups xmmword [rsp + 0x58], xmm0
xorps xmm1, xmm1
movdqu xmmword [rsp + 0x68], xmm1
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.180005f50
lea rdx, [rsp + 0x58]
mov rcx, r12
call fcn.180007d00
mov rdx, qword [rsp + 0x70]
cmp rdx, 0xf
jbe 0x1800074c2
inc rdx
mov rcx, qword [rsp + 0x58]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800074bd
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800074bd
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180027d5c
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rdi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r14
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor edx, edx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
nop
mov rcx, qword [rbp - 0x58]
test rcx, rcx
je 0x18000754a
mov rdx, qword [rbp - 0x48]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007539
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180007539
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180027d5c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x58], xmm0
mov qword [rbp - 0x48], r13
mov rcx, qword [rbp - 0x40]
test rcx, rcx
je 0x180007593
mov rdx, qword [rbp - 0x30]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180007582
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180007582
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180027d5c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x40], xmm0
mov qword [rbp - 0x30], r13
mov rcx, qword [rbp - 0x28]
test rcx, rcx
je 0x1800075dc
mov rdx, qword [rbp - 0x18]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800075cb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800075cb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180027d5c
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x28], xmm0
mov qword [rbp - 0x18], r13
mov rcx, qword [r15]
test rcx, rcx
je 0x18000761c
mov rdx, qword [r15 + 0x10]
sub rdx, rcx
cmp rdx, 0x1000
jb 0x18000760c
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x180007646
mov rcx, r8
call fcn.180027d5c
mov qword [r15], r13
mov qword [r15 + 8], r13
mov qword [r15 + 0x10], r13
mov rax, r12
mov rcx, qword [rbp + 8]
xor rcx, rsp
call fcn.180027920
mov rbx, qword [rsp + 0x150]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3