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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
mov dword [ebp - 8], eax
mov dword [ebp - 0x144], 0
cmp dword [ebp - 0x144], 0x10
jge 0x40a07d
lea eax, [ebp - 0x108]
mov ecx, dword [ebp - 0x144]
mov edx, dword [ebp - 8]
shl ecx, 2
add edx, ecx
mov ecx, dword [ebp - 0x144]
shl ecx, 2
add eax, ecx
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.004082c4
mov eax, dword [ebp - 0x144]
add eax, 1
mov dword [ebp - 0x144], eax
jmp 0x40a033
jmp 0x40a07f
cmp dword [ebp - 0x144], 0x40
jge 0x40a1d9
mov eax, dword [ebp - 0x144]
sub eax, 0xf
mov eax, dword [ebp + eax*4 - 0x108]
shr eax, 7
mov ecx, dword [ebp - 0x144]
sub ecx, 0xf
mov ecx, dword [ebp + ecx*4 - 0x108]
shl ecx, 0x19
or eax, ecx
mov ecx, dword [ebp - 0x144]
sub ecx, 0xf
mov ecx, dword [ebp + ecx*4 - 0x108]
shr ecx, 0x12
mov edx, dword [ebp - 0x144]
sub edx, 0xf
mov edx, dword [ebp + edx*4 - 0x108]
shl edx, 0xe
or ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 0x144]
sub ecx, 0xf
mov ecx, dword [ebp + ecx*4 - 0x108]
shr ecx, 3
xor eax, ecx
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x144]
sub eax, 2
mov eax, dword [ebp + eax*4 - 0x108]
shr eax, 0x11
mov ecx, dword [ebp - 0x144]
sub ecx, 2
mov ecx, dword [ebp + ecx*4 - 0x108]
shl ecx, 0xf
or eax, ecx
mov ecx, dword [ebp - 0x144]
sub ecx, 2
mov ecx, dword [ebp + ecx*4 - 0x108]
shr ecx, 0x13
mov edx, dword [ebp - 0x144]
sub edx, 2
mov edx, dword [ebp + edx*4 - 0x108]
shl edx, 0xd
or ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 0x144]
sub ecx, 2
mov ecx, dword [ebp + ecx*4 - 0x108]
shr ecx, 0xa
xor eax, ecx
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x144]
sub eax, 0x10
mov eax, dword [ebp + eax*4 - 0x108]
add eax, dword [ebp - 0x12c]
mov ecx, dword [ebp - 0x144]
sub ecx, 7
add eax, dword [ebp + ecx*4 - 0x108]
add eax, dword [ebp - 0x130]
mov ecx, dword [ebp - 0x144]
mov dword [ebp + ecx*4 - 0x108], eax
mov eax, dword [ebp - 0x144]
add eax, 1
mov dword [ebp - 0x144], eax
jmp 0x40a07f
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 8]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x14]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x18]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x128], eax
mov dword [ebp - 0x144], 0
cmp dword [ebp - 0x144], 0x40
jge 0x40a3f8
mov eax, dword [ebp - 0x11c]
shr eax, 6
mov ecx, dword [ebp - 0x11c]
shl ecx, 0x1a
or eax, ecx
mov ecx, dword [ebp - 0x11c]
shr ecx, 0xb
mov edx, dword [ebp - 0x11c]
shl edx, 0x15
or ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 0x11c]
shr ecx, 0x19
mov edx, dword [ebp - 0x11c]
shl edx, 7
or ecx, edx
xor eax, ecx
mov dword [ebp - 0x130], eax
mov eax, dword [ebp - 0x11c]
and eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 0x11c]
xor ecx, 0xffffffff
and ecx, dword [ebp - 0x124]
xor eax, ecx
mov dword [ebp - 0x134], eax
mov eax, dword [ebp - 0x128]
add eax, dword [ebp - 0x130]
add eax, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x144]
add eax, dword [ecx*4 + 0x41d7cc]
mov ecx, dword [ebp - 0x144]
add eax, dword [ebp + ecx*4 - 0x108]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp - 0x10c]
shr eax, 2
mov ecx, dword [ebp - 0x10c]
shl ecx, 0x1e
or eax, ecx
mov ecx, dword [ebp - 0x10c]
shr ecx, 0xd
mov edx, dword [ebp - 0x10c]
shl edx, 0x13
or ecx, edx
xor eax, ecx
mov ecx, dword [ebp - 0x10c]
shr ecx, 0x16
mov edx, dword [ebp - 0x10c]
shl edx, 0xa
or ecx, edx
xor eax, ecx
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp - 0x10c]
and eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 0x10c]
and ecx, dword [ebp - 0x114]
xor eax, ecx
mov ecx, dword [ebp - 0x110]
and ecx, dword [ebp - 0x114]
xor eax, ecx
mov dword [ebp - 0x138], eax
mov eax, dword [ebp - 0x12c]
add eax, dword [ebp - 0x138]
mov dword [ebp - 0x140], eax
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x128], eax
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x124], eax
mov eax, dword [ebp - 0x11c]
mov dword [ebp - 0x120], eax
mov eax, dword [ebp - 0x118]
add eax, dword [ebp - 0x13c]
mov dword [ebp - 0x11c], eax
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x118], eax
mov eax, dword [ebp - 0x110]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x110], eax
mov eax, dword [ebp - 0x13c]
add eax, dword [ebp - 0x140]
mov dword [ebp - 0x10c], eax
mov eax, dword [ebp - 0x144]
add eax, 1
mov dword [ebp - 0x144], eax
jmp 0x40a242
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
add edx, eax
mov dword [ecx], edx
mov eax, dword [ebp - 0x110]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
add edx, eax
mov dword [ecx + 4], edx
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 8]
add edx, eax
mov dword [ecx + 8], edx
mov eax, dword [ebp - 0x118]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0xc]
add edx, eax
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x11c]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
add edx, eax
mov dword [ecx + 0x10], edx
mov eax, dword [ebp - 0x120]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x14]
add edx, eax
mov dword [ecx + 0x14], edx
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x18]
add edx, eax
mov dword [ecx + 0x18], edx
mov eax, dword [ebp - 0x128]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x1c]
add edx, eax
mov dword [ecx + 0x1c], edx
add esp, 0x14c
pop ebp
ret