Function at 0x40fe80
Capabilities:
Encrypt data using hc-128

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], 0
jmp 0x40fe98
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x10c8]
shr edx, 5
cmp dword [ebp - 4], edx
jae 0x40fec1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov edx, dword [esi + edx*4]
mov dword [ecx + eax*4 + 0x10a4], edx
jmp 0x40fe8f
jmp 0x40fecc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jae 0x40feee
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x1094]
mov dword [edx + ecx*4 + 0x10a4], eax
jmp 0x40fec3
mov dword [ebp - 4], 0
jmp 0x40ff00
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 8
jae 0x40ff1e
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + ecx*4 + 0x1084]
mov dword [eax + edx*4], ecx
jmp 0x40fef7
mov dword [ebp - 4], 8
jmp 0x40ff30
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
jae 0x40ff4e
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edx, dword [esi + edx*4 + 0x1084]
mov dword [ecx + eax*4], edx
jmp 0x40ff27
mov dword [ebp - 4], 0x10
jmp 0x40ff60
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x110
jae 0x410026
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 - 8]
shr eax, 0x11
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx*4 - 8]
shl ecx, 0xf
or eax, ecx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + edx*4 - 8]
shr edx, 0x13
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + ecx*4 - 8]
shl ecx, 0xd
or edx, ecx
xor eax, edx
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + edx*4 - 8]
shr edx, 0xa
xor eax, edx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add eax, dword [edx + ecx*4 - 0x1c]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov ecx, dword [edx + ecx*4 - 0x3c]
shr ecx, 7
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edx, dword [esi + edx*4 - 0x3c]
shl edx, 0x19
or ecx, edx
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edx, dword [esi + edx*4 - 0x3c]
shr edx, 0x12
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov esi, dword [edi + esi*4 - 0x3c]
shl esi, 0xe
or edx, esi
xor ecx, edx
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edx, dword [esi + edx*4 - 0x3c]
shr edx, 3
xor ecx, edx
add eax, ecx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add eax, dword [edx + ecx*4 - 0x40]
add eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + ecx*4], eax
jmp 0x40ff57
mov dword [ebp - 4], 0
jmp 0x410038
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jae 0x410056
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x400]
mov dword [edx + ecx*4], eax
jmp 0x41002f
mov dword [ebp - 4], 0x10
jmp 0x410068
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x400
jae 0x410135
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 - 8]
shr ecx, 0x11
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*4 - 8]
shl edx, 0xf
or ecx, edx
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*4 - 8]
shr eax, 0x13
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edx, dword [esi + edx*4 - 8]
shl edx, 0xd
or eax, edx
xor ecx, eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + eax*4 - 8]
shr eax, 0xa
xor ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add ecx, dword [eax + edx*4 - 0x1c]
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov edx, dword [eax + edx*4 - 0x3c]
shr edx, 7
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 - 0x3c]
shl eax, 0x19
or edx, eax
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 - 0x3c]
shr eax, 0x12
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 8]
mov esi, dword [edi + esi*4 - 0x3c]
shl esi, 0xe
or eax, esi
xor edx, eax
mov eax, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 - 0x3c]
shr eax, 3
xor edx, eax
add ecx, edx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add ecx, dword [eax + edx*4 - 0x40]
mov edx, dword [ebp - 4]
lea eax, [ecx + edx + 0x100]
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov dword [edx + ecx*4], eax
jmp 0x41005f
mov eax, dword [ebp + 8]
mov dword [eax + 0x1080], 0
mov dword [ebp - 4], 0
jmp 0x410154
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jae 0x410176
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov ecx, dword [esi + ecx*4 + 0x7c0]
mov dword [eax + edx*4 + 0x1000], ecx
jmp 0x41014b
mov dword [ebp - 4], 0
jmp 0x410188
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
jae 0x4101aa
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 8]
mov edx, dword [esi + edx*4 + 0xfc0]
mov dword [ecx + eax*4 + 0x1040], edx
jmp 0x41017f
mov dword [ebp - 4], 0
jmp 0x4101bc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x40
jae 0x4101d0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040d930
add esp, 4
jmp 0x4101b3
pop edi
pop esi
mov esp, ebp
pop ebp
ret