Function at 0x10028860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x180
mov eax, dword [0x100a9040]
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 + 0x28], esi
mov dword [esp + 0x50], 3
mov ecx, dword [ebp + 8]
mov dword [esp + 0x38], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [esi + 0xc]
mov dword [esp + 0x64], ecx
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0x40], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x18], ecx
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esi + 4]
mov edi, eax
mov dword [esp + 0x58], edx
add edx, ecx
mov dword [esp + 0x14], ecx
sub edi, ecx
mov dword [esp + 0x7c], edx
mov ecx, dword [esi + 0xb8]
mov eax, edi
mov dword [esp + 0x10], edi
mov edx, 1
shl edx, cl
mov ecx, dword [esi + 0x10]
sub edi, edx
sub eax, ecx
cmp eax, edx
mov dword [esp + 0x20], 0xf
mov eax, dword [esi + 0xc4]
cmovbe edi, ecx
cmp dword [esi + 0x18], 0
cmovne edi, ecx
mov ecx, 4
cmp eax, ecx
mov dword [esp + 0x4c], edi
cmovb ecx, eax
mov eax, dword [esi + 0x50]
mov dword [esp + 0x3c], eax
mov eax, 1
shl eax, cl
mov ecx, 0x18
mov dword [esp + 0x54], eax
mov eax, dword [esi + 0xb4]
mov dword [esp + 0x44], eax
mov edi, dword [esp + 0x44]
mov esi, dword [eax + 0x5c]
mov edx, dword [eax + 0x28]
mov eax, dword [esp + 0x1c]
sub ecx, dword [edi + 0x24]
mov edi, 3
imul eax, dword [eax], 0x9e3779b1
mov dword [esp + 0xc], eax
shr eax, cl
mov dword [esp + 0x60], eax
shr eax, 4
and eax, 0xffffff0
lea ecx, [eax + edx]
lea eax, [esi + eax*4]
mov dword [esp + 0x5c], ecx
mov esi, dword [esp + 0x28]
mov dword [esp + 0x70], eax
cmp dword [esi + 0xdc], 0
jne 0x10028b65
mov edx, dword [esp + 0x10]
mov ecx, edx
mov eax, dword [esi + 0x1c]
sub ecx, eax
cmp ecx, 0x180
jbe 0x10028a9a
lea ecx, [eax + 0x60]
mov dword [esp + 0xc], ecx
cmp eax, ecx
jae 0x10028a27
mov edx, dword [esp + 0x14]
mov edi, 0x18
sub edi, dword [esp + 0x2c]
add edx, 8
mov dword [esp + 0x48], edi
mov dword [esp + 0x24], edx
nop dword [eax]
imul edx, dword [edx + eax], 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 + 0x18]
mov dword [esp + 0x30], edi
shr edi, 4
and edi, 0xffffff0
add esi, edi
movzx edx, byte [esi]
dec edx
and edx, 0xf
cmove ecx, dword [esp + 0x20]
add edx, ecx
mov ecx, dword [esp + 0x30]
mov byte [esi], dl
mov byte [edx + esi], cl
lea ecx, [edx + edi]
mov edx, dword [esp + 0x40]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x48]
mov dword [edx + ecx*4], eax
inc eax
mov edx, dword [esp + 0x24]
cmp eax, dword [esp + 0xc]
jb 0x100289c0
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
add eax, 0xffffffe0
mov ecx, dword [esp + 0x14]
inc edx
add ecx, eax
mov dword [esp + 0x30], eax
mov edi, eax
cmp ecx, edx
jbe 0x10028a47
xor edx, edx
jmp 0x10028a4e
sub edx, dword [esp + 0x14]
sub edx, eax
inc edx
mov ecx, 8
cmp edx, ecx
cmova edx, ecx
add edx, eax
mov dword [esp + 0x24], edx
cmp eax, edx
jae 0x10028a96
mov eax, 0x18
sub eax, dword [esi + 0x24]
mov dword [esp + 0x48], eax
mov eax, edx
mov ecx, dword [esp + 0x14]
imul edx, dword [edi + ecx], 0x9e3779b1
mov ecx, dword [esp + 0x48]
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 0x10028a70
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov ecx, dword [esi + 0x5c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esi + 0x28]
mov dword [esp + 0x48], ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x24], ecx
cmp eax, edx
jae 0x10028b28
mov edi, 0x18
sub edi, dword [esi + 0x24]
mov dword [esp + 0x68], edi
nop
mov ecx, dword [esp + 0x24]
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 + 0x48]
mov dword [esp + 0x30], edi
shr edi, 4
and edi, 0xffffff0
add esi, edi
movzx edx, byte [esi]
dec edx
and edx, 0xf
cmove ecx, dword [esp + 0x20]
add edx, ecx
mov ecx, dword [esp + 0x30]
mov byte [esi], dl
mov byte [edx + esi], cl
lea ecx, [edx + edi]
mov edx, dword [esp + 0xc]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x68]
mov dword [edx + ecx*4], eax
inc eax
cmp eax, dword [esp + 0x10]
jb 0x10028ac0
mov eax, dword [esp + 0x10]
mov ecx, 0x18
sub ecx, dword [esp + 0x2c]
mov edi, 3
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x1c]
imul edx, dword [eax + 8], 0x9e3779b1
mov eax, dword [esp + 0x10]
xor edx, dword [esp + 0x3c]
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 + 0xc], ecx
jmp 0x10028b7f
mov edx, dword [esp + 0xc]
mov ecx, 0x18
xor edx, dword [esp + 0x3c]
sub ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x10]
shr edx, cl
mov dword [esi + 0x1c], eax
add dword [esi + 0x58], edx
mov eax, edx
shr eax, 4
and eax, 0xffffff0
movzx ecx, dl
mov edx, dword [esp + 0x18]
mov dword [esp + 0x3c], ecx
add edx, eax
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x24], edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x30], 0
lea ecx, [ecx + eax*4]
mov eax, dword [esp + 0x3c]
movsx eax, al
mov dword [esp + 0x2c], ecx
movzx ecx, byte [edx]
and ecx, 0xf
movd xmm0, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm1, xmm0, 0
movups xmm0, xmmword [edx]
mov dword [esp + 0x18], ecx
neg ecx
and ecx, 0xf
pcmpeqb xmm0, xmm1
pmovmskb edx, xmm0
mov ax, dx
shl ax, cl
mov cx, word [esp + 0x18]
shr dx, cl
or ax, dx
movzx eax, ax
cdq
mov dword [esp + 0x68], eax
mov dword [esp + 0x40], edx
test edx, edx
jne 0x10028c0f
test eax, eax
je 0x10028c77
mov edi, dword [esp + 0x68]
mov esi, dword [esp + 0x54]
test esi, esi
je 0x10028c6a
push edx
push edi
call fcn.100218d0
add eax, dword [esp + 0x20]
add esp, 8
and eax, 0xf
je 0x10028c4c
mov ecx, dword [esp + 0x2c]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [esp + 0x4c]
jb 0x10028c6a
mov eax, dword [esp + 0xc]
mov dword [esp + eax*4 + 0x80], ecx
inc eax
mov dword [esp + 0xc], eax
dec esi
mov edx, dword [esp + 0x40]
mov ecx, edi
add ecx, 0xffffffff
mov eax, edx
adc eax, 0xffffffff
and edi, ecx
and edx, eax
mov dword [esp + 0x40], edx
ja 0x10028c17
jb 0x10028c6a
test edi, edi
jne 0x10028c17
mov dword [esp + 0x54], esi
mov edi, 3
mov esi, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
mov eax, 0
movzx ecx, byte [edx]
dec ecx
and ecx, 0xf
cmove eax, dword [esp + 0x20]
add ecx, eax
mov eax, dword [esp + 0x3c]
mov byte [edx], cl
mov byte [ecx + edx], al
mov edx, dword [esp + 0x2c]
mov eax, dword [esi + 0x1c]
mov dword [edx + ecx*4], eax
inc dword [esi + 0x1c]
cmp dword [esp + 0xc], 0
jbe 0x10028d1d
mov esi, dword [esp + 0x1c]
xor eax, eax
mov ecx, dword [esp + 0xc]
nop word [eax + eax]
mov eax, dword [esp + eax*4 + 0x80]
mov edx, dword [esp + 0x14]
add edx, eax
mov dword [esp + 0x4c], eax
mov eax, dword [edx + edi - 3]
cmp eax, dword [edi + esi - 3]
jne 0x10028d0c
push dword [esp + 0x38]
mov ecx, esi
call fcn.1001b5f0
add esp, 4
cmp eax, edi
jbe 0x10028d08
mov ecx, dword [esp + 0x10]
mov edi, eax
sub ecx, dword [esp + 0x4c]
add eax, esi
mov edx, dword [esp + 0x64]
add ecx, 3
mov dword [edx], ecx
cmp eax, dword [esp + 0x38]
je 0x10028d19
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x30]
inc eax
mov dword [esp + 0x30], eax
cmp eax, ecx
jb 0x10028cc0
mov dword [esp + 0x50], edi
mov edx, dword [esp + 0x44]
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov eax, dword [edx + 0xc]
mov ecx, dword [edx + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [edx]
mov dword [esp + 0x20], ecx
sub ecx, eax
add dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x60]
movsx eax, al
movzx esi, byte [ecx]
and esi, 0xf
mov dword [esp + 0x5c], 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 + 0x44], edx
mov esi, eax
test edx, edx
jne 0x10028da8
test esi, esi
je 0x10028ed3
mov edi, dword [esp + 0x54]
nop dword [eax]
test edi, edi
je 0x10028e03
push edx
push esi
call fcn.100218d0
add eax, dword [esp + 0x64]
add esp, 8
and eax, 0xf
je 0x10028de5
mov ecx, dword [esp + 0x70]
mov ecx, dword [ecx + eax*4]
cmp ecx, dword [esp + 0x4c]
jb 0x10028e03
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 + 0x44]
mov ecx, esi
add ecx, 0xffffffff
mov eax, edx
adc eax, 0xffffffff
and esi, ecx
and edx, eax
mov dword [esp + 0x44], edx
ja 0x10028db0
jb 0x10028e03
test esi, esi
jne 0x10028db0
cmp dword [esp + 0x14], 0
mov edi, dword [esp + 0x50]
jbe 0x10028ed3
mov ecx, dword [esp + 0x1c]
xor eax, eax
mov edx, dword [esp + 0x20]
nop dword [eax]
mov eax, dword [esp + eax*4 + 0x80]
mov dword [esp + 0x60], eax
lea esi, [eax + edx]
mov eax, dword [esi]
cmp eax, dword [ecx]
jne 0x10028ec0
lea edi, [ecx + 4]
add esi, 4
mov ecx, dword [esp + 0x38]
mov eax, edi
sub eax, esi
mov dword [esp + 0x70], edi
add eax, dword [esp + 0x30]
mov edx, esi
cmp eax, ecx
cmovb ecx, eax
push ecx
mov ecx, edi
call fcn.1001b5f0
mov edi, eax
add esp, 4
lea ecx, [edi + esi]
mov esi, dword [esp + 0x38]
cmp ecx, dword [esp + 0x30]
jne 0x10028e85
mov ecx, dword [esp + 0x70]
mov edx, dword [esp + 0x7c]
push esi
lea ecx, [edi + ecx]
call fcn.1001b5f0
add esp, 4
add edi, eax
lea edx, [edi + 4]
mov edi, dword [esp + 0x50]
cmp edx, edi
jbe 0x10028eb8
mov eax, dword [esp + 0x10]
mov edi, edx
sub eax, dword [esp + 0x60]
sub eax, dword [esp + 0x58]
mov ecx, dword [esp + 0x64]
add eax, 3
mov dword [esp + 0x50], edi
mov dword [ecx], eax
mov ecx, dword [esp + 0x1c]
lea eax, [edx + ecx]
cmp eax, esi
je 0x10028ed3
jmp 0x10028ebc
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x18]
inc eax
mov dword [esp + 0x18], eax
cmp eax, dword [esp + 0x14]
jb 0x10028e20
mov ecx, dword [esp + 0x184]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.1007143a
mov esp, ebp
pop ebp
ret