Function at 0x1002b07c
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.10006613
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b0d3
test byte [eax + 0x1c], 2
je 0x1002b0d3
cmp byte [eax + 0x19], 5
jb 0x1002b0d3
push ecx
push dword [eax + 0x14]
mov edx, 0x10004cec
mov ecx, 0x117
push dword [eax + 0x10]
call fcn.10006750
test edi, edi
jne 0x1002b128
push 2
pop edx
call fcn.10006613
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b520
test byte [eax + 0x1c], 1
je 0x1002b520
cmp byte [eax + 0x19], 2
jb 0x1002b520
push 0x10001a64
push ecx
mov ecx, 0x118
push dword [eax + 0x14]
mov edx, 0x10004cec
push dword [eax + 0x10]
call fcn.100067f0
jmp 0x1002b520
test ebx, ebx
jne 0x1002b16a
push 2
pop edx
call fcn.10006613
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b520
test byte [eax + 0x1c], 1
je 0x1002b520
cmp byte [eax + 0x19], 2
jb 0x1002b520
push 0x10002da8
push ecx
mov ecx, 0x119
jmp 0x1002b113
cmp dword [ebp + 8], esi
jne 0x1002b1b0
push 2
pop edx
call fcn.10006613
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b520
test byte [eax + 0x1c], 1
je 0x1002b520
cmp byte [eax + 0x19], 2
jb 0x1002b520
push 0x10002dbc
push ecx
mov ecx, 0x11a
jmp 0x1002b113
cmp dword [ebp + 0xc], esi
jne 0x1002b1f6
push 2
pop edx
call fcn.10006613
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b520
test byte [eax + 0x1c], 1
je 0x1002b520
cmp byte [eax + 0x19], 2
jb 0x1002b520
push 0x10004bd0
push ecx
mov ecx, 0x11b
jmp 0x1002b113
cmp dword [ebp + 0x10], esi
jne 0x1002b23c
push 2
pop edx
call fcn.10006613
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b520
test byte [eax + 0x1c], 1
je 0x1002b520
cmp byte [eax + 0x19], 2
jb 0x1002b520
push 0x10004bec
push ecx
mov ecx, 0x11c
jmp 0x1002b113
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 0x1002b2ab
push 2
pop edx
call fcn.10006613
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b520
test byte [ecx + 0x1c], 1
je 0x1002b520
cmp byte [ecx + 0x19], 2
jb 0x1002b520
push eax
push edi
push 0x10004c50
push ecx
push ecx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x11d
call fcn.10024999
jmp 0x1002b520
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 0x1002b314
push 2
pop edx
call fcn.10006613
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b520
test byte [eax + 0x1c], 1
je 0x1002b520
cmp byte [eax + 0x19], 2
jb 0x1002b520
push esi
push ebx
push 0x10004c94
push ecx
push ecx
push dword [eax + 0x14]
mov ecx, 0x11e
push dword [eax + 0x10]
jmp 0x1002b2a1
test edi, edi
jns 0x1002b366
push 2
pop edx
call fcn.10006613
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b520
test byte [ecx + 0x1c], 1
je 0x1002b520
cmp byte [ecx + 0x19], 2
jb 0x1002b520
push eax
push edi
push 0x10004c94
push ecx
push ecx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x11f
jmp 0x1002b2a1
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 0x1002b3d4
push 2
pop edx
call fcn.10006613
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b520
test byte [ecx + 0x1c], 1
je 0x1002b520
cmp byte [ecx + 0x19], 2
jb 0x1002b520
push eax
push edi
push 0x10004cc8
push ecx
push ecx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x120
jmp 0x1002b2a1
cmp dword [ebp - 0x14], 4
je 0x1002b430
push 2
pop edx
call fcn.10006613
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b520
test byte [ecx + 0x1c], 1
je 0x1002b520
cmp byte [ecx + 0x19], 2
jb 0x1002b520
push eax
push 0x10004c6c
push ecx
push dword [ecx + 0x14]
mov edx, 0x10004cec
push dword [ecx + 0x10]
mov ecx, 0x121
call fcn.1000686c
jmp 0x1002b520
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.10024a26
mov edi, eax
test edi, edi
jne 0x1002b48b
push 2
pop edx
call fcn.10006613
push 8
pop esi
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b520
test byte [eax + 0x1c], 1
je 0x1002b520
cmp byte [eax + 0x19], 2
jb 0x1002b520
push ecx
push dword [eax + 0x14]
mov edx, 0x10004cec
mov ecx, 0x122
push dword [eax + 0x10]
call fcn.10006750
jmp 0x1002b520
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 0x1002b58a
push 2
pop edx
call fcn.10006613
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b502
test byte [ecx + 0x1c], 1
je 0x1002b502
cmp byte [ecx + 0x19], 2
jb 0x1002b502
push eax
push ebx
push 0x10004cdc
push ecx
push ecx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x123
call fcn.10024999
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, edi
test eax, eax
je 0x1002b517
mov byte [ecx], 0
inc ecx
sub eax, 1
jne 0x1002b50e
mov edx, edi
mov ecx, ebx
call fcn.10024a3e
cmp dword [ebp - 0xc], 0
je 0x1002b533
push dword [ebp - 0xc]
call dword [sym.imp.bcrypt.dll_BCryptDestroyKey]
and dword [ebp - 0xc], 0
cmp dword [ebp - 0x10], 0
je 0x1002b548
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.10006613
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b581
test byte [ecx + 0x1c], 2
je 0x1002b581
cmp byte [ecx + 0x19], 5
jb 0x1002b581
push esi
push ecx
push dword [ecx + 0x14]
mov edx, 0x10004cec
push dword [ecx + 0x10]
mov ecx, 0x126
call fcn.1000679d
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
cmp dword [ebp - 0x14], 3
jae 0x1002b5e6
push 2
pop edx
call fcn.10006613
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b502
test byte [ecx + 0x1c], 1
je 0x1002b502
cmp byte [ecx + 0x19], 2
jb 0x1002b502
push eax
push 0x10004c6c
push ecx
push dword [ecx + 0x14]
mov edx, 0x10004cec
push dword [ecx + 0x10]
mov ecx, 0x124
call fcn.1000686c
jmp 0x1002b502
mov ebx, dword [ebp - 4]
mov ecx, ebx
push 3
pop edx
call fcn.10024a26
mov ecx, eax
test ecx, ecx
jne 0x1002b643
push 2
pop edx
call fcn.10006613
push 8
pop esi
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b505
test byte [eax + 0x1c], 1
je 0x1002b505
cmp byte [eax + 0x19], 2
jb 0x1002b505
push ecx
push dword [eax + 0x14]
mov edx, 0x10004cec
mov ecx, 0x125
push dword [eax + 0x10]
call fcn.10006750
jmp 0x1002b505
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 0x1002b505