Function at 0x10012ab0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90
mov eax, dword [0x10266634]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
mov eax, esi
push edi
mov edi, dword [ebp + 8]
sar eax, 3
push 0x40
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push 0
push eax
mov dword [ebp - 0x7c], edi
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
cmp esi, 0x10
jge 0x10012bb6
xor edx, edx
test esi, esi
jle 0x10012dd7
cmp esi, 0x40
jb 0x10012b90
lea eax, [esi - 1]
lea ecx, [esi - 1]
add eax, edi
add ecx, ebx
cmp ebx, eax
ja 0x10012b18
cmp ecx, edi
jae 0x10012b90
mov eax, esi
lea ecx, [edi + 0x30]
and eax, 0xffffffc0
mov esi, edi
sub esi, ebx
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x78], esi
lea eax, [ebx + 0x10]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp - 0x78]
movups xmm0, xmmword [eax - 0x10]
add edx, 0x40
lea ecx, [ecx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ecx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ecx - 0x50]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [ecx - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp edx, dword [ebp - 0x80]
jl 0x10012b33
mov edi, dword [ebp - 0x7c]
mov dword [ebp - 0x78], edx
cmp edx, esi
jge 0x10012dd7
sub edi, ebx
lea ecx, [ebx + edx]
sub esi, edx
mov al, byte [ecx + edi]
lea ecx, [ecx + 1]
xor byte [ecx - 1], al
sub esi, 1
jne 0x10012b97
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100014c9
mov esp, ebp
pop ebp
ret
call sub.avutil_56.dll_av_des_alloc
mov dword [ebp - 0x7c], eax
call sub.avutil_56.dll_av_rc4_alloc
cmp dword [ebp - 0x7c], 0
mov dword [ebp - 0x80], eax
je 0x10012dc2
test eax, eax
je 0x10012dc2
push 1
push 0x60
push edi
push eax
call sub.avutil_56.dll_av_rc4_init
push 1
push 0
push 0x40
push 0
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x80]
call sub.avutil_56.dll_av_rc4_crypt
add esp, 0x28
xor ecx, ecx
nop dword [eax]
mov eax, dword [ebp + ecx - 0x74]
or eax, 1
mov dword [ebp + ecx - 0x34], eax
add ecx, 4
cmp ecx, 0x30
jl 0x10012c00
mov eax, dword [ebp - 0x78]
mov ecx, dword [ebp - 0x3c]
push 1
push 0x40
xor ecx, dword [ebx + eax*8 - 8]
mov eax, dword [ebx + eax*8 - 4]
xor eax, dword [ebp - 0x38]
mov dword [ebp - 0x84], eax
lea eax, [edi + 0xc]
push eax
push dword [ebp - 0x7c]
mov dword [ebp - 0x88], ecx
call sub.avutil_56.dll_av_des_init
push 1
push 0
push 1
lea eax, [ebp - 0x88]
push eax
push eax
push dword [ebp - 0x7c]
call sub.avutil_56.dll_av_des_crypt
mov eax, dword [ebp - 0x44]
xor dword [ebp - 0x88], eax
mov eax, dword [ebp - 0x40]
xor dword [ebp - 0x84], eax
lea eax, [ebp - 0x88]
push 1
push 0x40
push eax
push dword [ebp - 0x80]
call sub.avutil_56.dll_av_rc4_init
push 1
push 0
push esi
push ebx
push ebx
push dword [ebp - 0x80]
call sub.avutil_56.dll_av_rc4_crypt
mov esi, dword [ebp - 0x78]
xorps xmm0, xmm0
dec esi
movlpd qword [ebp - 0x90], xmm0
mov edi, dword [ebp - 0x8c]
add esp, 0x50
test esi, esi
jle 0x10012d12
mov edx, dword [ebp - 0x90]
nop dword [eax]
mov eax, dword [ebx]
add eax, edx
xor edx, edx
imul eax, dword [ebp - 0x34]
rol eax, 0x10
imul eax, dword [ebp - 0x30]
rol eax, 0x10
imul eax, dword [ebp - 0x2c]
rol eax, 0x10
imul eax, dword [ebp - 0x28]
rol eax, 0x10
imul eax, dword [ebp - 0x24]
add eax, dword [ebp - 0x20]
add edi, eax
add eax, dword [ebx + 4]
imul eax, dword [ebp - 0x1c]
add ebx, 8
rol eax, 0x10
imul eax, dword [ebp - 0x18]
rol eax, 0x10
imul eax, dword [ebp - 0x14]
rol eax, 0x10
imul eax, dword [ebp - 0x10]
rol eax, 0x10
imul eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
add edi, eax
or edx, eax
sub esi, 1
jne 0x10012cb0
mov dword [ebp - 0x78], edx
jmp 0x10012d1b
mov eax, dword [ebp - 0x90]
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x34]
push eax
call fcn.100130a0
mov eax, dword [ebp - 0x84]
xor esi, esi
or esi, dword [ebp - 0x88]
mov ecx, dword [ebp - 0xc]
sub esi, eax
sub eax, dword [ebp - 8]
sub esi, edi
imul ecx, eax
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
push dword [ebp - 0x80]
rol ecx, 0x10
imul ecx, dword [ebp - 0x10]
rol ecx, 0x10
imul ecx, dword [ebp - 0x14]
rol ecx, 0x10
imul ecx, dword [ebp - 0x18]
rol ecx, 0x10
imul edx, ecx
mov ecx, dword [ebp - 0x34]
sub edx, esi
sub esi, dword [ebp - 0x20]
imul eax, esi
rol eax, 0x10
imul eax, dword [ebp - 0x28]
rol eax, 0x10
imul eax, dword [ebp - 0x2c]
rol eax, 0x10
imul eax, dword [ebp - 0x30]
rol eax, 0x10
imul ecx, eax
xor eax, eax
or eax, edx
mov dword [ebp - 0x84], eax
mov dword [ebx + 4], eax
sub ecx, dword [ebp - 0x78]
mov dword [ebp - 0x88], ecx
mov dword [ebx], ecx
call sub.avutil_56.dll_av_free
push dword [ebp - 0x7c]
call sub.avutil_56.dll_av_free
add esp, 0xc
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100014c9
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x7c]
push eax
call fcn.101e0e4b
lea eax, [ebp - 0x80]
push eax
call fcn.101e0e4b
add esp, 8
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100014c9
mov esp, ebp
pop ebp
ret