Function at 0x876198
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
push edi
push esi
push ebp
push ebx
sub esp, 0x34
mov dword [esp + 0x14], edx
mov ebx, eax
mov ecx, dword [ebx]
mov dword [esp + 0x1c], ecx
mov ebp, dword [ebx + 0xc]
lea edx, [ebp + ecx]
mov dword [esp + 0x20], ebp
mov edi, dword [ebx + 0x14]
mov dword [esp + 0x24], edx
mov edx, dword [ebx + 8]
sub edx, ebp
test edi, edi
jne 0x876269
cmp edx, 0x1b
jl 0x876272
mov esi, dword [esp + 0x24]
mov edi, str.OggS
mov ecx, 4
xor eax, eax
test ecx, ecx
je 0x876200
mov al, byte [esi]
sub al, byte [edi]
jne 0x876200
add esi, 1
add edi, 1
sub ecx, 1
jne 0x8761ef
seta al
setb cl
sub al, cl
movsx eax, al
test eax, eax
jne 0x87651f
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
movzx ecx, byte [ecx + ebp + 0x1a]
lea edi, [ecx + 0x1b]
cmp edx, edi
jl 0x876272
xor ebp, ebp
test ecx, ecx
jle 0x87655b
mov esi, dword [ebx + 0x18]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], edx
mov edx, dword [esp + 0x20]
movzx edi, byte [ebp + eax + 0x1b]
add esi, edi
inc ebp
mov dword [ebx + 0x18], esi
movzx edi, byte [ecx + edx + 0x1a]
cmp ebp, edi
jl 0x876248
mov edi, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [ebx + 0x14], edi
jmp 0x87626c
mov esi, dword [ebx + 0x18]
add edi, esi
cmp edi, edx
jle 0x87627c
xor eax, eax
add esp, 0x34
pop ebx
pop ebp
pop esi
pop edi
ret
mov ebp, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
lea esi, [ecx + ebp + 0x16]
mov dword [esp + 0x2c], esi
mov edi, dword [esi]
mov dword [esp + 0x10], edi
mov ecx, esi
mov dword [ecx], 0
mov ecx, dword [esp + 0x24]
mov ebp, dword [ebx + 0x14]
mov esi, dword [ebx + 0x18]
mov dword [esp], ecx
mov dword [esp + 4], ebp
add ebp, ecx
mov dword [esp + 8], ebp
mov dword [esp + 0xc], esi
xor eax, eax
xor ecx, ecx
mov ebp, dword [esp + 0x1c]
mov esi, dword [esp + 0x20]
mov byte [ebp + esi + 0x16], cl
mov edi, dword [esp]
xor esi, esi
mov byte [edi + 0x17], cl
mov ebp, dword [esp]
mov byte [ebp + 0x18], cl
mov ebp, dword [esp]
mov byte [ebp + 0x19], cl
mov ebp, dword [esp + 4]
test ebp, ebp
jle 0x87657f
cmp ebp, 6
jl 0x876573
mov ecx, dword [esp]
mov dword [esp + 0x30], ecx
lea ecx, [ebp - 6]
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ebx
mov edx, dword [esp + 0x30]
mov ebx, eax
shl ebx, 8
shr eax, 0x18
movzx edi, byte [edx + esi]
xor eax, edi
xor ebx, dword [eax*4 + 0xa24e60]
mov edi, ebx
shl edi, 8
shr ebx, 0x18
movzx eax, byte [edx + esi + 1]
xor ebx, eax
xor edi, dword [ebx*4 + 0xa24e60]
mov eax, edi
shl eax, 8
shr edi, 0x18
movzx ebx, byte [edx + esi + 2]
xor edi, ebx
xor eax, dword [edi*4 + 0xa24e60]
mov ebx, eax
shl ebx, 8
shr eax, 0x18
movzx edi, byte [edx + esi + 3]
xor eax, edi
xor ebx, dword [eax*4 + 0xa24e60]
mov eax, ebx
shl eax, 8
shr ebx, 0x18
movzx edi, byte [edx + esi + 4]
xor ebx, edi
xor eax, dword [ebx*4 + 0xa24e60]
add esi, 5
cmp esi, ecx
jle 0x876304
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x18], ebx
mov edi, dword [esp + 0x30]
mov ebx, eax
shl ebx, 8
shr eax, 0x18
movzx ecx, byte [edi + esi]
xor eax, ecx
mov ecx, eax
mov eax, ebx
inc esi
xor eax, dword [ecx*4 + 0xa24e60]
cmp esi, ebp
jl 0x876388
mov ebx, dword [esp + 0x18]
xor edi, edi
mov esi, dword [esp + 0xc]
test esi, esi
jle 0x876474
cmp esi, 6
jl 0x87656a
mov ebp, dword [esp + 8]
lea ecx, [esi - 6]
mov dword [esp + 0x28], edx
mov dword [esp + 0x18], ebx
mov edx, eax
shl edx, 8
shr eax, 0x18
movzx ebx, byte [ebp + edi]
xor eax, ebx
xor edx, dword [eax*4 + 0xa24e60]
mov ebx, edx
shl ebx, 8
shr edx, 0x18
movzx eax, byte [ebp + edi + 1]
xor edx, eax
xor ebx, dword [edx*4 + 0xa24e60]
mov eax, ebx
shl eax, 8
shr ebx, 0x18
movzx edx, byte [ebp + edi + 2]
xor ebx, edx
xor eax, dword [ebx*4 + 0xa24e60]
mov edx, eax
shl edx, 8
shr eax, 0x18
movzx ebx, byte [ebp + edi + 3]
xor eax, ebx
xor edx, dword [eax*4 + 0xa24e60]
mov eax, edx
shl eax, 8
shr edx, 0x18
movzx ebx, byte [ebp + edi + 4]
xor edx, ebx
xor eax, dword [edx*4 + 0xa24e60]
add edi, 5
cmp edi, ecx
jle 0x8763d0
mov edx, dword [esp + 0x28]
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x18], ebx
mov ebx, eax
shl ebx, 8
shr eax, 0x18
movzx ecx, byte [ebp + edi]
xor eax, ecx
mov ecx, eax
mov eax, ebx
inc edi
xor eax, dword [ecx*4 + 0xa24e60]
cmp edi, esi
jl 0x876451
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x30]
mov ecx, eax
shr ecx, 8
mov byte [ebp + 0x16], al
mov esi, dword [esp]
mov byte [esi + 0x17], cl
mov ecx, eax
shr ecx, 0x10
mov edi, dword [esp]
shr eax, 0x18
mov byte [edi + 0x18], cl
mov ecx, dword [esp]
mov byte [ecx + 0x19], al
lea esi, [esp + 0x10]
mov edi, dword [esp + 0x2c]
mov ecx, 4
xor eax, eax
test ecx, ecx
je 0x8764be
mov al, byte [esi]
sub al, byte [edi]
jne 0x8764be
add esi, 1
add edi, 1
sub ecx, 1
jne 0x8764ad
seta al
setb cl
sub al, cl
movsx eax, al
test eax, eax
jne 0x876514
mov ebp, dword [ebx + 0xc]
mov ecx, dword [ebx]
add ecx, ebp
mov edx, dword [esp + 0x14]
test edx, edx
je 0x8764f6
mov ebp, edx
mov dword [ebp], ecx
mov edx, dword [ebx + 0x14]
mov dword [ebp + 4], edx
add ecx, dword [ebx + 0x14]
mov dword [ebp + 8], ecx
mov ecx, dword [ebx + 0x18]
mov dword [ebp + 0xc], ecx
mov ebp, dword [ebx + 0xc]
xor edx, edx
mov eax, dword [ebx + 0x14]
mov dword [ebx + 0x10], edx
add eax, dword [ebx + 0x18]
add ebp, eax
mov dword [ebx + 0xc], ebp
mov dword [ebx + 0x14], edx
mov dword [ebx + 0x18], edx
add esp, 0x34
pop ebx
pop ebp
pop esi
pop edi
ret
mov ecx, dword [esp + 0x10]
mov ebp, dword [esp + 0x2c]
mov dword [ebp], ecx
xor ecx, ecx
mov esi, dword [esp + 0x1c]
mov ebp, dword [esp + 0x20]
mov dword [ebx + 0x14], ecx
lea edi, [ebp + esi + 1]
dec edx
mov dword [ebx + 0x18], ecx
push edx
push 0x4f
push edi
call fcn.008cacc0
add esp, 0xc
mov edx, dword [ebx]
test eax, eax
je 0x876563
neg edx
add edx, eax
mov dword [ebx + 0xc], edx
sub eax, dword [esp + 0x24]
neg eax
add esp, 0x34
pop ebx
pop ebp
pop esi
pop edi
ret
mov esi, dword [ebx + 0x18]
jmp 0x876264
mov eax, dword [ebx + 8]
add eax, edx
jmp 0x876546
mov ebp, dword [esp + 8]
jmp 0x87644d
mov ecx, dword [esp]
mov dword [esp + 0x30], ecx
jmp 0x876380
mov ecx, dword [esp]
mov dword [esp + 0x30], ecx
jmp 0x8763aa