Function at 0x1002e810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
push edi
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x88], 0
mov dword [ebp - 0x84], 0
mov dword [ebp - 0x80], 0
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x78], 0
mov dword [ebp - 0x74], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 0x6c], 0
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x60], 0
mov dword [ebp - 0x5c], 0
mov dword [ebp - 0x58], 0
mov dword [ebp - 0x54], 0
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0
jmp 0x1002e8a0
mov eax, dword [ecx]
lea ecx, [ecx + 4]
inc dword [ebp + eax*4 - 0x88]
dec edx
jne 0x1002e8a0
cmp dword [ebp - 0x88], edi
jne 0x1002e8ca
mov eax, dword [ebp + 0x14]
mov dword [eax], edx
mov eax, dword [ebp + 0x18]
mov dword [eax], edx
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x18]
mov ecx, 1
mov ebx, dword [eax]
cmp dword [ebp + ecx*4 - 0x88], 0
jne 0x1002e8e4
inc ecx
cmp ecx, 0xf
jbe 0x1002e8d4
cmp ebx, ecx
mov dword [ebp - 4], ecx
cmovb ebx, ecx
mov edx, 0xf
cmp dword [ebp + edx*4 - 0x88], 0
jne 0x1002e8fe
dec edx
jne 0x1002e8f1
cmp ebx, edx
cmova ebx, edx
mov dword [eax], ebx
mov eax, 1
shl eax, cl
mov dword [ebp - 0x14], edx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x18], eax
cmp ecx, edx
jae 0x1002e937
lea esp, [esp]
sub eax, dword [ebp + ecx*4 - 0x88]
js 0x1002eb08
inc ecx
add eax, eax
mov dword [ebp - 0x18], eax
cmp ecx, edx
jb 0x1002e920
mov ecx, dword [ebp - 0x18]
lea ebx, [edx*4]
mov dword [ebp - 0x20], ebx
mov eax, dword [ebp + ebx - 0x88]
sub ecx, eax
mov dword [ebp - 0x18], ecx
js 0x1002eb08
add eax, ecx
xor ecx, ecx
mov dword [ebp + ebx - 0x88], eax
mov dword [ebp - 0xc4], ecx
dec edx
je 0x1002e984
xor eax, eax
lea esp, [esp]
add ecx, dword [ebp + eax - 0x84]
lea eax, [eax + 4]
mov dword [ebp + eax - 0xc4], ecx
dec edx
jne 0x1002e970
mov ebx, dword [ebp + 0x24]
xor ecx, ecx
lea esp, [esp]
mov edx, dword [esi]
lea esi, [esi + 4]
test edx, edx
je 0x1002e9ac
mov eax, dword [ebp + edx*4 - 0xc8]
inc eax
mov dword [ebx + eax*4 - 4], ecx
mov dword [ebp + edx*4 - 0xc8], eax
inc ecx
cmp ecx, edi
jb 0x1002e990
mov ebx, dword [ebp - 0x20]
xor edi, edi
mov eax, dword [ebp + ebx - 0xc8]
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
or ecx, 0xffffffff
neg ebx
xor esi, esi
mov dword [ebp - 0x2c], edi
mov dword [ebp - 0xc8], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x104], edi
mov dword [ebp - 0x20], edi
cmp eax, dword [ebp - 0x14]
jg 0x1002ec40
lea eax, [ebp + eax*4 - 0x88]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x28]
mov ecx, dword [ecx]
mov dword [ebp - 0x1c], ecx
test ecx, ecx
mov ecx, dword [ebp - 8]
je 0x1002ec2f
mov eax, dword [ebp - 0x1c]
lea edx, [eax + 1]
mov dword [ebp - 0x3c], edx
mov edx, dword [ebp - 0xc]
dec dword [ebp - 0x3c]
dec eax
mov dword [ebp - 0x1c], eax
lea eax, [ebx + edx]
cmp dword [ebp - 4], eax
jle 0x1002eb2e
sub ebx, edx
mov edi, ebx
lea ecx, [ecx]
add edi, edx
mov ebx, eax
mov dword [ebp - 0x40], edi
mov edi, dword [ebp - 0x14]
inc ecx
sub edi, ebx
cmp edi, edx
cmova edi, edx
mov edx, dword [ebp - 4]
sub edx, ebx
mov dword [ebp - 8], ecx
mov eax, 1
mov ecx, edx
shl eax, cl
mov dword [ebp - 0x38], ebx
cmp eax, dword [ebp - 0x3c]
jbe 0x1002ea93
mov esi, dword [ebp - 0x28]
or ecx, 0xffffffff
sub ecx, dword [ebp - 0x1c]
add eax, ecx
cmp edx, edi
jae 0x1002ea93
inc edx
cmp edx, edi
jae 0x1002ea93
nop
mov ecx, dword [esi + 4]
lea esi, [esi + 4]
add eax, eax
cmp eax, ecx
jbe 0x1002ea93
inc edx
sub eax, ecx
cmp edx, edi
jb 0x1002ea80
mov eax, dword [ebp + 0x20]
mov ecx, edx
mov eax, dword [eax]
mov esi, 1
shl esi, cl
lea ecx, [eax + esi]
cmp ecx, 0x5a0
ja 0x1002eb08
mov edi, dword [ebp + 0x1c]
lea edi, [edi + eax*8]
mov eax, dword [ebp - 8]
mov dword [ebp - 0x20], edi
mov dword [ebp + eax*4 - 0x104], edi
mov eax, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
test ecx, ecx
je 0x1002eb14
mov eax, dword [ebp - 0x2c]
mov dword [ebp + ecx*4 - 0xc8], eax
mov ecx, dword [ebp - 0xc]
mov byte [ebp - 0x33], cl
mov ecx, dword [ebp - 0x40]
mov byte [ebp - 0x34], dl
mov edx, eax
mov eax, dword [ebp - 8]
shr edx, cl
mov ecx, dword [ebp + eax*4 - 0x108]
mov eax, dword [ebp - 0x34]
sub edi, ecx
sar edi, 3
sub edi, edx
mov dword [ecx + edx*8], eax
mov dword [ecx + edx*8 + 4], edi
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x24], edi
jmp 0x1002eb19
mov eax, 0xfffffffd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x14]
mov dword [eax], edi
mov edx, dword [ebp - 0xc]
mov edi, dword [ebp - 0x40]
lea eax, [ebx + edx]
cmp dword [ebp - 4], eax
jg 0x1002ea40
mov edi, dword [ebp - 0x2c]
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 0x44]
mov al, dl
sub al, bl
mov byte [ebp - 0x33], al
mov eax, dword [ebp + 0x24]
lea eax, [eax + ecx*4]
mov ecx, dword [ebp - 0x10]
cmp ecx, eax
jb 0x1002eb4e
mov byte [ebp - 0x34], 0xc0
jmp 0x1002eb85
mov ecx, dword [ecx]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
cmp ecx, eax
jae 0x1002eb6b
cmp ecx, 0x100
sbb al, al
and al, 0xa0
add al, 0x60
mov byte [ebp - 0x34], al
jmp 0x1002eb81
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov al, byte [eax + ecx*4]
add al, 0x50
mov byte [ebp - 0x34], al
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + ecx*4]
mov dword [ebp - 0x24], ecx
add dword [ebp - 0x10], 4
mov ecx, edx
sub ecx, ebx
mov edx, 1
shl edx, cl
mov eax, edi
mov ecx, ebx
shr eax, cl
cmp eax, esi
jae 0x1002ebc0
mov ecx, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x34]
lea ecx, [ecx + eax*8]
mov edi, dword [ebp - 0x24]
mov dword [ecx + 4], edi
lea edi, [edx*8]
mov dword [ecx], ebx
add eax, edx
add ecx, edi
cmp eax, esi
jb 0x1002eba3
mov ebx, dword [ebp - 0x38]
mov edi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 4]
mov eax, 1
lea ecx, [ecx - 1]
shl eax, cl
test edi, eax
je 0x1002ebd9
xor edi, eax
shr eax, 1
test edi, eax
jne 0x1002ebd1
mov edx, dword [ebp - 0xc]
xor edi, eax
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x2c], edi
dec eax
and eax, edi
cmp eax, dword [ebp + ecx*4 - 0xc8]
je 0x1002ec21
lea esp, [esp]
dec ecx
sub ebx, edx
mov dword [ebp - 8], ecx
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [ebp - 8]
dec eax
and eax, edi
cmp eax, dword [ebp + ecx*4 - 0xc8]
jne 0x1002ec00
mov dword [ebp - 0x38], ebx
mov eax, dword [ebp - 0x1c]
test eax, eax
jne 0x1002ea26
mov eax, dword [ebp - 4]
add dword [ebp - 0x28], 4
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [ebp - 0x14]
jle 0x1002ea07
cmp dword [ebp - 0x18], 0
je 0x1002e8c1
cmp dword [ebp - 0x14], 1
je 0x1002e8c1
pop edi
pop esi
mov eax, 0xfffffffb
pop ebx
mov esp, ebp
pop ebp
ret