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

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc78]
sub rsp, 0xd78
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0xc60], rax
mov rdi, r9
mov r12, r8
mov r14d, edx
mov rsi, rcx
mov r13, qword [rbp + 0xce0]
mov r15, qword [rbp + 0xcf0]
xor eax, eax
mov qword [rbp - 0x10], rax
mov qword [rbp - 0x18], rax
mov dword [rbp - 0x20], eax
mov ebx, eax
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x60]
call fcn.1800cf2b0
or rax, 0xffffffffffffffff
inc rax
cmp byte [rdi + rax], bl
jne 0x18008b793
mov dword [rsp + 0x20], eax
mov r9, rdi
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.18008ceb0
test al, al
jne 0x18008b8a4
lea r8, str.Failed_to_generate_symmetric_key
mov edx, 0x7ff
lea rcx, [rbp + 0x460]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x18008bc5e
lea rax, [rsp + 0x78]
mov qword [rbp - 0x48], rax
lea rax, [rbp - 0x68]
mov qword [rbp - 0x40], rax
mov qword [rbp - 0x70], 7
xor edi, edi
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
lea r8d, [rdi + 0x23]
lea rdx, str.GridCloudLicensingCryptoWindows.cpp
lea rcx, [rsp + 0x78]
call fcn.18001eca0
nop
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], rdi
mov word [rbp - 0x68], di
lea r8d, [rdi + 0x11]
lea rdx, str.cloudLicTSDecrypt
lea rcx, [rbp - 0x68]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x460]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x60], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rsp + 0x68], rax
lea rax, [rsp + 0x58]
mov qword [rsp + 0x70], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rsp + 0x78]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x15c
lea r9, [rbp - 0x68]
lea r8, [rsp + 0x68]
lea edx, [rdi + 3]
call fcn.180019ae4
jmp 0x18008bc5e
xor edx, edx
lea r8d, [rdx + 0x58]
lea rcx, [rbp]
call fcn.1800cf2b0
mov dword [rbp], 0x58
mov dword [rbp + 4], 1
mov qword [rbp + 8], r13
mov eax, dword [rbp + 0xce8]
mov dword [rbp + 0x10], eax
mov qword [rbp + 0x28], r12
mov dword [rbp + 0x30], reloc.WS2_32.dll_recv
xor r12d, r12d
mov dword [rsp + 0x48], r12d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], r12d
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp]
mov r8d, r14d
mov rdx, rsi
mov rcx, qword [rbp - 0x18]
call sub.bcrypt.dll_BCryptDecrypt
mov edi, eax
test eax, eax
jns 0x18008ba20
lea rdx, [rbp + 0x60]
mov ecx, eax
call fcn.18008cb80
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, str.Failed_to_decrypt_data__0x_x______s_
mov edx, 0x7ff
lea rcx, [rbp + 0x460]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x18008bc5e
lea rax, [rbp - 0x68]
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r12
mov word [rbp - 0x68], r12w
lea r8d, [r12 + 0x23]
lea rdx, str.GridCloudLicensingCryptoWindows.cpp
lea rcx, [rbp - 0x68]
call fcn.18001eca0
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
lea r8d, [r12 + 0x11]
lea rdx, str.cloudLicTSDecrypt
lea rcx, [rsp + 0x78]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x460]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x70], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x16c
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x58]
mov edx, 3
call fcn.180019ae4
jmp 0x18008bc5e
mov ebx, dword [rbp - 0x20]
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, ebx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x18008bb1b
lea r8, str.Failed_to_allocate_memory
mov edx, 0x7ff
lea rcx, [rbp + 0x460]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x18008bc5e
lea rax, [rbp - 0x68]
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r12
mov word [rbp - 0x68], r12w
lea r8d, [rbx + 0x23]
lea rdx, str.GridCloudLicensingCryptoWindows.cpp
lea rcx, [rbp - 0x68]
call fcn.18001eca0
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
lea r8d, [rbx + 0x11]
lea rdx, str.cloudLicTSDecrypt
lea rcx, [rsp + 0x78]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x460]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x70], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x173
jmp 0x18008ba07
mov dword [rsp + 0x48], r12d
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov eax, dword [rbp - 0x20]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp]
mov r8d, r14d
mov rdx, rsi
mov rcx, qword [rbp - 0x18]
call sub.bcrypt.dll_BCryptDecrypt
mov edi, eax
test eax, eax
jns 0x18008bc4f
lea rdx, [rbp + 0x60]
mov ecx, eax
call fcn.18008cb80
lea rax, [rbp + 0x60]
mov qword [rsp + 0x20], rax
mov r9d, edi
lea r8, str.Failed_to_decrypt_data__0x_x______s_
mov edx, 0x7ff
lea rcx, [rbp + 0x460]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x18008bc5e
lea rax, [rbp - 0x68]
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 7
mov qword [rbp - 0x58], r12
mov word [rbp - 0x68], r12w
mov r8d, 0x23
lea rdx, str.GridCloudLicensingCryptoWindows.cpp
lea rcx, [rbp - 0x68]
call fcn.18001eca0
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], r12
mov word [rsp + 0x78], r12w
mov r8d, send
lea rdx, str.cloudLicTSDecrypt
lea rcx, [rsp + 0x78]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x460]
mov qword [rsp + 0x68], rax
lea rax, [rbp - 0x38]
mov qword [rsp + 0x70], rax
lea rax, vtable.Nvidia::Logging::ChainLoggable_class_Nvidia::Logging::Chain_char_const_____2048____ptr64__class_Nvidia::Logging::Chain_struct_Nvidia::Logging::NullType__struct_Nvidia::Logging::NullType___.0
mov qword [rsp + 0x58], rax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x60], rax
call fcn.18003e228
mov rcx, rax
lea rax, [rbp - 0x68]
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x20], 0x17c
jmp 0x18008ba07
mov r8d, dword [rbp - 0x20]
mov rdx, rbx
mov rcx, r15
call fcn.1800ceb80
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18008bc6e
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
test rbx, rbx
je 0x18008bc87
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18008bc95
call sub.bcrypt.dll_BCryptDestroyKey
mov eax, dword [rbp - 0x20]
mov rcx, qword [rbp + 0xc60]
xor rcx, rsp
call fcn.1800a6240
add rsp, 0xd78
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
pop rbp
ret