Function at 0x6473347c
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov ebx, dword [esp + 0x50]
mov esi, dword [ebx]
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 8]
mov ecx, dword [ebx + 4]
test ecx, ecx
js 0x647334b1
lea edi, [esi + eax]
sub edx, eax
mov dword [esp + 0x14], edx
mov ecx, dword [ebx + 0x14]
test ecx, ecx
je 0x647334bc
mov eax, dword [ebx + 0x18]
add eax, ecx
cmp dword [esp + 0x14], eax
jge 0x64733514
xor eax, eax
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
cmp dword [esp + 0x14], 0x1a
jle 0x647334b1
mov dword [esp + 8], 4
mov dword [esp + 4], str.OggS
mov dword [esp], edi
call fcn.647d42a4
test eax, eax
jne 0x647335e1
movzx eax, byte [edi + 0x1a]
lea ecx, [eax + 0x1b]
cmp dword [esp + 0x14], ecx
jl 0x647334b1
test eax, eax
mov eax, dword [ebx + 0x18]
je 0x6473350f
xor edx, edx
lea esi, [esi]
movzx esi, byte [edi + edx + 0x1b]
add eax, esi
mov dword [ebx + 0x18], eax
inc edx
movzx esi, byte [edi + 0x1a]
cmp esi, edx
jg 0x647334fc
mov dword [ebx + 0x14], ecx
jmp 0x647334a9
mov eax, dword [edi + 0x16]
mov dword [esp + 0x2c], eax
lea eax, [edi + 0x16]
mov dword [esp + 0x1c], eax
mov dword [edi + 0x16], 0
mov eax, dword [ebx + 0x14]
lea ecx, [edi + eax]
mov edx, dword [ebx + 0x18]
mov dword [esp + 0x18], edx
mov byte [edi + 0x16], 0
mov byte [edi + 0x17], 0
mov byte [edi + 0x18], 0
mov byte [edi + 0x19], 0
test eax, eax
jle 0x64733673
mov esi, edi
xor edx, edx
nop
mov ebp, edx
shl ebp, 8
movzx eax, byte [esi]
shr edx, 0x18
xor eax, edx
mov edx, dword [eax*4 + 0x64813ac0]
xor edx, ebp
inc esi
cmp esi, ecx
jne 0x64733554
mov eax, edx
shr eax, 0x18
mov ebp, dword [esp + 0x18]
test ebp, ebp
jle 0x647335a4
mov ebp, dword [esp + 0x18]
add ebp, ecx
nop
mov esi, edx
shl esi, 8
movzx eax, byte [ecx]
shr edx, 0x18
xor eax, edx
mov edx, dword [eax*4 + 0x64813ac0]
xor edx, esi
inc ecx
cmp ecx, ebp
jne 0x64733584
mov eax, edx
shr eax, 0x18
mov byte [edi + 0x16], dl
mov ecx, edx
shr ecx, 8
mov byte [edi + 0x17], cl
shr edx, 0x10
mov byte [edi + 0x18], dl
mov byte [edi + 0x19], al
mov dword [esp + 8], 4
mov ecx, dword [esp + 0x1c]
mov dword [esp + 4], ecx
lea eax, [esp + 0x2c]
mov dword [esp], eax
call fcn.647d42a4
test eax, eax
je 0x64733624
mov eax, dword [esp + 0x2c]
mov dword [edi + 0x16], eax
mov esi, dword [ebx]
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
mov eax, dword [esp + 0x14]
dec eax
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4f
lea eax, [edi + 1]
mov dword [esp], eax
call fcn.647d43e4
test eax, eax
je 0x6473366c
mov edx, eax
sub edx, esi
mov dword [ebx + 0xc], edx
sub edi, eax
mov eax, edi
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov edx, dword [ebx + 0xc]
mov ecx, dword [ebx]
add ecx, edx
mov esi, dword [esp + 0x54]
test esi, esi
je 0x6473367c
mov esi, dword [esp + 0x54]
mov dword [esi], ecx
mov eax, dword [ebx + 0x14]
mov dword [esi + 4], eax
add ecx, eax
mov dword [esi + 8], ecx
mov edi, dword [ebx + 0x18]
mov dword [esi + 0xc], edi
mov dword [ebx + 0x10], 0
add eax, edi
add edx, eax
mov dword [ebx + 0xc], edx
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x18], 0
jmp 0x647334b3
mov eax, dword [ebx + 8]
add eax, esi
jmp 0x6473360f
xor eax, eax
xor edx, edx
jmp 0x64733574
mov edi, dword [ebx + 0x18]
mov eax, dword [ebx + 0x14]
jmp 0x6473364a