Function at 0x10028ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x198
mov eax, dword [0x100a8024]
xor eax, esp
mov dword [esp + 0x194], eax
push esi
push edi
mov eax, edx
mov dword [esp + 0x2c], 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 + 0x1c], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x10], 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 + 0x28], 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 + 0x2c]
sub ecx, dword [edi + 0x24]
imul eax, dword [eax], 0x9e3779b1
mov dword [esp + 0x70], 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 0x10029010
mov edx, dword [esp + 0x14]
mov ecx, edx
mov eax, dword [esi + 0x1c]
sub ecx, eax
cmp ecx, 0x180
jbe 0x10028f34
lea ecx, [eax + 0x60]
mov dword [esp + 0x80], ecx
cmp eax, ecx
jae 0x10028eb1
mov edx, dword [esp + 0x34]
mov edi, 0x18
sub edi, dword [esp + 0x10]
add edx, 8
mov dword [esp + 0x40], edi
mov dword [esp + 0x44], edx
nop word [eax + eax]
imul edx, dword [edx + eax], 0x9e3779b1
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x74], 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 + 0x20], 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 + 0x20]
mov byte [esi], dl
mov byte [edx + esi], cl
lea ecx, [edx + edi]
mov edx, dword [esp + 0x1c]
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 + 0x80]
jb 0x10028e40
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x2c]
add eax, 0xffffffe0
mov ecx, dword [esp + 0x34]
inc edx
add ecx, eax
mov dword [esp + 0x80], eax
mov edi, eax
cmp ecx, edx
jbe 0x10028ed4
xor edx, edx
jmp 0x10028edb
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 0x10028f30
mov eax, 0x18
sub eax, dword [esi + 0x24]
mov dword [esp + 0x40], eax
mov eax, edx
nop dword [eax]
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x74], 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 0x10028f00
mov eax, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x20], 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 0x10028fd8
mov edi, 0x18
sub edi, dword [esi + 0x24]
mov dword [esp + 0x70], edi
nop dword [eax]
mov ecx, dword [esi + 0x54]
mov dword [esp + 0x84], 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 + 0x80], 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 + 0x80]
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 + 0x70]
mov dword [edx + ecx*4], eax
inc eax
cmp eax, dword [esp + 0x14]
jb 0x10028f60
mov eax, dword [esp + 0x14]
mov ecx, 0x18
sub ecx, dword [esp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x2c]
imul edx, dword [eax + 8], 0x9e3779b1
mov eax, dword [esp + 0x14]
xor edx, dword [esp + 0x28]
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 + 0x28], ecx
jmp 0x1002902e
mov edx, dword [esp + 0x28]
mov ecx, 0x18
xor edx, dword [esp + 0x70]
sub ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
shr edx, cl
mov dword [esp + 0x28], edx
mov dword [esi + 0x1c], eax
add dword [esi + 0x58], edx
mov eax, edx
mov esi, dword [esp + 0x24]
xor edx, edx
mov ecx, dword [esp + 0x1c]
shr eax, 3
and eax, 0x1fffffe0
mov dword [esp + 0x10], 0
add esi, eax
mov dword [esp + 0x18], edx
mov dword [esp + 0x70], esi
lea ecx, [ecx + eax*4]
movzx eax, byte [esi]
and eax, 0x1f
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], eax
xor ecx, ecx
mov eax, dword [esp + 0x28]
movsx eax, al
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x80], xmm0
nop dword [eax]
movups xmm0, xmmword [esi]
lea esi, [esi + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [esp + ecx*4 + 0x80], eax
inc ecx
cmp ecx, 2
jl 0x10029090
mov esi, dword [esp + 0x84]
mov cl, byte [esp + 0x24]
shl esi, 0x10
or esi, dword [esp + 0x80]
ror esi, cl
xor ecx, ecx
mov dword [esp + 0x1c], ecx
test esi, esi
je 0x1002912b
mov edi, dword [esp + 0x50]
test edi, edi
je 0x10029125
push ecx
push esi
call fcn.10021700
add eax, dword [esp + 0x2c]
add esp, 8
and eax, 0x1f
je 0x10029105
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [esp + 0x48]
jb 0x10029125
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 + 0x1c]
mov ecx, esi
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
mov ecx, dword [esp + 0x1c]
and ecx, eax
mov dword [esp + 0x1c], ecx
ja 0x100290d0
jb 0x10029125
test esi, esi
jne 0x100290d0
mov dword [esp + 0x50], edi
xor edx, edx
mov esi, dword [esp + 0x70]
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 + 0x28]
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 0x100291d0
mov esi, dword [esp + 0x2c]
nop
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 0x100291c1
push dword [esp + 0x38]
mov edx, ecx
mov ecx, esi
call fcn.1001b4b0
mov ecx, eax
add esp, 4
cmp ecx, edi
jbe 0x100291bd
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 0x100291cc
mov edx, dword [esp + 0x18]
inc edx
mov dword [esp + 0x18], edx
cmp edx, dword [esp + 0x10]
jb 0x10029170
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 + 0x24], eax
mov dword [esp + 0x18], ecx
sub ecx, eax
add dword [esp + 0x54], ecx
movzx eax, byte [edx]
and eax, 0x1f
xor ecx, ecx
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 + 0x70], xmm0
nop
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
pcmpeqb xmm0, xmm1
pmovmskb eax, xmm0
mov dword [esp + ecx*4 + 0x70], eax
inc ecx
cmp ecx, 2
jl 0x10029230
mov esi, dword [esp + 0x74]
mov cl, byte [esp + 0x3c]
shl esi, 0x10
or esi, dword [esp + 0x70]
ror esi, cl
xor edx, edx
mov dword [esp + 0x20], edx
test esi, esi
je 0x100293a7
mov edi, dword [esp + 0x50]
nop dword [eax + eax]
test edi, edi
je 0x100292c3
push edx
push esi
call fcn.10021700
add eax, dword [esp + 0x44]
add esp, 8
and eax, 0x1f
je 0x100292a5
mov ecx, dword [esp + 0x60]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [esp + 0x48]
jb 0x100292c3
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 + 0x20]
mov ecx, esi
add ecx, 0xffffffff
mov eax, edx
adc eax, 0xffffffff
and esi, ecx
and edx, eax
mov dword [esp + 0x20], edx
ja 0x10029270
jb 0x100292c3
test esi, esi
jne 0x10029270
cmp dword [esp + 0x10], 0
mov edi, dword [esp + 0x4c]
jbe 0x100293a7
mov ecx, dword [esp + 0x2c]
xor eax, eax
mov edx, dword [esp + 0x18]
nop dword [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 0x10029394
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 + 0x24]
mov edx, esi
cmp eax, ecx
cmovb ecx, eax
push ecx
mov ecx, edi
call fcn.1001b4b0
mov edi, eax
add esp, 4
lea ecx, [edi + esi]
mov esi, dword [esp + 0x38]
cmp ecx, dword [esp + 0x24]
jne 0x10029345
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x6c]
push esi
lea ecx, [edi + ecx]
call fcn.1001b4b0
add esp, 4
add edi, eax
lea edx, [edi + 4]
mov edi, dword [esp + 0x4c]
cmp edx, edi
jbe 0x1002938c
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 + 0x2c]
lea eax, [edx + ecx]
cmp eax, esi
jne 0x10029390
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.10071030
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov eax, dword [esp + 0x1c]
inc eax
mov dword [esp + 0x1c], eax
cmp eax, dword [esp + 0x10]
jb 0x100292e0
mov ecx, dword [esp + 0x19c]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.10071030
mov esp, ebp
pop ebp
ret