Function at 0x1002d020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x188
mov eax, dword [0x100a8024]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x30], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x54], eax
push esi
push edi
mov edi, ecx
mov esi, edx
mov dword [esp + 0x28], esi
mov edx, 1
mov dword [esp + 0x14], edi
mov eax, dword [edi + 0x5c]
mov ecx, dword [edi + 4]
mov dword [esp + 0x20], eax
mov eax, dword [edi + 0x28]
mov dword [esp + 0x24], eax
lea eax, [edi + 0x2c]
mov dword [esp + 0x58], eax
mov eax, dword [edi + 0x24]
mov dword [esp + 0x18], eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x4c], eax
add eax, ecx
mov dword [esp + 0x6c], eax
mov eax, esi
sub eax, ecx
mov dword [esp + 0x3c], ecx
mov ecx, dword [edi + 0xb8]
mov dword [esp + 0x1c], eax
mov esi, dword [esp + 0x1c]
shl edx, cl
mov ecx, dword [edi + 0x10]
sub esi, edx
sub eax, ecx
cmp eax, edx
mov eax, esi
mov esi, dword [esp + 0x28]
cmovbe eax, ecx
mov edx, dword [edi + 0x50]
cmp dword [edi + 0x18], 0
mov dword [esp + 0x34], edx
cmovne eax, ecx
mov ecx, 5
mov dword [esp + 0x2c], eax
mov eax, dword [edi + 0xc4]
cmp eax, ecx
mov dword [esp + 0x30], eax
cmovb ecx, eax
mov eax, dword [edi + 0x54]
mov dword [esp + 0x74], eax
mov edi, 3
mov eax, 1
shl eax, cl
imul ecx, dword [esi], 0x9e3779b1
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0xc], ecx
mov ecx, 0x22
mov eax, dword [eax + 0xb4]
mov dword [esp + 0x54], eax
sub ecx, dword [eax + 0xc0]
mov eax, dword [esp + 0xc]
shr eax, cl
mov ecx, dword [esp + 0x30]
shl eax, 2
mov dword [esp + 0x40], eax
cmp ecx, 5
jbe 0x1002d137
add ecx, 0xfffffffb
mov eax, 1
shl eax, cl
mov dword [esp + 0x30], eax
jmp 0x1002d13f
mov dword [esp + 0x30], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x10], 0x1f
cmp dword [ecx + 0xdc], 0
jne 0x1002d377
mov edi, dword [ecx + 0x1c]
mov edx, 0x18
sub eax, edi
mov dword [esp + 0xc], edi
cmp eax, 0x180
jbe 0x1002d29a
lea eax, [edi + 0x60]
mov dword [esp + 0x64], eax
cmp edi, eax
jae 0x1002d216
mov esi, dword [esp + 0xc]
mov edi, edx
sub edi, dword [esp + 0x18]
mov edx, dword [esp + 0x3c]
add edx, 8
mov dword [esp + 0x44], edi
mov dword [esp + 0x48], edx
nop dword [eax]
imul edx, dword [esi + edx], 0x9e3779b1
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x74], eax
mov eax, esi
and eax, 7
xor edx, dword [ecx + 0x50]
mov ecx, edi
mov edi, dword [esp + 0x58]
shr edx, cl
mov ecx, dword [edi + eax*4]
mov dword [edi + eax*4], edx
mov edi, ecx
mov edx, dword [esp + 0x24]
mov eax, 0
shr edi, 3
and edi, 0x1fffffe0
mov dword [esp + 0xc], ecx
add edx, edi
movzx ecx, byte [edx]
dec ecx
and ecx, 0x1f
cmove eax, dword [esp + 0x10]
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 + 0x20]
mov edi, dword [esp + 0x44]
mov edx, dword [esp + 0x48]
mov dword [ecx + eax*4], esi
inc esi
mov ecx, dword [esp + 0x14]
cmp esi, dword [esp + 0x64]
jb 0x1002d1a0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x1c]
lea edx, [esi + 1]
mov eax, dword [esp + 0x3c]
add edi, 0xffffffe0
add eax, edi
mov dword [esp + 0xc], edi
cmp eax, edx
jbe 0x1002d232
xor edx, edx
jmp 0x1002d239
sub edx, dword [esp + 0x3c]
sub edx, edi
inc edx
mov eax, 8
cmp edx, eax
cmova edx, eax
add edx, edi
mov dword [esp + 0x48], edx
cmp edi, edx
jae 0x1002d295
mov eax, 0x18
mov esi, edx
sub eax, dword [ecx + 0x24]
mov dword [esp + 0x64], eax
nop dword [eax + eax]
mov eax, dword [ecx + 0x54]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x3c]
imul edx, dword [edi + eax], 0x9e3779b1
mov eax, edi
and eax, 7
inc edi
xor edx, dword [ecx + 0x50]
mov ecx, dword [esp + 0x64]
shr edx, cl
mov ecx, dword [esp + 0x14]
mov dword [ecx + eax*4 + 0x2c], edx
cmp edi, esi
jb 0x1002d260
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0xc]
mov edx, 0x18
mov eax, dword [ecx + 0x5c]
mov dword [esp + 0x60], eax
mov eax, dword [ecx + 0x28]
mov dword [esp + 0x44], eax
mov eax, dword [ecx + 4]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x1c]
cmp edi, eax
jae 0x1002d342
mov esi, dword [esp + 0xc]
mov edi, edx
sub edi, dword [ecx + 0x24]
mov dword [esp + 0x70], edi
nop dword [eax + eax]
mov eax, dword [esp + 0x48]
imul edx, dword [esi + eax + 8], 0x9e3779b1
mov eax, esi
and eax, 7
xor edx, dword [ecx + 0x50]
mov ecx, edi
mov edi, dword [esp + 0x58]
shr edx, cl
mov ecx, dword [edi + eax*4]
mov dword [edi + eax*4], edx
mov edi, ecx
mov edx, dword [esp + 0x44]
mov eax, 0
shr edi, 3
and edi, 0x1fffffe0
mov dword [esp + 0x64], ecx
add edx, edi
movzx ecx, byte [edx]
dec ecx
and ecx, 0x1f
cmove eax, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x64]
mov byte [edx], cl
mov byte [ecx + edx], al
lea eax, [ecx + edi]
mov ecx, dword [esp + 0x60]
mov edi, dword [esp + 0x70]
mov dword [ecx + eax*4], esi
inc esi
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
cmp esi, eax
jb 0x1002d2d0
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x58]
mov dword [ecx + 0x1c], eax
mov ecx, 0x18
imul edx, dword [esi + 8], 0x9e3779b1
sub ecx, dword [esp + 0x18]
xor edx, dword [esp + 0x34]
shr edx, cl
and eax, 7
mov ecx, dword [edi + eax*4]
mov dword [edi + eax*4], edx
mov edi, 3
mov edx, dword [esp + 0x14]
mov dword [esp + 0x34], ecx
jmp 0x1002d395
xor edx, dword [esp + 0xc]
mov ecx, 0x18
sub ecx, dword [esp + 0x18]
shr edx, cl
mov dword [esp + 0x34], edx
mov edx, dword [esp + 0x14]
mov ecx, dword [esp + 0x34]
mov dword [edx + 0x1c], eax
add dword [edx + 0x58], ecx
mov eax, ecx
mov esi, dword [esp + 0x24]
mov ecx, dword [esp + 0x20]
shr eax, 3
and eax, 0x1fffffe0
mov dword [esp + 0xc], 0
add esi, eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x60], esi
lea ecx, [ecx + eax*4]
movzx eax, byte [esi]
and eax, 0x1f
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x24], eax
movsx eax, cl
xor ecx, ecx
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x70], xmm0
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 0x1002d3f3
mov eax, dword [esp + 0x74]
mov cl, byte [esp + 0x24]
shl eax, 0x10
or eax, dword [esp + 0x70]
ror eax, cl
test eax, eax
je 0x1002d47e
mov esi, eax
xor edi, edi
cmp dword [esp + 0x50], 0
jbe 0x1002d475
push edi
push esi
call fcn.10021700
add eax, dword [esp + 0x2c]
add esp, 8
and eax, 0x1f
je 0x1002d45f
mov ecx, dword [esp + 0x20]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [esp + 0x2c]
jb 0x1002d475
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x88], ecx
inc eax
dec dword [esp + 0x50]
mov dword [esp + 0xc], eax
mov ecx, esi
mov eax, edi
add ecx, 0xffffffff
adc eax, 0xffffffff
and esi, ecx
and edi, eax
ja 0x1002d424
jb 0x1002d475
test esi, esi
jne 0x1002d424
mov edx, dword [esp + 0x14]
mov edi, 3
mov esi, dword [esp + 0x60]
mov eax, 0
movzx ecx, byte [esi]
dec ecx
and ecx, 0x1f
cmove eax, dword [esp + 0x10]
add ecx, eax
mov eax, dword [esp + 0x34]
mov byte [esi], cl
mov byte [ecx + esi], al
mov esi, dword [esp + 0x20]
mov eax, dword [edx + 0x1c]
mov dword [esi + ecx*4], eax
inc dword [edx + 0x1c]
cmp dword [esp + 0xc], 0
mov esi, dword [esp + 0x28]
jbe 0x1002d519
mov ecx, dword [esp + 0xc]
xor eax, eax
nop dword [eax]
mov eax, dword [esp + eax*4 + 0x88]
mov edx, dword [esp + 0x3c]
add edx, eax
mov dword [esp + 0x70], eax
mov eax, dword [edx + edi - 3]
cmp eax, dword [edi + esi - 3]
jne 0x1002d50c
push dword [esp + 0x38]
mov ecx, esi
call fcn.1001b4b0
add esp, 4
cmp eax, edi
jbe 0x1002d508
mov ecx, dword [esp + 0x1c]
mov edi, eax
sub ecx, dword [esp + 0x70]
add eax, esi
mov edx, dword [esp + 0x5c]
add ecx, 3
mov dword [edx], ecx
cmp eax, dword [esp + 0x38]
je 0x1002d519
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, ecx
jb 0x1002d4c0
mov ecx, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x50]
mov dword [esp + 0x18], edx
mov eax, dword [ecx + 4]
mov ecx, dword [ecx]
mov dword [esp + 0x30], eax
sub eax, ecx
add eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
mov eax, 3
cmp edx, eax
mov dword [esp + 0x24], ecx
cmovb eax, edx
xor ecx, ecx
mov dword [esp + 0x70], eax
mov dword [esp + 0x2c], ecx
test eax, eax
je 0x1002d5fb
mov eax, dword [esp + 0x40]
lea ecx, [eax*4]
mov dword [esp + 0x10], ecx
nop dword [eax + eax]
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 0x5c]
mov eax, dword [ecx + eax]
add edx, eax
mov dword [esp + 0x4c], eax
test eax, eax
je 0x1002d6b8
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x1002d5db
push dword [esp + 0x6c]
add edx, 4
lea ecx, [esi + 4]
push dword [esp + 0x28]
push dword [esp + 0x40]
call fcn.1001b530
add esp, 0xc
lea ecx, [eax + 4]
cmp ecx, edi
jbe 0x1002d5d7
mov eax, dword [esp + 0x1c]
mov edi, ecx
sub eax, dword [esp + 0x4c]
sub eax, dword [esp + 0x20]
mov edx, dword [esp + 0x5c]
add eax, 3
mov dword [edx], eax
lea eax, [ecx + esi]
cmp eax, dword [esp + 0x38]
je 0x1002d6ce
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x2c]
add ecx, 4
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x2c], eax
cmp eax, dword [esp + 0x70]
jb 0x1002d570
mov edx, dword [esp + 0x18]
mov ecx, eax
mov eax, dword [esp + 0x54]
sub edx, ecx
mov esi, dword [esp + 0x40]
mov dword [esp + 0x40], 0
mov eax, dword [eax + 0x5c]
mov eax, dword [eax + esi*4 + 0xc]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x10], eax
shr dword [esp + 0x10], 8
movzx eax, al
cmp edx, eax
cmova edx, eax
mov dword [esp + 0x18], edx
test edx, edx
je 0x1002d6b8
mov eax, dword [esp + 0x10]
lea ecx, [eax*4]
mov dword [esp + 0x10], ecx
mov eax, dword [esp + 0x54]
mov edx, dword [esp + 0x30]
mov eax, dword [eax + 0x64]
mov eax, dword [ecx + eax]
add edx, eax
mov dword [esp + 0x4c], eax
mov eax, dword [edx]
cmp eax, dword [esi]
jne 0x1002d6a2
push dword [esp + 0x6c]
add edx, 4
lea ecx, [esi + 4]
push dword [esp + 0x28]
push dword [esp + 0x40]
call fcn.1001b530
add eax, 4
add esp, 0xc
cmp eax, edi
jbe 0x1002d69e
mov ecx, dword [esp + 0x1c]
mov edi, eax
sub ecx, dword [esp + 0x4c]
add eax, esi
sub ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x5c]
add ecx, 3
mov dword [edx], ecx
cmp eax, dword [esp + 0x38]
je 0x1002d6b8
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x40]
add ecx, 4
inc eax
mov dword [esp + 0x10], ecx
mov dword [esp + 0x40], eax
cmp eax, dword [esp + 0x18]
jb 0x1002d644
mov eax, edi
pop edi
pop esi
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.10071030
mov esp, ebp
pop ebp
ret
mov eax, ecx
mov ecx, dword [esp + 0x18c]
pop edi
pop esi
xor ecx, esp
call fcn.10071030
mov esp, ebp
pop ebp
ret