Function at 0x4bb240
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, 0xfffffff8
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], esi
push edi
cmp eax, 0x100
jle 0x4bb2dd
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
nop dword [eax]
test edi, edi
jle 0x4bb33a
push eax
push ebx
lea eax, [ebp - 0x18]
push esi
push eax
call fcn.004ba340
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, 0xfffffff8
push dword [ebp + 0x14]
sub eax, esi
and eax, 0xfffffff8
push edi
cmp eax, ecx
jge 0x4bb2bc
mov eax, dword [ebp - 0x18]
push eax
push esi
call fcn.004bb240
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x10], esi
jmp 0x4bb2c9
push ebx
push edx
call fcn.004bb240
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 4], ebx
mov eax, ebx
add esp, 0x10
sub eax, esi
and eax, 0xfffffff8
cmp eax, 0x100
mov eax, dword [ebp + 0x14]
jg 0x4bb270
cmp esi, ebx
je 0x4bb4f0
lea eax, [esi + 8]
mov dword [ebp - 0xc], eax
cmp eax, ebx
je 0x4bb4f0
mov dword [ebp + 8], esi
push dword [esi + 4]
mov edi, dword [eax]
mov ebx, eax
push dword [esi]
mov eax, dword [eax + 4]
push eax
push edi
mov dword [ebp - 8], edi
mov dword [ebp + 0xc], eax
call fcn.004bf840
add esp, 0x10
test al, al
mov eax, dword [ebp + 8]
je 0x4bb48b
add eax, 0x10
push eax
push dword [ebp - 0xc]
push esi
call fcn.0048b720
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov dword [esi], edi
mov dword [esi + 4], eax
jmp 0x4bb4da
sub ebx, esi
mov ecx, ebx
mov dword [ebp - 4], ebx
sar ecx, 3
mov edx, ecx
mov dword [ebp + 8], ecx
sar edx, 1
test edx, edx
jle 0x4bb430
lea eax, [ecx - 1]
mov dword [ebp - 0x14], eax
sar eax, 1
mov dword [ebp - 0xc], eax
nop
mov eax, dword [esi + edx*8 - 8]
dec edx
mov dword [ebp - 8], eax
mov ebx, edx
mov dword [ebp + 0xc], edx
mov edi, edx
mov eax, dword [esi + edx*8 + 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
cmp edx, eax
jge 0x4bb3c0
nop dword [eax]
add edi, edi
push dword [esi + edi*8 + 0xc]
push dword [esi + edi*8 + 8]
push dword [esi + edi*8 + 0x14]
push dword [esi + edi*8 + 0x10]
call fcn.004bf840
movzx eax, al
add esp, 0x10
xor eax, 1
inc eax
add edi, eax
mov eax, dword [esi + edi*8]
mov ecx, dword [esi + edi*8 + 4]
mov dword [esi + ebx*8], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + ebx*8 + 4], ecx
mov ebx, edi
cmp edi, eax
jl 0x4bb380
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
cmp ebx, eax
jne 0x4bb3db
test cl, 1
jne 0x4bb3db
mov eax, dword [esi + ecx*8 - 8]
mov ecx, dword [esi + ecx*8 - 4]
mov dword [esi + ebx*8], eax
mov dword [esi + ebx*8 + 4], ecx
mov ebx, dword [ebp - 0x14]
cmp edx, ebx
jge 0x4bb415
nop
push dword [ebp - 0x10]
lea edi, [ebx - 1]
push dword [ebp - 8]
sar edi, 1
push dword [esi + edi*8 + 4]
push dword [esi + edi*8]
call fcn.004bf840
mov edx, dword [ebp + 0xc]
add esp, 0x10
test al, al
je 0x4bb415
mov eax, dword [esi + edi*8]
mov ecx, dword [esi + edi*8 + 4]
mov dword [esi + ebx*8], eax
mov dword [esi + ebx*8 + 4], ecx
mov ebx, edi
cmp edx, edi
jl 0x4bb3e0
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov dword [esi + ebx*8], eax
mov eax, dword [ebp - 0x10]
mov dword [esi + ebx*8 + 4], eax
test edx, edx
jg 0x4bb360
mov ebx, dword [ebp - 4]
cmp ecx, 2
jl 0x4bb4f0
nop dword [eax]
push dword [ebp + 0x14]
lfence
mov eax, dword [esi + ebx - 8]
mov ecx, dword [esi + ebx - 4]
mov dword [ebp - 0x18], eax
mov eax, dword [esi]
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi + 4]
mov dword [esi + ebx - 8], eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebx - 8]
mov dword [esi + ebx - 4], ecx
sar eax, 3
push eax
push 0
push esi
call fcn.004ba750
sub ebx, 8
add esp, 0x14
mov eax, ebx
and eax, 0xfffffff8
cmp eax, 0x10
jge 0x4bb440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [eax + 4]
mov edi, eax
push dword [eax]
mov eax, dword [ebp + 0xc]
push eax
push dword [ebp - 8]
call fcn.004bf840
add esp, 0x10
test al, al
je 0x4bb4cf
mov esi, dword [ebp - 8]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
mov ebx, edi
push dword [edi - 4]
sub edi, 8
push dword [edi]
push dword [ebp + 0xc]
push esi
call fcn.004bf840
add esp, 0x10
test al, al
jne 0x4bb4a8
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
mov dword [ebx + 4], eax
mov eax, dword [ebp - 0xc]
add dword [ebp + 8], 8
add eax, 8
mov dword [ebp - 0xc], eax
cmp eax, dword [ebp - 4]
jne 0x4bb2f6
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret