Function at 0x48be30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1fc
push esi
mov esi, dword [ebp + 0x1c]
push esi
mov dword [ebp - 0x10], 1
call fcn.00454d00
add esp, 4
mov dword [ebp - 0xc], eax
test eax, eax
jns 0x48be5b
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1fc]
push edi
push eax
call fcn.0049c240
mov edx, dword [ebp + 8]
add esp, 4
test edx, edx
jne 0x48be76
xor ecx, ecx
jmp 0x48be8c
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x48be8c
mov ecx, edx
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x48be83
sub ecx, edi
push 0
push esi
push ecx
push edx
lea eax, [ebp - 0x1fc]
push eax
call fcn.0049c320
add esp, 0x14
test eax, eax
jne 0x48bebb
lea eax, [ebp - 0x1fc]
push eax
call fcn.0049c180
add esp, 4
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x20]
push ebx
test eax, eax
je 0x48c0e3
mov edi, dword [ebp + 0x24]
mov ecx, 1
mov esi, dword [ebp - 0xc]
cmp eax, esi
mov byte [ebp - 1], cl
mov ebx, eax
mov eax, ecx
cmovg ebx, esi
shr eax, 0x18
mov byte [ebp - 4], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 3], al
mov eax, ecx
shr eax, 8
mov byte [ebp - 2], al
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x1c], ebx
push eax
call fcn.0049c1c0
add esp, 8
test eax, eax
je 0x48c122
push dword [ebp + 0x14]
lea eax, [ebp - 0x12c]
push dword [ebp + 0x10]
push eax
call fcn.0049c4f0
add esp, 0xc
test eax, eax
je 0x48c0fe
push 4
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0049c4f0
add esp, 0xc
test eax, eax
je 0x48c0fe
push 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0049c2a0
add esp, 0xc
test eax, eax
je 0x48c0fe
lea eax, [ebp - 0x12c]
push eax
call fcn.0049c180
push ebx
lea eax, [ebp - 0x5c]
push eax
push edi
call fcn.004f8270
add esp, 0x10
mov dword [ebp - 8], 1
cmp dword [ebp + 0x18], 1
jle 0x48c0c7
jmp 0x48bfa0
lea eax, [ebp - 0x1fc]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0049c1c0
add esp, 8
test eax, eax
je 0x48c122
push esi
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0049c4f0
add esp, 0xc
test eax, eax
je 0x48c0fe
push 0
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.0049c2a0
add esp, 0xc
test eax, eax
je 0x48c0fe
lea eax, [ebp - 0x12c]
push eax
call fcn.0049c180
add esp, 4
xor esi, esi
test ebx, ebx
jle 0x48c0b4
cmp ebx, 0x20
jb 0x48c094
lea ecx, [edi - 1]
lea eax, [ebp + ebx - 0x5d]
add ecx, ebx
cmp edi, eax
ja 0x48c029
lea eax, [ebp - 0x5c]
cmp ecx, eax
jae 0x48c094
mov eax, ebx
and eax, 0x8000001f
jns 0x48c037
dec eax
or eax, 0xffffffe0
inc eax
mov edx, ebx
mov ecx, edi
sub edx, eax
lea ebx, [ebp - 0x4c]
mov eax, edi
lea edi, [ebp - 0x5c]
neg eax
add edi, eax
add eax, ebx
mov dword [ebp - 0x14], edi
mov edi, dword [ebp + 0x24]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
lea ebx, [ebx]
movdqu xmm0, xmmword [ecx]
add esi, 0x20
lea ecx, [ecx + 0x20]
movdqu xmm1, xmmword [eax + ecx - 0x20]
pxor xmm1, xmm0
movdqu xmmword [ecx - 0x20], xmm1
movdqu xmm1, xmmword [ebx + ecx - 0x20]
movdqu xmm0, xmmword [ecx - 0x10]
pxor xmm1, xmm0
movdqu xmmword [ecx - 0x10], xmm1
cmp esi, edx
jl 0x48c060
mov ebx, dword [ebp - 0x1c]
cmp esi, ebx
jge 0x48c0b4
lea eax, [esi + edi]
mov edx, ebx
lea edi, [ebp - 0x5c]
sub edi, dword [ebp + 0x24]
sub edx, esi
mov cl, byte [edi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
dec edx
jne 0x48c0a5
mov edi, dword [ebp + 0x24]
mov esi, dword [ebp - 8]
inc esi
cmp esi, dword [ebp + 0x18]
mov dword [ebp - 8], esi
mov esi, dword [ebp - 0xc]
jl 0x48bfa0
mov eax, dword [ebp + 0x20]
add edi, ebx
mov ecx, dword [ebp - 0x10]
sub eax, ebx
inc ecx
mov dword [ebp + 0x20], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp + 0x24], edi
test eax, eax
jne 0x48bed2
lea eax, [ebp - 0x1fc]
push eax
call fcn.0049c180
add esp, 4
mov eax, 1
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1fc]
push eax
call fcn.0049c180
lea eax, [ebp - 0x12c]
push eax
call fcn.0049c180
add esp, 8
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x1fc]
push eax
call fcn.0049c180
add esp, 4
xor eax, eax
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret