Function at 0x44d510
Capabilities:
Encrypt data using aes via winapi

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x493d43
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xa0
mov eax, dword [0x4aeb00]
xor eax, ebp
mov dword [ebp - 0x20], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0xa8], ecx
mov byte [ebp - 0x11], 0
mov eax, dword [ebp - 0xa8]
cmp dword [eax + 8], 0
je 0x44d57f
mov ecx, dword [ebp - 0xa8]
mov edx, dword [ecx + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov eax, dword [ebp - 0xa8]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 0xa8]
mov byte [ecx + 0x10], 0
mov dword [ebp - 4], 0
mov edx, dword [ebp - 0xa8]
cmp dword [edx + 4], 0
jne 0x44d5ad
push str.SetKey:_Provider_is_not_valid
lea ecx, [ebp - 0x5c]
call fcn.0044eb50
push 0x4a7c84
lea eax, [ebp - 0x5c]
push eax
call fcn.0046021e
cmp dword [ebp + 8], 0
jne 0x44d5ce
push str.SetKey:_Key_buffer_is_NULL
lea ecx, [ebp - 0x68]
call fcn.0044eb50
push 0x4a7c84
lea ecx, [ebp - 0x68]
push ecx
call fcn.0046021e
cmp dword [ebp + 0xc], 0x10
je 0x44d5fb
cmp dword [ebp + 0xc], 0x18
je 0x44d5fb
cmp dword [ebp + 0xc], 0x20
je 0x44d5fb
push 0x499010
lea ecx, [ebp - 0x74]
call fcn.0044eb50
push 0x4a7c84
lea edx, [ebp - 0x74]
push edx
call fcn.0046021e
lea ecx, [ebp - 0x4c]
call fcn.0044ec00
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 1
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xb0], eax
cmp dword [ebp - 0xb0], 0x10
je 0x44d633
cmp dword [ebp - 0xb0], 0x18
je 0x44d643
cmp dword [ebp - 0xb0], 0x20
je 0x44d653
jmp 0x44d663
mov dword [ebp - 0x48], 0x660e
mov dword [ebp - 0x44], 0x10
jmp 0x44d67e
mov dword [ebp - 0x48], 0x660f
mov dword [ebp - 0x44], 0x18
jmp 0x44d67e
mov dword [ebp - 0x48], 0x6610
mov dword [ebp - 0x44], 0x20
jmp 0x44d67e
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x80]
call fcn.0044eb50
push 0x4a7c84
lea ecx, [ebp - 0x80]
push ecx
call fcn.0046021e
mov dword [ebp - 0x50], 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x44]
push ecx
lea edx, [ebp - 0x40]
push edx
call fcn.004603e3
add esp, 0x10
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x44d6c7
push str.SetKey:_Unable_to_copy_key
lea ecx, [ebp - 0x8c]
call fcn.0044eb50
push 0x4a7c84
lea eax, [ebp - 0x8c]
push eax
call fcn.0046021e
mov ecx, dword [ebp + 0xc]
add ecx, 0xc
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0xa8]
add edx, 8
push edx
push 0
push 0
mov eax, dword [ebp - 0x1c]
push eax
lea ecx, [ebp - 0x4c]
push ecx
mov edx, dword [ebp - 0xa8]
mov eax, dword [edx + 4]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x44d71b
push str.SetKey:_Import_key_failed
lea ecx, [ebp - 0x98]
call fcn.0044eb50
push 0x4a7c84
lea ecx, [ebp - 0x98]
push ecx
call fcn.0046021e
mov dword [ebp - 0x18], 1
push 0
lea edx, [ebp - 0x18]
push edx
push 4
mov eax, dword [ebp - 0xa8]
mov ecx, dword [eax + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptSetKeyParam]
test eax, eax
jne 0x44d75f
push str.SetKey:_Set_CBC_mode_failed
lea ecx, [ebp - 0xa4]
call fcn.0044eb50
push 0x4a7c84
lea edx, [ebp - 0xa4]
push edx
call fcn.0046021e
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.0044ec40
jmp 0x44d799
mov dword [ebp - 4], 0xffffffff
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x20]
xor ecx, ebp
call fcn.0045fcea
mov esp, ebp
pop ebp
ret 8