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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
push esi
mov dword [ebp - 0x104], 0
jmp 0x50f075
mov eax, dword [ebp - 0x104]
add eax, 1
mov dword [ebp - 0x104], eax
mov ecx, dword [ebp - 0x104]
cmp ecx, dword [ebp + 0x10]
jge 0x50f449
mov edx, dword [ebp - 0x104]
shl edx, 6
add edx, dword [ebp + 0xc]
mov dword [ebp - 0x130], edx
mov dword [ebp - 0x134], 0
jmp 0x50f0b1
mov eax, dword [ebp - 0x134]
add eax, 1
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0x10
jge 0x50f11b
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x130]
movzx eax, byte [edx + ecx*4 + 3]
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x130]
movzx ecx, byte [edx + ecx*4 + 2]
shl ecx, 8
or eax, ecx
mov edx, dword [ebp - 0x134]
mov ecx, dword [ebp - 0x130]
movzx edx, byte [ecx + edx*4 + 1]
shl edx, 0x10
or eax, edx
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp - 0x130]
movzx ecx, byte [edx + ecx*4]
shl ecx, 0x18
or eax, ecx
mov edx, dword [ebp - 0x134]
mov dword [ebp + edx*4 - 0x100], eax
jmp 0x50f0a2
mov dword [ebp - 0x134], 0x10
jmp 0x50f136
mov eax, dword [ebp - 0x134]
add eax, 1
mov dword [ebp - 0x134], eax
cmp dword [ebp - 0x134], 0x40
jge 0x50f221
mov ecx, dword [ebp - 0x134]
mov edx, dword [ebp + ecx*4 - 0x108]
shr edx, 0x11
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp + eax*4 - 0x108]
shl ecx, 0xf
or edx, ecx
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp + eax*4 - 0x108]
shr ecx, 0x13
mov eax, dword [ebp - 0x134]
mov eax, dword [ebp + eax*4 - 0x108]
shl eax, 0xd
or ecx, eax
xor edx, ecx
mov ecx, dword [ebp - 0x134]
mov eax, dword [ebp + ecx*4 - 0x108]
shr eax, 0xa
xor edx, eax
mov ecx, dword [ebp - 0x134]
add edx, dword [ebp + ecx*4 - 0x11c]
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp + eax*4 - 0x13c]
shr ecx, 7
mov eax, dword [ebp - 0x134]
mov eax, dword [ebp + eax*4 - 0x13c]
shl eax, 0x19
or ecx, eax
mov eax, dword [ebp - 0x134]
mov eax, dword [ebp + eax*4 - 0x13c]
shr eax, 0x12
mov esi, dword [ebp - 0x134]
mov esi, dword [ebp + esi*4 - 0x13c]
shl esi, 0xe
or eax, esi
xor ecx, eax
mov eax, dword [ebp - 0x134]
mov eax, dword [ebp + eax*4 - 0x13c]
shr eax, 3
xor ecx, eax
add edx, ecx
mov ecx, dword [ebp - 0x134]
add edx, dword [ebp + ecx*4 - 0x140]
mov eax, dword [ebp - 0x134]
mov dword [ebp + eax*4 - 0x100], edx
jmp 0x50f127
mov dword [ebp - 0x134], 0
jmp 0x50f23c
mov ecx, dword [ebp - 0x134]
add ecx, 1
mov dword [ebp - 0x134], ecx
cmp dword [ebp - 0x134], 8
jge 0x50f264
mov edx, dword [ebp - 0x134]
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + eax*4 + 0x88]
mov dword [ebp + edx*4 - 0x124], eax
jmp 0x50f22d
mov dword [ebp - 0x134], 0
jmp 0x50f27f
mov ecx, dword [ebp - 0x134]
add ecx, 1
mov dword [ebp - 0x134], ecx
cmp dword [ebp - 0x134], 0x40
jge 0x50f3f1
mov edx, dword [ebp - 0x114]
shr edx, 6
mov eax, dword [ebp - 0x114]
shl eax, 0x1a
or edx, eax
mov ecx, dword [ebp - 0x114]
shr ecx, 0xb
mov eax, dword [ebp - 0x114]
shl eax, 0x15
or ecx, eax
xor edx, ecx
mov ecx, dword [ebp - 0x114]
shr ecx, 0x19
mov eax, dword [ebp - 0x114]
shl eax, 7
or ecx, eax
xor edx, ecx
add edx, dword [ebp - 0x108]
mov ecx, dword [ebp - 0x114]
and ecx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x114]
not eax
and eax, dword [ebp - 0x10c]
xor ecx, eax
add edx, ecx
mov ecx, dword [ebp - 0x134]
add edx, dword [ecx*4 + 0x53f490]
mov eax, dword [ebp - 0x134]
add edx, dword [ebp + eax*4 - 0x100]
mov dword [ebp - 0x12c], edx
mov ecx, dword [ebp - 0x124]
shr ecx, 2
mov edx, dword [ebp - 0x124]
shl edx, 0x1e
or ecx, edx
mov eax, dword [ebp - 0x124]
shr eax, 0xd
mov edx, dword [ebp - 0x124]
shl edx, 0x13
or eax, edx
xor ecx, eax
mov eax, dword [ebp - 0x124]
shr eax, 0x16
mov edx, dword [ebp - 0x124]
shl edx, 0xa
or eax, edx
xor ecx, eax
mov eax, dword [ebp - 0x124]
and eax, dword [ebp - 0x120]
mov edx, dword [ebp - 0x124]
and edx, dword [ebp - 0x11c]
xor eax, edx
mov edx, dword [ebp - 0x120]
and edx, dword [ebp - 0x11c]
xor eax, edx
add ecx, eax
mov dword [ebp - 0x128], ecx
mov eax, dword [ebp - 0x10c]
mov dword [ebp - 0x108], eax
mov ecx, dword [ebp - 0x110]
mov dword [ebp - 0x10c], ecx
mov edx, dword [ebp - 0x114]
mov dword [ebp - 0x110], edx
mov eax, dword [ebp - 0x118]
add eax, dword [ebp - 0x12c]
mov dword [ebp - 0x114], eax
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x118], ecx
mov edx, dword [ebp - 0x120]
mov dword [ebp - 0x11c], edx
mov eax, dword [ebp - 0x124]
mov dword [ebp - 0x120], eax
mov ecx, dword [ebp - 0x12c]
add ecx, dword [ebp - 0x128]
mov dword [ebp - 0x124], ecx
jmp 0x50f270
mov dword [ebp - 0x134], 0
jmp 0x50f40c
mov edx, dword [ebp - 0x134]
add edx, 1
mov dword [ebp - 0x134], edx
cmp dword [ebp - 0x134], 8
jge 0x50f444
mov eax, dword [ebp - 0x134]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x88]
mov eax, dword [ebp - 0x134]
add edx, dword [ebp + eax*4 - 0x124]
mov ecx, dword [ebp - 0x134]
mov eax, dword [ebp + 8]
mov dword [eax + ecx*4 + 0x88], edx
jmp 0x50f3fd
jmp 0x50f066
pop esi
mov esp, ebp
pop ebp
ret