Function at 0x10109ff0
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 0x1010a030
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 0x1010a0d6
jmp 0x1010a1cc
cmp ebx, dword [esp + 0x74]
mov dword [esp + 0x14], ebx
jl 0x1010a19a
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 0x1010a0ef
cmp ecx, eax
cmovg eax, ecx
cmovg ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
add ecx, ebx
cmp edx, ecx
jge 0x1010a29d
dec dword [esp + 8]
jne 0x1010a0a0
jmp 0x1010a29d
add edx, edi
add edi, dword [esp + 0x14]
movzx esi, word [eax + edx - 1]
movzx ecx, word [eax + edi - 1]
cmp esi, ecx
jne 0x1010a18b
mov esi, 0x10
jmp 0x1010a110
movdqu xmm3, xmmword [esi + edx]
movdqu xmm2, xmmword [esi + edi]
pcmpeqb xmm2, xmm3
pmovmskb ecx, xmm2
cmp ecx, 0xffff
je 0x1010a131
not ecx
bsf ecx, ecx
jmp 0x1010a17a
add esi, 0x10
cmp esi, 0x100
jl 0x1010a110
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 0x1010a17a
mov ebp, dword [esp + 0x14]
mov eax, 0x102
sub edi, ebp
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x1010a29d
sub edi, dword [esp + 0x14]
add ecx, esi
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x1010a0cc
sub edi, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x1010a0d6
mov edi, dword [esp + 0x54]
jmp 0x1010a1a0
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 0x1010a1e5
cmp ecx, eax
cmovg eax, ecx
cmovg ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
add ecx, ebx
cmp edx, ecx
jge 0x1010a29d
dec dword [esp + 8]
jne 0x1010a1a0
jmp 0x1010a29d
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 0x1010a28c
mov esi, 0x10
jmp 0x1010a210
movdqu xmm3, xmmword [esi + edx]
movdqu xmm2, xmmword [esi + edi]
pcmpeqb xmm2, xmm3
pmovmskb ecx, xmm2
cmp ecx, 0xffff
je 0x1010a231
not ecx
bsf ecx, ecx
jmp 0x1010a279
add esi, 0x10
cmp esi, 0x100
jl 0x1010a210
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 0x1010a279
mov ebp, dword [esp + 0x14]
mov eax, 0x102
sub edi, ebp
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x1010a29d
sub edi, dword [esp + 0x14]
add ecx, esi
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x1010a1c2
sub edi, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x1010a1cc
mov ebx, edx
sub ebx, ebp
cmp eax, 3
je 0x1010a2a8
jmp 0x1010a2b7
cmp ebx, 0x1000
jg 0x1010a2b2
jmp 0x1010a2b7
mov eax, 2
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x20]
cmp ecx, 2
jl 0x1010a551
je 0x1010a528
cmp ecx, eax
jl 0x1010a528
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 0x1010a300
jmp 0x1010a448
lea eax, [edx - 2]
cmp dword [esp + 8], eax
jge 0x1010a448
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 0x1010a413
lea edi, [edi - 0x203]
jmp 0x1010a34b
cmp ebp, dword [esi + edi*4]
jle 0x1010a448
inc eax
inc edi
cmp eax, dword [esp + 0x14]
jl 0x1010a340
mov edi, dword [esp + 8]
mov eax, edi
sub edx, 2
sub edi, ebx
and eax, dword [esp + 0x24]
jmp 0x1010a370
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 0x1010a370
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 0x1010a3b0
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 0x1010a3b0
add dword [esp + 0x28], 2
jmp 0x1010a453
mov dword [esp + 0xc], edi
and edi, dword [esp + 0x24]
cmp ebp, dword [esi + edi*4]
mov edi, dword [esp + 0xc]
jle 0x1010a448
inc eax
inc edi
cmp eax, dword [esp + 0x14]
jl 0x1010a400
mov edi, dword [esp + 8]
mov eax, edi
sub edx, 2
sub edi, ebx
and eax, dword [esp + 0x24]
jmp 0x1010a430
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 0x1010a430
jmp 0x1010a383
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 0x1010a470
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 0x1010a470
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 0x1010a551
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 0x1010a5a0
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x70]
jge 0x1010a5a0
cmp dword [esp + 0x20], 0x102
jne 0x1010a030
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
dec edx
mov ecx, dword [esp + 0x20]
mov eax, 1
jmp 0x1010a2df
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