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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
xor eax, eax
mov ebx, edx
push edi
mov edi, ecx
mov dword [ebp - 0x10], eax
xor edx, edx
mov dword [ebp - 4], edi
mov esi, eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 0x14], eax
call fcn.100065f3
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b0c6
test byte [eax + 0x1c], 2
je 0x1002b0c6
cmp byte [eax + 0x19], 5
jb 0x1002b0c6
push ecx
push dword [eax + 0x14]
mov edx, 0x10004cec
mov ecx, 0x117
push dword [eax + 0x10]
call fcn.10006732
test edi, edi
jne 0x1002b11b
push 2
pop edx
call fcn.100065f3
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b513
test byte [eax + 0x1c], 1
je 0x1002b513
cmp byte [eax + 0x19], 2
jb 0x1002b513
push 0x10001a64
push ecx
mov ecx, 0x118
push dword [eax + 0x14]
mov edx, 0x10004cec
push dword [eax + 0x10]
call fcn.100067d2
jmp 0x1002b513
test ebx, ebx
jne 0x1002b15d
push 2
pop edx
call fcn.100065f3
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b513
test byte [eax + 0x1c], 1
je 0x1002b513
cmp byte [eax + 0x19], 2
jb 0x1002b513
push 0x10002da8
push ecx
mov ecx, 0x119
jmp 0x1002b106
cmp dword [ebp + 8], esi
jne 0x1002b1a3
push 2
pop edx
call fcn.100065f3
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b513
test byte [eax + 0x1c], 1
je 0x1002b513
cmp byte [eax + 0x19], 2
jb 0x1002b513
push 0x10002dbc
push ecx
mov ecx, 0x11a
jmp 0x1002b106
cmp dword [ebp + 0xc], esi
jne 0x1002b1e9
push 2
pop edx
call fcn.100065f3
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b513
test byte [eax + 0x1c], 1
je 0x1002b513
cmp byte [eax + 0x19], 2
jb 0x1002b513
push 0x10004bd0
push ecx
mov ecx, 0x11b
jmp 0x1002b106
cmp dword [ebp + 0x10], esi
jne 0x1002b22f
push 2
pop edx
call fcn.100065f3
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b513
test byte [eax + 0x1c], 1
je 0x1002b513
cmp byte [eax + 0x19], 2
jb 0x1002b513
push 0x10004bec
push ecx
mov ecx, 0x11c
jmp 0x1002b106
push 0
push 0x10004c08
push 0x10004c44
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov edi, eax
test edi, edi
jns 0x1002b29e
push 2
pop edx
call fcn.100065f3
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b513
test byte [ecx + 0x1c], 1
je 0x1002b513
cmp byte [ecx + 0x19], 2
jb 0x1002b513
push eax
push edi
push 0x10004c50
push ecx
push ecx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x11d
call fcn.100248c9
jmp 0x1002b513
push 0
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push ebx
push 0
push 0
push eax
push dword [ebp - 0x10]
call dword [sym.imp.bcrypt.dll_BCryptGenerateSymmetricKey]
mov edi, eax
mov ebx, 0xc000000d
cmp edi, ebx
jne 0x1002b307
push 2
pop edx
call fcn.100065f3
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b513
test byte [eax + 0x1c], 1
je 0x1002b513
cmp byte [eax + 0x19], 2
jb 0x1002b513
push esi
push ebx
push 0x10004c94
push ecx
push ecx
push dword [eax + 0x14]
mov ecx, 0x11e
push dword [eax + 0x10]
jmp 0x1002b294
test edi, edi
jns 0x1002b359
push 2
pop edx
call fcn.100065f3
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b513
test byte [ecx + 0x1c], 1
je 0x1002b513
cmp byte [ecx + 0x19], 2
jb 0x1002b513
push eax
push edi
push 0x10004c94
push ecx
push ecx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x11f
jmp 0x1002b294
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x10004cb0
push dword [ebp - 0xc]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov edi, eax
test edi, edi
jns 0x1002b3c7
push 2
pop edx
call fcn.100065f3
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b513
test byte [ecx + 0x1c], 1
je 0x1002b513
cmp byte [ecx + 0x19], 2
jb 0x1002b513
push eax
push edi
push 0x10004cc8
push ecx
push ecx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x120
jmp 0x1002b294
cmp dword [ebp - 0x14], 4
je 0x1002b423
push 2
pop edx
call fcn.100065f3
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b513
test byte [ecx + 0x1c], 1
je 0x1002b513
cmp byte [ecx + 0x19], 2
jb 0x1002b513
push eax
push 0x10004c6c
push ecx
push dword [ecx + 0x14]
mov edx, 0x10004cec
push dword [ecx + 0x10]
mov ecx, 0x121
call fcn.10006850
jmp 0x1002b513
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.10024958
mov edi, eax
test edi, edi
jne 0x1002b47e
push 2
pop edx
call fcn.100065f3
push 8
pop esi
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b513
test byte [eax + 0x1c], 1
je 0x1002b513
cmp byte [eax + 0x19], 2
jb 0x1002b513
push ecx
push dword [eax + 0x14]
mov edx, 0x10004cec
mov ecx, 0x122
push dword [eax + 0x10]
call fcn.10006732
jmp 0x1002b513
push dword [ebp - 8]
push 0
push edi
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x14]
push 0
push eax
push dword [ebp - 8]
push edi
push 0
push 0
push 0
push dword [ebp - 8]
push edi
push dword [ebp - 0xc]
call dword [sym.imp.bcrypt.dll_BCryptEncrypt]
mov ebx, eax
test ebx, ebx
jns 0x1002b57f
push 2
pop edx
call fcn.100065f3
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b4f5
test byte [ecx + 0x1c], 1
je 0x1002b4f5
cmp byte [ecx + 0x19], 2
jb 0x1002b4f5
push eax
push ebx
push 0x10004cdc
push ecx
push ecx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x123
call fcn.100248c9
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, edi
test eax, eax
je 0x1002b50a
mov byte [ecx], 0
inc ecx
sub eax, 1
jne 0x1002b501
mov edx, edi
mov ecx, ebx
call fcn.1002498e
cmp dword [ebp - 0xc], 0
je 0x1002b526
push dword [ebp - 0xc]
call dword [sym.imp.bcrypt.dll_BCryptDestroyKey]
and dword [ebp - 0xc], 0
cmp dword [ebp - 0x10], 0
je 0x1002b53b
push 0
push dword [ebp - 0x10]
call dword [sym.imp.bcrypt.dll_BCryptCloseAlgorithmProvider]
and dword [ebp - 0x10], 0
xor edx, edx
inc edx
call fcn.100065f3
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b574
test byte [ecx + 0x1c], 2
je 0x1002b574
cmp byte [ecx + 0x19], 5
jb 0x1002b574
push esi
push ecx
push dword [ecx + 0x14]
mov edx, 0x10004cec
push dword [ecx + 0x10]
mov ecx, 0x126
call fcn.1000677f
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebp - 0x14], 3
jae 0x1002b5db
push 2
pop edx
call fcn.100065f3
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b4f5
test byte [ecx + 0x1c], 1
je 0x1002b4f5
cmp byte [ecx + 0x19], 2
jb 0x1002b4f5
push eax
push 0x10004c6c
push ecx
push dword [ecx + 0x14]
mov edx, 0x10004cec
push dword [ecx + 0x10]
mov ecx, 0x124
call fcn.10006850
jmp 0x1002b4f5
mov ebx, dword [ebp - 4]
mov ecx, ebx
push 3
pop edx
call fcn.10024958
mov ecx, eax
test ecx, ecx
jne 0x1002b638
push 2
pop edx
call fcn.100065f3
push 8
pop esi
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b4f8
test byte [eax + 0x1c], 1
je 0x1002b4f8
cmp byte [eax + 0x19], 2
jb 0x1002b4f8
push ecx
push dword [eax + 0x14]
mov edx, 0x10004cec
mov ecx, 0x125
push dword [eax + 0x10]
call fcn.10006732
jmp 0x1002b4f8
mov ax, word [edi]
mov word [ecx], ax
mov al, byte [edi + 2]
mov byte [ecx + 2], al
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov eax, dword [ebp + 0x10]
mov dword [eax], 3
jmp 0x1002b4f8