Function at 0x100251e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x168
mov eax, dword [0x100a8024]
xor eax, esp
mov dword [esp + 0x164], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x28], 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 + 0x1c], esi
mov dword [esp + 0x34], 3
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x28], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0x24]
lea edi, [edx + ecx]
mov dword [esp + 0x14], eax
mov eax, dword [esi + 8]
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x10]
sub eax, ecx
mov dword [esp + 0x20], 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 + 0x48], eax
mov eax, dword [esi + 0xc4]
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x24], eax
mov eax, 1
shl eax, cl
mov ecx, 0x18
cmp dword [esi + 0xdc], 0
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0xc]
jne 0x100254a1
mov edi, dword [esi + 0x1c]
sub eax, edi
cmp eax, 0x180
jbe 0x100253e1
lea eax, [edi + 0x60]
mov dword [esp + 0x54], eax
cmp edi, eax
jae 0x1002535a
sub ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
add edx, 8
mov dword [esp + 0x38], ecx
mov dword [esp + 0x18], 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 + 0x2c]
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 + 0x28]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
mov dword [ecx + eax*4], edi
inc edi
mov ecx, dword [esp + 0x38]
cmp edi, dword [esp + 0x54]
jb 0x100252f3
mov edi, dword [esp + 0xc]
mov ecx, dword [esp + 0x10]
add edi, 0xffffffe0
mov eax, dword [esp + 0x20]
inc ecx
add eax, edi
mov dword [esp + 0x38], edi
mov edx, edi
mov dword [esp + 8], edx
cmp eax, ecx
jbe 0x1002537e
xor ecx, ecx
jmp 0x10025385
sub ecx, dword [esp + 0x20]
sub ecx, edi
inc ecx
mov eax, 8
cmp ecx, eax
cmova ecx, eax
add ecx, edi
mov dword [esp + 0x18], ecx
cmp edi, ecx
lea ecx, [eax + 0x10]
jae 0x100253e1
sub ecx, dword [esi + 0x24]
mov edi, dword [esp + 0x18]
nop dword [eax]
nop word [eax + eax]
mov eax, dword [esp + 0x20]
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 0x100253b0
mov edi, dword [esp + 0x38]
mov ecx, 0x18
mov eax, dword [esi + 0x5c]
mov edx, dword [esi + 4]
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0x28]
mov dword [esp + 0x18], eax
mov dword [esp + 0x40], edx
cmp edi, dword [esp + 0xc]
jae 0x1002546b
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 + 0x18]
mov eax, 0
shr esi, 4
and esi, 0xffffff0
mov dword [esp + 0x38], 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 + 0x38]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + esi]
mov ecx, dword [esp + 0x54]
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
mov dword [ecx + eax*4], edi
inc edi
mov ecx, dword [esp + 8]
cmp edi, dword [esp + 0xc]
jb 0x10025403
mov eax, dword [esp + 0x10]
mov ecx, 0x18
mov edi, dword [esp + 0xc]
sub ecx, dword [esp + 0x14]
mov dword [esi + 0x1c], edi
imul edx, dword [eax + 8], 0x9e3779b1
mov eax, edi
xor edx, dword [esp + 0x24]
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 + 0x14], ecx
jmp 0x100254b8
imul edx, dword [edi], 0x9e3779b1
sub ecx, dword [esp + 0x14]
mov dword [esi + 0x1c], eax
xor edx, dword [esp + 0x24]
shr edx, cl
mov dword [esp + 0x14], edx
mov ecx, dword [esp + 0x28]
mov eax, edx
add dword [esi + 0x58], edx
shr eax, 4
and eax, 0xffffff0
mov dword [esp + 8], 0
mov dword [esp + 0x24], 0
lea ecx, [ecx + eax*4]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x2c]
add ecx, eax
movsx eax, dl
mov dword [esp + 0x38], 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 + 0x18], 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 + 0x40], edx
mov edi, eax
test edx, edx
jne 0x1002553b
test edi, edi
je 0x10025592
mov esi, dword [esp + 0x40]
nop
cmp dword [esp + 0x4c], 0
jbe 0x1002558e
push esi
push edi
call fcn.10021700
add eax, dword [esp + 0x20]
add esp, 8
and eax, 0xf
je 0x10025578
mov ecx, dword [esp + 0x28]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [esp + 0x48]
jb 0x1002558e
mov eax, dword [esp + 8]
mov dword [esp + eax*4 + 0x68], ecx
inc eax
dec dword [esp + 0x4c]
mov dword [esp + 8], eax
mov ecx, edi
mov eax, esi
add ecx, 0xffffffff
adc eax, 0xffffffff
and edi, ecx
and esi, eax
ja 0x10025540
jb 0x1002558e
test edi, edi
jne 0x10025540
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x38]
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 + 0x14]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [esp + 0x28]
mov eax, dword [esi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x1c]
cmp dword [esp + 8], 0
jbe 0x100256d4
xor eax, eax
nop
mov edi, dword [esp + eax*4 + 0x68]
mov edx, dword [esp + 0x5c]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x40], edi
cmp edi, edx
jb 0x1002560e
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x34]
add esi, edi
mov eax, dword [esi + edx - 3]
cmp eax, dword [edx + ecx - 3]
jne 0x100256ab
push dword [esp + 0x30]
mov edx, esi
call fcn.1001b4b0
add esp, 4
mov esi, eax
jmp 0x1002567c
mov esi, dword [esp + 0x50]
mov eax, dword [edi + esi]
cmp eax, dword [ecx]
jne 0x100256a7
add esi, 4
add edi, esi
lea esi, [ecx + 4]
mov ecx, dword [esp + 0x50]
mov eax, esi
add ecx, edx
mov dword [esp + 0x2c], esi
sub eax, edi
mov edx, edi
add eax, ecx
mov ecx, dword [esp + 0x30]
cmp eax, ecx
cmovb ecx, eax
push ecx
mov ecx, esi
call fcn.1001b4b0
mov ecx, dword [esp + 0x60]
mov esi, eax
add ecx, dword [esp + 0x54]
add esp, 4
lea eax, [esi + edi]
cmp eax, ecx
jne 0x10025675
mov ecx, dword [esp + 0x2c]
push dword [esp + 0x30]
mov edx, dword [esp + 0x64]
lea ecx, [esi + ecx]
call fcn.1001b4b0
add esp, 4
add esi, eax
mov edi, dword [esp + 0x40]
add esi, 4
mov edx, dword [esp + 0x34]
cmp esi, edx
jbe 0x100256ab
mov eax, dword [esp + 0xc]
mov edx, esi
mov ecx, dword [esp + 0x64]
sub eax, edi
add eax, 3
mov dword [esp + 0x34], edx
mov dword [ecx], eax
mov eax, dword [esp + 0x10]
add eax, esi
cmp eax, dword [esp + 0x30]
je 0x100256be
jmp 0x100256ab
mov edx, dword [esp + 0x34]
mov eax, dword [esp + 0x24]
inc eax
mov dword [esp + 0x24], eax
cmp eax, dword [esp + 8]
jb 0x100255d0
mov eax, edx
pop edi
pop esi
mov ecx, dword [esp + 0x164]
xor ecx, esp
call fcn.10071030
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x16c]
mov eax, 3
pop edi
pop esi
xor ecx, esp
call fcn.10071030
mov esp, ebp
pop ebp
ret