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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov dword [ebp - 4], 0
jmp 0x40fbb8
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 0x40fbe1
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 0x40fbaf
jmp 0x40fbec
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
jae 0x40fc0e
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 0x40fbe3
mov dword [ebp - 4], 0
jmp 0x40fc20
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 8
jae 0x40fc3e
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 0x40fc17
mov dword [ebp - 4], 8
jmp 0x40fc50
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
jae 0x40fc6e
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 0x40fc47
mov dword [ebp - 4], 0x10
jmp 0x40fc80
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x110
jae 0x40fd46
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 0x40fc77
mov dword [ebp - 4], 0
jmp 0x40fd58
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x10
jae 0x40fd76
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 0x40fd4f
mov dword [ebp - 4], 0x10
jmp 0x40fd88
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x400
jae 0x40fe55
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 0x40fd7f
mov eax, dword [ebp + 8]
mov dword [eax + 0x1080], 0
mov dword [ebp - 4], 0
jmp 0x40fe74
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x10
jae 0x40fe96
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 0x40fe6b
mov dword [ebp - 4], 0
jmp 0x40fea8
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
jae 0x40feca
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 0x40fe9f
mov dword [ebp - 4], 0
jmp 0x40fedc
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x40
jae 0x40fef0
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040d650
add esp, 4
jmp 0x40fed3
pop edi
pop esi
mov esp, ebp
pop ebp
ret