Function at 0x48e314
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x48e768
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp + 0x10]
shr eax, 0x18
mov dword [ebp - 0x34], eax
xor eax, eax
mov al, byte [ebp + 8]
mov eax, dword [eax*4 + 0x50b410]
mov dword [ebp - 0x44], eax
xor eax, eax
mov al, byte [ebp + 8]
mov eax, dword [eax*4 + 0x50b3fc]
dec eax
mov dword [ebp - 0x48], eax
xor eax, eax
mov al, byte [ebp + 8]
mov eax, dword [eax*4 + 0x50b424]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax + 0x7a]
mov edx, dword [0x50d574]
mov eax, dword [edx + eax*4]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x44]
mov eax, dword [ebp - 0xc]
shr eax, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
call fcn.00405954
add eax, dword [ebp - 0xc]
add eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x44]
shr eax, cl
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
add eax, 0x1c
mov ecx, 1
mov edx, dword [0x48dc90]
call fcn.00405b10
add esp, 4
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
add eax, 0x2c
mov ecx, 1
mov edx, dword [0x48dd4c]
call fcn.00405b10
add esp, 4
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jge 0x48e73e
mov ecx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x1c]
shl ebx, cl
sub ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x48]
add eax, ebx
mov dword [ebp - 0x20], eax
test ebx, ebx
jge 0x48e412
xor ebx, ebx
mov eax, dword [ebp + 0x14]
call fcn.00405954
cmp eax, dword [ebp - 0x20]
jg 0x48e42a
mov eax, dword [ebp + 0x14]
call fcn.0040595c
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], 0x7f000000
mov edi, 0x81000000
mov eax, dword [ebp - 0x20]
sub eax, ebx
jl 0x48e494
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
call fcn.00405954
mov esi, eax
dec esi
test esi, esi
jle 0x48e48c
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x10]
mov edx, dword [edx + ecx*4]
mov edx, dword [edx + esi*4]
and edx, 0x7fffffff
add edx, dword [ebp - 0x48]
cmp eax, dword [ebp - 0x24]
jge 0x48e486
mov dword [ebp - 0x24], eax
cmp edi, edx
jge 0x48e48c
mov edi, edx
inc dword [ebp - 0x10]
dec dword [ebp - 0x54]
jne 0x48e444
cmp edi, dword [ebp - 0x24]
jl 0x48e72f
mov ecx, dword [ebp - 0x44]
shr dword [ebp - 0x24], cl
mov ecx, dword [ebp - 0x44]
shr edi, cl
sub edi, dword [ebp - 0x24]
add edi, 2
mov dword [ebp - 0x30], edi
mov eax, dword [ebp - 0x28]
call fcn.00405954
cmp eax, dword [ebp - 0x30]
jge 0x48e4f8
mov eax, dword [ebp - 0x30]
add eax, 0x40
push eax
lea eax, [ebp - 0x28]
mov ecx, 1
mov edx, dword [0x48e2c4]
call fcn.00405b10
add esp, 4
mov eax, dword [ebp - 0x30]
add eax, 0x40
push eax
lea eax, [ebp - 0x2c]
mov ecx, 1
mov edx, dword [0x48e2ec]
call fcn.00405b10
add esp, 4
mov esi, dword [0x50d1d0]
mov esi, dword [esi]
mov eax, dword [ebp - 0x28]
xor ecx, ecx
mov edx, dword [ebp - 0x30]
call esi
cmp byte [ebp + 0xc], 0
jne 0x48e5b3
mov eax, dword [ebp - 0x20]
sub eax, ebx
jl 0x48e66f
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
call fcn.00405954
mov esi, eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x38], eax
cmp esi, ebx
jle 0x48e5a2
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + ebx*4]
and eax, 0x7fffffff
mov edx, dword [ebp - 0x48]
and edx, eax
mov ecx, dword [ebp - 0x44]
shr eax, cl
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x48]
xor ecx, edx
mov edi, dword [ebp - 0x28]
add dword [edi + eax*4], ecx
mov ecx, dword [ebp - 0x28]
add dword [ecx + eax*4 + 4], edx
inc ebx
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + ebx*4]
and eax, 0x7fffffff
mov edx, dword [ebp - 0x48]
and edx, eax
mov ecx, dword [ebp - 0x44]
shr eax, cl
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x48]
xor ecx, edx
mov edi, dword [ebp - 0x28]
sub dword [edi + eax*4], ecx
mov ecx, dword [ebp - 0x28]
sub dword [ecx + eax*4 + 4], edx
inc ebx
cmp esi, ebx
jg 0x48e548
inc dword [ebp - 0x10]
dec dword [ebp - 0x54]
jne 0x48e526
jmp 0x48e66f
mov eax, dword [ebp - 0x20]
sub eax, ebx
jl 0x48e66f
inc eax
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
call fcn.00405954
mov esi, eax
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x38], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp esi, ebx
jle 0x48e663
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + ebx*4]
inc ebx
test eax, 0x80000000
je 0x48e603
mov dword [ebp - 0x40], 1
jmp 0x48e60a
mov dword [ebp - 0x40], 0xffffffff
and eax, 0x7fffffff
cmp dword [ebp - 0x3c], 0
jne 0x48e634
mov edx, dword [ebp - 0x48]
and edx, eax
mov ecx, dword [ebp - 0x44]
shr eax, cl
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x48]
xor ecx, edx
mov edi, dword [ebp - 0x28]
add dword [edi + eax*4], ecx
mov ecx, dword [ebp - 0x28]
add dword [ecx + eax*4 + 4], edx
mov edx, dword [ebp - 0x40]
add dword [ebp - 0x3c], edx
cmp dword [ebp - 0x3c], 0
jne 0x48e65f
mov edx, dword [ebp - 0x48]
and edx, eax
mov ecx, dword [ebp - 0x44]
shr eax, cl
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x48]
xor ecx, edx
mov edi, dword [ebp - 0x28]
sub dword [edi + eax*4], ecx
mov ecx, dword [ebp - 0x28]
sub dword [ecx + eax*4 + 4], edx
cmp esi, ebx
jg 0x48e5ec
inc dword [ebp - 0x10]
dec dword [ebp - 0x54]
jne 0x48e5c5
xor esi, esi
mov edi, dword [ebp + 0x10]
and edi, 0xffffff
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x2c]
lea eax, [edx + eax*4]
mov ecx, 1
mov edx, dword [0x48dd1c]
call fcn.00405b10
add esp, 4
mov eax, dword [ebp - 0x30]
dec eax
test eax, eax
jl 0x48e6e6
inc eax
mov dword [ebp - 0x54], eax
xor ebx, ebx
mov eax, dword [ebp - 0x28]
add esi, dword [eax + ebx*4]
mov eax, esi
imul dword [ebp - 0x4c]
and eax, 0xff00
mov edx, eax
shl edx, 0x10
or edx, edi
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + ebx*4], edx
mov edx, dword [ebp - 0x1c]
sub edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx + 0x2c]
mov edx, dword [ecx + edx*4]
shr eax, 8
mov byte [edx + ebx], al
inc ebx
dec dword [ebp - 0x54]
jne 0x48e6ae
lea ecx, [ebp - 0x5c]
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x24]
call fcn.004750c0
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp - 0x14]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x1c]
mov ecx, dword [ebp - 0x5c]
mov dword [edx + eax*8], ecx
mov ecx, dword [ebp - 0x58]
mov dword [edx + eax*8 + 4], ecx
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 8]
call fcn.0047653c
mov edx, eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
call dword [ebp - 0x50]
call fcn.0046c514
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jl 0x48e3f9
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48e76f
lea eax, [ebp - 0x2c]
mov edx, dword [0x48e2ec]
call fcn.00405c30
lea eax, [ebp - 0x28]
mov edx, dword [0x48e2c4]
call fcn.00405c30
ret