Function at 0x10026c30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0x18]
shr eax, 2
push ebx
push esi
push edi
mov edi, dword [ebp + 0x14]
lea ebx, [ecx + eax*4]
mov eax, dword [ebp + 0x20]
dec eax
mov dword [ebp - 0x28], ebx
shl eax, 0x10
mov dword [ebp - 0x14], eax
test edi, edi
jns 0x10026c75
mov esi, dword [ebp + 0x10]
nop
cmp ecx, ebx
jae 0x10026c6f
mov eax, dword [esi]
mov dword [ecx], eax
add ecx, 4
add edi, edx
js 0x10026c60
mov eax, dword [ebp - 0x14]
mov dword [ebp + 0x14], edi
xor edx, edx
sub eax, edi
div dword [ebp + 0x18]
mov edx, ebx
sub edx, ecx
sar edx, 2
cmp eax, edx
cmovb edx, eax
shr edx, 2
test edx, edx
je 0x10026f18
mov esi, dword [ebp + 0x10]
dec edx
mov eax, edi
mov dword [ebp - 0x38], edx
sar eax, 0x10
mov edx, dword [esi + eax*4]
mov ebx, dword [esi + eax*4 + 4]
mov dword [ebp - 4], edx
movzx eax, di
add edi, dword [ebp + 0x18]
sub eax, 0xffffff80
shr eax, 8
movzx edx, ax
mov eax, edi
sar eax, 0x10
mov dword [ebp - 0x18], ebx
shr ebx, 8
and ebx, 0xffff00ff
mov esi, dword [esi + eax*4]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + eax*4 + 4]
mov dword [ebp - 0x1c], eax
movzx eax, di
add edi, dword [ebp + 0x18]
sub eax, 0xffffff80
shr eax, 8
movzx eax, ax
mov dword [ebp - 0x2c], eax
mov eax, edi
sar eax, 0x10
mov esi, dword [esi + eax*4]
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + eax*4 + 4]
mov dword [ebp - 0x20], eax
movzx eax, di
add edi, dword [ebp + 0x18]
sub eax, 0xffffff80
shr eax, 8
movzx eax, ax
mov dword [ebp - 0x30], eax
mov eax, edi
sar eax, 0x10
mov esi, dword [esi + eax*4]
mov dword [ebp - 0x10], esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + eax*4 + 4]
mov esi, edx
mov dword [ebp - 0x24], eax
movzx eax, di
add edi, dword [ebp + 0x18]
sub eax, 0xffffff80
shr eax, 8
movzx eax, ax
mov dword [ebp - 0x34], eax
mov eax, 0x100
sub eax, edx
mov dword [ebp + 0x14], edi
mov edx, dword [ebp - 0x18]
movzx edi, ax
and edx, 0xff00ff
mov eax, dword [ebp - 4]
shr eax, 8
and eax, 0xffff00ff
imul ebx, esi
imul eax, edi
imul edx, esi
add ebx, eax
mov eax, dword [ebp - 4]
and eax, 0xff00ff
imul eax, edi
add edx, eax
mov eax, dword [ebp - 4]
shr edx, 8
xor ebx, edx
mov edx, dword [ebp - 0x18]
shr edx, 8
and ebx, 0xff00ff
and edx, 0xff00ff
imul edx, esi
shr eax, 8
and eax, 0xff00ff
imul eax, edi
add edx, eax
mov eax, 0x100
xor ebx, edx
mov edx, dword [ebp - 0x2c]
sub eax, edx
movzx esi, dx
mov edx, dword [ebp - 0x1c]
movzx edi, ax
mov eax, dword [ebp - 8]
shr eax, 8
and eax, 0xffff00ff
mov dword [ecx], ebx
mov ebx, edx
imul eax, edi
shr ebx, 8
and edx, 0xff00ff
and ebx, 0xffff00ff
imul edx, esi
imul ebx, esi
add ebx, eax
mov eax, dword [ebp - 8]
and eax, 0xff00ff
imul eax, edi
add edx, eax
mov eax, dword [ebp - 8]
shr edx, 8
xor ebx, edx
shr eax, 8
mov edx, dword [ebp - 0x1c]
and eax, 0xff00ff
shr edx, 8
and ebx, 0xff00ff
imul eax, edi
and edx, 0xff00ff
imul edx, esi
add edx, eax
mov eax, 0x100
xor ebx, edx
mov edx, dword [ebp - 0x30]
sub eax, edx
movzx esi, dx
mov edx, dword [ebp - 0x20]
movzx edi, ax
mov eax, dword [ebp - 0xc]
mov dword [ecx + 4], ebx
mov ebx, edx
shr eax, 8
and edx, 0xff00ff
and eax, 0xffff00ff
shr ebx, 8
imul eax, edi
and ebx, 0xffff00ff
imul ebx, esi
imul edx, esi
add ebx, eax
mov eax, dword [ebp - 0xc]
and eax, 0xff00ff
imul eax, edi
add edx, eax
mov eax, dword [ebp - 0xc]
shr edx, 8
xor ebx, edx
shr eax, 8
mov edx, dword [ebp - 0x20]
and eax, 0xff00ff
shr edx, 8
and ebx, 0xff00ff
and edx, 0xff00ff
imul eax, edi
imul edx, esi
add edx, eax
mov eax, 0x100
xor ebx, edx
mov edx, dword [ebp - 0x34]
sub eax, edx
mov dword [ecx + 8], ebx
movzx edi, ax
movzx esi, dx
mov edx, dword [ebp - 0x24]
mov ebx, edx
mov eax, dword [ebp - 0x10]
and edx, 0xff00ff
shr eax, 8
shr ebx, 8
and eax, 0xffff00ff
imul eax, edi
and ebx, 0xffff00ff
imul ebx, esi
imul edx, esi
add ebx, eax
mov eax, dword [ebp - 0x10]
and eax, 0xff00ff
imul eax, edi
add edx, eax
mov eax, dword [ebp - 0x10]
shr edx, 8
xor ebx, edx
shr eax, 8
mov edx, dword [ebp - 0x24]
and eax, 0xff00ff
shr edx, 8
and ebx, 0xff00ff
and edx, 0xff00ff
imul eax, edi
mov edi, dword [ebp + 0x14]
imul edx, esi
add edx, eax
xor ebx, edx
mov edx, dword [ebp - 0x38]
mov dword [ecx + 0xc], ebx
add ecx, 0x10
test edx, edx
jne 0x10026c93
mov ebx, dword [ebp - 0x28]
cmp edi, dword [ebp - 0x14]
jae 0x10026fcf
cmp ecx, ebx
jae 0x10026fcf
mov esi, dword [ebp + 0x10]
mov eax, edi
sar eax, 0x10
movzx edx, di
sub edx, 0xffffff80
shr edx, 8
mov ebx, dword [esi + eax*4 + 4]
mov dword [ebp - 0x10], ebx
mov ebx, dword [esi + eax*4]
mov eax, 0x100
sub eax, edx
movzx edi, dx
movzx esi, ax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x24], ebx
mov edx, dword [ebp - 0x24]
shr eax, 8
and edx, 0xff00ff
shr ebx, 8
and eax, 0xffff00ff
imul eax, edi
and ebx, 0xffff00ff
imul ebx, esi
imul edx, esi
add ebx, eax
mov eax, dword [ebp - 0x10]
and eax, 0xff00ff
imul eax, edi
add edx, eax
mov eax, dword [ebp - 0x10]
shr edx, 8
xor ebx, edx
shr eax, 8
mov edx, dword [ebp - 0x24]
and eax, 0xff00ff
shr edx, 8
and ebx, 0xff00ff
and edx, 0xff00ff
imul eax, edi
mov edi, dword [ebp + 0x14]
add edi, dword [ebp + 0x18]
imul edx, esi
mov dword [ebp + 0x14], edi
add edx, eax
xor ebx, edx
mov dword [ecx], ebx
add ecx, 4
mov ebx, dword [ebp - 0x28]
cmp edi, dword [ebp - 0x14]
jb 0x10026f21
mov edx, ebx
xor eax, eax
sub edx, ecx
xor esi, esi
add edx, 3
shr edx, 2
cmp ecx, ebx
cmova edx, eax
test edx, edx
je 0x10026ffe
mov eax, dword [ebp + 0x10]
mov edi, dword [ebp + 0x20]
lea edi, [eax + edi*4]
nop
mov eax, dword [edi - 4]
lea ecx, [ecx + 4]
inc esi
mov dword [ecx - 4], eax
cmp esi, edx
jb 0x10026ff0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c