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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x148
push esi
push edi
movsx eax, word [0x45259c]
mov ecx, dword [0x452230]
imul ecx, eax
mov dword [0x452230], ecx
mov dx, word [0x45259c]
sub dx, 1
mov word [0x45259c], dx
mov dword [ebp - 0x108], 0
jmp 0x40644e
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0x10
je 0x4064ac
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + ecx*4]
shl eax, 0x18
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx + ecx*4 + 1]
shl ecx, 0x10
or eax, ecx
mov edx, dword [ebp - 0x108]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx + edx*4 + 2]
shl edx, 8
or eax, edx
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx + ecx*4 + 3]
or eax, ecx
mov edx, dword [ebp - 0x108]
mov dword [ebp + edx*4 - 0x100], eax
jmp 0x40643f
mov esi, dword [ebp + 8]
add esi, 8
mov ecx, 9
lea edi, [ebp - 0x138]
rep movsd dword es:[edi], dword [esi]
push 0x100
push 0xd2e
call fcn.0041d520
add esp, 8
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], 0
jmp 0x4064f2
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 0x40
je 0x406847
cmp dword [ebp - 0x108], 0xf
jle 0x4066c3
mov ecx, dword [ebp - 0x108]
mov edx, dword [ebp + ecx*4 - 0x108]
shr edx, 0x11
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp + eax*4 - 0x108]
shl ecx, 0xf
or edx, ecx
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp + eax*4 - 0x108]
shr ecx, 0x13
mov eax, dword [ebp - 0x108]
mov eax, dword [ebp + eax*4 - 0x108]
shl eax, 0xd
or ecx, eax
xor edx, ecx
mov ecx, dword [ebp - 0x108]
mov eax, dword [ebp + ecx*4 - 0x108]
shr eax, 0xa
xor edx, eax
mov ecx, dword [ebp - 0x108]
mov dword [ebp + ecx*4 - 0x100], edx
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp + edx*4 - 0x100]
mov ecx, dword [ebp - 0x108]
add eax, dword [ebp + ecx*4 - 0x11c]
mov edx, dword [ebp - 0x108]
mov dword [ebp + edx*4 - 0x100], eax
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp + eax*4 - 0x13c]
shr ecx, 7
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp + edx*4 - 0x13c]
shl eax, 0x19
or ecx, eax
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp + edx*4 - 0x13c]
shr eax, 0x12
mov edx, dword [ebp - 0x108]
mov edx, dword [ebp + edx*4 - 0x13c]
shl edx, 0xe
or eax, edx
xor ecx, eax
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp + eax*4 - 0x13c]
shr edx, 3
xor ecx, edx
mov eax, dword [ebp - 0x108]
add ecx, dword [ebp + eax*4 - 0x100]
mov edx, dword [ebp - 0x108]
mov dword [ebp + edx*4 - 0x100], ecx
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp + eax*4 - 0x100]
mov edx, dword [ebp - 0x108]
add ecx, dword [ebp + edx*4 - 0x140]
mov eax, dword [ebp - 0x108]
mov dword [ebp + eax*4 - 0x100], ecx
mov ecx, dword [0x452188]
mov dword [ebp - 0x13c], ecx
fild dword [ebp - 0x13c]
movsx edx, word [0x452040]
mov dword [ebp - 0x140], edx
fild dword [ebp - 0x140]
fld qword [0x4522f8]
fsubr dword [0x45209c]
fsubrp st(1)
mov eax, dword [0x452188]
sub eax, 1
mov dword [0x452188], eax
mov cx, word [0x452040]
add cx, 1
mov word [0x452040], cx
fld qword [0x4522f8]
fadd qword [0x44bcd0]
fstp qword [0x4522f8]
fucompi st(1)
fstp st(0)
lahf
test ah, 0x44
jnp 0x4066c3
mov dx, word [0x452430]
sub dx, 1
mov word [0x452430], dx
movsx eax, word [0x452430]
add eax, 0x8f35f37
mov word [0x452044], ax
mov ecx, dword [ebp - 0x128]
shr ecx, 6
mov edx, dword [ebp - 0x128]
shl edx, 0x1a
or ecx, edx
mov eax, dword [ebp - 0x128]
shr eax, 0xb
mov edx, dword [ebp - 0x128]
shl edx, 0x15
or eax, edx
xor ecx, eax
mov eax, dword [ebp - 0x128]
shr eax, 0x19
mov edx, dword [ebp - 0x128]
shl edx, 7
or eax, edx
xor ecx, eax
add ecx, dword [ebp - 0x11c]
mov eax, dword [ebp - 0x124]
xor eax, dword [ebp - 0x120]
and eax, dword [ebp - 0x128]
xor eax, dword [ebp - 0x120]
add ecx, eax
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp - 0x104]
add ecx, dword [eax + edx*4]
mov edx, dword [ebp - 0x108]
add ecx, dword [ebp + edx*4 - 0x100]
mov dword [ebp - 0x10c], ecx
mov eax, dword [ebp - 0x138]
shr eax, 2
mov ecx, dword [ebp - 0x138]
shl ecx, 0x1e
or eax, ecx
mov edx, dword [ebp - 0x138]
shr edx, 0xd
mov ecx, dword [ebp - 0x138]
shl ecx, 0x13
or edx, ecx
xor eax, edx
mov edx, dword [ebp - 0x138]
shr edx, 0x16
mov ecx, dword [ebp - 0x138]
shl ecx, 0xa
or edx, ecx
xor eax, edx
mov edx, dword [ebp - 0x138]
and edx, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x138]
or ecx, dword [ebp - 0x134]
and ecx, dword [ebp - 0x130]
or edx, ecx
add eax, edx
mov dword [ebp - 0x110], eax
mov edx, dword [ebp - 0x12c]
add edx, dword [ebp - 0x10c]
mov dword [ebp - 0x12c], edx
mov eax, dword [ebp - 0x10c]
add eax, dword [ebp - 0x110]
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x114], 8
jmp 0x4067ec
mov ecx, dword [ebp - 0x114]
sub ecx, 1
mov dword [ebp - 0x114], ecx
cmp dword [ebp - 0x114], 0
je 0x406811
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp - 0x114]
mov ecx, dword [ebp + eax*4 - 0x13c]
mov dword [ebp + edx*4 - 0x138], ecx
jmp 0x4067dd
movsx edx, word [0x4524e0]
sub edx, 0x1a8ac927
mov dword [ebp - 0x144], edx
fild dword [ebp - 0x144]
fmul qword [0x4520e0]
fstp qword [0x4520e0]
mov eax, dword [ebp - 0x118]
mov dword [ebp - 0x138], eax
jmp 0x4064e3
mov ecx, dword [ebp - 0x104]
push ecx
push 0x100
call fcn.0040e590
add esp, 8
mov dword [ebp - 0x108], 0
jmp 0x406876
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
cmp dword [ebp - 0x108], 8
je 0x4068ca
mov eax, dword [ebp - 0x108]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 8]
mov eax, dword [ebp - 0x108]
add edx, dword [ebp + eax*4 - 0x138]
mov ecx, dword [ebp - 0x108]
mov eax, dword [ebp + 8]
mov dword [eax + ecx*4 + 8], edx
mov ecx, dword [0x452364]
mov dword [ebp - 0x148], ecx
fild dword [ebp - 0x148]
fadd dword [0x4522a8]
call fcn.004208f0
mov dword [0x452364], eax
jmp 0x406867
pop edi
pop esi
mov esp, ebp
pop ebp
ret