Function at 0x664e30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x24
call fcn.006d13f0
push ebx
mov ebx, dword [ebp + 8]
mov cl, 0x38
push esi
push edi
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
call fcn.006d19c0
mov edi, dword [ebx + 0xc]
mov esi, dword [ebx + 0x10]
mov ecx, dword [ebx + 0x20]
mov dword [ebp - 0xc], eax
mov eax, dword [ebx + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x10], edx
mov edx, dword [ebx + 0x14]
mov ebx, dword [ebx + 0x24]
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], edx
mov eax, dword [ebx + 0x2c]
cmp dword [ebp + 0x10], eax
je 0x664e90
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x28]
dec eax
cmp eax, 6
ja case.default.0x664e99
jmp dword [eax*4 + 0x665258]
movzx eax, byte [ebx + 0x3e]
cdq
shl eax, 0x10
or dword [ebp - 0x10], eax
movzx eax, byte [ebx + 0x3d]
cdq
shl eax, 8
or dword [ebp - 0x10], eax
movzx eax, byte [ebx + 0x3c]
cdq
or dword [ebp - 0x10], eax
movzx eax, byte [ebx + 0x3b]
cdq
shld edx, eax, 0x18
shl eax, 0x18
or dword [ebp - 0xc], eax
or dword [ebp - 0x10], edx
movzx eax, byte [ebx + 0x3a]
cdq
shld edx, eax, 0x10
shl eax, 0x10
or dword [ebp - 0xc], eax
or dword [ebp - 0x10], edx
movzx eax, byte [ebx + 0x39]
cdq
shld edx, eax, 8
shl eax, 8
or dword [ebp - 0xc], eax
or dword [ebp - 0x10], edx
movzx eax, byte [ebx + 0x38]
cdq
or dword [ebp - 0xc], eax
or dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0x10]
xor ecx, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x30]
test eax, eax
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x14]
jle 0x664fd5
nop
add dword [ebp - 4], esi
mov ebx, edx
adc edi, edx
shr ebx, 0x13
shld edx, esi, 0xd
mov dword [ebp - 8], edi
xor edi, edi
or edi, edx
shl esi, 0xd
xor edi, dword [ebp - 8]
or ebx, esi
xor ebx, dword [ebp - 4]
mov esi, eax
add dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], edi
mov edi, dword [ebp - 0x20]
adc edi, eax
shr esi, 0x10
shld eax, ecx, 0x10
xor edx, edx
mov dword [ebp - 0x20], edi
or edx, eax
shl ecx, 0x10
mov eax, dword [ebp - 8]
or esi, ecx
xor esi, dword [ebp - 0x18]
xor edx, edi
mov edi, dword [ebp - 0x1c]
xor ecx, ecx
or ecx, dword [ebp - 4]
add eax, esi
mov dword [ebp - 4], eax
adc ecx, edx
xor eax, eax
mov dword [ebp - 8], ecx
mov ecx, edx
shld edx, esi, 0x15
shr ecx, 0xb
or eax, edx
shl esi, 0x15
xor eax, dword [ebp - 8]
or ecx, esi
xor ecx, dword [ebp - 4]
mov esi, edi
add dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x20]
adc eax, edi
shr esi, 0xf
shld edi, ebx, 0x11
xor edx, edx
shl ebx, 0x11
or edx, edi
mov edi, dword [ebp - 8]
or esi, ebx
xor esi, dword [ebp - 0x18]
xor ebx, ebx
or ebx, dword [ebp - 0x18]
xor edx, eax
sub dword [ebp + 0x10], 1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x20], ebx
jne 0x664f20
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x1c], edx
xor edi, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
xor eax, dword [ebp - 0xc]
mov dword [ebp - 8], edi
xor edi, edi
cmp dword [ebx + 0x2c], 0x10
mov dword [ebp - 4], eax
mov dword [ebp + 0x10], 0xee
je 0x664ffa
mov dword [ebp + 0x10], 0xff
mov eax, dword [ebp - 0x18]
xor dword [ebp + 0x10], eax
mov eax, dword [ebx + 0x34]
xor edi, dword [ebp - 0x20]
test eax, eax
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], edi
jle 0x6650c7
mov dword [ebp + 0x10], ebx
mov dword [ebp - 0x10], edi
jmp 0x665025
mov eax, dword [ebp - 0x14]
add dword [ebp - 4], esi
mov ebx, edx
adc dword [ebp - 8], edx
xor edi, edi
shld edx, esi, 0xd
shr ebx, 0x13
shl esi, 0xd
or edi, edx
xor edi, dword [ebp - 8]
or ebx, esi
xor ebx, dword [ebp - 4]
mov esi, eax
add dword [ebp + 0x10], ecx
adc dword [ebp - 0x10], eax
xor edx, edx
shld eax, ecx, 0x10
shr esi, 0x10
shl ecx, 0x10
or edx, eax
xor edx, dword [ebp - 0x10]
or esi, ecx
xor esi, dword [ebp + 0x10]
xor ecx, ecx
or ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, esi
mov dword [ebp - 4], eax
adc ecx, edx
xor eax, eax
mov dword [ebp - 8], ecx
mov ecx, edx
shld edx, esi, 0x15
shr ecx, 0xb
shl esi, 0x15
or eax, edx
xor eax, dword [ebp - 8]
or ecx, esi
xor ecx, dword [ebp - 4]
mov esi, edi
add dword [ebp + 0x10], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
adc eax, edi
xor edx, edx
shld edi, ebx, 0x11
shr esi, 0xf
shl ebx, 0x11
or edx, edi
or esi, ebx
xor edi, edi
or edi, dword [ebp + 0x10]
xor edx, eax
xor esi, dword [ebp + 0x10]
mov ebx, eax
sub dword [ebp - 0x20], 1
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x10], ebx
jne 0x665022
mov eax, dword [ebp + 0xc]
mov edx, ecx
xor edx, ebx
mov dword [ebp - 0x20], 0
mov ebx, dword [ebp - 0x14]
xor edx, esi
xor edx, dword [ebp - 4]
xor ebx, edi
mov edi, dword [ebp + 0xc]
xor ebx, dword [ebp - 0x1c]
xor ebx, dword [ebp - 8]
mov byte [eax], dl
mov eax, edx
shr eax, 8
mov byte [edi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edi
mov edi, dword [ebp - 0x10]
shr edx, 0x18
mov byte [eax + 3], dl
mov edx, eax
mov eax, ebx
shr eax, 8
mov byte [edx + 5], al
mov eax, ebx
mov byte [edx + 4], bl
shr ebx, 0x18
mov byte [edx + 7], bl
mov ebx, dword [ebp + 8]
shr eax, 0x10
mov byte [edx + 6], al
cmp dword [ebx + 0x2c], 8
je 0x66524a
mov edx, dword [ebp - 0x1c]
xor esi, 0xdd
mov eax, dword [ebx + 0x34]
xor edx, 0
mov dword [ebp - 0x1c], edx
mov dword [ebp + 8], eax
test eax, eax
jle 0x6651f9
nop word [eax + eax]
add dword [ebp - 4], esi
mov ebx, edx
mov eax, dword [ebp - 8]
adc eax, edx
xor edi, edi
shld edx, esi, 0xd
shr ebx, 0x13
shl esi, 0xd
or edi, edx
or ebx, esi
mov dword [ebp - 8], eax
xor ebx, dword [ebp - 4]
xor edi, eax
add dword [ebp + 0x10], ecx
mov eax, dword [ebp - 0x14]
mov esi, eax
adc dword [ebp - 0x10], eax
xor edx, edx
shld eax, ecx, 0x10
shr esi, 0x10
shl ecx, 0x10
or edx, eax
xor edx, dword [ebp - 0x10]
or esi, ecx
xor esi, dword [ebp + 0x10]
xor ecx, ecx
or ecx, dword [ebp - 4]
mov eax, dword [ebp - 8]
add eax, esi
mov dword [ebp - 4], eax
adc ecx, edx
xor eax, eax
mov dword [ebp - 8], ecx
mov ecx, edx
shld edx, esi, 0x15
shr ecx, 0xb
shl esi, 0x15
or eax, edx
xor eax, dword [ebp - 8]
or ecx, esi
xor ecx, dword [ebp - 4]
mov esi, edi
add dword [ebp + 0x10], ebx
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
adc eax, edi
xor edx, edx
shld edi, ebx, 0x11
shr esi, 0xf
or edx, edi
shl ebx, 0x11
or esi, ebx
xor edi, edi
or edi, dword [ebp + 0x10]
xor edx, eax
xor esi, dword [ebp + 0x10]
sub dword [ebp + 8], 1
mov dword [ebp - 0x10], edi
mov dword [ebp + 0x10], eax
jne 0x665150
mov dword [ebp - 0x1c], edx
jmp 0x6651fc
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
xor ecx, eax
mov edx, dword [ebp - 0x14]
xor ecx, esi
xor ecx, dword [ebp - 4]
xor edx, edi
xor edx, dword [ebp - 0x1c]
mov eax, ecx
xor edx, dword [ebp - 8]
shr eax, 8
mov byte [ebx + 9], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 0xa], al
mov eax, edx
shr eax, 8
mov byte [ebx + 0xd], al
mov eax, edx
mov byte [ebx + 8], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [ebx + 0xc], dl
shr edx, 0x18
mov byte [ebx + 0xb], cl
mov dword [ebp - 0x20], 0
mov byte [ebx + 0xe], al
mov byte [ebx + 0xf], dl
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret