Function at 0x48bb98
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffac
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 0x48bf49
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, dword [ebp + 0x10]
shr edx, 0x18
mov dword [ebp - 0x34], edx
xor edx, edx
mov dl, al
mov edx, dword [edx*4 + 0x50b3b8]
mov dword [ebp - 0x44], edx
xor edx, edx
mov dl, al
mov edx, dword [edx*4 + 0x50b3a4]
dec edx
mov dword [ebp - 0x48], edx
and eax, 0x7f
mov eax, dword [eax*4 + 0x50b3cc]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 4]
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 - 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 - 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 - 0x1c]
cmp eax, dword [ebp - 0x18]
jge 0x48bf1f
mov ecx, dword [ebp - 0x44]
mov ebx, dword [ebp - 0x1c]
shl ebx, cl
sub ebx, dword [ebp - 8]
mov eax, dword [ebp - 0x48]
add eax, ebx
mov dword [ebp - 0x20], eax
test ebx, ebx
jge 0x48bc55
xor ebx, ebx
mov eax, dword [ebp - 0xc]
call fcn.00405954
cmp eax, dword [ebp - 0x20]
jg 0x48bc6d
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 0x48bcd7
inc eax
mov dword [ebp - 0x54], 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 0x48bccf
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 - 0x48]
cmp eax, dword [ebp - 0x24]
jge 0x48bcc9
mov dword [ebp - 0x24], eax
cmp edi, edx
jge 0x48bccf
mov edi, edx
inc dword [ebp - 0x10]
dec dword [ebp - 0x54]
jne 0x48bc87
cmp edi, dword [ebp - 0x24]
jl 0x48bf10
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 0x48bd3b
mov eax, dword [ebp - 0x30]
add eax, 0x40
push eax
lea eax, [ebp - 0x28]
mov ecx, 1
mov edx, dword [0x48bb48]
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 [0x48bb70]
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 0x48bdf6
mov eax, dword [ebp - 0x20]
sub eax, ebx
jl 0x48beb2
inc eax
mov dword [ebp - 0x54], 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 - 0x38], eax
cmp esi, ebx
jle 0x48bde5
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 0x48bd8b
inc dword [ebp - 0x10]
dec dword [ebp - 0x54]
jne 0x48bd69
jmp 0x48beb2
mov eax, dword [ebp - 0x20]
sub eax, ebx
jl 0x48beb2
inc eax
mov dword [ebp - 0x54], 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 - 0x38], eax
xor eax, eax
mov dword [ebp - 0x3c], eax
cmp esi, ebx
jle 0x48bea6
mov eax, dword [ebp - 0x38]
mov eax, dword [eax + ebx*4]
inc ebx
test eax, 0x80000000
je 0x48be46
mov dword [ebp - 0x40], 1
jmp 0x48be4d
mov dword [ebp - 0x40], 0xffffffff
and eax, 0x7fffffff
cmp dword [ebp - 0x3c], 0
jne 0x48be77
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 0x48bea2
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 0x48be2f
inc dword [ebp - 0x10]
dec dword [ebp - 0x54]
jne 0x48be08
xor eax, eax
mov edx, dword [ebp + 0x10]
and edx, 0xffffff
mov ecx, dword [ebp - 0x30]
dec ecx
test ecx, ecx
jl 0x48beee
inc ecx
mov dword [ebp - 0x54], ecx
xor ebx, ebx
mov ecx, dword [ebp - 0x28]
add eax, dword [ecx + ebx*4]
mov ecx, eax
imul ecx, dword [ebp - 0x4c]
and ecx, 0xff00
shl ecx, 0x10
or ecx, edx
mov esi, dword [ebp - 0x2c]
mov dword [esi + ebx*4], ecx
inc ebx
dec dword [ebp - 0x54]
jne 0x48becb
mov eax, dword [ebp - 0x34]
push eax
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 4]
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 0x48bc3c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48bf50
lea eax, [ebp - 0x2c]
mov edx, dword [0x48bb70]
call fcn.00405c30
lea eax, [ebp - 0x28]
mov edx, dword [0x48bb48]
call fcn.00405c30
ret