Function at 0x4ed850
Capabilities:
Encrypt data using aes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov dword [ebp - 0xc], 0
cmp dword [ebp + 0xc], 0x80
jne 0x4ed876
mov eax, dword [ebp + 0x10]
mov dword [eax + 0xf0], 0xa
jmp 0x4ed89b
cmp dword [ebp + 0xc], 0xc0
jne 0x4ed88e
mov ecx, dword [ebp + 0x10]
mov dword [ecx + 0xf0], 0xc
jmp 0x4ed89b
mov edx, dword [ebp + 0x10]
mov dword [edx + 0xf0], 0xe
mov eax, dword [ebp + 0x10]
mov dword [ebp - 4], eax
push 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx]
push edx
call fcn.0040354e
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.004049bc
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], esi
push 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 4]
push eax
call fcn.0040354e
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 4]
push edx
call fcn.004049bc
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov eax, 4
shl eax, 0
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], esi
push 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 8]
push eax
call fcn.0040354e
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 8]
push edx
call fcn.004049bc
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov eax, 4
shl eax, 1
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], esi
push 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0xc]
push eax
call fcn.0040354e
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0xc]
push edx
call fcn.004049bc
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp - 4]
mov dword [edx + ecx], esi
cmp dword [ebp + 0xc], 0x80
jne 0x4edae9
mov eax, 1
test eax, eax
je 0x4edae9
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx]
mov dword [ebp - 8], ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff000000
mov ecx, dword [ebp - 4]
xor edx, dword [ecx + eax]
mov eax, dword [ebp - 8]
shr eax, 8
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff0000
xor edx, ecx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff00
xor edx, ecx
mov eax, dword [ebp - 8]
shr eax, 0x18
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff
xor edx, ecx
mov eax, dword [ebp - 0xc]
xor edx, dword [eax*4 + 0x5f12a8]
mov ecx, 4
shl ecx, 2
mov eax, dword [ebp - 4]
mov dword [eax + ecx], edx
mov ecx, 4
shl ecx, 0
mov edx, 4
shl edx, 2
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov ecx, dword [eax + ecx]
xor ecx, dword [esi + edx]
mov edx, 4
imul eax, edx, 5
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, 4
shl eax, 1
mov ecx, 4
imul edx, ecx, 5
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
imul edx, ecx, 6
mov ecx, dword [ebp - 4]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 3
mov ecx, 4
imul edx, ecx, 6
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
imul edx, ecx, 7
mov ecx, dword [ebp - 4]
mov dword [ecx + edx], eax
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0xa
jne 0x4edadb
jmp 0x4edfe0
mov eax, dword [ebp - 4]
add eax, 0x10
mov dword [ebp - 4], eax
jmp 0x4ed9a7
push 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10]
push edx
call fcn.0040354e
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004049bc
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov edx, 4
shl edx, 2
mov eax, dword [ebp - 4]
mov dword [eax + edx], esi
push 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x14]
push edx
call fcn.0040354e
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x14]
push ecx
call fcn.004049bc
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov edx, 4
imul eax, edx, 5
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], esi
cmp dword [ebp + 0xc], 0xc0
jne 0x4edd08
mov edx, 1
test edx, edx
je 0x4edd08
mov eax, 4
imul ecx, eax, 5
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx]
mov dword [ebp - 8], eax
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp - 8]
shr eax, 0x10
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff000000
mov eax, dword [ebp - 4]
xor ecx, dword [eax + edx]
mov edx, dword [ebp - 8]
shr edx, 8
and edx, 0xff
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff0000
xor ecx, eax
mov edx, dword [ebp - 8]
and edx, 0xff
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff00
xor ecx, eax
mov edx, dword [ebp - 8]
shr edx, 0x18
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff
xor ecx, eax
mov edx, dword [ebp - 0xc]
xor ecx, dword [edx*4 + 0x5f12a8]
mov eax, 4
imul edx, eax, 6
mov eax, dword [ebp - 4]
mov dword [eax + edx], ecx
mov ecx, 4
shl ecx, 0
mov edx, 4
imul eax, edx, 6
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov ecx, dword [edx + ecx]
xor ecx, dword [esi + eax]
mov edx, 4
imul eax, edx, 7
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, 4
shl eax, 1
mov ecx, 4
imul edx, ecx, 7
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
shl ecx, 3
mov edx, dword [ebp - 4]
mov dword [edx + ecx], eax
mov eax, 4
imul ecx, eax, 3
mov edx, 4
shl edx, 3
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov ecx, dword [eax + ecx]
xor ecx, dword [esi + edx]
mov edx, 4
imul eax, edx, 9
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 0xc]
add eax, 1
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 8
jne 0x4edca6
jmp 0x4edfe0
mov ecx, 4
shl ecx, 2
mov edx, 4
imul eax, edx, 9
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov ecx, dword [edx + ecx]
xor ecx, dword [esi + eax]
mov edx, 4
imul eax, edx, 0xa
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, 4
imul ecx, eax, 5
mov edx, 4
imul eax, edx, 0xa
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov ecx, dword [edx + ecx]
xor ecx, dword [esi + eax]
mov edx, 4
imul eax, edx, 0xb
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, dword [ebp - 4]
add eax, 0x18
mov dword [ebp - 4], eax
jmp 0x4edb74
push 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x18]
push edx
call fcn.0040354e
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call fcn.004049bc
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov edx, 4
imul eax, edx, 6
mov ecx, dword [ebp - 4]
mov dword [ecx + eax], esi
push 8
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x1c]
push eax
call fcn.0040354e
add esp, 8
mov esi, eax
and esi, 0xff00ff
push 8
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call fcn.004049bc
add esp, 8
and eax, 0xff00ff00
or esi, eax
mov eax, 4
imul ecx, eax, 7
mov edx, dword [ebp - 4]
mov dword [edx + ecx], esi
cmp dword [ebp + 0xc], 0x100
jne 0x4edfe0
mov eax, 1
test eax, eax
je 0x4edfe0
mov ecx, 4
imul edx, ecx, 7
mov eax, dword [ebp - 4]
mov ecx, dword [eax + edx]
mov dword [ebp - 8], ecx
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff000000
mov ecx, dword [ebp - 4]
xor edx, dword [ecx + eax]
mov eax, dword [ebp - 8]
shr eax, 8
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff0000
xor edx, ecx
mov eax, dword [ebp - 8]
and eax, 0xff
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff00
xor edx, ecx
mov eax, dword [ebp - 8]
shr eax, 0x18
mov ecx, dword [eax*4 + str.ccccwwww]
and ecx, 0xff
xor edx, ecx
mov eax, dword [ebp - 0xc]
xor edx, dword [eax*4 + 0x5f12a8]
mov ecx, 4
shl ecx, 3
mov eax, dword [ebp - 4]
mov dword [eax + ecx], edx
mov ecx, 4
shl ecx, 0
mov edx, 4
shl edx, 3
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov ecx, dword [eax + ecx]
xor ecx, dword [esi + edx]
mov edx, 4
imul eax, edx, 9
mov edx, dword [ebp - 4]
mov dword [edx + eax], ecx
mov eax, 4
shl eax, 1
mov ecx, 4
imul edx, ecx, 9
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
imul edx, ecx, 0xa
mov ecx, dword [ebp - 4]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 3
mov ecx, 4
imul edx, ecx, 0xa
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
imul edx, ecx, 0xb
mov ecx, dword [ebp - 4]
mov dword [ecx + edx], eax
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 7
jne 0x4edec7
jmp 0x4edfe0
mov eax, 4
imul ecx, eax, 0xb
mov edx, dword [ebp - 4]
mov eax, dword [edx + ecx]
mov dword [ebp - 8], eax
mov ecx, 4
shl ecx, 2
mov edx, dword [ebp - 8]
shr edx, 0x18
mov eax, dword [edx*4 + str.ccccwwww]
and eax, 0xff000000
mov edx, dword [ebp - 4]
xor eax, dword [edx + ecx]
mov ecx, dword [ebp - 8]
shr ecx, 0x10
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff0000
xor eax, edx
mov ecx, dword [ebp - 8]
shr ecx, 8
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff00
xor eax, edx
mov ecx, dword [ebp - 8]
and ecx, 0xff
mov edx, dword [ecx*4 + str.ccccwwww]
and edx, 0xff
xor eax, edx
mov ecx, 4
imul edx, ecx, 0xc
mov ecx, dword [ebp - 4]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 5
mov ecx, 4
imul edx, ecx, 0xc
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
imul edx, ecx, 0xd
mov ecx, dword [ebp - 4]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 6
mov ecx, 4
imul edx, ecx, 0xd
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
imul edx, ecx, 0xe
mov ecx, dword [ebp - 4]
mov dword [ecx + edx], eax
mov edx, 4
imul eax, edx, 7
mov ecx, 4
imul edx, ecx, 0xe
mov ecx, dword [ebp - 4]
mov esi, dword [ebp - 4]
mov eax, dword [ecx + eax]
xor eax, dword [esi + edx]
mov ecx, 4
imul edx, ecx, 0xf
mov ecx, dword [ebp - 4]
mov dword [ecx + edx], eax
mov edx, dword [ebp - 4]
add edx, 0x20
mov dword [ebp - 4], edx
jmp 0x4edd93
pop esi
mov esp, ebp
pop ebp
ret