Function at 0x100048a9
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x2c
mov ecx, dword [0x1006ffbc]
push ebx
mov edx, dword [0x1006ffc0]
push ebp
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], eax
mov eax, dword [0x1006ffc8]
mov ebp, ecx
sub ebp, eax
imul ebp, edx
add ebp, eax
add ebp, ecx
push esi
mov esi, dword [0x1006ffc4]
add ebp, esi
lea ebx, [esi + esi]
mov dword [esp + 0x20], ebx
mov esi, eax
sub esi, ebx
sub esi, ecx
lea ebx, [esi + esi - 2]
mov esi, dword [0x1006ffcc]
imul ebx, esi
push edi
mov edi, dword [esp + 0x40]
add ebx, edi
lea ebx, [ebx + ebp*2]
mov dword [esp + 0x20], ebx
mov ebx, eax
sub ebx, edx
sub ebx, esi
imul ebx, ebx, 5
add ebx, edi
mov dword [esp + 0x28], ebx
mov ebx, dword [0x1006ffc4]
mov dword [esp + 0x10], ebx
sub dword [esp + 0x10], edx
mov ebp, eax
imul ebp, ebx
mov ebx, edx
sub ebx, ebp
inc ebx
inc ebx
imul ebx, ecx
lea ebp, [eax + 1]
imul ebp, esi
sub ebx, ebp
mov ebp, dword [esp + 0x10]
lea ebx, [ebx + ebp*2]
lea edi, [edi + ebx*4]
mov ebx, eax
imul ebx, ecx
imul ebx, ecx
shl ebx, 2
push 4
pop ebp
sub ebp, ebx
imul ebp, ecx
add ebp, dword [esp + 0x40]
mov dword [esp + 0x2c], edi
lea edi, [eax + eax]
mov ebx, edx
sub ebx, edi
add ebx, dword [0x1006ffc4]
push 2
add ebx, esi
lea edi, [ebp + ebx*4]
lea ebx, [esi + esi]
mov dword [esp + 0x34], edi
mov ebp, eax
sub ebp, ebx
lea edi, [edx + edx]
sub ebp, edi
lea ebx, [eax + ebp - 2]
pop ebp
imul ebx, edx
lea edi, [eax + eax]
sub ebp, edi
imul ebp, esi
add ebp, dword [esp + 0x40]
add ebp, ebx
lea edi, [ebp + ecx*2]
mov dword [esp + 0x38], edi
mov edi, ecx
sub edi, esi
lea edi, [edi + edi - 4]
mov ebx, edi
mov edi, dword [0x1006ffc4]
lea ebp, [edx + edx + 2]
imul ebp, edi
sub edi, ecx
sub ebx, ebp
imul ebx, eax
add ebx, dword [esp + 0x40]
dec edi
dec edi
imul edi, edx
sub edi, ecx
lea ebp, [esi + esi - 2]
imul ebp, dword [0x1006ffc4]
lea edi, [ebx + edi*2]
add ebp, edi
mov edi, esi
imul edi, esi
inc edi
inc edi
imul edi, ecx
sub edi, edx
lea ebx, [edx + edx]
imul edx, esi
lea edx, [edx + eax + 1]
imul edx, ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x34], ebp
mov ebp, dword [0x1006ffc4]
sub ecx, edx
lea ebx, [ebx + ebp*2 + 2]
add edi, edi
imul ebx, ebp
inc eax
imul eax, esi
sub ecx, eax
mov eax, dword [esp + 0x44]
imul ecx, ecx, 7
add ecx, eax
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x18]
mov esi, ecx
xor edx, edx
mov ebp, 0x4cc5
lea eax, [ecx + 1]
mov ecx, ebp
div ecx
mov eax, dword [esp + 0x20]
mov ecx, edx
movzx eax, byte [eax + ecx]
add eax, esi
xor edx, edx
div ebp
mov ebp, dword [esp + 0x2c]
mov eax, ecx
sub eax, dword [esp + 0x24]
mov esi, edx
mov edx, dword [esp + 0x40]
mov al, byte [eax + edx]
mov edx, dword [esp + 0x28]
mov dl, byte [edx + esi]
mov byte [ecx + ebp], dl
mov edx, dword [esp + 0x30]
mov byte [edx + esi], al
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
add eax, edx
mov edx, dword [esp + 0x38]
movzx edx, byte [edx + ecx]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + esi]
add eax, edx
xor edx, edx
mov ebp, 0x4cc5
div ebp
mov eax, dword [esp + 0x40]
mov ebp, dword [esp + 0x1c]
sub edx, ebx
add edx, edi
mov al, byte [edx + eax]
xor byte [ebp], al
inc dword [esp + 0x14]
cmp dword [esp + 0x14], 0x21600
jb 0x10004a24
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x2c
ret