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

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xf0
mov rax, qword [0x140093010]
xor rax, rsp
mov qword [rbp + 7], rax
mov qword [rbp - 0x31], r8
mov rax, r9
mov qword [rbp - 0x39], rax
mov dword [rbp - 9], edx
mov qword [rbp - 1], rcx
test r8, r8
je 0x140002961
test rax, rax
je 0x140002961
mov qword [r11 - 0x10], rbx
xor ebx, ebx
mov qword [r11 - 0x18], rsi
mov esi, ebx
mov qword [r11 - 0x20], rdi
mov edi, ebx
mov qword [r11 - 0x28], r12
mov r12d, ebx
mov qword [r11 - 0x30], r13
mov r13d, ebx
mov qword [r11 - 0x38], r14
mov r14d, ebx
mov qword [r11 - 0x40], r15
mov r15d, ebx
mov qword [rbp - 0x11], rbx
mov qword [rbp - 0x19], rbx
mov qword [rbp - 0x41], rbx
mov dword [rbp - 0x1d], ebx
mov dword [rbp - 5], ebx
mov dword [rbp - 0x21], ebx
mov dword [rbp - 0x29], ebx
mov dword [rbp - 0x25], ebx
call qword [sym.imp.api_ms_win_core_sysinfo_l1_1_0.dll_GetTickCount]
mov ecx, eax
call fcn.140045e44
call fcn.140045e18
mov r8d, eax
and r8d, 0x800000ff
jge 0x140002445
dec r8d
or r8d, 0xffffff00
inc r8d
mov r9d, ebx
lea rcx, [0x1400a21c9]
nop
cmp r8b, 0xff
mov byte [rcx - 1], r8b
lea eax, [r8 + 1]
movzx edx, al
cmovae edx, ebx
mov byte [rcx], dl
cmp dl, 0xff
jae 0x14000246d
inc dl
jmp 0x14000246f
xor dl, dl
cmp dl, 0xff
mov byte [rcx + 1], dl
lea eax, [rdx + 1]
movzx r8d, al
cmovae r8d, ebx
mov byte [rcx + 2], r8b
cmp r8b, 0xff
jae 0x14000248f
inc r8b
jmp 0x140002492
xor r8b, r8b
cmp r8b, 0xff
mov byte [rcx + 3], r8b
lea eax, [r8 + 1]
movzx edx, al
cmovae edx, ebx
mov byte [rcx + 4], dl
cmp dl, 0xff
jae 0x1400024b0
inc dl
jmp 0x1400024b2
xor dl, dl
cmp dl, 0xff
mov byte [rcx + 5], dl
lea eax, [rdx + 1]
movzx r8d, al
cmovae r8d, ebx
mov byte [rcx + 6], r8b
cmp r8b, 0xff
jae 0x1400024d2
inc r8b
jmp 0x1400024d5
xor r8b, r8b
cmp r8b, 0xff
mov byte [rcx + 7], r8b
lea eax, [r8 + 1]
movzx edx, al
cmovae edx, ebx
mov byte [rcx + 8], dl
cmp dl, 0xff
jae 0x1400024f3
inc dl
jmp 0x1400024f5
xor dl, dl
cmp dl, 0xff
mov byte [rcx + 9], dl
lea eax, [rdx + 1]
movzx r8d, al
cmovae r8d, ebx
mov byte [rcx + 0xa], r8b
cmp r8b, 0xff
jae 0x140002515
inc r8b
jmp 0x140002518
xor r8b, r8b
cmp r8b, 0xff
mov byte [rcx + 0xb], r8b
lea eax, [r8 + 1]
movzx edx, al
cmovae edx, ebx
mov byte [rcx + 0xc], dl
cmp dl, 0xff
jae 0x140002536
inc dl
jmp 0x140002538
xor dl, dl
cmp dl, 0xff
mov byte [rcx + 0xd], dl
lea eax, [rdx + 1]
movzx r8d, al
cmovae r8d, ebx
mov byte [rcx + 0xe], r8b
cmp r8b, 0xff
jae 0x140002558
inc r8b
jmp 0x14000255b
xor r8b, r8b
add r9d, 0x10
add rcx, 0x10
cmp r9d, 0x10
jb 0x140002450
xor r9d, r9d
lea rdx, [0x140080500]
xor r8d, r8d
lea rcx, [rbp - 0x11]
call qword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
test eax, eax
js 0x1400028c0
mov rcx, qword [rbp - 0x11]
lea rax, [rbp - 5]
mov dword [rsp + 0x28], ebx
lea r8, [rbp - 0x1d]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea rdx, str.ObjectLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x1400028c0
mov eax, dword [rbp - 0x1d]
test eax, eax
je 0x1400028c0
mov ecx, eax
call fcn.14001f888
mov qword [rbp - 0x41], rax
test rax, rax
je 0x1400028c0
mov rcx, qword [rbp - 0x11]
lea rax, [rbp - 5]
mov dword [rsp + 0x28], ebx
lea r8, [rbp - 0x21]
mov r9d, 4
mov qword [rsp + 0x20], rax
lea rdx, str.BlockLength
call qword [sym.imp.bcrypt.dll_BCryptGetProperty]
test eax, eax
js 0x1400028c0
mov ecx, dword [rbp - 0x21]
lea eax, [rcx - 1]
cmp eax, 0xf
ja 0x1400028c0
call fcn.14001f888
mov qword [rbp - 0x49], rax
mov rdi, rax
test rax, rax
je 0x1400028c0
mov r8d, dword [rbp - 0x21]
test r8, r8
je 0x140002647
lea rdx, [0x1400805a0]
mov rcx, rax
call fcn.140043f90
mov rcx, qword [rbp - 0x11]
lea r8, str.ChainingModeCBC
mov r9d, 0x20
mov dword [rsp + 0x20], ebx
lea rdx, str.ChainingMode
call qword [sym.imp.bcrypt.dll_BCryptSetProperty]
test eax, eax
js 0x1400028c0
mov r9d, dword [rbp - 0x1d]
lea rax, [0x1400a21c8]
mov r8, qword [rbp - 0x41]
lea rdx, [rbp - 0x19]
mov rcx, qword [rbp - 0x11]
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x28], 0x10
mov qword [rsp + 0x20], rax
call qword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
test eax, eax
js 0x1400028c0
mov rcx, qword [rbp - 0x19]
lea rax, [rbp - 0x29]
mov dword [rsp + 0x30], ebx
lea r8, str.OpaqueKeyBlob
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], ebx
call qword [sym.imp.bcrypt.dll_BCryptExportKey]
test eax, eax
js 0x1400028c0
mov eax, dword [rbp - 0x29]
test eax, eax
je 0x1400028c0
mov ecx, eax
call fcn.14001f888
mov r13, rax
test rax, rax
je 0x1400028c0
mov rcx, qword [rbp - 0x19]
lea rax, [rbp - 0x29]
mov dword [rsp + 0x30], ebx
lea r8, str.OpaqueKeyBlob
mov qword [rsp + 0x28], rax
mov r9, r13
mov eax, dword [rbp - 0x29]
xor edx, edx
mov dword [rsp + 0x20], eax
call qword [sym.imp.bcrypt.dll_BCryptExportKey]
test eax, eax
js 0x1400028c0
mov r8d, dword [rbp - 9]
lea rax, [rbp - 0x25]
mov rdx, qword [rbp - 1]
xor r9d, r9d
mov rcx, qword [rbp - 0x19]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
mov eax, dword [rbp - 0x21]
mov dword [rsp + 0x38], ebx
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
js 0x1400028c0
mov eax, dword [rbp - 0x25]
test eax, eax
je 0x1400028c0
mov ecx, eax
call fcn.14001f888
mov r12, rax
test rax, rax
je 0x1400028c0
mov r8d, dword [rbp - 9]
lea rax, [rbp - 5]
mov rdx, qword [rbp - 1]
xor r9d, r9d
mov rcx, qword [rbp - 0x19]
mov dword [rsp + 0x48], 1
mov qword [rsp + 0x40], rax
mov eax, dword [rbp - 0x25]
mov dword [rsp + 0x38], eax
mov eax, dword [rbp - 0x21]
mov qword [rsp + 0x30], r12
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rdi
call qword [sym.imp.bcrypt.dll_BCryptEncrypt]
test eax, eax
js 0x1400028c0
mov eax, dword [rbp - 0x25]
mov edx, dword [rbp - 0x29]
add eax, 8
add edx, eax
mov rax, qword [rbp - 0x39]
mov ecx, edx
mov edi, edx
mov dword [rax], edx
call fcn.14001f888
mov rsi, rax
test rax, rax
je 0x1400028bc
mov r8d, edi
xor edx, edx
mov rcx, rax
call fcn.140043ce0
mov eax, dword [rbp - 0x25]
mov r8d, 8
mov ecx, dword [rbp - 0x29]
mov r9d, ebx
mov byte [rsi], cl
mov byte [rsi + 1], al
mov dword [rbp - 9], eax
mov dword [rbp - 1], ecx
movzx eax, byte [rbp]
mov byte [rsi + 2], al
movzx eax, byte [rbp - 8]
mov byte [rsi + 3], al
movzx eax, byte [rbp + 1]
mov byte [rsi + 4], al
movzx eax, byte [rbp - 7]
mov byte [rsi + 5], al
movzx eax, byte [rbp + 2]
mov byte [rsi + 6], al
movzx eax, byte [rbp - 6]
mov byte [rsi + 7], al
mov r10d, dword [rbp - 0x25]
cmp dword [rbp - 0x29], r10d
cmova r10d, dword [rbp - 0x29]
test r10d, r10d
je 0x140002892
cmp r9d, dword [rbp - 0x29]
jae 0x140002870
mov eax, r14d
mov ecx, r8d
inc r8d
inc r14d
movzx eax, byte [rax + r13]
mov byte [rcx + rsi], al
cmp r9d, dword [rbp - 0x25]
jae 0x14000288a
mov eax, r15d
mov ecx, r8d
inc r8d
inc r15d
movzx eax, byte [rax + r12]
mov byte [rcx + rsi], al
inc r9d
cmp r9d, r10d
jb 0x140002856
mov rcx, rdi
call fcn.14001f888
mov rcx, qword [rbp - 0x31]
mov qword [rcx], rax
test rax, rax
je 0x1400028bc
mov r9, rdi
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.1400022e0
mov ebx, 1
mov rdi, qword [rbp - 0x49]
mov rcx, qword [rbp - 0x19]
mov r15, qword [rsp + 0xb8]
mov r14, qword [rsp + 0xc0]
test rcx, rcx
je 0x1400028df
call qword [sym.imp.bcrypt.dll_BCryptDestroyKey]
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x1400028f0
xor edx, edx
call qword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
test rsi, rsi
je 0x1400028fd
mov rcx, rsi
call fcn.14001f854
mov rax, qword [rbp - 0x41]
mov rsi, qword [rsp + 0xe0]
test rax, rax
je 0x140002916
mov rcx, rax
call fcn.14001f854
test rdi, rdi
je 0x140002923
mov rcx, rdi
call fcn.14001f854
mov rdi, qword [rsp + 0xd8]
test r13, r13
je 0x140002938
mov rcx, r13
call fcn.14001f854
mov r13, qword [rsp + 0xc8]
test r12, r12
je 0x14000294d
mov rcx, r12
call fcn.14001f854
mov r12, qword [rsp + 0xd0]
mov eax, ebx
mov rbx, qword [rsp + 0xe8]
jmp 0x140002963
xor eax, eax
mov rcx, qword [rbp + 7]
xor rcx, rsp
call fcn.14001f4e0
add rsp, 0xf0
pop rbp
ret