Function at 0x10028ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x198
mov eax, dword [0x100a9040]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
push edi
mov eax, edx
mov dword [esp + 0x28], eax
mov esi, ecx
mov dword [esp + 0x30], esi
mov dword [esp + 0x4c], 3
mov ecx, dword [ebp + 8]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 4]
mov edi, eax
mov dword [esp + 0x54], edx
add edx, ecx
mov dword [esp + 0x34], ecx
sub edi, ecx
mov dword [esp + 0x6c], edx
mov ecx, dword [esi + 0xb8]
mov eax, edi
mov edx, 1
mov dword [esp + 0x14], edi
shl edx, cl
mov ecx, dword [esi + 0x10]
sub edi, edx
sub eax, ecx
cmp eax, edx
mov dword [esp + 0x18], 0x1f
mov eax, dword [esi + 0xc4]
cmovbe edi, ecx
cmp dword [esi + 0x18], 0
cmovne edi, ecx
mov ecx, 5
cmp eax, ecx
mov dword [esp + 0x48], edi
cmovb ecx, eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x1c], eax
mov eax, 1
shl eax, cl
mov ecx, 0x18
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x3c], eax
mov edi, dword [esp + 0x3c]
mov esi, dword [eax + 0x5c]
mov edx, dword [eax + 0x28]
mov eax, dword [esp + 0x28]
sub ecx, dword [edi + 0x24]
imul eax, dword [eax], 0x9e3779b1
mov dword [esp + 0x10], eax
shr eax, cl
mov dword [esp + 0x58], eax
shr eax, 3
and eax, 0x1fffffe0
lea ecx, [eax + edx]
lea eax, [esi + eax*4]
mov dword [esp + 0x68], ecx
mov esi, dword [esp + 0x30]
mov dword [esp + 0x60], eax
cmp dword [esi + 0xdc], 0
jne 0x1002920a
mov edx, dword [esp + 0x14]
mov ecx, edx
mov eax, dword [esi + 0x1c]
sub ecx, eax
cmp ecx, 0x180
jbe 0x10029134
lea ecx, [eax + 0x60]
mov dword [esp + 0x70], ecx
cmp eax, ecx
jae 0x100290b5
mov edx, dword [esp + 0x34]
mov edi, 0x18
sub edi, dword [esp + 0x2c]
add edx, 8
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edx
imul edx, dword [edx + eax], 0x9e3779b1
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x84], ecx
mov ecx, edi
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, eax
and ecx, 7
mov edi, dword [esi + ecx*4 + 0x2c]
mov dword [esi + ecx*4 + 0x2c], edx
mov ecx, 0
mov esi, dword [esp + 0x24]
mov dword [esp + 0x10], edi
shr edi, 3
and edi, 0x1fffffe0
add esi, edi
movzx edx, byte [esi]
dec edx
and edx, 0x1f
cmove ecx, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [esp + 0x10]
mov byte [esi], dl
mov byte [edx + esi], cl
lea ecx, [edx + edi]
mov edx, dword [esp + 0x20]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x40]
mov dword [edx + ecx*4], eax
inc eax
mov edx, dword [esp + 0x44]
cmp eax, dword [esp + 0x70]
jb 0x10029044
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x28]
add eax, 0xffffffe0
mov ecx, dword [esp + 0x34]
inc edx
add ecx, eax
mov dword [esp + 0x70], eax
mov edi, eax
cmp ecx, edx
jbe 0x100290d5
xor edx, edx
jmp 0x100290dc
sub edx, dword [esp + 0x34]
sub edx, eax
inc edx
mov ecx, 8
cmp edx, ecx
cmova edx, ecx
add edx, eax
mov dword [esp + 0x44], edx
cmp eax, edx
jae 0x10029130
mov eax, 0x18
sub eax, dword [esi + 0x24]
mov dword [esp + 0x40], eax
mov eax, edx
nop
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x84], ecx
mov ecx, dword [esp + 0x34]
imul edx, dword [edi + ecx], 0x9e3779b1
mov ecx, dword [esp + 0x40]
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, edi
and ecx, 7
inc edi
mov dword [esi + ecx*4 + 0x2c], edx
cmp edi, eax
jb 0x10029100
mov eax, dword [esp + 0x70]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x44], ecx
cmp eax, edx
jae 0x100291d2
mov edi, 0x18
sub edi, dword [esi + 0x24]
mov dword [esp + 0x80], edi
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x44]
imul edx, dword [eax + ecx + 8], 0x9e3779b1
mov ecx, edi
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, eax
and ecx, 7
mov edi, dword [esi + ecx*4 + 0x2c]
mov dword [esi + ecx*4 + 0x2c], edx
mov ecx, 0
mov esi, dword [esp + 0x40]
mov dword [esp + 0x70], edi
shr edi, 3
and edi, 0x1fffffe0
add esi, edi
movzx edx, byte [esi]
dec edx
and edx, 0x1f
cmove ecx, dword [esp + 0x18]
add edx, ecx
mov ecx, dword [esp + 0x70]
mov byte [esi], dl
mov byte [edx + esi], cl
lea ecx, [edx + edi]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x30]
mov edi, dword [esp + 0x80]
mov dword [edx + ecx*4], eax
inc eax
cmp eax, dword [esp + 0x14]
jb 0x10029160
mov eax, dword [esp + 0x14]
mov ecx, 0x18
sub ecx, dword [esp + 0x2c]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x28]
imul edx, dword [eax + 8], 0x9e3779b1
mov eax, dword [esp + 0x14]
xor edx, dword [esp + 0x1c]
shr edx, cl
and eax, 7
mov ecx, dword [esi + eax*4 + 0x2c]
mov dword [esi + eax*4 + 0x2c], edx
mov edx, ecx
mov dword [esp + 0x10], ecx
jmp 0x10029224
mov edx, dword [esp + 0x10]
mov ecx, 0x18
xor edx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
shr edx, cl
mov dword [esi + 0x1c], eax
add dword [esi + 0x58], edx
mov eax, edx
mov esi, dword [esp + 0x24]
shr eax, 3
and eax, 0x1fffffe0
movzx ecx, dl
mov dword [esp + 0x1c], ecx
add esi, eax
mov ecx, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x80], esi
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], edx
lea ecx, [ecx + eax*4]
movzx eax, byte [esi]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
movsx eax, al
mov dword [esp + 0x20], ecx
xor ecx, ecx
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
nop word [eax + eax]
movups xmm0, xmmword [esi]
lea esi, [esi + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [esp + ecx*4 + 0x70], eax
inc ecx
cmp ecx, 2
jl 0x10029290
mov esi, dword [esp + 0x74]
mov ecx, dword [esp + 0x24]
shl esi, 0x10
and ecx, 0x1f
or esi, dword [esp + 0x70]
ror esi, cl
xor ecx, ecx
mov dword [esp + 0x2c], ecx
test esi, esi
je 0x1002932b
mov edi, dword [esp + 0x50]
nop word [eax + eax]
test edi, edi
je 0x10029325
push ecx
push esi
call fcn.100218d0
add eax, dword [esp + 0x2c]
add esp, 8
and eax, 0x1f
je 0x10029305
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [esp + 0x48]
jb 0x10029325
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x98], ecx
inc eax
mov dword [esp + 0x10], eax
dec edi
mov eax, dword [esp + 0x2c]
mov ecx, esi
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
mov ecx, dword [esp + 0x2c]
and ecx, eax
mov dword [esp + 0x2c], ecx
ja 0x100292d0
jb 0x10029325
test esi, esi
jne 0x100292d0
mov dword [esp + 0x50], edi
xor edx, edx
mov esi, dword [esp + 0x80]
mov edi, 0x1f
mov eax, 0
movzx ecx, byte [esi]
dec ecx
and ecx, 0x1f
cmove eax, edi
mov edi, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x1c]
mov byte [esi], cl
mov byte [ecx + esi], al
mov esi, dword [esp + 0x30]
mov eax, dword [esi + 0x1c]
mov dword [edi + ecx*4], eax
mov edi, 3
inc dword [esi + 0x1c]
cmp dword [esp + 0x10], 0
jbe 0x100293d2
mov esi, dword [esp + 0x28]
mov eax, dword [esp + edx*4 + 0x98]
mov ecx, dword [esp + 0x34]
add ecx, eax
mov dword [esp + 0x48], eax
mov eax, dword [ecx + edi - 3]
cmp eax, dword [edi + esi - 3]
jne 0x100293c3
push dword [esp + 0x38]
mov edx, ecx
mov ecx, esi
call fcn.1001b5f0
mov ecx, eax
add esp, 4
cmp ecx, edi
jbe 0x100293bf
mov eax, dword [esp + 0x14]
mov edi, ecx
sub eax, dword [esp + 0x48]
mov edx, dword [esp + 0x5c]
add eax, 3
mov dword [edx], eax
lea eax, [ecx + esi]
cmp eax, dword [esp + 0x38]
je 0x100293ce
mov edx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x10]
jb 0x10029372
mov dword [esp + 0x4c], edi
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x10], 0
mov dword [esp + 0x1c], 0
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 4]
mov dword [esp + 0x48], eax
mov eax, dword [edx]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x18], ecx
sub ecx, eax
add dword [esp + 0x54], ecx
xor ecx, ecx
mov dword [esp + 0x20], eax
movzx eax, byte [edx]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x58]
movsx eax, al
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [esp + ecx*4 + 0x80], eax
inc ecx
cmp ecx, 2
jl 0x10029430
mov esi, dword [esp + 0x84]
mov ecx, dword [esp + 0x3c]
shl esi, 0x10
and ecx, 0x1f
or esi, dword [esp + 0x80]
ror esi, cl
xor edx, edx
mov dword [esp + 0x24], edx
test esi, esi
je 0x100295a3
mov edi, dword [esp + 0x50]
test edi, edi
je 0x100294ca
push edx
push esi
call fcn.100218d0
add eax, dword [esp + 0x44]
add esp, 8
and eax, 0x1f
je 0x100294ac
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [esp + 0x48]
jb 0x100294ca
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x98], ecx
inc eax
mov dword [esp + 0x10], eax
dec edi
mov edx, dword [esp + 0x24]
mov ecx, esi
add ecx, 0xffffffff
mov eax, edx
adc eax, 0xffffffff
and esi, ecx
and edx, eax
mov dword [esp + 0x24], edx
ja 0x10029477
jb 0x100294ca
test esi, esi
jne 0x10029477
cmp dword [esp + 0x10], 0
mov edi, dword [esp + 0x4c]
jbe 0x100295a3
mov ecx, dword [esp + 0x28]
xor eax, eax
mov edx, dword [esp + 0x18]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esp + eax*4 + 0x98]
mov dword [esp + 0x58], eax
lea esi, [eax + edx]
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x10029590
lea edi, [ecx + 4]
add esi, 4
mov ecx, dword [esp + 0x38]
mov eax, edi
sub eax, esi
mov dword [esp + 0x60], edi
add eax, dword [esp + 0x20]
mov edx, esi
cmp eax, ecx
cmovb ecx, eax
push ecx
mov ecx, edi
call fcn.1001b5f0
mov edi, eax
add esp, 4
lea ecx, [edi + esi]
mov esi, dword [esp + 0x38]
cmp ecx, dword [esp + 0x20]
jne 0x10029555
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x6c]
push esi
lea ecx, [edi + ecx]
call fcn.1001b5f0
add esp, 4
add edi, eax
lea edx, [edi + 4]
mov edi, dword [esp + 0x4c]
cmp edx, edi
jbe 0x10029588
mov eax, dword [esp + 0x14]
mov edi, edx
sub eax, dword [esp + 0x58]
sub eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x5c]
add eax, 3
mov dword [esp + 0x4c], edi
mov dword [ecx], eax
mov ecx, dword [esp + 0x28]
lea eax, [edx + ecx]
cmp eax, esi
je 0x100295a3
jmp 0x1002958c
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x10]
jb 0x100294f0
mov ecx, dword [esp + 0x19c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.1007143a
mov esp, ebp
pop ebp
ret