Function at 0x4b38e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, ebx
push esi
mov esi, dword [ebp + 8]
sub eax, esi
and eax, 0xfffffffc
push edi
cmp eax, 0x80
jle 0x4b3971
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
test edi, edi
jle 0x4b39be
push edx
push ebx
lea eax, [ebp - 0x14]
push esi
push eax
call fcn.004b3670
mov edx, dword [ebp - 0x10]
mov eax, edi
sar eax, 2
mov ecx, ebx
sar edi, 1
add esp, 0x10
add edi, eax
sub ecx, edx
mov eax, dword [ebp - 0x14]
and ecx, 0xfffffffc
sub eax, esi
and eax, 0xfffffffc
cmp eax, ecx
mov eax, dword [ebp + 0x14]
push eax
push edi
jge 0x4b3950
mov eax, dword [ebp - 0x14]
push eax
push esi
call fcn.004b38e0
mov esi, dword [ebp - 0x10]
mov dword [ebp + 8], esi
jmp 0x4b395d
push ebx
push edx
call fcn.004b38e0
mov ebx, dword [ebp - 0x14]
mov dword [ebp + 0xc], ebx
mov edx, dword [ebp + 0x14]
mov eax, ebx
sub eax, esi
add esp, 0x10
and eax, 0xfffffffc
cmp eax, 0x80
jg 0x4b3903
cmp esi, ebx
je 0x4b3b17
lea ebx, [esi + 4]
mov dword [ebp - 0xc], ebx
cmp ebx, dword [ebp + 0xc]
je 0x4b3b17
mov eax, dword [ebx]
mov ecx, eax
push dword [esi]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], eax
call fcn.004b9fc0
test al, al
je 0x4b3ac1
lea edi, [ebx + 4]
push edi
push ebx
push esi
call fcn.004b3460
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [esi], ecx
mov ebx, edi
mov dword [ebp - 0xc], edi
jmp 0x4b3b0e
sub ebx, esi
mov eax, ebx
mov dword [ebp + 0xc], ebx
sar eax, 2
mov ecx, eax
mov dword [ebp - 4], eax
sar ecx, 1
test ecx, ecx
jle 0x4b3a7d
dec eax
mov edi, eax
mov dword [ebp - 0x10], eax
sar edi, 1
mov dword [ebp - 0xc], edi
mov eax, dword [esi + ecx*4 - 4]
dec ecx
mov dword [ebp + 8], ecx
mov ebx, ecx
mov dword [ebp - 8], eax
mov edx, ecx
cmp ecx, edi
jge 0x4b3a22
lea edi, [edx + edx]
push dword [esi + edi*4 + 4]
mov ecx, dword [esi + edi*4 + 8]
call fcn.004b9fc0
movzx eax, al
lea edx, [edi + 1]
mov edi, dword [ebp - 0xc]
xor eax, 1
add edx, eax
mov eax, dword [esi + edx*4]
mov dword [esi + ebx*4], eax
mov ebx, edx
cmp edx, edi
jl 0x4b39f5
mov ecx, dword [ebp + 8]
cmp ebx, edi
jne 0x4b3a37
mov eax, dword [ebp - 4]
test al, 1
jne 0x4b3a37
mov eax, dword [esi + eax*4 - 4]
mov dword [esi + ebx*4], eax
mov ebx, dword [ebp - 0x10]
cmp ecx, ebx
jge 0x4b3a66
nop dword [eax + eax]
push dword [ebp - 8]
lea edi, [ebx - 1]
sar edi, 1
mov ecx, dword [esi + edi*4]
call fcn.004b9fc0
mov ecx, dword [ebp + 8]
test al, al
je 0x4b3a63
mov eax, dword [esi + edi*4]
mov dword [esi + ebx*4], eax
mov ebx, edi
cmp ecx, edi
jl 0x4b3a40
mov edi, dword [ebp - 0xc]
mov eax, dword [ebp - 8]
mov dword [esi + ebx*4], eax
test ecx, ecx
jg 0x4b39e2
mov ebx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp - 4]
cmp eax, 2
jl 0x4b3b17
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 edx
push eax
lea eax, [ebx - 4]
sar eax, 2
push eax
push 0
push esi
call fcn.004b3830
mov edx, dword [ebp + 0x14]
add ebx, 0xfffffffc
mov eax, ebx
add esp, 0x14
and eax, 0xfffffffc
cmp eax, 8
jge 0x4b3a86
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebx - 4]
mov ecx, dword [ebp - 4]
lea edi, [ebx - 4]
call fcn.004b9fc0
test al, al
je 0x4b3b00
mov esi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
nop dword [eax]
mov eax, dword [edi]
mov ecx, ebx
mov dword [esi], eax
mov esi, edi
push dword [edi - 4]
sub edi, 4
call fcn.004b9fc0
test al, al
jne 0x4b3ae0
mov ebx, dword [ebp - 0xc]
mov dword [ebp - 8], esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
add ebx, 4
mov ecx, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov dword [eax], ecx
cmp ebx, dword [ebp + 0xc]
jne 0x4b3988
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret