Function at 0x1002ac44
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.10006623
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002ac9b
test byte [eax + 0x1c], 2
je 0x1002ac9b
cmp byte [eax + 0x19], 5
jb 0x1002ac9b
push ecx
push dword [eax + 0x14]
mov edx, 0x10004cfc
mov ecx, 0x117
push dword [eax + 0x10]
call fcn.10006760
test edi, edi
jne 0x1002acf0
push 2
pop edx
call fcn.10006623
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b0e8
test byte [eax + 0x1c], 1
je 0x1002b0e8
cmp byte [eax + 0x19], 2
jb 0x1002b0e8
push 0x10001a74
push ecx
mov ecx, 0x118
push dword [eax + 0x14]
mov edx, 0x10004cfc
push dword [eax + 0x10]
call fcn.10006800
jmp 0x1002b0e8
test ebx, ebx
jne 0x1002ad32
push 2
pop edx
call fcn.10006623
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b0e8
test byte [eax + 0x1c], 1
je 0x1002b0e8
cmp byte [eax + 0x19], 2
jb 0x1002b0e8
push 0x10002db8
push ecx
mov ecx, 0x119
jmp 0x1002acdb
cmp dword [ebp + 8], esi
jne 0x1002ad78
push 2
pop edx
call fcn.10006623
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b0e8
test byte [eax + 0x1c], 1
je 0x1002b0e8
cmp byte [eax + 0x19], 2
jb 0x1002b0e8
push 0x10002dcc
push ecx
mov ecx, 0x11a
jmp 0x1002acdb
cmp dword [ebp + 0xc], esi
jne 0x1002adbe
push 2
pop edx
call fcn.10006623
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b0e8
test byte [eax + 0x1c], 1
je 0x1002b0e8
cmp byte [eax + 0x19], 2
jb 0x1002b0e8
push 0x10004be0
push ecx
mov ecx, 0x11b
jmp 0x1002acdb
cmp dword [ebp + 0x10], esi
jne 0x1002ae04
push 2
pop edx
call fcn.10006623
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b0e8
test byte [eax + 0x1c], 1
je 0x1002b0e8
cmp byte [eax + 0x19], 2
jb 0x1002b0e8
push 0x10004bfc
push ecx
mov ecx, 0x11c
jmp 0x1002acdb
push 0
push 0x10004c18
push 0x10004c54
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.bcrypt.dll_BCryptOpenAlgorithmProvider]
mov edi, eax
test edi, edi
jns 0x1002ae73
push 2
pop edx
call fcn.10006623
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b0e8
test byte [ecx + 0x1c], 1
je 0x1002b0e8
cmp byte [ecx + 0x19], 2
jb 0x1002b0e8
push eax
push edi
push 0x10004c60
push ecx
push ecx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x11d
call fcn.10024612
jmp 0x1002b0e8
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 0x1002aedc
push 2
pop edx
call fcn.10006623
mov esi, 0x80100004
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b0e8
test byte [eax + 0x1c], 1
je 0x1002b0e8
cmp byte [eax + 0x19], 2
jb 0x1002b0e8
push esi
push ebx
push 0x10004ca4
push ecx
push ecx
push dword [eax + 0x14]
mov ecx, 0x11e
push dword [eax + 0x10]
jmp 0x1002ae69
test edi, edi
jns 0x1002af2e
push 2
pop edx
call fcn.10006623
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b0e8
test byte [ecx + 0x1c], 1
je 0x1002b0e8
cmp byte [ecx + 0x19], 2
jb 0x1002b0e8
push eax
push edi
push 0x10004ca4
push ecx
push ecx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x11f
jmp 0x1002ae69
push 0
lea eax, [ebp - 0x14]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x10004cc0
push dword [ebp - 0xc]
call dword [sym.imp.bcrypt.dll_BCryptGetProperty]
mov edi, eax
test edi, edi
jns 0x1002af9c
push 2
pop edx
call fcn.10006623
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b0e8
test byte [ecx + 0x1c], 1
je 0x1002b0e8
cmp byte [ecx + 0x19], 2
jb 0x1002b0e8
push eax
push edi
push 0x10004cd8
push ecx
push ecx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x120
jmp 0x1002ae69
cmp dword [ebp - 0x14], 4
je 0x1002aff8
push 2
pop edx
call fcn.10006623
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b0e8
test byte [ecx + 0x1c], 1
je 0x1002b0e8
cmp byte [ecx + 0x19], 2
jb 0x1002b0e8
push eax
push 0x10004c7c
push ecx
push dword [ecx + 0x14]
mov edx, 0x10004cfc
push dword [ecx + 0x10]
mov ecx, 0x121
call fcn.1000687c
jmp 0x1002b0e8
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 4]
call fcn.1002469f
mov edi, eax
test edi, edi
jne 0x1002b053
push 2
pop edx
call fcn.10006623
push 8
pop esi
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b0e8
test byte [eax + 0x1c], 1
je 0x1002b0e8
cmp byte [eax + 0x19], 2
jb 0x1002b0e8
push ecx
push dword [eax + 0x14]
mov edx, 0x10004cfc
mov ecx, 0x122
push dword [eax + 0x10]
call fcn.10006760
jmp 0x1002b0e8
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 0x1002b152
push 2
pop edx
call fcn.10006623
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b0ca
test byte [ecx + 0x1c], 1
je 0x1002b0ca
cmp byte [ecx + 0x19], 2
jb 0x1002b0ca
push eax
push ebx
push 0x10004cec
push ecx
push ecx
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x123
call fcn.10024612
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov ecx, edi
test eax, eax
je 0x1002b0df
mov byte [ecx], 0
inc ecx
sub eax, 1
jne 0x1002b0d6
mov edx, edi
mov ecx, ebx
call fcn.100246b7
cmp dword [ebp - 0xc], 0
je 0x1002b0fb
push dword [ebp - 0xc]
call dword [sym.imp.bcrypt.dll_BCryptDestroyKey]
and dword [ebp - 0xc], 0
cmp dword [ebp - 0x10], 0
je 0x1002b110
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.10006623
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b149
test byte [ecx + 0x1c], 2
je 0x1002b149
cmp byte [ecx + 0x19], 5
jb 0x1002b149
push esi
push ecx
push dword [ecx + 0x14]
mov edx, 0x10004cfc
push dword [ecx + 0x10]
mov ecx, 0x126
call fcn.100067ad
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
cmp dword [ebp - 0x14], 3
jae 0x1002b1ae
push 2
pop edx
call fcn.10006623
mov eax, 0x8010001f
mov esi, eax
mov ecx, dword [section..data]
cmp ecx, section..data
je 0x1002b0ca
test byte [ecx + 0x1c], 1
je 0x1002b0ca
cmp byte [ecx + 0x19], 2
jb 0x1002b0ca
push eax
push 0x10004c7c
push ecx
push dword [ecx + 0x14]
mov edx, 0x10004cfc
push dword [ecx + 0x10]
mov ecx, 0x124
call fcn.1000687c
jmp 0x1002b0ca
mov ebx, dword [ebp - 4]
mov ecx, ebx
push 3
pop edx
call fcn.1002469f
mov ecx, eax
test ecx, ecx
jne 0x1002b20b
push 2
pop edx
call fcn.10006623
push 8
pop esi
mov eax, dword [section..data]
cmp eax, section..data
je 0x1002b0cd
test byte [eax + 0x1c], 1
je 0x1002b0cd
cmp byte [eax + 0x19], 2
jb 0x1002b0cd
push ecx
push dword [eax + 0x14]
mov edx, 0x10004cfc
mov ecx, 0x125
push dword [eax + 0x10]
call fcn.10006760
jmp 0x1002b0cd
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 0x1002b0cd