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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
push esi
push edi
movsd xmm0, qword [0x4661b8]
subsd xmm0, qword [0x45b438]
movsx eax, word [0x46638c]
cvtsi2sd xmm1, eax
mulsd xmm1, xmm0
cvttsd2si ecx, xmm1
mov word [0x46638c], cx
movsd xmm0, qword [0x4661b8]
subsd xmm0, qword [0x45b238]
movsd qword [0x4661b8], xmm0
mov dword [ebp - 4], 0
jmp 0x4144df
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x10
je 0x41452b
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + eax*4]
shl edx, 0x18
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + eax*4 + 1]
shl eax, 0x10
or edx, eax
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + ecx*4 + 2]
shl ecx, 8
or edx, ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ecx + eax*4 + 3]
or edx, eax
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x140], edx
jmp 0x4144d6
mov esi, dword [ebp + 8]
add esi, 8
mov ecx, 9
lea edi, [ebp - 0x2c]
rep movsd dword es:[edi], dword [esi]
push 0x100
push 0x297b
call fcn.00417b00
add esp, 8
mov dword [ebp - 0x34], eax
mov edx, dword [0x4661f8]
add edx, 0x58e6304f
mov dword [0x4661f8], edx
mov dword [ebp - 4], 0
jmp 0x414574
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x40
je 0x414952
cmp dword [ebp - 4], 0xf
jle 0x414683
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + ecx*4 - 0x148]
shr edx, 0x11
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0x148]
shl ecx, 0xf
or edx, ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0x148]
shr ecx, 0x13
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x148]
shl eax, 0xd
or ecx, eax
xor edx, ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + ecx*4 - 0x148]
shr eax, 0xa
xor edx, eax
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x140], edx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + edx*4 - 0x140]
mov ecx, dword [ebp - 4]
add eax, dword [ebp + ecx*4 - 0x15c]
mov edx, dword [ebp - 4]
mov dword [ebp + edx*4 - 0x140], eax
mov eax, dword [0x4662a8]
sub eax, 0x60c650dc
mov dword [0x4662a8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + ecx*4 - 0x17c]
shr edx, 7
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0x17c]
shl ecx, 0x19
or edx, ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + eax*4 - 0x17c]
shr ecx, 0x12
mov eax, dword [ebp - 4]
mov eax, dword [ebp + eax*4 - 0x17c]
shl eax, 0xe
or ecx, eax
xor edx, ecx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp + ecx*4 - 0x17c]
shr eax, 3
xor edx, eax
mov ecx, dword [ebp - 4]
add edx, dword [ebp + ecx*4 - 0x140]
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x140], edx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + ecx*4 - 0x140]
mov eax, dword [ebp - 4]
add edx, dword [ebp + eax*4 - 0x180]
mov ecx, dword [ebp - 4]
mov dword [ebp + ecx*4 - 0x140], edx
mov edx, dword [0x466234]
mov dword [ebp - 0x38], edx
movsx eax, word [0x4661a8]
sub eax, dword [0x466348]
sub eax, dword [0x4662a8]
mov dword [ebp - 0x3c], eax
mov ecx, dword [0x4662a8]
sub ecx, 1
mov dword [0x4662a8], ecx
mov dx, word [0x4661a8]
add dx, 1
mov word [0x4661a8], dx
mov eax, dword [0x466234]
add eax, 1
mov dword [0x466234], eax
mov ecx, dword [ebp - 0x38]
cmp ecx, dword [ebp - 0x3c]
jle 0x414724
mov edx, dword [0x4661c4]
sub edx, dword [0x46614c]
cvtsi2ss xmm0, edx
subss xmm0, dword [0x466324]
cvtss2sd xmm0, xmm0
movsd xmm1, qword [0x466010]
subsd xmm1, xmm0
movsd qword [0x466010], xmm1
mov eax, dword [0x46614c]
sub eax, 1
mov dword [0x46614c], eax
mov ecx, dword [0x4661c4]
add ecx, 1
mov dword [0x4661c4], ecx
movsd xmm0, qword [0x466040]
addsd xmm0, qword [0x45b238]
movsd qword [0x466040], xmm0
movsd xmm0, qword [0x466040]
movsx edx, word [0x4663d4]
cvtsi2sd xmm1, edx
addsd xmm0, xmm1
movsd xmm1, qword [0x466108]
addsd xmm1, xmm0
movsd qword [0x466108], xmm1
mov eax, 4
imul ecx, eax, 7
mov edx, 4
shl edx, 2
mov eax, dword [ebp + edx - 0x2c]
shr eax, 6
mov edx, 4
shl edx, 2
mov edx, dword [ebp + edx - 0x2c]
shl edx, 0x1a
or eax, edx
mov edx, 4
shl edx, 2
mov edx, dword [ebp + edx - 0x2c]
shr edx, 0xb
mov esi, 4
shl esi, 2
mov esi, dword [ebp + esi - 0x2c]
shl esi, 0x15
or edx, esi
xor eax, edx
mov edx, 4
shl edx, 2
mov edx, dword [ebp + edx - 0x2c]
shr edx, 0x19
mov esi, 4
shl esi, 2
mov esi, dword [ebp + esi - 0x2c]
shl esi, 7
or edx, esi
xor eax, edx
mov ecx, dword [ebp + ecx - 0x2c]
add ecx, eax
mov edx, 4
imul eax, edx, 6
mov edx, 4
shl edx, 2
mov esi, 4
imul esi, esi, 5
mov edi, 4
imul edi, edi, 6
mov esi, dword [ebp + esi - 0x2c]
xor esi, dword [ebp + edi - 0x2c]
and esi, dword [ebp + edx - 0x2c]
xor esi, dword [ebp + eax - 0x2c]
add ecx, esi
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x34]
add ecx, dword [edx + eax*4]
mov eax, dword [ebp - 4]
add ecx, dword [ebp + eax*4 - 0x140]
mov dword [ebp - 0x30], ecx
mov ecx, 4
imul edx, ecx, 0
mov eax, dword [ebp + edx - 0x2c]
shr eax, 2
mov ecx, 4
imul edx, ecx, 0
mov ecx, dword [ebp + edx - 0x2c]
shl ecx, 0x1e
or eax, ecx
mov edx, 4
imul ecx, edx, 0
mov edx, dword [ebp + ecx - 0x2c]
shr edx, 0xd
mov ecx, 4
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 0x2c]
shl ecx, 0x13
or edx, ecx
xor eax, edx
mov edx, 4
imul ecx, edx, 0
mov edx, dword [ebp + ecx - 0x2c]
shr edx, 0x16
mov ecx, 4
imul ecx, ecx, 0
mov ecx, dword [ebp + ecx - 0x2c]
shl ecx, 0xa
or edx, ecx
xor eax, edx
mov edx, 4
imul ecx, edx, 0
mov edx, 4
shl edx, 0
mov ecx, dword [ebp + ecx - 0x2c]
and ecx, dword [ebp + edx - 0x2c]
mov edx, 4
shl edx, 1
mov esi, 4
imul esi, esi, 0
mov edi, 4
shl edi, 0
mov esi, dword [ebp + esi - 0x2c]
or esi, dword [ebp + edi - 0x2c]
and esi, dword [ebp + edx - 0x2c]
or ecx, esi
add eax, ecx
mov dword [ebp - 0x40], eax
mov eax, 4
imul ecx, eax, 3
mov edx, dword [ebp + ecx - 0x2c]
add edx, dword [ebp - 0x30]
mov eax, 4
imul ecx, eax, 3
mov dword [ebp + ecx - 0x2c], edx
mov edx, dword [ebp - 0x30]
add edx, dword [ebp - 0x40]
mov eax, 4
imul ecx, eax, 7
mov dword [ebp + ecx - 0x2c], edx
mov dword [ebp - 8], 8
jmp 0x414906
mov edx, dword [ebp - 8]
sub edx, 1
mov dword [ebp - 8], edx
cmp dword [ebp - 8], 0
je 0x414935
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + ecx*4 - 0x30]
mov dword [ebp + eax*4 - 0x2c], edx
movss xmm0, dword [0x466408]
addss xmm0, dword [0x45ba78]
cvttss2si eax, xmm0
mov dword [0x4663d0], eax
jmp 0x4148fd
mov ecx, 4
shl ecx, 3
mov edx, 4
imul eax, edx, 0
mov ecx, dword [ebp + ecx - 0x2c]
mov dword [ebp + eax - 0x2c], ecx
jmp 0x41456b
movss xmm0, dword [0x466324]
addss xmm0, dword [0x45b230]
movss dword [0x466324], xmm0
movss xmm0, dword [0x4660d4]
addss xmm0, dword [0x45c5d4]
subss xmm0, dword [0x466324]
movss xmm1, dword [0x4661ac]
addss xmm1, xmm0
movss dword [0x4661ac], xmm1
movss xmm0, dword [0x4660d4]
subss xmm0, dword [0x45b230]
movss dword [0x4660d4], xmm0
mov edx, dword [ebp - 0x34]
push edx
push 0x100
call fcn.00404ba0
add esp, 8
mov dword [ebp - 4], 0
jmp 0x4149d1
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 8
je 0x414acb
movss xmm0, dword [0x4663a4]
subss xmm0, dword [0x45b230]
movss dword [0x4663a4], xmm0
movss xmm0, dword [0x4661b4]
subss xmm0, dword [0x45ba1c]
addss xmm0, dword [0x4663a4]
movss xmm1, dword [0x45c3b0]
ucomiss xmm1, xmm0
lahf
test ah, 0x44
jnp 0x414a76
mov ecx, dword [0x4660b8]
sub ecx, 0xf5025cf
cvtsi2sd xmm0, ecx
addsd xmm0, qword [0x466138]
movsx edx, word [0x46637c]
cvtsi2sd xmm1, edx
mulsd xmm1, xmm0
cvttsd2si eax, xmm1
mov word [0x46637c], ax
movsd xmm0, qword [0x466138]
subsd xmm0, qword [0x45b238]
movsd qword [0x466138], xmm0
mov ecx, dword [0x4660b8]
add ecx, 1
mov dword [0x4660b8], ecx
jmp 0x414aab
movsx edx, word [0x46618c]
cvtsi2ss xmm0, edx
addss xmm0, dword [0x46626c]
cvttss2si eax, xmm0
mov word [0x46618c], ax
movss xmm0, dword [0x46626c]
addss xmm0, dword [0x45b230]
movss dword [0x46626c], xmm0
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
mov eax, dword [edx + ecx*4 + 8]
mov ecx, dword [ebp - 4]
add eax, dword [ebp + ecx*4 - 0x2c]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + edx*4 + 8], eax
jmp 0x4149c8
pop edi
pop esi
mov esp, ebp
pop ebp
ret