Function at 0x4df580
Capabilities:
Encrypt data using rc6

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x17c
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
cmp dword [ebp + 0x14], 0x10
je 0x4df5ae
cmp dword [ebp + 0x14], 0xc
je 0x4df5ae
cmp dword [ebp + 0x14], 8
je 0x4df5a8
mov dword [ebp - 0x28], 0x10
mov ecx, dword [ebp - 0x28]
mov dword [ebp + 0x14], ecx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x58], edx
mov dword [ebp - 8], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x178], eax
mov dword [ebp - 0x164], 0
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x28]
mov dword [ecx], edx
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x40], 0
mov eax, dword [ebp + 0xc]
sub eax, 8
and eax, 0x80000000
jne 0x4df6e9
mov ecx, dword [ebp + 0xc]
shr ecx, 3
mov dword [ebp - 0x3c], ecx
mov edx, dword [ebp + 0xc]
shr edx, 3
shl edx, 3
mov dword [ebp - 0x40], edx
mov eax, dword [ebp - 0x178]
movzx ecx, byte [eax + 5]
mov dword [ebp - 0x24], ecx
mov edx, dword [ebp - 0x178]
movzx eax, byte [edx + 3]
shl eax, 0x18
mov ecx, dword [ebp - 0x178]
movzx edx, byte [ecx + 2]
shl edx, 0x10
or eax, edx
mov ecx, dword [ebp - 0x178]
movzx edx, byte [ecx + 1]
shl edx, 8
or eax, edx
mov ecx, dword [ebp - 0x178]
movzx edx, byte [ecx]
or eax, edx
mov ecx, dword [ebp - 0x164]
mov dword [ebp + ecx*4 - 0x158], eax
mov edx, dword [ebp - 0x178]
movzx eax, byte [edx + 6]
shl eax, 0x10
mov ecx, dword [ebp - 0x24]
shl ecx, 8
or eax, ecx
mov edx, dword [ebp - 0x178]
movzx ecx, byte [edx + 4]
or eax, ecx
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x178]
movzx eax, byte [edx + 7]
shl eax, 0x18
mov dword [ebp - 0x174], eax
mov ecx, dword [ebp - 0x178]
add ecx, 8
mov dword [ebp - 0x178], ecx
mov edx, dword [ebp - 0x174]
or edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0x164]
mov dword [ebp + eax*4 - 0x154], edx
mov ecx, dword [ebp - 0x164]
add ecx, 2
mov dword [ebp - 0x164], ecx
mov edx, dword [ebp - 0x3c]
sub edx, 1
mov dword [ebp - 0x3c], edx
jne 0x4df60a
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x28], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x164]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x58]
cmp eax, dword [ebp - 0x40]
je 0x4df816
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x58]
and ecx, 7
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x18], 0
mov edx, dword [ebp - 0x178]
add edx, dword [ebp - 0xc]
mov dword [ebp - 0x20], edx
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x17c], eax
mov ecx, dword [ebp - 0x17c]
sub ecx, 1
mov dword [ebp - 0x17c], ecx
cmp dword [ebp - 0x17c], 7
ja case.default.0x4df743
mov edx, dword [ebp - 0x17c]
jmp dword [edx*4 + 0x4df9d0]
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx]
shl edx, 0x18
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx]
shl edx, 0x10
or edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx]
shl edx, 8
or edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx]
or edx, dword [ebp - 0x18]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx]
shl edx, 0x18
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx]
shl edx, 0x10
or edx, dword [ebp - 0x30]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x20]
sub eax, 1
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
movzx edx, byte [ecx]
shl edx, 8
or edx, dword [ebp - 0x30]
mov dword [ebp - 0x30], edx
mov eax, dword [ebp - 0x20]
movzx ecx, byte [eax - 1]
or ecx, dword [ebp - 0x30]
mov dword [ebp - 0x30], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
mov dword [ebp + edx*4 - 0x154], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x58], ecx
mov edx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x30]
mov dword [ebp + edx*4 - 0x158], eax
mov ecx, dword [ebp - 0x58]
add ecx, 3
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x28]
lea eax, [edx + edx + 2]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x160], 1
mov eax, dword [ebp - 0x2c]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], 0xb7e15163
jmp 0x4df85d
mov edx, dword [ebp - 0x160]
add edx, 1
mov dword [ebp - 0x160], edx
mov eax, dword [ebp - 0x160]
cmp eax, dword [ebp - 0x1c]
jge 0x4df888
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4]
sub eax, 0x61c88647
mov ecx, dword [ebp - 0x160]
mov edx, dword [ebp + 8]
mov dword [edx + ecx*4 + 4], eax
jmp 0x4df84e
mov dword [ebp - 0x168], 0
mov eax, dword [ebp - 0x2c]
cdq
and edx, 3
add eax, edx
sar eax, 2
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x38]
jle 0x4df8b6
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x50], ecx
mov edx, dword [ebp - 0x50]
imul edx, edx, 3
mov dword [ebp - 4], edx
mov dword [ebp - 0x170], 0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x44], eax
cmp dword [ebp - 4], 0
jle 0x4df9c4
push 3
mov ecx, dword [ebp - 0x168]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 4]
add eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x170]
push eax
call fcn.004de750
add esp, 8
mov dword [ebp - 0x15c], eax
mov ecx, dword [ebp - 0x168]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x15c]
mov dword [edx + ecx*4 + 4], eax
mov ecx, dword [ebp - 0x15c]
mov dword [ebp - 0x48], ecx
mov edx, dword [ebp - 0x15c]
add edx, dword [ebp - 0x10]
and edx, 0x1f
push edx
mov eax, dword [ebp - 0x15c]
add eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
add eax, dword [ebp + ecx*4 - 0x158]
push eax
call fcn.004de750
add esp, 8
mov dword [ebp - 0x16c], eax
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x16c]
mov dword [ebp + eax*4 - 0x158], ecx
mov dword [ebp - 0x14], 0
mov edx, dword [ebp - 0x16c]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x168]
add eax, 1
cmp eax, dword [ebp - 0x1c]
jge 0x4df98e
mov ecx, dword [ebp - 0x168]
add ecx, 1
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x48]
mov dword [ebp - 0x170], edx
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x168], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp - 0x38]
jge 0x4df9b5
mov edx, dword [ebp - 0x4c]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 0x44]
sub eax, 1
mov dword [ebp - 0x44], eax
jne 0x4df8d9
mov eax, dword [ebp - 0x170]
mov esp, ebp
pop ebp
ret