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

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x1f8
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x168], 0xfffffffffffffffe
mov qword [rbp + 0x38], rcx
mov rax, rcx
mov qword [rbp + 0x40], rax
mov rax, qword [rbp + 0x1c0]
mov rax, rcx
mov qword [rbp + 0x160], rax
mov qword [rbp + 0x158], r9
mov qword [rbp + 0x150], r8
mov qword [rbp + 0x148], rdx
mov qword [rbp + 0x140], 0
mov qword [rbp + 0x138], 0
mov dword [rbp + 0x134], 0
mov byte [rbp + 0x133], 0
call fcn.140030680
lea rcx, [rbp + 0x140]
lea rdx, [0x1400919be]
xor eax, eax
mov r8d, eax
xor r9d, r9d
call sub.bcrypt.dll_BCryptOpenAlgorithmProvider
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 0
jge 0x140053c65
lea rdx, [0x140090d5d]
lea rcx, [rbp + 0x118]
mov qword [rbp + 0x30], rcx
call fcn.140022380
mov rcx, qword [rbp + 0x30]
lea rdx, [0x140097ab0]
call fcn.14005fc0c
jmp 0x140054018
mov rcx, qword [rbp + 0x140]
lea rdx, str.ChainingMode
lea r8, str.ChainingModeCBC
mov r9d, 0x20
xor eax, eax
mov dword [rsp + 0x20], 0
call sub.bcrypt.dll_BCryptSetProperty
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 0
jge 0x140053cce
lea rdx, [0x140090d5d]
lea rcx, [rbp + 0x100]
mov qword [rbp + 0x28], rcx
call fcn.140022380
mov rcx, qword [rbp + 0x28]
lea rdx, [0x140097ab0]
call fcn.14005fc0c
jmp 0x140054018
lea r8, [rbp + 0xfc]
mov rcx, qword [rbp + 0x140]
lea rdx, str.ObjectLength
mov r9d, 4
lea rax, [rbp + 0xf8]
xor r10d, r10d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
call sub.bcrypt.dll_BCryptGetProperty
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 0
jge 0x140053d44
lea rdx, [0x140090d5d]
lea rcx, [rbp + 0xe0]
mov qword [rbp + 0x20], rcx
call fcn.140022380
mov rcx, qword [rbp + 0x20]
lea rdx, [0x140097ab0]
call fcn.14005fc0c
jmp 0x140054018
lea rcx, [rbp + 0xc0]
mov qword [rbp + 0x18], rcx
call fcn.140002930
mov r8, qword [rbp + 0x18]
mov eax, dword [rbp + 0xfc]
mov edx, eax
lea rcx, [rbp + 0xc8]
call fcn.1400528d0
jmp 0x140053d71
mov rax, qword [rbp + 0x1c0]
mov dword [rbp + 0x14], eax
mov rax, qword [rbp + 0x158]
mov qword [rbp + 8], rax
mov eax, dword [rbp + 0xfc]
mov dword [rbp + 4], eax
lea rcx, [rbp + 0xc8]
call fcn.14004d0b0
mov r9d, dword [rbp + 4]
mov r10, qword [rbp + 8]
mov r8, rax
mov eax, dword [rbp + 0x14]
mov rcx, qword [rbp + 0x140]
lea rdx, [rbp + 0x138]
xor r11d, r11d
mov qword [rsp + 0x20], r10
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x30], 0
call sub.bcrypt.dll_BCryptGenerateSymmetricKey
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 0
jge 0x140053e0f
lea rdx, [0x140090d5d]
lea rcx, [rbp + 0xa8]
mov qword [rbp - 8], rcx
call fcn.140022380
mov rcx, qword [rbp - 8]
lea rdx, [0x140097ab0]
call fcn.14005fc0c
jmp 0x140054018
lea r8, [rbp + 0xa4]
mov rcx, qword [rbp + 0x140]
lea rdx, str.BlockLength
mov r9d, 4
lea rax, [rbp + 0xf8]
xor r10d, r10d
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x28], 0
call sub.bcrypt.dll_BCryptGetProperty
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 0
jge 0x140053e85
lea rdx, [0x140090d5d]
lea rcx, [rbp + 0x88]
mov qword [rbp - 0x10], rcx
call fcn.140022380
mov rcx, qword [rbp - 0x10]
lea rdx, [0x140097ab0]
call fcn.14005fc0c
jmp 0x140054018
lea rcx, [rbp + 0x68]
mov qword [rbp - 0x18], rcx
call fcn.140002930
mov r9, qword [rbp - 0x18]
mov rdx, qword [rbp + 0x158]
mov eax, dword [rbp + 0xa4]
mov r8, rdx
add r8, rax
lea rcx, [rbp + 0x70]
call fcn.140053a90
jmp 0x140053eb7
mov rcx, qword [rbp + 0x38]
mov rdx, qword [rbp + 0x150]
call fcn.140053b30
jmp 0x140053ecc
mov rcx, qword [rbp + 0x38]
call fcn.140030730
mov rcx, qword [rbp + 0x38]
mov dword [rbp - 0x1c], eax
call fcn.14004d0b0
mov qword [rbp - 0x28], rax
lea rcx, [rbp + 0x70]
call fcn.140030730
mov esi, eax
lea rcx, [rbp + 0x70]
call fcn.14004d0b0
mov r11, qword [rbp - 0x28]
mov r10d, dword [rbp - 0x1c]
mov rdi, rax
mov rax, qword [rbp + 0x150]
mov r8d, eax
mov rdx, qword [rbp + 0x148]
mov rcx, qword [rbp + 0x138]
xor eax, eax
mov r9d, eax
lea rax, [rbp + 0x64]
xor ebx, ebx
mov qword [rsp + 0x20], rdi
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x30], r11
mov dword [rsp + 0x38], r10d
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], 0
call sub.bcrypt.dll_BCryptDecrypt
mov dword [rbp + 0x134], eax
cmp dword [rbp + 0x134], 0
jge 0x140053f88
lea rdx, [0x140090d5d]
lea rcx, [rbp + 0x48]
mov qword [rbp - 0x30], rcx
call fcn.140022380
mov rcx, qword [rbp - 0x30]
lea rdx, [0x140097ab0]
call fcn.14005fc0c
jmp 0x140054018
mov rcx, qword [rbp + 0x38]
mov eax, dword [rbp + 0x64]
mov edx, eax
call fcn.140053b30
jmp 0x140053f9b
lea rcx, [rbp + 0x70]
call fcn.1400306e0
lea rcx, [rbp + 0xc8]
call fcn.1400306e0
cmp qword [rbp + 0x138], 0
jne 0x140053fc3
jmp 0x140053fcf
mov rcx, qword [rbp + 0x138]
call sub.bcrypt.dll_BCryptDestroyKey
cmp qword [rbp + 0x140], 0
je 0x140053feb
mov rcx, qword [rbp + 0x140]
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov byte [rbp + 0x133], 1
test byte [rbp + 0x133], 1
jne 0x140054008
mov rcx, qword [rbp + 0x38]
call fcn.1400306e0
mov rax, qword [rbp + 0x40]
add rsp, 0x1f8
pop rbx
pop rdi
pop rsi
pop rbp
ret
int3