Function at 0x4b43f0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0x1c], 0
push ebx
push esi
push edi
je 0x4b4630
mov esi, dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x1c], esi
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]
shl eax, 8
or ecx, eax
mov dword [ebp - 8], edx
movzx eax, byte [esi + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi + 7]
shl eax, 0x18
or ecx, eax
add ebx, 0xfffffff8
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], ebx
js 0x4b451c
lea esi, [ebx + 8]
shr esi, 3
mov eax, esi
neg eax
lea ebx, [ebx + eax*8]
mov dword [ebp - 4], ebx
mov ebx, dword [ebp + 8]
movzx eax, byte [ebx + 1]
movzx edx, byte [ebx]
movzx ecx, byte [ebx + 4]
shl eax, 8
or edx, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
push dword [ebp + 0x14]
or edx, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edx, eax
movzx eax, byte [ebx + 5]
xor edx, dword [ebp - 8]
shl eax, 8
or ecx, eax
mov dword [ebp - 0x1c], edx
movzx eax, byte [ebx + 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ebx, 8
or ecx, eax
lea eax, [ebp - 0x1c]
xor ecx, dword [ebp - 0xc]
push eax
mov dword [ebp - 0x18], ecx
call fcn.004b4a40
mov edx, dword [ebp - 0x1c]
add esp, 8
mov ecx, dword [ebp - 0x18]
mov eax, edx
shr eax, 8
mov byte [edi], dl
mov byte [edi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, ecx
shr eax, 8
mov byte [edi + 4], cl
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 7], al
add edi, 8
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], ecx
dec esi
jne 0x4b4471
mov esi, dword [ebp + 0x1c]
jmp 0x4b451f
mov ebx, dword [ebp + 8]
mov eax, dword [ebp - 4]
cmp eax, 0xfffffff8
je 0x4b45f8
mov edx, dword [ebp - 4]
lea ecx, [eax + 8]
add edx, 7
add ecx, ebx
xor eax, eax
mov dword [ebp - 0x10], edx
xor ebx, ebx
mov dword [ebp + 0x10], eax
cmp edx, 7
mov edx, dword [ebp - 8]
ja case.default.0x4b454b
mov esi, dword [ebp - 0x10]
jmp dword [esi*4 + 0x4b4898]
movzx ebx, byte [ecx - 1]
dec ecx
shl ebx, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
or ebx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x18
mov dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or dword [ebp + 0x10], eax
movzx eax, byte [ecx - 1]
or dword [ebp + 0x10], eax
mov eax, dword [ebp + 0x10]
push dword [ebp + 0x14]
xor ebx, dword [ebp - 0xc]
xor eax, edx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x18], ebx
call fcn.004b4a40
mov edx, dword [ebp - 0x1c]
add esp, 8
mov ecx, dword [ebp - 0x18]
mov eax, edx
shr eax, 8
mov byte [edi], dl
mov byte [edi + 1], al
mov eax, edx
mov esi, dword [ebp + 0x1c]
shr eax, 0x10
mov byte [edi + 2], al
mov eax, edx
shr eax, 0x18
mov byte [edi + 3], al
mov eax, ecx
shr eax, 8
mov byte [edi + 4], cl
mov byte [edi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [edi + 6], al
mov eax, ecx
shr eax, 0x18
mov byte [edi + 7], al
mov byte [esi], dl
mov eax, edx
shr eax, 8
mov byte [esi + 1], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, ecx
shr edx, 0x18
mov byte [esi + 3], dl
mov byte [esi + 4], cl
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 6], al
shr ecx, 0x18
pop edi
mov byte [esi + 7], cl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x18]
mov dword [ebp - 0x14], ebx
movzx eax, byte [ebx + 1]
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 4]
shl eax, 8
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
mov dword [ebp - 0xc], ecx
movzx eax, byte [ebx + 6]
shl eax, 0x10
or edx, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
or edx, eax
mov dword [ebp + 0x1c], edx
mov edx, dword [ebp + 0x10]
add edx, 0xfffffff8
mov dword [ebp - 8], edx
js 0x4b4773
mov ebx, dword [ebp + 8]
lea eax, [edx + 8]
shr eax, 3
mov dword [ebp - 4], eax
neg eax
lea edx, [edx + eax*8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], edx
mov dword [ebp + 0x10], eax
movzx eax, byte [ebx + 1]
movzx edi, byte [ebx]
movzx esi, byte [ebx + 4]
shl eax, 8
or edi, eax
movzx eax, byte [ebx + 2]
shl eax, 0x10
push dword [ebp + 0x14]
or edi, eax
movzx eax, byte [ebx + 3]
shl eax, 0x18
or edi, eax
movzx eax, byte [ebx + 5]
shl eax, 8
or esi, eax
mov dword [ebp - 0x1c], edi
movzx eax, byte [ebx + 6]
shl eax, 0x10
or esi, eax
movzx eax, byte [ebx + 7]
shl eax, 0x18
add ebx, 8
or esi, eax
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x18], esi
push eax
call fcn.004b48e0
mov eax, dword [ebp + 0x10]
add esp, 8
mov ecx, dword [ebp - 0x1c]
xor ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x18]
mov byte [eax], cl
inc eax
xor edx, dword [ebp + 0x1c]
mov dword [ebp + 0x10], eax
mov eax, ecx
mov ebx, dword [ebp + 0x10]
inc dword [ebp + 0x10]
shr eax, 8
mov byte [ebx], al
mov eax, ecx
mov ebx, dword [ebp + 0x10]
shr eax, 0x10
shr ecx, 0x18
mov byte [ebx], al
mov eax, ebx
inc eax
mov ebx, dword [ebp - 0x10]
mov dword [ebp + 0x10], eax
mov byte [eax], cl
mov ecx, eax
mov eax, edx
shr eax, 8
mov byte [ecx + 1], dl
mov byte [ecx + 2], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 3], al
shr edx, 0x18
mov byte [ecx + 4], dl
add ecx, 5
dec dword [ebp - 4]
mov dword [ebp + 0x10], ecx
mov ecx, edi
mov edi, esi
mov dword [ebp - 0xc], ecx
mov dword [ebp + 0x1c], edi
jne 0x4b46a2
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 0x10]
jmp 0x4b477c
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
cmp dword [ebp - 8], 0xfffffff8
je 0x4b485a
movzx eax, byte [edx + 1]
movzx ecx, byte [edx]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [edx + 3]
push dword [ebp + 0x14]
shl eax, 0x18
or ecx, eax
movzx eax, byte [edx + 5]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x1c], ecx
movzx ecx, byte [edx + 4]
shl eax, 8
or ecx, eax
movzx eax, byte [edx + 6]
mov dword [ebp + 0x1c], ecx
movzx ecx, byte [edx + 7]
shl ecx, 8
or ecx, eax
mov eax, dword [ebp + 0x1c]
shl ecx, 0x10
or eax, ecx
mov dword [ebp + 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1c]
push eax
call fcn.004b48e0
mov eax, dword [ebp - 0x18]
add esp, 8
mov edx, dword [ebp - 0x1c]
xor eax, edi
xor edx, dword [ebp - 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 8]
lea ecx, [eax + 8]
add eax, 7
add ecx, esi
cmp eax, 7
ja case.default.0x4b4802
jmp dword [eax*4 + 0x4b48b8]
mov esi, dword [ebp + 0x10]
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 0x4b482e
mov esi, dword [ebp + 0x10]
dec ecx
mov eax, esi
shr eax, 0x10
mov byte [ecx], al
jmp 0x4b482e
mov esi, dword [ebp + 0x10]
dec ecx
mov eax, esi
shr eax, 8
mov byte [ecx], al
mov eax, dword [ebp + 0x10]
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 - 0x14]
mov edx, dword [ebp + 0x1c]
mov eax, ecx
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 ecx, 0x18
mov byte [ebx + 3], cl
mov byte [ebx + 4], dl
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