Function at 0x1010bf30
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 0x1010bf70
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 0x1010c016
jmp 0x1010c10c
cmp ebx, dword [esp + 0x74]
mov dword [esp + 0x14], ebx
jl 0x1010c0da
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 0x1010c02f
cmp ecx, eax
cmovg eax, ecx
cmovg ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
add ecx, ebx
cmp edx, ecx
jge 0x1010c1dd
dec dword [esp + 8]
jne 0x1010bfe0
jmp 0x1010c1dd
add edx, edi
add edi, dword [esp + 0x14]
movzx esi, word [eax + edx - 1]
movzx ecx, word [eax + edi - 1]
cmp esi, ecx
jne 0x1010c0cb
mov esi, 0x10
jmp 0x1010c050
movdqu xmm3, xmmword [esi + edx]
movdqu xmm2, xmmword [esi + edi]
pcmpeqb xmm2, xmm3
pmovmskb ecx, xmm2
cmp ecx, 0xffff
je 0x1010c071
not ecx
bsf ecx, ecx
jmp 0x1010c0ba
add esi, 0x10
cmp esi, 0x100
jl 0x1010c050
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 0x1010c0ba
mov ebp, dword [esp + 0x14]
mov eax, 0x102
sub edi, ebp
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x1010c1dd
sub edi, dword [esp + 0x14]
add ecx, esi
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x1010c00c
sub edi, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
sub edx, edi
jmp 0x1010c016
mov edi, dword [esp + 0x54]
jmp 0x1010c0e0
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 0x1010c125
cmp ecx, eax
cmovg eax, ecx
cmovg ebp, dword [esp + 0x14]
mov ecx, dword [esp + 0x64]
add ecx, ebx
cmp edx, ecx
jge 0x1010c1dd
dec dword [esp + 8]
jne 0x1010c0e0
jmp 0x1010c1dd
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 0x1010c1cc
mov esi, 0x10
jmp 0x1010c150
movdqu xmm3, xmmword [esi + edx]
movdqu xmm2, xmmword [esi + edi]
pcmpeqb xmm2, xmm3
pmovmskb ecx, xmm2
cmp ecx, 0xffff
je 0x1010c171
not ecx
bsf ecx, ecx
jmp 0x1010c1b9
add esi, 0x10
cmp esi, 0x100
jl 0x1010c150
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 0x1010c1b9
mov ebp, dword [esp + 0x14]
mov eax, 0x102
sub edi, ebp
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x1010c1dd
sub edi, dword [esp + 0x14]
add ecx, esi
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x1010c102
sub edi, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
sub edx, dword [esp + 0x44]
jmp 0x1010c10c
mov ebx, edx
sub ebx, ebp
cmp eax, 3
je 0x1010c1e8
jmp 0x1010c1f7
cmp ebx, 0x1000
jg 0x1010c1f2
jmp 0x1010c1f7
mov eax, 2
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x20]
cmp ecx, 2
jl 0x1010c491
je 0x1010c468
cmp ecx, eax
jl 0x1010c468
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 0x1010c240
jmp 0x1010c388
lea eax, [edx - 2]
cmp dword [esp + 8], eax
jge 0x1010c388
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 0x1010c353
lea edi, [edi - 0x203]
jmp 0x1010c28b
cmp ebp, dword [esi + edi*4]
jle 0x1010c388
inc eax
inc edi
cmp eax, dword [esp + 0x14]
jl 0x1010c280
mov edi, dword [esp + 8]
mov eax, edi
sub edx, 2
sub edi, ebx
and eax, dword [esp + 0x24]
jmp 0x1010c2b0
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 0x1010c2b0
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 0x1010c2f0
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 0x1010c2f0
add dword [esp + 0x28], 2
jmp 0x1010c393
mov dword [esp + 0xc], edi
and edi, dword [esp + 0x24]
cmp ebp, dword [esi + edi*4]
mov edi, dword [esp + 0xc]
jle 0x1010c388
inc eax
inc edi
cmp eax, dword [esp + 0x14]
jl 0x1010c340
mov edi, dword [esp + 8]
mov eax, edi
sub edx, 2
sub edi, ebx
and eax, dword [esp + 0x24]
jmp 0x1010c370
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 0x1010c370
jmp 0x1010c2c3
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 0x1010c3b0
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 0x1010c3b0
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 0x1010c491
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 0x1010c4e0
mov ecx, dword [esp + 0x2c]
cmp ecx, dword [esp + 0x70]
jge 0x1010c4e0
cmp dword [esp + 0x20], 0x102
jne 0x1010bf70
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x60]
dec edx
mov ecx, dword [esp + 0x20]
mov eax, 1
jmp 0x1010c21f
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