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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0xc80]
sub rsp, 0xd80
mov qword [rbp - 0x28], 0xfffffffffffffffe
mov qword [rsp + 0xdc8], rbx
mov rax, qword [0x1801aed20]
xor rax, rsp
mov qword [rbp + 0xc70], rax
mov rbx, r9
mov r13, r8
mov r14, rcx
mov rax, qword [rbp + 0xce0]
mov qword [rbp - 0x48], rax
mov rax, qword [rbp + 0xcf0]
mov qword [rbp - 0x40], rax
xor edi, edi
mov qword [rbp - 0x10], rdi
mov qword [rbp - 0x18], rdi
mov dword [rbp - 0x20], edi
mov dword [rbp + 0x60], edi
mov r15d, edi
mov r12d, edi
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x70]
call fcn.1800cf2b0
or rsi, 0xffffffffffffffff
mov rax, rsi
nop dword [rax]
inc rax
cmp byte [rbx + rax], dil
jne 0x18008bd50
mov dword [rsp + 0x20], eax
mov r9, rbx
xor r8d, r8d
lea rdx, [rbp - 0x10]
lea rcx, [rbp - 0x18]
call fcn.18008ceb0
test al, al
jne 0x18008be66
lea r8, str.Failed_to_generate_symmetric_key
mov edx, 0x7ff
lea rcx, [rbp + 0x470]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x18008c34f
lea rax, [rsp + 0x78]
mov qword [rbp - 0x40], rax
lea rax, [rbp - 0x68]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rdi
mov word [rsp + 0x78], di
mov r8d, 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
mov r8d, send
lea rdx, str.cloudLicTSEncrypt
lea rcx, [rbp - 0x68]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x470]
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], 0xfd
lea r9, [rbp - 0x68]
lea r8, [rsp + 0x68]
mov edx, 3
call fcn.180019ae4
jmp 0x18008c34f
mov rdi, rsi
nop dword [rax]
inc rdi
cmp byte [r14 + rdi], r12b
jne 0x18008be70
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, edi
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov r12, rax
test rax, rax
jne 0x18008bf87
lea r8, str.Failed_to_allocate_memory
mov edx, 0x7ff
lea rcx, [rbp + 0x470]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x18008c34f
lea rax, [rbp - 0x68]
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 7
xor ebx, ebx
mov qword [rbp - 0x58], rbx
mov word [rbp - 0x68], bx
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], rbx
mov word [rsp + 0x78], bx
lea r8d, [r12 + 0x11]
lea rdx, str.cloudLicTSEncrypt
lea rcx, [rsp + 0x78]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x470]
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], 0x105
lea r9, [rsp + 0x78]
lea r8, [rsp + 0x58]
mov edx, 3
call fcn.180019ae4
jmp 0x18008c34f
inc rsi
cmp byte [r14 + rsi], r15b
jne 0x18008bf87
mov r8, rsi
mov rdx, r14
mov rcx, r12
call fcn.1800ceb80
xor edx, edx
lea r8d, [rdx + 0x58]
lea rcx, [rbp]
call fcn.1800cf2b0
mov dword [rbp], 0x58
mov dword [rbp + 4], 1
mov r14, qword [rbp - 0x48]
mov qword [rbp + 8], r14
mov esi, dword [rbp + 0xce8]
mov dword [rbp + 0x10], esi
mov qword [rbp + 0x28], r13
mov dword [rbp + 0x30], reloc.WS2_32.dll_recv
xor ecx, ecx
mov dword [rsp + 0x48], ecx
lea rax, [rbp - 0x20]
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x38], ecx
mov qword [rsp + 0x30], rcx
mov dword [rsp + 0x28], ecx
mov qword [rsp + 0x20], rcx
lea r9, [rbp]
mov r8d, edi
mov rdx, r12
mov rcx, qword [rbp - 0x18]
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
jns 0x18008c104
lea rdx, [rbp + 0x70]
mov ecx, eax
call fcn.18008cb80
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, str.Failed_to_encrypt_data__0x_x______s_
mov edx, 0x7ff
lea rcx, [rbp + 0x470]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x18008c34f
lea rax, [rbp - 0x68]
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 7
xor ebx, ebx
mov qword [rbp - 0x58], rbx
mov word [rbp - 0x68], bx
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], rbx
mov word [rsp + 0x78], bx
lea r8d, [rbx + 0x11]
lea rdx, str.cloudLicTSEncrypt
lea rcx, [rsp + 0x78]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x470]
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], 0x117
jmp 0x18008bf6e
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 r15, rax
test rax, rax
jne 0x18008c1ff
lea r8, str.Failed_to_allocate_memory
mov edx, 0x7ff
lea rcx, [rbp + 0x470]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x18008c34f
lea rax, [rbp - 0x68]
mov qword [rbp - 0x40], rax
lea rax, [rsp + 0x78]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 7
xor ebx, ebx
mov qword [rbp - 0x58], rbx
mov word [rbp - 0x68], bx
lea r8d, [r15 + 0x23]
lea rdx, str.GridCloudLicensingCryptoWindows.cpp
lea rcx, [rbp - 0x68]
call fcn.18001eca0
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rbx
mov word [rsp + 0x78], bx
lea r8d, [r15 + 0x11]
lea rdx, str.cloudLicTSEncrypt
lea rcx, [rsp + 0x78]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x470]
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], 0x11e
jmp 0x18008bf6e
mov qword [rbp + 8], r14
mov dword [rbp + 0x10], esi
mov qword [rbp + 0x28], r13
mov dword [rbp + 0x30], reloc.WS2_32.dll_recv
xor esi, esi
mov dword [rsp + 0x48], esi
lea rax, [rbp + 0x60]
mov qword [rsp + 0x40], rax
mov eax, dword [rbp - 0x20]
mov dword [rsp + 0x38], eax
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rsi
lea r9, [rbp]
mov r8d, edi
mov rdx, r12
mov rcx, qword [rbp - 0x18]
call sub.bcrypt.dll_BCryptEncrypt
mov ebx, eax
test eax, eax
jns 0x18008c33f
lea rdx, [rbp + 0x70]
mov ecx, eax
call fcn.18008cb80
lea rax, [rbp + 0x70]
mov qword [rsp + 0x20], rax
mov r9d, ebx
lea r8, str.Failed_to_encrypt_data__0x_x______s_
mov edx, 0x7ff
lea rcx, [rbp + 0x470]
call fcn.18000e038
call fcn.18003e228
cmp dword [rax + 0x20], 3
jl 0x18008c34f
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], rsi
mov word [rbp - 0x68], si
lea r8d, [rsi + 0x23]
lea rdx, str.GridCloudLicensingCryptoWindows.cpp
lea rcx, [rbp - 0x68]
call fcn.18001eca0
nop
mov qword [rbp - 0x70], 7
mov qword [rbp - 0x78], rsi
mov word [rsp + 0x78], si
lea r8d, [rsi + 0x11]
lea rdx, str.cloudLicTSEncrypt
lea rcx, [rsp + 0x78]
call fcn.18001eca0
nop
lea rax, [rsp + 0x50]
mov qword [rbp - 0x30], rax
lea rax, [rbp + 0x470]
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], 0x12c
jmp 0x18008bf6e
mov r8d, dword [rbp + 0x60]
mov rdx, r15
mov rcx, qword [rbp - 0x40]
call fcn.1800ceb80
mov rcx, qword [rbp - 0x10]
test rcx, rcx
je 0x18008c35f
xor edx, edx
call sub.bcrypt.dll_BCryptCloseAlgorithmProvider
mov rcx, qword [rbp - 0x18]
test rcx, rcx
je 0x18008c36d
call sub.bcrypt.dll_BCryptDestroyKey
test r12, r12
je 0x18008c386
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r12
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
test r15, r15
je 0x18008c39f
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, r15
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [rbp + 0x60]
mov rcx, qword [rbp + 0xc70]
xor rcx, rsp
call fcn.1800a6240
mov rbx, qword [rsp + 0xdc8]
add rsp, 0xd80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret