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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], 0
jmp 0x40c868
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 0x40c891
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 0x40c85f
jmp 0x40c89c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jae 0x40c8be
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 0x40c893
mov dword [ebp - 4], 0
jmp 0x40c8d0
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 8
jae 0x40c8ee
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 0x40c8c7
mov dword [ebp - 4], 8
jmp 0x40c900
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
jae 0x40c91e
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 0x40c8f7
mov dword [ebp - 4], 0x10
jmp 0x40c930
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x110
jae 0x40c9f6
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 0x40c927
mov dword [ebp - 4], 0
jmp 0x40ca08
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jae 0x40ca26
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 0x40c9ff
mov dword [ebp - 4], 0x10
jmp 0x40ca38
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x400
jae 0x40cb05
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 0x40ca2f
mov eax, dword [ebp + 8]
mov dword [eax + 0x1080], 0
mov dword [ebp - 4], 0
jmp 0x40cb24
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jae 0x40cb46
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 0x40cb1b
mov dword [ebp - 4], 0
jmp 0x40cb58
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
jae 0x40cb7a
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 0x40cb4f
mov dword [ebp - 4], 0
jmp 0x40cb8c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x40
jae 0x40cba0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040a300
add esp, 4
jmp 0x40cb83
pop edi
pop esi
mov esp, ebp
pop ebp
ret