Function at 0x100253d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x168
mov eax, dword [0x100a9040]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x5c], eax
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
push edi
mov dword [esp + 0x18], esi
mov dword [esp + 0x3c], 3
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x24]
lea edi, [edx + ecx]
mov dword [esp + 0x48], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x10]
sub eax, ecx
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xb8]
mov dword [esp + 0xc], eax
mov dword [esp + 0x5c], edx
mov edx, 1
shl edx, cl
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov dword [esp + 0x60], edi
mov edi, dword [esp + 0xc]
sub edi, edx
mov dword [esp + 0x58], 0xf
cmp eax, edx
mov eax, edi
mov edi, dword [esp + 0x10]
cmovbe eax, ecx
cmp dword [esi + 0x18], 0
cmovne eax, ecx
mov ecx, 4
mov dword [esp + 0x4c], eax
mov eax, dword [esi + 0xc4]
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x20], eax
mov eax, 1
shl eax, cl
mov ecx, 0x18
cmp dword [esi + 0xdc], 0
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0xc]
jne 0x10025691
mov edi, dword [esi + 0x1c]
sub eax, edi
cmp eax, 0x180
jbe 0x100255d1
lea eax, [edi + 0x60]
mov dword [esp + 0x2c], eax
cmp edi, eax
jae 0x1002554a
sub ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x1c]
add edx, 8
mov dword [esp + 0x40], ecx
mov dword [esp + 0x14], edx
imul edx, dword [edi + edx], 0x9e3779b1
mov eax, edi
and eax, 7
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, dword [esi + eax*4 + 0x2c]
mov dword [esi + eax*4 + 0x2c], edx
mov esi, ecx
mov edx, dword [esp + 0x28]
mov eax, 0
shr esi, 4
and esi, 0xffffff0
mov dword [esp + 8], ecx
add edx, esi
movzx ecx, byte [edx]
dec ecx
and ecx, 0xf
cmove eax, dword [esp + 0x58]
add ecx, eax
mov eax, dword [esp + 8]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x24]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
mov dword [ecx + eax*4], edi
inc edi
mov ecx, dword [esp + 0x40]
cmp edi, dword [esp + 0x2c]
jb 0x100254e3
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add edi, 0xffffffe0
mov eax, dword [esp + 0x1c]
inc ecx
add eax, edi
mov dword [esp + 0x40], edi
mov edx, edi
mov dword [esp + 8], edx
cmp eax, ecx
jbe 0x1002556e
xor ecx, ecx
jmp 0x10025575
sub ecx, dword [esp + 0x1c]
sub ecx, edi
inc ecx
mov eax, 8
cmp ecx, eax
cmova ecx, eax
add ecx, edi
mov dword [esp + 0x14], ecx
cmp edi, ecx
lea ecx, [eax + 0x10]
jae 0x100255d1
sub ecx, dword [esi + 0x24]
mov edi, dword [esp + 0x14]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esp + 0x1c]
imul edx, dword [edx + eax], 0x9e3779b1
mov eax, dword [esp + 8]
and eax, 7
xor edx, dword [esi + 0x50]
shr edx, cl
mov dword [esi + eax*4 + 0x2c], edx
mov edx, dword [esp + 8]
inc edx
mov dword [esp + 8], edx
cmp edx, edi
jb 0x100255a0
mov edi, dword [esp + 0x40]
mov ecx, 0x18
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 4]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x14], eax
mov dword [esp + 0x30], edx
cmp edi, dword [esp + 0xc]
jae 0x1002565b
sub ecx, dword [esi + 0x24]
mov dword [esp + 8], ecx
imul edx, dword [edi + edx + 8], 0x9e3779b1
mov eax, edi
and eax, 7
xor edx, dword [esi + 0x50]
shr edx, cl
mov ecx, dword [esi + eax*4 + 0x2c]
mov dword [esi + eax*4 + 0x2c], edx
mov esi, ecx
mov edx, dword [esp + 0x14]
mov eax, 0
shr esi, 4
and esi, 0xffffff0
mov dword [esp + 0x40], ecx
add edx, esi
movzx ecx, byte [edx]
dec ecx
and ecx, 0xf
cmove eax, dword [esp + 0x58]
add ecx, eax
mov eax, dword [esp + 0x40]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x2c]
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x30]
mov dword [ecx + eax*4], edi
inc edi
mov ecx, dword [esp + 8]
cmp edi, dword [esp + 0xc]
jb 0x100255f3
mov eax, dword [esp + 0x10]
mov ecx, 0x18
mov edi, dword [esp + 0xc]
sub ecx, dword [esp + 0x48]
mov dword [esi + 0x1c], edi
imul edx, dword [eax + 8], 0x9e3779b1
mov eax, edi
xor edx, dword [esp + 0x20]
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 + 0x30], ecx
jmp 0x100256a4
imul edx, dword [edi], 0x9e3779b1
sub ecx, dword [esp + 0x48]
mov dword [esi + 0x1c], eax
xor edx, dword [esp + 0x20]
shr edx, cl
mov ecx, dword [esp + 0x24]
mov eax, edx
add dword [esi + 0x58], edx
shr eax, 4
and eax, 0xffffff0
movzx edx, dl
mov dword [esp + 0x2c], edx
mov dword [esp + 8], 0
mov dword [esp + 0x20], 0
lea ecx, [ecx + eax*4]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x28]
add ecx, eax
movsx eax, dl
mov dword [esp + 0x40], ecx
movzx edi, byte [ecx]
movd xmm0, eax
and edi, 0xf
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [ecx]
mov ecx, edi
mov dword [esp + 0x14], edi
neg ecx
pcmpeqb xmm0, xmm1
and ecx, 0xf
pmovmskb edx, xmm0
mov ax, dx
shl ax, cl
mov cx, di
shr dx, cl
or ax, dx
movzx eax, ax
cdq
mov dword [esp + 0x30], edx
mov edi, eax
test edx, edx
jne 0x1002572e
test edi, edi
je 0x10025784
mov esi, dword [esp + 0x30]
cmp dword [esp + 0x50], 0
jbe 0x10025780
push esi
push edi
call fcn.100218d0
add eax, dword [esp + 0x1c]
add esp, 8
and eax, 0xf
je 0x1002576a
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [esp + 0x4c]
jb 0x10025780
mov eax, dword [esp + 8]
mov dword [esp + eax*4 + 0x68], ecx
inc eax
dec dword [esp + 0x50]
mov dword [esp + 8], eax
mov ecx, edi
mov eax, esi
add ecx, 0xffffffff
adc eax, 0xffffffff
and edi, ecx
and esi, eax
ja 0x10025732
jb 0x10025780
test edi, edi
jne 0x10025732
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x40]
mov eax, 0
mov edi, 0xf
movzx ecx, byte [edx]
dec ecx
and ecx, 0xf
cmove eax, edi
add ecx, eax
mov eax, dword [esp + 0x2c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [esp + 0x24]
mov eax, dword [esi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x1c]
cmp dword [esp + 8], 0
jbe 0x100258c5
xor eax, eax
mov edi, dword [esp + eax*4 + 0x68]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x30], edi
cmp edi, edx
jb 0x100257ff
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
add esi, edi
mov eax, dword [esi + edx - 3]
cmp eax, dword [edx + ecx - 3]
jne 0x1002589c
push dword [esp + 0x38]
mov edx, esi
call fcn.1001b5f0
add esp, 4
mov esi, eax
jmp 0x1002586d
mov esi, dword [esp + 0x54]
mov eax, dword [edi + esi]
cmp eax, dword [ecx]
jne 0x10025898
add esi, 4
add edi, esi
lea esi, [ecx + 4]
mov ecx, dword [esp + 0x54]
mov eax, esi
add ecx, edx
mov dword [esp + 0x28], esi
sub eax, edi
mov edx, edi
add eax, ecx
mov ecx, dword [esp + 0x38]
cmp eax, ecx
cmovb ecx, eax
push ecx
mov ecx, esi
call fcn.1001b5f0
mov ecx, dword [esp + 0x60]
mov esi, eax
add ecx, dword [esp + 0x58]
add esp, 4
lea eax, [esi + edi]
cmp eax, ecx
jne 0x10025866
mov ecx, dword [esp + 0x28]
push dword [esp + 0x38]
mov edx, dword [esp + 0x64]
lea ecx, [esi + ecx]
call fcn.1001b5f0
add esp, 4
add esi, eax
mov edi, dword [esp + 0x30]
add esi, 4
mov edx, dword [esp + 0x3c]
cmp esi, edx
jbe 0x1002589c
mov eax, dword [esp + 0xc]
mov edx, esi
mov ecx, dword [esp + 0x64]
sub eax, edi
add eax, 3
mov dword [esp + 0x3c], edx
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
add eax, esi
cmp eax, dword [esp + 0x38]
je 0x100258af
jmp 0x1002589c
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x20]
inc eax
mov dword [esp + 0x20], eax
cmp eax, dword [esp + 8]
jb 0x100257c1
mov eax, edx
pop edi
pop esi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.1007143a
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x16c]
mov eax, 3
pop edi
pop esi
xor ecx, esp
call fcn.1007143a
mov esp, ebp
pop ebp
ret