Function at 0x488728
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 3
add esp, 0xfffff004
push eax
dec eax
jne 0x488731
mov eax, dword [ebp - 4]
add esp, 0xfffff16c
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x3e98]
push ecx
mov ecx, 0xfa0
rep movsd dword es:[edi], dword [esi]
pop ecx
mov ebx, ecx
test ebx, ebx
js 0x488769
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x488762
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
movzx edx, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x48877d
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
call fcn.004880ec
test bl, bl
jne 0x48885f
mov dword [ebp - 8], 0x10
lea eax, [ebp - 0x3e98]
mov dword [ebp - 0x14], eax
mov eax, 4
mov edx, dword [ebp + 0x10]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x4887b7
mov eax, 4
mov edx, dword [ebp + 0x10]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x4887cc
push 0x3e7
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
call fcn.004885fc
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x488802
add dword [ebp - 0x14], 0x3e8
dec dword [ebp - 8]
jne 0x4887ac
mov eax, 4
mov edx, dword [ebp + 0x10]
add edx, 4
lea ecx, [ebp - 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x488829
mov eax, 4
mov edx, dword [ebp + 0x10]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x48883b
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0x10]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x488850
jmp 0x488927
cmp bl, 1
jne 0x488927
mov dword [ebp - 8], 0xfffffff0
lea ebx, [ebp - 0x400]
mov eax, 4
mov edx, dword [ebp + 0x10]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x488880
mov eax, 4
mov edx, dword [ebp + 0x10]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x488895
push 0x3e7
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
call fcn.004885fc
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0x10]
add ecx, 4
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x4888cb
sub ebx, 0x3e8
inc dword [ebp - 8]
jne 0x488875
mov eax, 4
mov edx, dword [ebp + 0x10]
add edx, 4
lea ebx, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x4888f6
mov eax, 4
mov ebx, dword [ebp + 0x10]
movzx edx, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x488908
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0x10]
movzx ecx, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x48891d
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
call fcn.0048816c
mov edi, dword [ebp - 0x3ea4]
mov esi, dword [ebp - 0x3ea0]
mov ebx, dword [ebp - 0x3e9c]
mov esp, ebp
pop ebp
ret 0xc