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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x13c
push esi
push edi
fld qword [0x4562d8]
fmul qword [0x451690]
fstp qword [0x4562d8]
mov eax, dword [0x4563dc]
add eax, 0x40c7bcd7
mov dword [0x4563dc], eax
mov dword [ebp - 0x108], 0
jmp 0x40edf7
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
cmp dword [ebp - 0x108], 0x10
je 0x40ee55
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [eax + edx*4]
shl ecx, 0x18
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax + edx*4 + 1]
shl edx, 0x10
or ecx, edx
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp + 0xc]
movzx eax, byte [edx + eax*4 + 2]
shl eax, 8
or ecx, eax
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp + 0xc]
movzx edx, byte [eax + edx*4 + 3]
or ecx, edx
mov eax, dword [ebp - 0x108]
mov dword [ebp + eax*4 - 0x100], ecx
jmp 0x40ede8
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 0x23ef
call fcn.0040ad50
add esp, 8
mov dword [ebp - 0x104], eax
mov dword [ebp - 0x108], 0
jmp 0x40ee9b
mov ecx, dword [ebp - 0x108]
add ecx, 1
mov dword [ebp - 0x108], ecx
cmp dword [ebp - 0x108], 0x40
je 0x40f1b5
cmp dword [ebp - 0x108], 0xf
jle 0x40f025
fld qword [0x4560f8]
fadd qword [0x451688]
mov edx, dword [0x4563bc]
mov dword [ebp - 0x13c], edx
fild dword [ebp - 0x13c]
fsubp st(1)
fsubr dword [0x4562c8]
fstp dword [0x4562c8]
mov eax, dword [0x4563bc]
add eax, 1
mov dword [0x4563bc], eax
fld qword [0x4560f8]
fadd qword [0x450050]
fstp qword [0x4560f8]
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 [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 ax, word [0x456050]
sub ax, 1
mov word [0x456050], ax
movsx ecx, word [0x456050]
cmp ecx, 0x2a8400a6
jl 0x40f0d8
fld qword [0x4563b0]
fadd qword [0x451680]
fstp qword [0x4563b0]
mov edx, dword [ebp - 0x138]
shr edx, 2
mov eax, dword [ebp - 0x138]
shl eax, 0x1e
or edx, eax
mov ecx, dword [ebp - 0x138]
shr ecx, 0xd
mov eax, dword [ebp - 0x138]
shl eax, 0x13
or ecx, eax
xor edx, ecx
mov ecx, dword [ebp - 0x138]
shr ecx, 0x16
mov eax, dword [ebp - 0x138]
shl eax, 0xa
or ecx, eax
xor edx, ecx
mov ecx, dword [ebp - 0x138]
and ecx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x138]
or eax, dword [ebp - 0x134]
and eax, dword [ebp - 0x130]
or ecx, eax
add edx, ecx
mov dword [ebp - 0x110], edx
mov ecx, dword [ebp - 0x12c]
add ecx, dword [ebp - 0x10c]
mov dword [ebp - 0x12c], ecx
mov edx, dword [ebp - 0x10c]
add edx, dword [ebp - 0x110]
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x114], 8
jmp 0x40f17f
mov eax, dword [ebp - 0x114]
sub eax, 1
mov dword [ebp - 0x114], eax
cmp dword [ebp - 0x114], 0
je 0x40f1a4
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x114]
mov eax, dword [ebp + edx*4 - 0x13c]
mov dword [ebp + ecx*4 - 0x138], eax
jmp 0x40f170
mov ecx, dword [ebp - 0x118]
mov dword [ebp - 0x138], ecx
jmp 0x40ee8c
mov edx, dword [ebp - 0x104]
push edx
push 0x100
call fcn.0040a780
add esp, 8
mov dword [ebp - 0x108], 0
jmp 0x40f1e4
mov eax, dword [ebp - 0x108]
add eax, 1
mov dword [ebp - 0x108], eax
cmp dword [ebp - 0x108], 8
je 0x40f228
mov ecx, dword [0x456028]
sub ecx, 0x6496b793
mov dword [0x456028], ecx
mov edx, dword [ebp - 0x108]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 8]
mov edx, dword [ebp - 0x108]
add ecx, dword [ebp + edx*4 - 0x138]
mov eax, dword [ebp - 0x108]
mov edx, dword [ebp + 8]
mov dword [edx + eax*4 + 8], ecx
jmp 0x40f1d5
pop edi
pop esi
mov esp, ebp
pop ebp
ret