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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], 0
jmp 0x40e2a8
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 0x40e2d1
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 0x40e29f
jmp 0x40e2dc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jae 0x40e2fe
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 0x40e2d3
mov dword [ebp - 4], 0
jmp 0x40e310
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 8
jae 0x40e32e
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 0x40e307
mov dword [ebp - 4], 8
jmp 0x40e340
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
jae 0x40e35e
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 0x40e337
mov dword [ebp - 4], 0x10
jmp 0x40e370
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x110
jae 0x40e436
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 0x40e367
mov dword [ebp - 4], 0
jmp 0x40e448
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jae 0x40e466
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 0x40e43f
mov dword [ebp - 4], 0x10
jmp 0x40e478
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x400
jae 0x40e545
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 0x40e46f
mov eax, dword [ebp + 8]
mov dword [eax + 0x1080], 0
mov dword [ebp - 4], 0
jmp 0x40e564
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jae 0x40e586
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 0x40e55b
mov dword [ebp - 4], 0
jmp 0x40e598
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
jae 0x40e5ba
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 0x40e58f
mov dword [ebp - 4], 0
jmp 0x40e5cc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x40
jae 0x40e5e0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040bd40
add esp, 4
jmp 0x40e5c3
pop edi
pop esi
mov esp, ebp
pop ebp
ret