Function at 0x1010af90
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
sub esp, 0x30
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x54]
xor eax, eax
mov ebx, dword [esp + 0x74]
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x18], eax
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x28], ebx
mov dword [esp + 0x24], ecx
inc dword [esp + 0x88]
mov edx, ebx
jmp 0x1010afd0
mov edi, dword [esp + 0x44]
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x5c]
movdqu xmm1, xmmword [edx + edi]
movzx eax, byte [edx + edi]
movzx ebx, byte [edx + edi + 1]
movzx ebp, byte [edx + edi + 2]
movzx eax, word [esi + eax*2]
movzx ebx, word [esi + ebx*2 + 0x200]
movzx ebp, word [esi + ebp*2 + 0x400]
xor eax, ebx
mov ebx, dword [esp + 0x24]
xor eax, ebp
mov esi, dword [esp + 0x60]
and eax, dword [esp + 0x68]
and ebx, edx
mov ebp, dword [ecx + eax*4]
mov dword [esi + ebx*4], ebp
mov dword [ecx + eax*4], edx
mov ebx, ebp
mov eax, 2
mov ecx, dword [esp + 0x88]
mov dword [esp + 8], ecx
cmp edi, dword [esp + 0x54]
jne 0x1010b076
jmp 0x1010b16c
cmp ebx, dword [esp + 0x74]
mov dword [esp + 0x14], ebx
jl 0x1010b13a
movdqu xmm2, xmmword [ebx + edi]
and ebx, dword [esp + 0x24]
pcmpeqb xmm2, xmm1
pmovmskb ecx, xmm2
mov ebx, dword [esi + ebx*4]
not ecx
bsf ecx, ecx
cmp ecx, 0x10
je 0x1010b08f
cmp ecx, eax
cmovg eax, ecx
cmovg ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
add ecx, ebx
cmp edx, ecx
jge 0x1010b23d
dec dword [esp + 8]
jne 0x1010b040
jmp 0x1010b23d
add edx, edi
add edi, dword [esp + 0x14]
movzx esi, word [eax + edx - 1]
movzx ecx, word [eax + edi - 1]
cmp esi, ecx
jne 0x1010b12b
mov esi, 0x10
jmp 0x1010b0b0
movdqu xmm3, xmmword [esi + edx]
movdqu xmm2, xmmword [esi + edi]
pcmpeqb xmm2, xmm3
pmovmskb ecx, xmm2
cmp ecx, 0xffff
je 0x1010b0d1
not ecx
bsf ecx, ecx
jmp 0x1010b11a
add esi, 0x10
cmp esi, 0x100
jl 0x1010b0b0
movd xmm3, dword [edx + 0xfe]
movd xmm2, dword [edi + 0xfe]
pcmpeqb xmm2, xmm3
pmovmskb ecx, xmm2
and ecx, 0xf
not ecx
bsf ecx, ecx
sub ecx, 2
cmp ecx, 2
jl 0x1010b11a
mov ebp, dword [esp + 0x14]
mov eax, 0x102
sub edi, ebp
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x1010b23d
sub edi, dword [esp + 0x14]
add ecx, esi
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x1010b06c
sub edi, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x1010b076
mov edi, dword [esp + 0x54]
jmp 0x1010b140
mov dword [esp + 0x14], ebx
movdqu xmm2, xmmword [ebx + edi]
and ebx, dword [esp + 0x24]
pcmpeqb xmm2, xmm1
pmovmskb ecx, xmm2
mov ebx, dword [esi + ebx*4]
not ecx
bsf ecx, ecx
cmp ecx, 0x10
je 0x1010b185
cmp ecx, eax
cmovg eax, ecx
cmovg ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
add ecx, ebx
cmp edx, ecx
jge 0x1010b23d
dec dword [esp + 8]
jne 0x1010b140
jmp 0x1010b23d
add edx, dword [esp + 0x44]
add edi, dword [esp + 0x14]
movzx esi, word [eax + edx - 1]
movzx ecx, word [eax + edi - 1]
cmp esi, ecx
jne 0x1010b22c
mov esi, 0x10
jmp 0x1010b1b0
movdqu xmm3, xmmword [esi + edx]
movdqu xmm2, xmmword [esi + edi]
pcmpeqb xmm2, xmm3
pmovmskb ecx, xmm2
cmp ecx, 0xffff
je 0x1010b1d1
not ecx
bsf ecx, ecx
jmp 0x1010b219
add esi, 0x10
cmp esi, 0x100
jl 0x1010b1b0
movd xmm3, dword [edx + 0xfe]
movd xmm2, dword [edi + 0xfe]
pcmpeqb xmm2, xmm3
pmovmskb ecx, xmm2
and ecx, 0xf
not ecx
bsf ecx, ecx
sub ecx, 2
cmp ecx, 2
jl 0x1010b219
mov ebp, dword [esp + 0x14]
mov eax, 0x102
sub edi, ebp
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x1010b23d
sub edi, dword [esp + 0x14]
add ecx, esi
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x1010b162
sub edi, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x1010b16c
mov ebx, edx
sub ebx, ebp
cmp eax, 3
je 0x1010b248
jmp 0x1010b257
cmp ebx, 0x1000
jg 0x1010b252
jmp 0x1010b257
mov eax, 2
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x20]
cmp ecx, 2
jl 0x1010b4f1
je 0x1010b4c8
cmp ecx, eax
jl 0x1010b4c8
mov ebx, dword [esp + 0x18]
mov eax, 2
mov dword [esp + 8], edx
add edx, ecx
inc dword [esp + 8]
sub edx, eax
cmp ecx, ebx
jg 0x1010b2a0
jmp 0x1010b3e8
lea eax, [edx - 2]
cmp dword [esp + 8], eax
jge 0x1010b3e8
lea eax, [ebx + ebp]
mov dword [esp + 0x14], eax
lea eax, [ebp + 1]
mov edi, dword [esp + 0x24]
and edi, ebp
add edi, 0x204
cmp edi, dword [esp + 0x24]
jg 0x1010b3b3
lea edi, [edi - 0x203]
jmp 0x1010b2eb
cmp ebp, dword [esi + edi*4]
jle 0x1010b3e8
inc eax
inc edi
cmp eax, dword [esp + 0x14]
jl 0x1010b2e0
mov edi, dword [esp + 8]
mov eax, edi
sub edx, 2
sub edi, ebx
and eax, dword [esp + 0x24]
jmp 0x1010b310
mov dword [esi + eax*4], edi
inc dword [esp + 8]
inc eax
inc edi
and eax, dword [esp + 0x24]
cmp dword [esp + 8], edx
jle 0x1010b310
mov ecx, dword [esp + 8]
mov dword [esp], ebx
sub ecx, ebx
mov dword [esp + 0x28], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebp
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
jmp 0x1010b350
movzx eax, byte [ecx + edi]
movzx ebx, byte [ecx + edi + 1]
movzx ecx, byte [ecx + edi + 2]
movzx eax, word [edx + eax*2]
movzx ebx, word [edx + ebx*2 + 0x200]
movzx ecx, word [edx + ecx*2 + 0x400]
xor eax, ebx
xor eax, ecx
mov ecx, dword [esp + 8]
and eax, dword [esp + 0x68]
mov dword [ebp + eax*4], ecx
inc ecx
mov dword [esp + 8], ecx
cmp ecx, dword [esp + 0x28]
jle 0x1010b350
add dword [esp + 0x28], 2
jmp 0x1010b3f3
mov dword [esp + 0xc], edi
and edi, dword [esp + 0x24]
cmp ebp, dword [esi + edi*4]
mov edi, dword [esp + 0xc]
jle 0x1010b3e8
inc eax
inc edi
cmp eax, dword [esp + 0x14]
jl 0x1010b3a0
mov edi, dword [esp + 8]
mov eax, edi
sub edx, 2
sub edi, ebx
and eax, dword [esp + 0x24]
jmp 0x1010b3d0
mov dword [esi + eax*4], edi
inc dword [esp + 8]
inc eax
inc edi
and eax, dword [esp + 0x24]
cmp dword [esp + 8], edx
jle 0x1010b3d0
jmp 0x1010b323
mov dword [esp], ebx
mov dword [esp + 0xc], ebp
mov dword [esp + 0x28], edx
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
mov ebp, dword [esp + 0x5c]
mov ecx, dword [esp + 8]
jmp 0x1010b410
movzx eax, byte [ecx + edi]
movzx ebx, byte [ecx + edi + 1]
movzx ecx, byte [ecx + edi + 2]
movzx eax, word [edx + eax*2]
movzx ebx, word [edx + ebx*2 + 0x200]
movzx ecx, word [edx + ecx*2 + 0x400]
xor eax, ebx
mov ebx, dword [esp + 0x24]
xor eax, ecx
and ebx, dword [esp + 8]
and eax, dword [esp + 0x68]
mov ecx, dword [ebp + eax*4]
mov dword [esi + ebx*4], ecx
mov ecx, dword [esp + 8]
mov dword [ebp + eax*4], ecx
inc ecx
cmp ecx, dword [esp + 0x28]
mov dword [esp + 8], ecx
jle 0x1010b410
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0x7c]
sub ecx, 3
mov word [esi + edx*2], ax
dec eax
mov byte [edx + ebp], cl
inc edx
mov esi, dword [esp + 0x50]
mov ebx, eax
mov ebp, dword [esp + 0x4c]
shr eax, 7
mov dword [esp + 0x2c], edx
add eax, 0x100
mov edi, dword [esp + 0x48]
cmp ebx, 0x100
cmovge ebx, eax
movzx eax, byte [ebx + edi + 0x100]
movzx ecx, byte [ecx + edi]
add ecx, 0x101
inc word [esi + eax*4]
inc word [ebp + ecx*4]
xor eax, eax
mov ebx, dword [esp]
mov edx, dword [esp + 0x28]
jmp 0x1010b4f1
mov edi, dword [esp + 0x2c]
mov ecx, dword [esp + 0x1c]
mov esi, dword [esp + 0x80]
mov ebp, dword [esp + 0x7c]
mov word [esi + edi*2], 0
mov byte [edi + ebp], cl
mov esi, dword [esp + 0x4c]
inc edi
inc word [esi + ecx*4]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x44]
movzx ecx, byte [edx + edi]
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ebx
inc edx
cmp edx, dword [esp + 0x6c]
mov dword [esp + 0x1c], ecx
jge 0x1010b540
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x70]
jge 0x1010b540
cmp dword [esp + 0x20], 0x102
jne 0x1010afd0
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
dec edx
mov ecx, dword [esp + 0x20]
mov eax, 1
jmp 0x1010b27f
mov esi, dword [esp + 0x84]
mov edi, dword [esp + 0x78]
mov eax, dword [esp + 0x20]
movzx ebx, word [esp + 0x18]
movzx ecx, byte [esp + 0x1c]
mov dword [esi], edx
mov dword [edi], eax
mov dword [edi + 4], ebx
mov dword [edi + 8], ecx
mov eax, dword [esp + 0x2c]
add esp, 0x30
pop ebp
pop edi
pop esi
pop ebx
ret