Function at 0x4b35f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, dword [ebp + 0x10]
push esi
movzx eax, byte [ebx + 1]
shl eax, 8
cmp dword [ebp + 0x14], 0
push edi
mov esi, edx
mov edi, ecx
je 0x4b3825
movzx edx, byte [ebx]
movzx ecx, byte [ebx + 4]
or edx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or ecx, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
or ecx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x14], ebx
mov dword [ebp - 8], eax
js 0x4b3721
mov ecx, dword [ebp - 8]
add eax, 8
shr eax, 3
mov dword [ebp + 8], eax
neg eax
mov ebx, edx
lea ecx, [ecx + eax*8]
mov dword [ebp - 8], ecx
movzx eax, byte [edi + 1]
movzx edx, byte [edi]
movzx ecx, byte [edi + 4]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or edx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [edi + 5]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 7]
shl eax, 0x18
or ecx, eax
xor ecx, dword [ebp - 0xc]
xor edx, ebx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x18]
add edi, 8
call fcn.004b3aa0
mov ebx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov byte [esi], bl
mov eax, ebx
shr eax, 8
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [esi + 3], al
mov byte [esi + 4], cl
mov eax, ecx
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 7], al
add esi, 8
dec dword [ebp + 8]
mov dword [ebp - 0xc], ecx
jne 0x4b3675
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 0x14]
mov edx, dword [ebp - 4]
cmp eax, 0xfffffff8
je 0x4b37ed
mov ebx, dword [ebp - 8]
lea ecx, [eax + 8]
add ecx, edi
add ebx, 7
xor eax, eax
xor edi, edi
mov dword [ebp + 8], eax
mov dword [ebp - 8], ebx
cmp ebx, 7
ja case.default.0x4b3744
jmp dword [ebx*4 + 0x4b3a58]
movzx edi, byte [ecx - 1]
dec ecx
shl edi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
mov dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [ebp + 8], eax
movzx eax, byte [ecx - 1]
or dword [ebp + 8], eax
mov eax, dword [ebp + 8]
xor edi, dword [ebp - 0xc]
xor eax, edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
call fcn.004b3aa0
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x14]
mov byte [esi], dl
mov ebx, dword [ebp + 0x14]
mov eax, edx
shr eax, 8
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ecx
shr eax, 8
mov byte [esi + 4], cl
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [esi + 7], al
mov byte [ebx], dl
mov eax, edx
shr eax, 8
mov byte [ebx + 1], al
mov eax, edx
shr eax, 0x10
mov byte [ebx + 2], al
shr edx, 0x18
mov byte [ebx + 3], dl
mov byte [ebx + 4], cl
mov eax, ecx
shr eax, 8
mov byte [ebx + 5], al
mov eax, ecx
shr eax, 0x10
pop edi
mov byte [ebx + 6], al
shr ecx, 0x18
pop esi
mov byte [ebx + 7], cl
pop ebx
mov esp, ebp
pop ebp
ret
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 4]
or ecx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 6]
shl eax, 0x10
or edx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
or edx, eax
mov eax, dword [ebp + 8]
add eax, 0xfffffff8
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], eax
js 0x4b3948
mov ecx, dword [ebp - 8]
add eax, 8
shr eax, 3
mov dword [ebp - 4], eax
neg eax
lea ecx, [ecx + eax*8]
mov dword [ebp - 8], ecx
jmp 0x4b3890
movzx eax, byte [edi + 1]
movzx ebx, byte [edi]
shl eax, 8
or ebx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or ebx, eax
movzx eax, byte [edi + 3]
add edi, 4
mov edx, dword [ebp + 0xc]
shl eax, 0x18
mov dword [ebp + 8], edi
mov ecx, dword [ebp + 8]
movzx edi, byte [edi]
or ebx, eax
movzx eax, byte [ecx + 1]
shl eax, 8
or edi, eax
movzx eax, byte [ecx + 2]
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx + 3]
add ecx, 4
shl eax, 0x18
or edi, eax
mov dword [ebp + 8], ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], edi
call fcn.004b3c10
mov ecx, dword [ebp - 0x18]
xor ecx, dword [ebp + 0x14]
mov edx, dword [ebp - 0x14]
xor edx, dword [ebp - 0xc]
mov byte [esi], cl
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
shr ecx, 0x18
mov byte [esi + 3], cl
mov byte [esi + 4], dl
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [esi + 6], al
mov byte [esi + 7], dl
mov edx, edi
mov edi, dword [ebp + 8]
add esi, 8
dec dword [ebp - 4]
mov ecx, ebx
mov dword [ebp + 0x14], ecx
mov dword [ebp - 0xc], edx
jne 0x4b3890
mov ebx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
cmp eax, 0xfffffff8
je 0x4b3a1f
movzx eax, byte [edi + 1]
movzx ecx, byte [edi]
movzx edx, byte [edi + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edi + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edi + 3]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edi + 5]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edi + 7]
shl eax, 8
or edx, eax
movzx eax, byte [edi + 6]
shl ecx, 8
or ecx, eax
shl ecx, 0x10
or edx, ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x18]
call fcn.004b3c10
mov eax, dword [ebp - 0x14]
xor eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
xor edx, dword [ebp + 0x14]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 8]
lea ecx, [eax + 8]
add eax, 7
add ecx, esi
cmp eax, 7
ja case.default.0x4b39c4
jmp dword [eax*4 + 0x4b3a78]
mov esi, dword [ebp + 8]
dec ecx
mov eax, esi
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, esi
shr eax, 0x10
mov byte [ecx], al
jmp 0x4b39f0
mov esi, dword [ebp + 8]
dec ecx
mov eax, esi
shr eax, 0x10
mov byte [ecx], al
jmp 0x4b39f0
mov esi, dword [ebp + 8]
dec ecx
mov eax, esi
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 8]
dec ecx
mov byte [ecx], al
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 byte [ecx - 1], dl
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 4]
mov byte [ebx], cl
mov eax, ecx
shr eax, 8
mov byte [ebx + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [ebx + 2], al
shr ecx, 0x18
mov byte [ebx + 3], cl
mov byte [ebx + 4], dl
mov eax, edx
shr eax, 8
mov byte [ebx + 5], al
mov eax, edx
shr eax, 0x10
pop edi
mov byte [ebx + 6], al
shr edx, 0x18
pop esi
mov byte [ebx + 7], dl
pop ebx
mov esp, ebp
pop ebp
ret