Function at 0x48bb40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
push esi
mov esi, dword [ebp + 8]
sub eax, esi
and eax, 0xfffffffc
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], esi
push edi
cmp eax, 0x80
jle 0x48bbd2
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x48bc1b
push dword [ebp + 0x14]
lea eax, [ebp - 0x18]
push ebx
push esi
push eax
call fcn.0048b810
mov edx, dword [ebp - 0x14]
mov eax, edi
sar eax, 2
add esp, 0x10
sar edi, 1
mov ecx, ebx
add edi, eax
sub ecx, edx
mov eax, dword [ebp - 0x18]
and ecx, 0xfffffffc
push dword [ebp + 0x14]
sub eax, esi
and eax, 0xfffffffc
push edi
cmp eax, ecx
jge 0x48bbb4
mov eax, dword [ebp - 0x18]
push eax
push esi
call fcn.0048bb40
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0xc], esi
jmp 0x48bbc1
push ebx
push edx
call fcn.0048bb40
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], ebx
mov eax, ebx
add esp, 0x10
sub eax, esi
and eax, 0xfffffffc
cmp eax, 0x80
jg 0x48bb66
cmp esi, ebx
je 0x48bd81
lea edi, [esi + 4]
mov dword [ebp - 8], edi
cmp edi, ebx
je 0x48bd81
mov eax, dword [edi]
push dword [esi]
mov dword [ebp + 8], edi
push eax
mov dword [ebp + 0xc], eax
call fcn.0048ae70
add esp, 8
test al, al
je 0x48bd2d
lea eax, [edi + 4]
push eax
push edi
push esi
call fcn.0048b720
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi], eax
jmp 0x48bd73
sub ebx, esi
mov eax, ebx
mov dword [ebp - 4], ebx
sar eax, 2
mov ecx, eax
mov dword [ebp - 0xc], eax
sar ecx, 1
test ecx, ecx
jle 0x48bcde
dec eax
mov edi, eax
mov dword [ebp - 0x10], eax
sar edi, 1
mov dword [ebp + 8], edi
nop
mov eax, dword [esi + ecx*4 - 4]
dec ecx
mov dword [ebp + 0xc], ecx
mov ebx, ecx
mov dword [ebp - 8], eax
mov edx, ecx
cmp ecx, edi
jge 0x48bc83
lea edi, [edx + edx]
push dword [esi + edi*4 + 4]
push dword [esi + edi*4 + 8]
call fcn.0048ae70
movzx eax, al
lea edx, [edi + 1]
mov edi, dword [ebp + 8]
xor eax, 1
add edx, eax
add esp, 8
mov eax, dword [esi + edx*4]
mov dword [esi + ebx*4], eax
mov ebx, edx
cmp edx, edi
jl 0x48bc53
mov ecx, dword [ebp + 0xc]
cmp ebx, edi
jne 0x48bc98
mov eax, dword [ebp - 0xc]
test al, 1
jne 0x48bc98
mov eax, dword [esi + eax*4 - 4]
mov dword [esi + ebx*4], eax
mov ebx, dword [ebp - 0x10]
cmp ecx, ebx
jge 0x48bcca
nop dword [eax]
push dword [ebp - 8]
lea edi, [ebx - 1]
sar edi, 1
mov eax, dword [esi + edi*4]
push eax
call fcn.0048ae70
mov ecx, dword [ebp + 0xc]
add esp, 8
test al, al
je 0x48bcc7
mov eax, dword [esi + edi*4]
mov dword [esi + ebx*4], eax
mov ebx, edi
cmp ecx, edi
jl 0x48bca0
mov edi, dword [ebp + 8]
mov eax, dword [ebp - 8]
mov dword [esi + ebx*4], eax
test ecx, ecx
jg 0x48bc40
mov ebx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
cmp eax, 2
jl 0x48bd81
nop word [eax + eax]
lfence
mov eax, dword [esi + ebx - 4]
mov dword [ebp + 0xc], eax
mov eax, dword [esi]
mov dword [esi + ebx - 4], eax
lea eax, [ebp + 0xc]
push dword [ebp + 0x14]
push eax
lea eax, [ebx - 4]
sar eax, 2
push eax
push 0
push esi
call fcn.0048ba80
sub ebx, 4
add esp, 0x14
mov eax, ebx
and eax, 0xfffffffc
cmp eax, 8
jge 0x48bcf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [edi - 4]
add edi, 0xfffffffc
mov eax, dword [ebp + 0xc]
push ebx
push eax
call fcn.0048ae70
add esp, 8
test al, al
je 0x48bd65
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp + 8], edi
sub edi, 4
mov dword [ecx], ebx
mov ebx, dword [edi]
push ebx
push esi
call fcn.0048ae70
add esp, 8
test al, al
jne 0x48bd47
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
mov edi, dword [ebp - 8]
mov dword [ecx], eax
add edi, 4
mov dword [ebp - 8], edi
cmp edi, ebx
jne 0x48bbe8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret