Function at 0x63b6e5
Capabilities:
Create new key via cryptacquirecontext
Encrypt or decrypt via wincrypt

Disassembly:
push 0x8c
mov eax, 0x7b9951
call fcn.00700ca1
mov eax, dword [ebp + 8]
xor edi, edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x78], eax
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push str.aes128
add ecx, 0x28
mov dword [ebp - 4], edi
call fcn.004d2b1c
movzx eax, al
xor eax, 1
mov dword [ebp - 0x68], edi
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x6c], edi
lea eax, [eax*2 + 0x660e]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x78], eax
mov eax, esi
jb 0x63b74b
mov eax, dword [esi]
push dword [ebp + 0x14]
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push eax
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x63b841
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090024
jne 0x63b7cd
push ebx
lea ecx, [ebp - 0x28]
call fcn.004c3996
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.004c2b5d
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x63ba9b
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ecx
cmp eax, 0x1000
jb 0x63ba92
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x60]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x64]
jmp 0x63ba92
cmp dword [esi + 0x14], 8
mov ecx, esi
jb 0x63b7d7
mov ecx, dword [esi]
mov eax, dword [ebp + 0x14]
or eax, 0x10
push eax
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push ecx
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x63b7fc
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x63b811
cmp dword [ebp - 0x5c], 0
je 0x63b811
push 0
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and dword [ebp - 0x5c], 0
cmp dword [esi + 0x14], 8
jb 0x63b819
mov esi, dword [esi]
mov eax, dword [ebp + 0x14]
or eax, 8
push eax
push 0x18
push str.Microsoft_Enhanced_RSA_and_AES_Cryptographic_Provider
push esi
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x63b841
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x63b9fc
lea eax, [ebp - 0x68]
xor esi, esi
push eax
inc esi
push esi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_CryptGetUserKey]
test eax, eax
jne 0x63b870
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea eax, [ebp - 0x68]
push eax
push 0
push esi
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x63b836
lea eax, [ebp - 0x6c]
push eax
push esi
push dword [ebp - 0x78]
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_CryptGenKey]
test eax, eax
je 0x63b836
and dword [ebp - 0x70], 0
lea eax, [ebp - 0x70]
push eax
push 0
push 0
push esi
push dword [ebp - 0x68]
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
je 0x63b836
push dword [ebp - 0x70]
call fcn.00700faa
pop ecx
mov esi, eax
lea eax, [ebp - 0x70]
push eax
push esi
push 0
push 1
push dword [ebp - 0x68]
mov dword [ebp - 0x60], esi
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptExportKey]
test eax, eax
jne 0x63b8d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x63b9ff
mov esi, dword [ebx + 0x10]
xor ecx, ecx
push 2
pop edx
lea eax, [esi*2 + 2]
mov dword [ebp - 0x78], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00700faa
lea esi, [esi*4 + 4]
mov edi, eax
push esi
push 0
push edi
call fcn.00719250
mov eax, dword [ebp - 0x78]
add esp, 0x10
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x74], eax
jb 0x63b918
mov ebx, dword [ebx]
push eax
push ebx
push esi
push edi
call fcn.004eba4f
add esp, 0x10
lea eax, [ebp - 0x74]
push esi
push eax
push edi
push 0
push 1
push 0
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
test eax, eax
je 0x63b836
mov eax, dword [ebp - 0x74]
lea ecx, [ebp - 0x98]
mov esi, dword [ebp - 0x70]
add eax, 8
push 0
push 0x400
add esi, eax
call fcn.0064fe58
push dword [ebp - 0x70]
lea ecx, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.0064ff49
push esi
mov ecx, eax
call fcn.0064ff49
push dword [ebp - 0x70]
mov eax, dword [ebp - 0x60]
lea ecx, [ebp - 0x98]
push eax
call fcn.00650134
push dword [ebp - 0x74]
lea ecx, [ebp - 0x98]
push edi
call fcn.00650134
lea ecx, [ebp - 0x98]
call fcn.00650024
lea ecx, [ebp - 0x98]
mov esi, eax
call fcn.00650020
push esi
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.00631add
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 2
push eax
call fcn.00624ca6
lea ecx, [ebp - 0x28]
add esp, 0x14
cmp ecx, eax
je 0x63b9e1
mov byte [ebp - 0x78], 0
push dword [ebp - 0x78]
push eax
call fcn.004cc546
lea ecx, [ebp - 0x40]
call fcn.004c0931
lea ecx, [ebp - 0x58]
call fcn.00438e20
lea ecx, [ebp - 0x98]
call fcn.0064fee2
mov esi, dword [ebp - 0x60]
cmp dword [ebp - 0x68], 0
je 0x63ba12
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and dword [ebp - 0x68], 0
cmp dword [ebp - 0x6c], 0
je 0x63ba25
push dword [ebp - 0x6c]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
and dword [ebp - 0x6c], 0
cmp dword [ebp - 0x5c], 0
je 0x63ba3a
push 0
push dword [ebp - 0x5c]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
and dword [ebp - 0x5c], 0
test edi, edi
je 0x63ba45
push edi
call fcn.00700fb3
pop ecx
test esi, esi
je 0x63ba50
push esi
call fcn.00700fb3
pop ecx
mov esi, dword [ebp - 0x64]
lea eax, [ebp - 0x28]
push eax
mov ecx, esi
call fcn.004c2b5d
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x63ba9b
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x74], ecx
cmp eax, 0x1000
jb 0x63ba92
lea eax, [ebp - 0x64]
push eax
lea eax, [ebp - 0x74]
push eax
call fcn.004343f0
mov eax, dword [ebp - 0x64]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x74]
push eax
push ecx
call fcn.007009b8
pop ecx
pop ecx
mov eax, esi
call fcn.00700c4b
ret 0x10