Function at 0x48d3c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, ecx
mov ebx, 1
mov ecx, esi
shl ebx, cl
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
cmp edx, dword [eax + 8]
jle 0x48d3ef
mov ecx, eax
call fcn.0041de20
mov edx, dword [ebp - 4]
test eax, eax
jne 0x48d3fa
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 3
jg 0x48d46e
xor ecx, ecx
mov dword [ebp + 0x10], ecx
test edx, edx
jle 0x48d5ae
lea esp, [esp]
xor esi, esi
xor eax, eax
test ebx, ebx
jle 0x48d442
mov ecx, eax
xor ecx, dword [ebp + 0xc]
inc eax
lea edx, [ecx - 1]
shr edx, 0x1f
not ecx
shr ecx, 0x1f
and edx, ecx
neg edx
and edx, 1
neg edx
and edx, dword [edi + eax*4 - 4]
or esi, edx
cmp eax, ebx
jl 0x48d418
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
inc ecx
mov eax, dword [eax]
mov dword [ebp + 0x10], ecx
mov dword [eax + ecx*4 - 4], esi
lea eax, [ebx*4]
add edi, eax
cmp ecx, edx
jl 0x48d410
mov eax, dword [ebp - 8]
mov dword [eax + 4], edx
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0xc]
lea ecx, [esi - 2]
sar edx, cl
mov esi, 1
shl esi, cl
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x2c], esi
lea eax, [esi - 1]
and ecx, eax
mov dword [ebp - 0x18], ecx
mov eax, edx
not eax
shr eax, 0x1f
lea ecx, [edx - 1]
shr ecx, 0x1f
and ecx, eax
neg ecx
and ecx, 1
neg ecx
mov dword [ebp - 0x28], ecx
mov eax, edx
xor eax, 1
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
neg ecx
and ecx, 1
neg ecx
mov eax, edx
xor eax, 2
mov dword [ebp - 0x24], ecx
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
xor edx, 3
neg ecx
lea eax, [edx - 1]
shr eax, 0x1f
not edx
shr edx, 0x1f
and eax, edx
neg eax
and ecx, 1
and eax, 1
xor edx, edx
neg ecx
neg eax
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], edx
cmp dword [ebp - 4], edx
jle 0x48d5ab
lea eax, [ebx*4]
mov dword [ebp - 0x30], eax
mov edi, edi
xor eax, eax
xor ebx, ebx
mov dword [ebp + 0x10], eax
test esi, esi
jle 0x48d592
lea eax, [esi + esi*2]
lea edx, [edi + esi*4]
lea ecx, [edi + esi*8]
lea eax, [edi + eax*4]
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp + 8], eax
mov eax, dword [eax]
mov ecx, dword [ecx]
and ecx, dword [ebp - 0x20]
and eax, dword [ebp - 0x1c]
mov edx, dword [edx]
and edx, dword [ebp - 0x24]
or ecx, eax
mov eax, dword [edi + ebx*4]
and eax, dword [ebp - 0x28]
or edx, ecx
mov esi, ebx
xor esi, dword [ebp - 0x18]
or eax, edx
mov edx, dword [ebp - 0x10]
lea ecx, [esi - 1]
shr ecx, 0x1f
not esi
shr esi, 0x1f
and ecx, esi
mov esi, dword [ebp - 0x2c]
neg ecx
and ecx, 1
neg ecx
and ecx, eax
or dword [ebp + 0x10], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
inc ebx
add eax, 4
add ecx, 4
add edx, 4
mov dword [ebp + 8], eax
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], edx
cmp ebx, esi
jl 0x48d530
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add edi, dword [ebp - 0x30]
mov ecx, dword [ecx]
inc edx
mov dword [ecx + edx*4 - 4], eax
mov dword [ebp - 0x14], edx
cmp edx, dword [ebp - 4]
jl 0x48d510
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
pop edi
pop esi
mov dword [eax + 4], edx
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret