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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5241b3
mov eax, dword fs:[0]
push eax
push ecx
sub esp, 0xa0
mov eax, dword [0x56f28c]
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 0x461f3f
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 0x461f6d
push str.SetKey:_Provider_is_not_valid
lea ecx, [ebp - 0x5c]
call fcn.00463510
push 0x5534e0
lea eax, [ebp - 0x5c]
push eax
call fcn.004ffd8f
cmp dword [ebp + 8], 0
jne 0x461f8e
push str.SetKey:_Key_buffer_is_NULL
lea ecx, [ebp - 0x68]
call fcn.00463510
push 0x5534e0
lea ecx, [ebp - 0x68]
push ecx
call fcn.004ffd8f
cmp dword [ebp + 0xc], 0x10
je 0x461fbb
cmp dword [ebp + 0xc], 0x18
je 0x461fbb
cmp dword [ebp + 0xc], 0x20
je 0x461fbb
push 0x538bc8
lea ecx, [ebp - 0x74]
call fcn.00463510
push 0x5534e0
lea edx, [ebp - 0x74]
push edx
call fcn.004ffd8f
lea ecx, [ebp - 0x4c]
call fcn.004635c0
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 0x461ff3
cmp dword [ebp - 0xb0], 0x18
je 0x462003
cmp dword [ebp - 0xb0], 0x20
je 0x462013
jmp 0x462023
mov dword [ebp - 0x48], 0x660e
mov dword [ebp - 0x44], 0x10
jmp 0x46203e
mov dword [ebp - 0x48], 0x660f
mov dword [ebp - 0x44], 0x18
jmp 0x46203e
mov dword [ebp - 0x48], 0x6610
mov dword [ebp - 0x44], 0x20
jmp 0x46203e
push str.SetKey:_Key_size_is_not_valid
lea ecx, [ebp - 0x80]
call fcn.00463510
push 0x5534e0
lea ecx, [ebp - 0x80]
push ecx
call fcn.004ffd8f
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.0050005b
add esp, 0x10
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
je 0x462087
push str.SetKey:_Unable_to_copy_key
lea ecx, [ebp - 0x8c]
call fcn.00463510
push 0x5534e0
lea eax, [ebp - 0x8c]
push eax
call fcn.004ffd8f
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 0x4620db
push str.SetKey:_Import_key_failed
lea ecx, [ebp - 0x98]
call fcn.00463510
push 0x5534e0
lea ecx, [ebp - 0x98]
push ecx
call fcn.004ffd8f
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 0x46211f
push str.SetKey:_Set_CBC_mode_failed
lea ecx, [ebp - 0xa4]
call fcn.00463510
push 0x5534e0
lea edx, [ebp - 0xa4]
push edx
call fcn.004ffd8f
mov byte [ebp - 0x11], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x4c]
call fcn.00463600
jmp 0x462159
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.004ffa01
mov esp, ebp
pop ebp
ret 8