Function at 0x4bb2e1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov ebx, edx
mov esi, ecx
push edi
lea edi, [eax + 1]
movzx eax, byte [eax]
movzx edx, byte [edi]
shl edx, 8
or edx, eax
movzx eax, byte [edi + 1]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 0x18
or edx, eax
cmp dword [ebp + 0x14], 0
mov dword [ebp - 4], edx
je 0x4bb4d5
movzx eax, byte [edi + 4]
movzx ecx, byte [edi + 3]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 5]
shl eax, 0x10
or ecx, eax
lea eax, [edi + 6]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
movzx eax, byte [eax]
shl eax, 0x18
or ecx, eax
lea eax, [edi - 8]
mov dword [ebp + 0x14], ecx
mov dword [ebp + 8], eax
test eax, eax
js 0x4bb406
shr edi, 3
imul eax, edi, 0xfffffff8
add dword [ebp + 8], eax
movzx eax, byte [esi + 1]
movzx edx, byte [esi]
movzx ecx, byte [esi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [esi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [esi + 5]
xor edx, dword [ebp - 4]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x20], edx
movzx eax, byte [esi + 6]
mov edx, dword [ebp + 0xc]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 7]
shl eax, 0x18
add esi, 8
or ecx, eax
xor ecx, dword [ebp + 0x14]
mov dword [ebp - 0x1c], ecx
lea ecx, [ebp - 0x20]
call fcn.004bb751
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
shr eax, 8
mov byte [ebx], dl
mov byte [ebx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebx + 3], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 4], cl
mov byte [ebx + 7], al
add ebx, 8
mov dword [ebp - 4], edx
mov dword [ebp + 0x14], ecx
sub edi, 1
jne 0x4bb35f
mov eax, dword [ebp + 8]
cmp eax, 0xfffffff8
je 0x4bb4b6
lea ecx, [esi + 8]
xor esi, esi
add ecx, eax
mov edi, esi
add eax, 7
cmp eax, 7
ja case.default.0x4bb420
jmp dword [eax*4 + 0x4bb711]
dec ecx
movzx esi, byte [ecx]
shl esi, 0x18
dec ecx
movzx eax, byte [ecx]
shl eax, 0x10
or esi, eax
dec ecx
movzx eax, byte [ecx]
shl eax, 8
or esi, eax
dec ecx
movzx eax, byte [ecx]
or esi, eax
dec ecx
movzx edi, byte [ecx]
shl edi, 0x18
dec ecx
movzx eax, byte [ecx]
shl eax, 0x10
or edi, eax
dec ecx
movzx eax, byte [ecx]
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
or edi, eax
xor esi, dword [ebp + 0x14]
lea ecx, [ebp - 0x20]
xor edi, edx
mov dword [ebp - 0x1c], esi
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], edi
call fcn.004bb751
mov edx, dword [ebp - 0x20]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
shr eax, 8
mov byte [ebx], dl
mov byte [ebx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr eax, 0x18
mov byte [ebx + 3], al
mov eax, ecx
shr eax, 8
mov byte [ebx + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [ebx + 4], cl
mov byte [ebx + 7], al
mov edi, dword [ebp - 0xc]
add edi, 0xfffffffa
lea eax, [edi + 4]
mov dword [ebp - 0x10], eax
mov eax, ecx
shr eax, 0x18
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
jmp 0x4bb6b6
add edi, 3
mov dword [ebp + 0x14], edi
mov eax, dword [ebp + 0x14]
inc eax
movzx edi, byte [edi]
mov ecx, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
movzx eax, byte [ecx]
shl eax, 8
or edi, eax
movzx eax, byte [ecx + 1]
shl eax, 0x10
mov ecx, edi
or ecx, eax
mov dword [ebp + 0x14], edi
mov eax, dword [ebp - 0x14]
add eax, 2
mov dword [ebp - 0xc], eax
movzx eax, byte [eax]
shl eax, 0x18
or ecx, eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0x14], ecx
lea edi, [eax - 8]
test edi, edi
js 0x4bb5e6
shr eax, 3
mov dword [ebp + 8], eax
imul eax, eax, 0xfffffff8
add edi, eax
mov dword [ebp - 0x18], edi
movzx eax, byte [esi + 1]
movzx edi, byte [esi]
shl eax, 8
or edi, eax
mov edx, dword [ebp + 0xc]
movzx eax, byte [esi + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [esi + 3]
add esi, 4
shl eax, 0x18
mov dword [ebp - 8], esi
or edi, eax
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x20], edi
movzx esi, byte [esi]
movzx eax, byte [ecx + 1]
shl eax, 8
or esi, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or esi, eax
movzx eax, byte [ecx + 3]
add ecx, 4
shl eax, 0x18
or esi, eax
mov dword [ebp - 8], ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x1c], esi
call fcn.004bb97f
mov ecx, dword [ebp - 0x20]
xor ecx, dword [ebp - 4]
mov edx, dword [ebp - 0x1c]
mov eax, ecx
xor edx, dword [ebp + 0x14]
mov byte [ebx], cl
shr eax, 8
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
mov eax, edx
shr eax, 8
mov byte [ebx + 5], al
mov eax, edx
mov byte [ebx + 4], dl
shr ecx, 0x18
shr edx, 0x18
shr eax, 0x10
mov byte [ebx + 3], cl
mov ecx, esi
mov esi, dword [ebp - 8]
mov byte [ebx + 7], dl
mov edx, edi
mov byte [ebx + 6], al
add ebx, 8
sub dword [ebp + 8], 1
mov dword [ebp - 4], edx
mov dword [ebp + 0x14], ecx
jne 0x4bb530
mov edi, dword [ebp - 0x18]
cmp edi, 0xfffffff8
je 0x4bb6a8
movzx eax, byte [esi + 1]
movzx ecx, byte [esi]
movzx edx, byte [esi + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [esi + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [esi + 5]
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], ecx
movzx ecx, byte [esi + 7]
shl eax, 8
or edx, eax
shl ecx, 8
movzx eax, byte [esi + 6]
or ecx, eax
shl ecx, 0x10
or edx, ecx
lea ecx, [ebp - 0x20]
mov dword [ebp - 8], edx
mov dword [ebp - 0x1c], edx
mov edx, dword [ebp + 0xc]
call fcn.004bb97f
mov eax, dword [ebp - 0x20]
lea ecx, [edi + 8]
mov edx, dword [ebp - 0x1c]
add edi, 7
xor eax, dword [ebp - 4]
add ecx, ebx
xor edx, dword [ebp + 0x14]
mov dword [ebp + 8], eax
cmp edi, 7
ja case.default.0x4bb65f
jmp dword [edi*4 + 0x4bb731]
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 8]
dec ecx
mov byte [ecx], dl
dec ecx
shr eax, 0x18
mov byte [ecx], al
mov eax, dword [ebp + 8]
dec ecx
shr eax, 0x10
mov byte [ecx], al
mov eax, dword [ebp + 8]
dec ecx
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 8]
mov byte [ecx - 1], al
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov eax, ecx
add edi, 0xfffffffa
shr eax, 0x18
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0xc]
mov esi, ecx
shr esi, 8
mov ebx, ecx
mov dword [ebp - 0x18], esi
mov esi, edx
shr esi, 0x18
mov dword [ebp - 4], esi
mov esi, edx
shr esi, 0x10
mov byte [eax - 7], dl
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], esi
mov esi, edx
shr ebx, 0x10
shr esi, 8
mov dword [ebp + 0x14], esi
mov esi, edi
mov edx, dword [ebp + 0x14]
mov byte [edi], dl
mov edx, dword [ebp - 8]
mov byte [edi + 1], dl
mov edx, dword [ebp - 4]
mov byte [esi + 2], dl
mov byte [esi + 3], cl
mov ecx, dword [ebp - 0x18]
mov byte [eax], cl
mov ecx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [ecx + 1], bl
mov byte [ecx + 2], al
pop ebx
leave
ret