Function at 0x4c393d
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x634254]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0x10
pop eax
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x118], ecx
cmp edi, eax
je 0x4c3977
cmp edi, 0xc
je 0x4c3977
cmp edi, 8
cmovne edi, eax
mov dword [ebp + 0xc], edi
xor ebx, ebx
mov dword [ecx], edi
lea eax, [edx - 8]
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x110], ebx
mov esi, ebx
test eax, eax
js 0x4c3a0a
mov eax, edx
mov edx, dword [ebp + 8]
shr eax, 3
mov dword [ebp - 0x114], eax
mov edi, eax
shl eax, 3
mov dword [ebp - 0x110], eax
movzx eax, byte [edx + 1]
movzx ecx, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp + esi*4 - 0x104], ecx
movzx ecx, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 7]
shl eax, 0x18
add edx, 8
or ecx, eax
mov dword [ebp + esi*4 - 0x100], ecx
add esi, 2
sub edi, 1
jne 0x4c39a9
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10c], esi
jmp 0x4c3a0d
mov edx, dword [ebp + 8]
mov ecx, dword [ebp - 0x108]
mov eax, ecx
sub eax, dword [ebp - 0x110]
je 0x4c3a8d
mov eax, ecx
mov esi, ebx
and eax, 7
mov ecx, ebx
add edx, eax
dec eax
cmp eax, 7
ja case.default.0x4c3a2e
jmp dword [eax*4 + 0x4c3b75]
dec edx
movzx ecx, byte [edx]
shl ecx, 0x18
dec edx
movzx eax, byte [edx]
shl eax, 0x10
or ecx, eax
dec edx
movzx eax, byte [edx]
shl eax, 8
or ecx, eax
dec edx
movzx eax, byte [edx]
or ecx, eax
dec edx
movzx esi, byte [edx]
shl esi, 0x18
dec edx
movzx eax, byte [edx]
shl eax, 0x10
or esi, eax
dec edx
movzx eax, byte [edx]
shl eax, 8
or esi, eax
movzx eax, byte [edx - 1]
or esi, eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp + eax*4 - 0x100], ecx
mov ecx, dword [ebp - 0x108]
mov dword [ebp + eax*4 - 0x104], esi
lea eax, [ecx + 3]
xor ecx, ecx
cdq
lea edi, [edi*2 + 2]
and edx, 3
inc ecx
lea esi, [edx + eax]
mov edx, dword [ebp - 0x118]
sar esi, 2
mov dword [edx + 4], 0xb7e15163
cmp edi, ecx
jle 0x4c3ac6
mov eax, dword [edx + ecx*4]
sub eax, 0x61c88647
mov dword [edx + ecx*4 + 4], eax
inc ecx
cmp ecx, edi
jl 0x4c3ab5
cmp edi, esi
mov dword [ebp - 0x10c], ebx
mov eax, esi
mov dword [ebp - 0x108], ebx
cmovg eax, edi
mov ecx, ebx
imul eax, eax, 3
mov dword [ebp - 0x110], ecx
mov dword [ebp - 0x114], eax
test eax, eax
jle 0x4c3b65
mov eax, dword [edx + ecx*4 + 4]
add eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x108]
rol eax, 3
mov dword [edx + ecx*4 + 4], eax
mov ecx, eax
add ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x108], eax
and ecx, 0x1f
mov eax, dword [ebp + ebx*4 - 0x104]
add eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x108]
rol eax, cl
lea ecx, [ebx + 1]
mov dword [ebp + ebx*4 - 0x104], eax
xor ebx, ebx
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x110]
inc eax
cmp eax, edi
cmovl ebx, eax
mov dword [ebp - 0x110], ebx
xor ebx, ebx
cmp ecx, esi
cmovl ebx, ecx
sub dword [ebp - 0x114], 1
mov ecx, dword [ebp - 0x110]
jne 0x4c3aee
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0056d855
leave
ret