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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], 0
jmp 0x40ff18
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 0x40ff41
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 0x40ff0f
jmp 0x40ff4c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jae 0x40ff6e
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 0x40ff43
mov dword [ebp - 4], 0
jmp 0x40ff80
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 8
jae 0x40ff9e
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 0x40ff77
mov dword [ebp - 4], 8
jmp 0x40ffb0
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
jae 0x40ffce
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 0x40ffa7
mov dword [ebp - 4], 0x10
jmp 0x40ffe0
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x110
jae 0x4100a6
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 0x40ffd7
mov dword [ebp - 4], 0
jmp 0x4100b8
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jae 0x4100d6
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 0x4100af
mov dword [ebp - 4], 0x10
jmp 0x4100e8
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x400
jae 0x4101b5
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 0x4100df
mov eax, dword [ebp + 8]
mov dword [eax + 0x1080], 0
mov dword [ebp - 4], 0
jmp 0x4101d4
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jae 0x4101f6
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 0x4101cb
mov dword [ebp - 4], 0
jmp 0x410208
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
jae 0x41022a
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 0x4101ff
mov dword [ebp - 4], 0
jmp 0x41023c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x40
jae 0x410250
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040d9b0
add esp, 4
jmp 0x410233
pop edi
pop esi
mov esp, ebp
pop ebp
ret