Function at 0x10029b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x180
mov eax, dword [0x100a8024]
xor eax, esp
mov dword [esp + 0x17c], eax
push esi
push edi
mov eax, edx
mov dword [esp + 0x1c], eax
mov esi, ecx
mov dword [esp + 0x20], esi
mov dword [esp + 0x28], 3
mov ecx, dword [ebp + 8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x6c], ecx
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x30], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x34], ecx
lea ecx, [esi + 0x2c]
mov dword [esp + 0x10], ecx
mov edi, eax
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 4]
sub edi, ecx
mov dword [esp + 0x5c], edx
add edx, ecx
mov eax, edi
mov dword [esp + 0x14], ecx
mov ecx, dword [esi + 0xb8]
mov dword [esp + 0x7c], edx
mov edx, 1
shl edx, cl
mov ecx, dword [esi + 0x10]
sub eax, ecx
mov dword [esp + 0x18], edi
sub edi, edx
cmp eax, edx
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0x54]
cmovbe edi, ecx
cmp dword [esi + 0x18], 0
push 0xcf1bbcdc
cmovne edi, ecx
mov dword [esp + 0x44], edx
mov ecx, 4
mov dword [esp + 0x48], edi
cmp eax, ecx
mov dword [esp + 0x50], edx
push 0xbb000000
cmovb ecx, eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x60], eax
mov dword [esp + 0x50], eax
mov eax, 1
shl eax, cl
mov dword [esp + 0x5c], eax
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x40], eax
mov edi, dword [eax + 0x5c]
mov esi, dword [eax + 0x28]
mov eax, dword [esp + 0x24]
mov dword [esp + 0x10], edi
push dword [eax + 4]
push dword [eax]
call fcn.10071bc0
mov edi, dword [esp + 0x38]
mov ecx, 0x38
mov dword [esp + 0x70], eax
mov dword [esp + 0x74], edx
sub ecx, dword [edi + 0x24]
call fcn.10094c50
mov edi, dword [esp + 8]
mov dword [esp + 0x64], eax
shr eax, 4
and eax, 0xffffff0
mov dword [esp + 0x50], 0xf
lea ecx, [eax + esi]
lea eax, [edi + eax*4]
mov dword [esp + 0x60], ecx
mov edi, dword [esp + 0x20]
mov dword [esp + 0x68], eax
cmp dword [edi + 0xdc], 0
jne 0x10029f1e
mov eax, dword [esp + 0x18]
mov esi, dword [edi + 0x1c]
sub eax, esi
cmp eax, 0x180
jbe 0x10029e1f
lea eax, [esi + 0x60]
mov dword [esp + 0x3c], eax
cmp esi, eax
jae 0x10029d90
mov eax, 0x38
sub eax, dword [esp + 0x24]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x14]
add eax, 8
mov dword [esp + 0x48], eax
nop dword [eax]
nop dword [eax + eax]
push 0xcf1bbcdc
push 0xbb000000
push dword [eax + esi + 4]
push dword [eax + esi]
call fcn.10071bc0
xor eax, dword [edi + 0x50]
xor edx, dword [edi + 0x54]
mov ecx, dword [esp + 8]
call fcn.10094c50
mov edi, dword [esp + 0x10]
mov ecx, eax
mov eax, esi
and eax, 7
mov edx, dword [edi + eax*4]
mov dword [edi + eax*4], ecx
mov edi, edx
shr edi, 4
mov eax, 0
and edi, 0xffffff0
mov dword [esp + 0xc], edx
mov edx, dword [esp + 0x34]
add edx, edi
movzx ecx, byte [edx]
dec ecx
and ecx, 0xf
cmove eax, dword [esp + 0x50]
add ecx, eax
mov eax, dword [esp + 0xc]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + edi]
mov ecx, dword [esp + 0x30]
mov edi, dword [esp + 0x20]
mov dword [ecx + eax*4], esi
inc esi
mov eax, dword [esp + 0x48]
cmp esi, dword [esp + 0x3c]
jb 0x10029d10
mov esi, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
add esi, 0xffffffe0
mov ecx, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0xc], esi
lea eax, [edx + esi]
cmp eax, ecx
jbe 0x10029daf
xor ecx, ecx
jmp 0x10029db4
sub ecx, edx
sub ecx, esi
inc ecx
mov eax, 8
cmp ecx, eax
cmova ecx, eax
add ecx, esi
mov dword [esp + 8], ecx
cmp esi, ecx
jae 0x10029e1f
mov eax, 0x38
sub eax, dword [edi + 0x24]
mov dword [esp + 0x3c], eax
nop dword [eax]
nop dword [eax + eax]
push 0xcf1bbcdc
push 0xbb000000
push dword [esi + edx + 4]
push dword [esi + edx]
call fcn.10071bc0
xor eax, dword [edi + 0x50]
xor edx, dword [edi + 0x54]
mov ecx, dword [esp + 0x3c]
call fcn.10094c50
mov edx, dword [esp + 0x14]
mov ecx, eax
mov eax, esi
inc esi
and eax, 7
mov dword [edi + eax*4 + 0x2c], ecx
cmp esi, dword [esp + 8]
jb 0x10029de0
mov esi, dword [esp + 0xc]
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 4]
mov dword [esp + 0xc], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x70], ecx
cmp esi, dword [esp + 0x18]
jae 0x10029ed5
mov eax, 0x38
sub eax, dword [edi + 0x24]
mov dword [esp + 0x48], eax
nop word [eax + eax]
push 0xcf1bbcdc
push 0xbb000000
push dword [ecx + esi + 0xc]
push dword [ecx + esi + 8]
call fcn.10071bc0
xor eax, dword [edi + 0x50]
xor edx, dword [edi + 0x54]
mov ecx, dword [esp + 0x48]
call fcn.10094c50
mov edi, dword [esp + 0x10]
mov ecx, eax
mov eax, esi
and eax, 7
mov edx, dword [edi + eax*4]
mov dword [edi + eax*4], ecx
mov edi, edx
shr edi, 4
mov eax, 0
and edi, 0xffffff0
mov dword [esp + 8], edx
mov edx, dword [esp + 0x3c]
add edx, edi
movzx ecx, byte [edx]
dec ecx
and ecx, 0xf
cmove eax, dword [esp + 0x50]
add ecx, eax
mov eax, dword [esp + 8]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + edi]
mov ecx, dword [esp + 0xc]
mov edi, dword [esp + 0x20]
mov dword [ecx + eax*4], esi
inc esi
mov ecx, dword [esp + 0x70]
cmp esi, dword [esp + 0x18]
jb 0x10029e50
mov esi, dword [esp + 0x18]
mov dword [edi + 0x1c], esi
mov edi, dword [esp + 0x1c]
push 0xcf1bbcdc
push 0xbb000000
push dword [edi + 0xc]
push dword [edi + 8]
call fcn.10071bc0
xor eax, dword [esp + 0x58]
mov ecx, 0x38
xor edx, dword [esp + 0x40]
sub ecx, dword [esp + 0x24]
call fcn.10094c50
mov ecx, eax
mov eax, esi
mov esi, dword [esp + 0x10]
and eax, 7
mov edx, dword [esi + eax*4]
mov dword [esi + eax*4], ecx
jmp 0x10029f4d
movq xmm0, qword [esp + 0x48]
mov eax, 0x38
sub eax, dword [esp + 0x24]
movq xmm1, qword [esp + 0x70]
xorps xmm1, xmm0
movd xmm0, eax
mov eax, dword [esp + 0x18]
psrlq xmm1, xmm0
mov dword [edi + 0x1c], eax
mov edi, dword [esp + 0x1c]
movd edx, xmm1
mov esi, dword [esp + 0x20]
mov eax, edx
mov ecx, dword [esp + 0x30]
shr eax, 4
and eax, 0xffffff0
mov dword [esp + 0x24], edx
add dword [esi + 0x58], edx
mov edx, dword [esp + 0x34]
add edx, eax
mov dword [esp + 0x10], 0
lea ecx, [ecx + eax*4]
mov dword [esp + 0x58], edx
mov eax, dword [esp + 0x24]
movsx eax, al
mov dword [esp + 0xc], ecx
movzx ecx, byte [edx]
and ecx, 0xf
mov dword [esp + 8], 0
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [edx]
mov dword [esp + 0x34], ecx
neg ecx
and ecx, 0xf
pcmpeqb xmm0, xmm1
pmovmskb edx, xmm0
mov ax, dx
shl ax, cl
mov cx, word [esp + 0x34]
shr dx, cl
or ax, dx
movzx eax, ax
cdq
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], edx
test edx, edx
jne 0x10029fde
test eax, eax
je 0x1002a045
mov edi, dword [esp + 0x40]
mov esi, dword [esp + 0x54]
test esi, esi
je 0x1002a039
push edx
push edi
call fcn.10021700
add eax, dword [esp + 0x3c]
add esp, 8
and eax, 0xf
je 0x1002a01b
mov ecx, dword [esp + 0xc]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [esp + 0x44]
jb 0x1002a039
mov eax, dword [esp + 0x10]
mov dword [esp + eax*4 + 0x80], ecx
inc eax
mov dword [esp + 0x10], eax
dec esi
mov edx, dword [esp + 0x30]
mov ecx, edi
add ecx, 0xffffffff
mov eax, edx
adc eax, 0xffffffff
and edi, ecx
and edx, eax
mov dword [esp + 0x30], edx
ja 0x10029fe6
jb 0x1002a039
test edi, edi
jne 0x10029fe6
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x58]
mov eax, 0
movzx ecx, byte [edx]
dec ecx
and ecx, 0xf
cmove eax, dword [esp + 0x50]
add ecx, eax
mov eax, dword [esp + 0x24]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [esp + 0xc]
mov eax, dword [esi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x1c]
cmp dword [esp + 0x10], 0
jbe 0x1002a0f0
mov ecx, dword [esp + 0x10]
mov esi, 3
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esp + eax*4 + 0x80]
mov edx, dword [esp + 0x14]
add edx, eax
mov dword [esp + 0x44], eax
mov eax, dword [edx + esi - 3]
cmp eax, dword [esi + edi - 3]
jne 0x1002a0df
push dword [esp + 0x2c]
mov ecx, edi
call fcn.1001b4b0
mov ecx, eax
add esp, 4
cmp ecx, esi
jbe 0x1002a0db
mov eax, dword [esp + 0x18]
mov esi, ecx
sub eax, dword [esp + 0x44]
mov edx, dword [esp + 0x6c]
add eax, 3
mov dword [edx], eax
lea eax, [ecx + edi]
cmp eax, dword [esp + 0x2c]
je 0x1002a0ec
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 8]
inc eax
mov dword [esp + 8], eax
cmp eax, ecx
jb 0x1002a090
mov dword [esp + 0x28], esi
mov edx, dword [esp + 0x38]
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 0
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 4]
mov dword [esp + 0x44], eax
mov eax, dword [edx]
mov dword [esp + 0x40], ecx
sub ecx, eax
add dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x64]
movsx eax, al
movzx esi, byte [ecx]
and esi, 0xf
mov dword [esp + 0x60], esi
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [ecx]
mov ecx, esi
neg ecx
pcmpeqb xmm0, xmm1
and ecx, 0xf
pmovmskb edx, xmm0
mov ax, dx
shl ax, cl
mov cx, si
shr dx, cl
or ax, dx
movzx eax, ax
cdq
mov dword [esp + 0x38], edx
mov esi, eax
test edx, edx
jne 0x1002a17b
test esi, esi
je 0x1002a2be
mov edi, dword [esp + 0x54]
nop
test edi, edi
je 0x1002a1d3
push edx
push esi
call fcn.10021700
add eax, dword [esp + 0x68]
add esp, 8
and eax, 0xf
je 0x1002a1b5
mov ecx, dword [esp + 0x68]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [esp + 0x44]
jb 0x1002a1d3
mov eax, dword [esp + 0x14]
mov dword [esp + eax*4 + 0x80], ecx
inc eax
mov dword [esp + 0x14], eax
dec edi
mov edx, dword [esp + 0x38]
mov ecx, esi
add ecx, 0xffffffff
mov eax, edx
adc eax, 0xffffffff
and esi, ecx
and edx, eax
mov dword [esp + 0x38], edx
ja 0x1002a180
jb 0x1002a1d3
test esi, esi
jne 0x1002a180
cmp dword [esp + 0x14], 0
mov edi, dword [esp + 0x1c]
jbe 0x1002a2be
xor eax, eax
nop dword [eax]
nop dword [eax + eax]
mov eax, dword [esp + eax*4 + 0x80]
mov esi, dword [esp + 0x40]
add esi, eax
mov dword [esp + 0x64], eax
mov eax, dword [esi]
cmp eax, dword [edi]
jne 0x1002a28b
mov ecx, dword [esp + 0x2c]
add edi, 4
add esi, 4
mov dword [esp + 0x68], edi
mov eax, edi
mov edx, esi
sub eax, esi
add eax, dword [esp + 8]
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 + 0x2c]
cmp ecx, dword [esp + 8]
jne 0x1002a258
mov ecx, dword [esp + 0x68]
mov edx, dword [esp + 0x7c]
push esi
lea ecx, [edi + ecx]
call fcn.1001b4b0
add esp, 4
add edi, eax
mov ecx, dword [esp + 0x28]
lea edx, [edi + 4]
cmp edx, ecx
jbe 0x1002a291
mov eax, dword [esp + 0x18]
mov ecx, edx
sub eax, dword [esp + 0x64]
sub eax, dword [esp + 0x5c]
mov edi, dword [esp + 0x6c]
add eax, 3
mov dword [esp + 0x28], ecx
mov dword [edi], eax
mov edi, dword [esp + 0x1c]
lea eax, [edx + edi]
cmp eax, esi
je 0x1002a2a8
jmp 0x1002a295
mov ecx, dword [esp + 0x28]
jmp 0x1002a295
mov edi, dword [esp + 0x1c]
mov eax, dword [esp + 0xc]
inc eax
mov dword [esp + 0xc], eax
cmp eax, dword [esp + 0x14]
jb 0x1002a1f0
mov eax, ecx
pop edi
pop esi
mov ecx, dword [esp + 0x17c]
xor ecx, esp
call fcn.10071030
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x184]
mov eax, dword [esp + 0x28]
pop edi
pop esi
xor ecx, esp
call fcn.10071030
mov esp, ebp
pop ebp
ret