Function at 0x100c4d60
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1015f720
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1a0
mov eax, dword [0x101d5844]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x5c], edi
mov dword [ebp - 0x68], ecx
mov eax, dword [ebx + 8]
push 0x11a
mov dword [ebp - 0x58], eax
lea eax, [ebp - 0x1b0]
push 0
push eax
call fcn.1012ec10
mov ecx, 0x46
lea esi, [ebp - 0x1b0]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x58]
add esp, 0xc
movsw word es:[edi], word [esi]
test ecx, ecx
je 0x100c4de0
mov eax, dword [ecx]
mov dword [ecx + 4], eax
mov esi, dword [ebp - 0x68]
mov edx, str.OggS
mov ecx, esi
call fcn.10057570
test al, al
je 0x100c4ec0
mov eax, dword [esi + 8]
xor edx, edx
cmp eax, 4
lea ecx, [eax - 4]
cmovb ecx, edx
mov dword [esi + 8], ecx
mov edx, dword [esi + 4]
test edx, edx
je 0x100c4e19
lock inc dword [edx + 4]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
mov eax, dword [esi]
mov dword [ebp - 0x4c], ecx
mov ecx, dword [esi + 0x10]
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], edx
test ecx, ecx
je 0x100c4e32
lock inc dword [ecx + 4]
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x44], ecx
mov edi, dword [ebp - 0x5c]
lea ecx, [ebp - 0x54]
mov edx, edi
mov dword [ebp - 4], 0
call fcn.100c5560
test al, al
jne 0x100c4ede
xorps xmm0, xmm0
movups xmmword [edi], xmm0
movq qword [edi + 0x10], xmm0
mov word [edi + 0x18], 0
mov byte [edi + 0x1a], al
mov byte [ebp - 0x31], 0
mov esi, dword [ebp - 0x44]
or edi, 0xffffffff
test esi, esi
je 0x100c4e98
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100c4e98
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
mov eax, edi
lock xadd dword [esi + 8], eax
jne 0x100c4e98
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov esi, dword [ebp - 0x50]
test esi, esi
je 0x100c4ebd
mov eax, edi
lock xadd dword [esi + 4], eax
jne 0x100c4ebd
mov eax, dword [esi]
mov ecx, esi
call dword [eax]
lock xadd dword [esi + 8], edi
dec edi
jne 0x100c4ebd
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 4]
mov al, byte [ebp - 0x31]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10116b04
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
mov edx, dword [ebp - 0x54]
movzx ecx, byte [edi + 0x1a]
mov esi, dword [ebp - 0x4c]
push ecx
mov eax, dword [edx]
mov ecx, edx
push esi
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x100c4e6b
cmp byte [edi + 0x1a], 0
mov dword [ebp - 0x3c], 0
mov byte [ebp - 0x31], 0
jbe 0x100c4f4b
mov si, word [ebp - 0x3c]
lea edx, [ebp - 0x35]
lea ecx, [ebp - 0x54]
call fcn.10057ac0
mov dl, byte [ebp - 0x31]
mov cl, al
neg cl
movzx eax, dl
sbb cl, cl
inc dl
and cl, byte [ebp - 0x35]
mov byte [eax + edi + 0x1b], cl
movzx eax, cl
add si, ax
mov byte [ebp - 0x31], dl
cmp dl, byte [edi + 0x1a]
jb 0x100c4f10
mov word [ebp - 0x36], si
mov esi, dword [ebp - 0x4c]
mov cx, word [ebp - 0x36]
jmp 0x100c4f4f
mov cx, word [ebp - 0x3c]
mov edx, dword [ebp - 0x54]
movzx ecx, cx
push ecx
mov dword [ebp - 0x38], ecx
mov ecx, edx
mov eax, dword [edx]
push esi
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x100c4e6b
mov eax, dword [ebp - 0x58]
push dword [ebp - 0x38]
test eax, eax
je 0x100c4f87
mov edx, eax
lea ecx, [ebp - 0x54]
call fcn.10060340
mov esi, dword [ebp - 0x4c]
add esp, 4
jmp 0x100c4fa7
mov ecx, dword [ebp - 0x54]
push esi
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x100c4f9b
add esi, dword [ebp - 0x38]
jmp 0x100c4fa7
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov esi, eax
mov al, byte [edi + 0x1a]
movzx ecx, al
add cx, 0x1b
movzx ecx, cx
mov dword [ebp - 0x3c], ecx
mov dx, cx
test al, al
je 0x100c4fd5
lea ecx, [edi + 0x1b]
movzx edi, al
movzx eax, byte [ecx]
lea ecx, [ecx + 1]
add dx, ax
sub edi, 1
jne 0x100c4fc4
mov edi, dword [ebp - 0x5c]
movzx eax, dx
cmp esi, eax
jb 0x100c4fe3
sub esi, eax
mov dword [ebp - 0x4c], esi
jmp 0x100c4fea
mov dword [ebp - 0x4c], 0
xorps xmm0, xmm0
mov byte [ebp - 0x16], 0
xor esi, esi
movq qword [ebp - 0x20], xmm0
lea edx, [ebp - 0x30]
mov word [ebp - 0x18], si
lea ecx, [ebp - 0x54]
movups xmmword [ebp - 0x30], xmm0
call fcn.100c54f0
mov dword [ebp - 0x1a], esi
lea edx, [ebp - 0x30]
movzx eax, byte [edx]
mov ecx, esi
shr ecx, 0x18
inc edx
xor ecx, eax
shl esi, 8
lea eax, [ebp - 0x15]
xor esi, dword [ecx*4 + 0x101c2708]
cmp edx, eax
jne 0x100c5011
mov edx, dword [ebp - 0x54]
movzx ecx, byte [edi + 0x1a]
push ecx
mov dword [ebp - 0x60], ecx
mov eax, dword [edx]
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x40], ecx
push ecx
mov eax, dword [eax + 0x1c]
mov ecx, edx
mov dword [ebp - 0x3c], esi
call eax
test al, al
je 0x100c505a
mov edx, dword [ebp - 0x40]
add edx, dword [ebp - 0x60]
mov dword [ebp - 0x40], edx
jmp 0x100c5069
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov edx, eax
mov dword [ebp - 0x40], eax
movzx ecx, byte [edi + 0x1a]
lea eax, [edi + 0x1b]
add ecx, 0x1b
mov dword [ebp - 0x4c], edx
add ecx, edi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], ecx
cmp eax, ecx
je 0x100c50a8
mov edi, eax
mov edx, ecx
movzx eax, byte [edi]
mov ecx, esi
shr ecx, 0x18
inc edi
xor ecx, eax
shl esi, 8
xor esi, dword [ecx*4 + 0x101c2708]
cmp edi, edx
jne 0x100c5086
mov edi, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x40]
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x58], 0
push dword [ebp - 0x38]
push edx
je 0x100c50fd
mov esi, dword [ebp - 0x54]
mov ecx, esi
mov eax, dword [esi]
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x100c50de
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x38]
push dword [ebp - 0x58]
mov dword [ebp - 0x4c], ecx
lea ecx, [ebp - 0x3c]
call fcn.100c54b0
mov esi, dword [ebp - 0x3c]
jmp 0x100c520c
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x14]
call eax
push dword [ebp - 0x58]
lea ecx, [ebp - 0x3c]
mov dword [ebp - 0x4c], eax
call fcn.100c54b0
mov esi, dword [ebp - 0x3c]
jmp 0x100c520c
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x100c5115
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x40]
add eax, ecx
jmp 0x100c5122
mov ecx, dword [ebp - 0x54]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov ecx, dword [ebp - 0x40]
push dword [ebp - 0x38]
mov dword [ebp - 0x4c], eax
lea eax, [ebp - 0x7c]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.10056be0
lea eax, [ebp - 0x7c]
push eax
lea ecx, [ebp - 0x90]
call fcn.10056a80
lea ecx, [ebp - 0x7c]
call fcn.10009e70
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x90]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
sub eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x90]
push eax
call fcn.1000e900
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x74]
test edx, edx
je 0x100c519b
mov eax, dword [ebp - 0x7c]
jmp 0x100c51a6
mov eax, dword [ebp - 0x70]
cmp ecx, eax
je 0x100c51d0
mov edx, ecx
sub eax, edx
add eax, edx
mov dword [ebp - 0x64], eax
cmp edx, eax
je 0x100c51d0
mov edi, eax
movzx eax, byte [edx]
mov ecx, esi
shr ecx, 0x18
inc edx
xor ecx, eax
shl esi, 8
xor esi, dword [ecx*4 + 0x101c2708]
cmp edx, edi
jne 0x100c51b1
mov edi, dword [ebp - 0x5c]
mov ecx, dword [ebp - 0x74]
test ecx, ecx
je 0x100c51fd
mov edx, dword [ebp - 0x6c]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x100c51f3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100c5254
push edx
push ecx
call fcn.10116af6
add esp, 8
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 0
call fcn.10009e70
cmp esi, dword [edi + 0x16]
jne 0x100c4e6b
mov ecx, edi
call fcn.100c4d20
mov esi, dword [ebp - 0x68]
movzx edi, ax
push edi
mov ecx, dword [esi]
push dword [esi + 8]
mov eax, dword [ecx]
mov eax, dword [eax + 0x1c]
call eax
test al, al
je 0x100c523f
add dword [esi + 8], edi
mov byte [ebp - 0x31], 1
jmp 0x100c4e6f
mov ecx, dword [esi]
mov eax, dword [ecx]
mov eax, dword [eax + 0x14]
call eax
mov dword [esi + 8], eax
mov byte [ebp - 0x31], 1
jmp 0x100c4e6f
call fcn.10134f1b
int3