Function at 0x48c1f8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffb4
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
mov eax, dword [ebp + 8]
xor edx, edx
push ebp
push 0x48c577
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dl, al
mov ecx, dword [edx*4 + 0x50b3b8]
mov dword [ebp - 0x40], ecx
mov ecx, dword [edx*4 + 0x50b3a4]
dec ecx
mov dword [ebp - 0x44], ecx
mov eax, dword [edx*4 + 0x50b3cc]
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 8]
shr eax, cl
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
call fcn.00405954
add eax, dword [ebp - 8]
add eax, dword [ebp - 0x44]
mov ecx, dword [ebp - 0x40]
shr eax, cl
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jge 0x48c54d
mov ecx, dword [ebp - 0x40]
mov ebx, dword [ebp - 0x1c]
shl ebx, cl
sub ebx, dword [ebp - 8]
mov eax, dword [ebp - 0x44]
add eax, ebx
mov dword [ebp - 0x20], eax
test ebx, ebx
jge 0x48c292
xor ebx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00405954
cmp eax, dword [ebp - 0x20]
jg 0x48c2aa
mov eax, dword [ebp - 0xc]
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 0x48c314
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
call fcn.00405954
mov esi, eax
dec esi
test esi, esi
jle 0x48c30c
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov eax, dword [eax]
and eax, 0x7fffffff
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov edx, dword [edx + ecx*4]
mov edx, dword [edx + esi*4]
and edx, 0x7fffffff
add edx, dword [ebp - 0x44]
cmp eax, dword [ebp - 0x24]
jge 0x48c306
mov dword [ebp - 0x24], eax
cmp edi, edx
jge 0x48c30c
mov edi, edx
inc dword [ebp - 0x10]
dec dword [ebp - 0x4c]
jne 0x48c2c4
cmp edi, dword [ebp - 0x24]
jl 0x48c53e
mov ecx, dword [ebp - 0x40]
shr dword [ebp - 0x24], cl
mov ecx, dword [ebp - 0x40]
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 0x48c372
mov esi, dword [ebp - 0x30]
add esi, 0x40
push esi
lea eax, [ebp - 0x28]
mov ecx, 1
mov edx, dword [0x48c1a8]
call fcn.00405b10
add esp, 4
push esi
lea eax, [ebp - 0x2c]
mov ecx, 1
mov edx, dword [0x48c1d0]
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 0x48c42d
mov eax, dword [ebp - 0x20]
sub eax, ebx
jl 0x48c4e9
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
call fcn.00405954
mov esi, eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x34], eax
cmp esi, ebx
jle 0x48c41c
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx*4]
and eax, 0x7fffffff
mov edx, dword [ebp - 0x44]
and edx, eax
mov ecx, dword [ebp - 0x40]
shr eax, cl
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x44]
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 - 0x34]
mov eax, dword [eax + ebx*4]
and eax, 0x7fffffff
mov edx, dword [ebp - 0x44]
and edx, eax
mov ecx, dword [ebp - 0x40]
shr eax, cl
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x44]
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 0x48c3c2
inc dword [ebp - 0x10]
dec dword [ebp - 0x4c]
jne 0x48c3a0
jmp 0x48c4e9
mov eax, dword [ebp - 0x20]
sub eax, ebx
jl 0x48c4e9
inc eax
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x10], ebx
xor ebx, ebx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
call fcn.00405954
mov esi, eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*4]
mov dword [ebp - 0x34], eax
xor eax, eax
mov dword [ebp - 0x38], eax
cmp esi, ebx
jle 0x48c4dd
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + ebx*4]
inc ebx
test eax, 0x80000000
je 0x48c47d
mov dword [ebp - 0x3c], 1
jmp 0x48c484
mov dword [ebp - 0x3c], 0xffffffff
and eax, 0x7fffffff
cmp dword [ebp - 0x38], 0
jne 0x48c4ae
mov edx, dword [ebp - 0x44]
and edx, eax
mov ecx, dword [ebp - 0x40]
shr eax, cl
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x44]
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 - 0x3c]
add dword [ebp - 0x38], edx
cmp dword [ebp - 0x38], 0
jne 0x48c4d9
mov edx, dword [ebp - 0x44]
and edx, eax
mov ecx, dword [ebp - 0x40]
shr eax, cl
sub eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x44]
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 0x48c466
inc dword [ebp - 0x10]
dec dword [ebp - 0x4c]
jne 0x48c43f
xor eax, eax
mov edx, dword [ebp - 0x30]
dec edx
test edx, edx
jl 0x48c514
inc edx
mov dword [ebp - 0x4c], edx
xor ebx, ebx
mov edx, dword [ebp - 0x28]
add eax, dword [edx + ebx*4]
mov edx, eax
imul edx, dword [ebp - 0x48]
shr edx, 8
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + ebx*4], edx
inc ebx
dec dword [ebp - 0x4c]
jne 0x48c4f9
mov eax, dword [ebp - 0x1c]
push eax
mov eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
call fcn.0047653c
mov edx, eax
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x14]
call dword [ebp + 0x10]
call fcn.0046c514
inc dword [ebp - 0x1c]
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x18]
jl 0x48c279
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48c57e
lea eax, [ebp - 0x2c]
mov edx, dword [0x48c1d0]
call fcn.00405c30
lea eax, [ebp - 0x28]
mov edx, dword [0x48c1a8]
call fcn.00405c30
ret