Function at 0x1002d450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
movzx ecx, word [ebp + 0x14]
mov edx, 0x100
mov eax, dword [ebp + 0x10]
sub ecx, 0xffffff80
shr ecx, 8
sub edx, ecx
mov dword [ebp - 4], ecx
push ebx
mov ebx, dword [ebp + 8]
movzx ecx, cx
push esi
mov dword [ebp - 0x24], ecx
mov ecx, dword [ebp + 0x18]
movzx esi, dx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], esi
push edi
mov edi, dword [ebp + 0xc]
cmp ecx, 4
jb 0x1002d709
sub ebx, edi
mov edx, eax
mov dword [ebp - 0x1c], ebx
sub edx, edi
mov ebx, eax
mov dword [ebp - 0x18], edx
sub ebx, dword [ebp + 8]
shr ecx, 2
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x10], ecx
nop dword [eax + eax]
mov esi, dword [edi]
mov ebx, dword [eax]
mov edi, ebx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
movzx ecx, cx
shr edi, 8
and edi, 0xffff00ff
movzx eax, dx
imul edi, ecx
mov edx, ebx
mov ecx, esi
shr ebx, 8
shr ecx, 8
and edx, 0xff00ff
and ecx, 0xffff00ff
and ebx, 0xff00ff
imul ecx, eax
mov eax, dword [ebp - 4]
add edi, ecx
movzx ecx, ax
imul edx, ecx
mov ecx, esi
and ecx, 0xff00ff
shr esi, 8
and esi, 0xff00ff
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
movzx eax, dx
mov edx, dword [ebp - 0x14]
imul ecx, eax
imul esi, eax
add edx, ecx
shr edx, 8
xor edi, edx
mov edx, dword [ebp - 4]
movzx ecx, dx
and edi, 0xff00ff
mov edx, dword [ebp + 8]
imul ebx, ecx
add ebx, esi
mov esi, dword [ebp + 0xc]
xor edi, ebx
mov dword [edx], edi
mov edx, dword [ebp - 0x18]
mov ebx, dword [edx + esi + 4]
mov edi, ebx
mov esi, dword [esi + 4]
mov edx, ebx
shr edi, 8
and edx, 0xff00ff
and edi, 0xffff00ff
shr ebx, 8
imul edi, ecx
and ebx, 0xff00ff
mov ecx, esi
shr ecx, 8
and ecx, 0xffff00ff
imul ecx, eax
mov eax, dword [ebp - 4]
add edi, ecx
movzx ecx, ax
imul edx, ecx
mov ecx, esi
and ecx, 0xff00ff
shr esi, 8
and esi, 0xff00ff
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
movzx eax, dx
mov edx, dword [ebp - 0x14]
imul ecx, eax
imul esi, eax
add edx, ecx
shr edx, 8
xor edi, edx
mov edx, dword [ebp - 4]
movzx ecx, dx
and edi, 0xff00ff
imul ebx, ecx
add ebx, esi
mov edx, dword [ebp + 0xc]
xor edi, ebx
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x20]
mov dword [ebx + edx + 4], edi
mov ebx, dword [ebp + 8]
mov ebx, dword [esi + ebx + 8]
mov edi, ebx
mov esi, dword [edx + 8]
mov edx, ebx
shr edi, 8
and edx, 0xff00ff
and edi, 0xffff00ff
shr ebx, 8
imul edi, ecx
and ebx, 0xff00ff
mov ecx, esi
shr ecx, 8
and ecx, 0xffff00ff
imul ecx, eax
mov eax, dword [ebp - 4]
add edi, ecx
movzx ecx, ax
imul edx, ecx
mov ecx, esi
and ecx, 0xff00ff
shr esi, 8
and esi, 0xff00ff
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
movzx eax, dx
mov edx, dword [ebp - 0x14]
imul ecx, eax
imul esi, eax
mov eax, dword [ebp + 0x10]
add edx, ecx
shr edx, 8
xor edi, edx
mov edx, dword [ebp - 4]
movzx ecx, dx
and edi, 0xff00ff
mov edx, dword [ebp + 8]
imul ebx, ecx
add ebx, esi
mov esi, dword [ebp + 0xc]
xor edi, ebx
mov dword [edx + 8], edi
mov ebx, dword [eax + 0xc]
mov edi, ebx
mov esi, dword [esi + 0xc]
mov edx, dword [ebp - 8]
shr edi, 8
and edi, 0xffff00ff
movzx eax, dx
imul edi, ecx
mov edx, ebx
mov ecx, esi
shr ebx, 8
shr ecx, 8
and edx, 0xff00ff
and ecx, 0xffff00ff
and ebx, 0xff00ff
imul ecx, eax
mov eax, dword [ebp - 4]
add edi, ecx
movzx ecx, ax
imul edx, ecx
mov ecx, esi
and ecx, 0xff00ff
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
movzx eax, dx
mov edx, dword [ebp - 0x14]
imul ecx, eax
add edx, ecx
shr edx, 8
xor edi, edx
mov edx, dword [ebp - 4]
movzx ecx, dx
and edi, 0xff00ff
imul ebx, ecx
mov ecx, dword [ebp + 0x18]
shr esi, 8
sub ecx, 4
and esi, 0xff00ff
mov dword [ebp + 0x18], ecx
imul esi, eax
mov eax, dword [ebp + 0x10]
add eax, 0x10
mov dword [ebp + 0x10], eax
add ebx, esi
xor edi, ebx
mov ebx, dword [ebp + 8]
mov dword [ebx + 0xc], edi
add ebx, 0x10
mov edi, dword [ebp + 0xc]
add edi, 0x10
mov dword [ebp + 8], ebx
sub dword [ebp - 0x10], 1
mov dword [ebp + 0xc], edi
jne 0x1002d4b0
mov esi, dword [ebp - 0xc]
test ecx, ecx
je 0x1002d7b4
mov edx, dword [ebp - 0x24]
sub edi, eax
movzx edx, dx
sub ebx, eax
movzx ecx, si
mov dword [ebp - 0x10], edx
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], ebx
mov edi, dword [edi + eax]
mov ebx, edi
mov esi, dword [eax]
mov eax, dword [ebp - 0xc]
shr ebx, 8
and ebx, 0xffff00ff
imul ebx, ecx
mov ecx, esi
shr ecx, 8
and ecx, 0xffff00ff
imul ecx, edx
mov edx, edi
and edx, 0xff00ff
shr edi, 8
and edi, 0xff00ff
add ebx, ecx
movzx ecx, ax
imul edx, ecx
mov ecx, esi
and ecx, 0xff00ff
shr esi, 8
imul ecx, dword [ebp - 0x10]
and esi, 0xff00ff
add edx, ecx
shr edx, 8
xor ebx, edx
mov edx, eax
mov eax, dword [ebp + 0x10]
and ebx, 0xff00ff
movzx ecx, dx
mov edx, dword [ebp - 0x10]
imul edi, ecx
imul esi, edx
add edi, esi
mov esi, dword [ebp + 8]
xor ebx, edi
mov edi, dword [ebp + 0xc]
mov dword [esi + eax], ebx
add eax, 4
sub dword [ebp + 0x18], 1
mov dword [ebp + 0x10], eax
jne 0x1002d727
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14