Function at 0x100118d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0x18
mov ebx, edx
push 0x564342
push ebx
mov esi, ecx
call sym.aimp_libvorbis.dll_oggpack_write
push 0x10
push dword [esi]
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
push 0x18
push dword [esi + 4]
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
mov edi, dword [esi + 4]
mov ecx, 1
add esp, 0x24
cmp edi, ecx
jle 0x10011922
mov eax, dword [esi + 8]
mov dl, byte [eax]
test dl, dl
je 0x10011922
cmp byte [eax + 1], dl
jl 0x10011922
inc ecx
inc eax
cmp ecx, edi
jl 0x10011911
push 1
cmp ecx, edi
jne 0x100119da
push 1
push ebx
mov dword [ebp - 4], 0
call sym.aimp_libvorbis.dll_oggpack_write
mov eax, dword [esi + 8]
push 5
movsx eax, byte [eax]
dec eax
push eax
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
mov edi, 1
add esp, 0x18
cmp dword [esi + 4], edi
jle 0x100119b4
jmp 0x10011960
mov eax, dword [esi + 8]
mov cl, byte [eax + edi]
mov al, byte [eax + edi - 1]
cmp cl, al
jle 0x100119ae
movsx edx, al
movsx eax, cl
cmp edx, eax
jge 0x100119ae
sub eax, edx
mov edx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov ecx, 0
sub eax, edx
je 0x10011995
lea esp, [esp]
inc ecx
shr eax, 1
jne 0x10011990
push ecx
mov eax, edi
sub eax, edx
push eax
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
add esp, 0xc
dec dword [ebp - 8]
mov edx, edi
jne 0x10011980
mov dword [ebp - 4], edx
inc edi
cmp edi, dword [esi + 4]
jl 0x10011960
mov ecx, dword [esi + 4]
mov eax, dword [ebp - 4]
mov edx, 0
sub ecx, eax
je 0x100119c8
inc edx
shr ecx, 1
jne 0x100119c3
push edx
sub edi, eax
push edi
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
add esp, 0xc
jmp 0x10011a7c
push 0
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
mov ecx, dword [esi + 4]
add esp, 0xc
xor eax, eax
test ecx, ecx
jle 0x100119fc
mov edx, dword [esi + 8]
cmp byte [edx + eax], 0
je 0x100119fc
inc eax
cmp eax, ecx
jl 0x100119f1
push 1
cmp eax, ecx
jne 0x10011a30
push 0
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
xor edi, edi
add esp, 0xc
cmp dword [esi + 4], edi
jle 0x10011a7c
mov eax, dword [esi + 8]
push 5
movsx eax, byte [eax + edi]
dec eax
push eax
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
inc edi
add esp, 0xc
cmp edi, dword [esi + 4]
jl 0x10011a14
jmp 0x10011a7c
push 1
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
xor edi, edi
add esp, 0xc
cmp dword [esi + 4], edi
jle 0x10011a7c
mov eax, dword [esi + 8]
push 1
cmp byte [edi + eax], 0
jne 0x10011a5a
push 0
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
add esp, 0xc
jmp 0x10011a76
push 1
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
mov eax, dword [esi + 8]
push 5
movsx eax, byte [eax + edi]
dec eax
push eax
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
add esp, 0x18
inc edi
cmp edi, dword [esi + 4]
jl 0x10011a42
push 4
push dword [esi + 0xc]
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
mov eax, dword [esi + 0xc]
add esp, 0xc
test eax, eax
je 0x10011b27
dec eax
cmp eax, 1
ja 0x10011aa1
cmp dword [esi + 0x20], 0
jne 0x10011aab
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push 0x20
push dword [esi + 0x10]
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
push 0x20
push dword [esi + 0x14]
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
mov eax, dword [esi + 0x18]
push 4
dec eax
push eax
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
push 1
push dword [esi + 0x1c]
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
mov eax, dword [esi + 0xc]
add esp, 0x30
dec eax
je 0x10011af2
dec eax
je 0x10011aea
or edi, 0xffffffff
jmp 0x10011afb
mov edi, dword [esi + 4]
imul edi, dword [esi]
jmp 0x10011afb
mov ecx, esi
call fcn.1001f4d0
mov edi, eax
xor ecx, ecx
mov dword [ebp - 8], ecx
test edi, edi
jle 0x10011b27
mov eax, dword [esi + 0x20]
push dword [esi + 0x18]
mov eax, dword [eax + ecx*4]
cdq
xor eax, edx
sub eax, edx
push eax
push ebx
call sym.aimp_libvorbis.dll_oggpack_write
mov ecx, dword [ebp - 8]
inc ecx
add esp, 0xc
mov dword [ebp - 8], ecx
cmp ecx, edi
jl 0x10011b04
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret