Function at 0x4b4ba0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov esi, dword [esp + 0x34]
mov ebx, dword [esp + 0x2c]
cmp dword [esp + 0x40], 0
mov ecx, dword [edi]
mov ebp, dword [edi + 4]
mov dword [esp], eax
je 0x4b4cd4
cmp esi, 8
jb 0x4b4c2d
mov eax, esi
mov esi, ebx
lea edi, [esp + 4]
mov ebx, eax
nop dword [eax]
xor ecx, dword [esi]
xor ebp, dword [esi + 4]
mov edx, dword [esp + 0x38]
add esi, 8
mov dword [esp + 4], ecx
mov ecx, edi
mov dword [esp + 8], ebp
push 1
call fcn.004b3ab0
add esp, 4
mov ecx, dword [esp + 4]
mov eax, dword [esp]
add ebx, 0xfffffff8
mov dword [eax], ecx
mov ebp, dword [esp + 8]
mov dword [eax + 4], ebp
add eax, 8
cmp ebx, 7
mov dword [esp], eax
ja 0x4b4be0
mov eax, dword [esp + 0x34]
mov edx, dword [esp + 0x38]
mov ebx, esi
and eax, 7
mov esi, eax
test esi, esi
je 0x4b4e30
lea edi, [esi - 1]
xor eax, eax
mov dword [esp + 0xc], ebp
cmp edi, 6
ja case.default.0x4b4c53
mov dword [esp + 0x10], ecx
add ebx, esi
xor ecx, ecx
xor ebp, ebp
xor esi, esi
jmp dword [edi*4 + 0x51d380]
movzx eax, byte [ebx - 1]
dec ebx
shl eax, 0x10
movzx ecx, byte [ebx - 1]
dec ebx
shl ecx, 8
or eax, ecx
movzx ecx, byte [ebx - 1]
dec ebx
or eax, ecx
mov ecx, eax
movzx eax, byte [ebx - 1]
dec ebx
shl eax, 0x18
movzx esi, byte [ebx - 1]
dec ebx
mov ebp, ecx
shl esi, 0x10
or eax, esi
movzx ecx, byte [ebx - 1]
dec ebx
mov esi, ebp
shl ecx, 8
or eax, ecx
movzx ecx, byte [ebx - 1]
or eax, ecx
mov ecx, dword [esp + 0x10]
xor esi, dword [esp + 0xc]
xor eax, ecx
lea ecx, [esp + 4]
mov dword [esp + 4], eax
mov dword [esp + 8], esi
push 1
call fcn.004b3ab0
add esp, 4
mov edx, dword [esp + 4]
mov eax, dword [esp]
mov edi, dword [esp + 0x3c]
mov dword [eax], edx
mov ecx, dword [esp + 8]
mov dword [eax + 4], ecx
jmp 0x4b4e38
cmp esi, 8
jb 0x4b4d88
mov dword [esp + 0xc], ebx
nop word cs:[eax + eax]
nop dword [eax + eax]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x14], ebp
mov edx, dword [esp + 0x38]
mov ebx, ecx
lea ecx, [esp + 4]
mov dword [esp + 0x10], esi
mov edi, dword [eax]
mov dword [esp + 4], edi
mov ebp, dword [eax + 4]
add eax, 8
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebp
push 0
call fcn.004b3ab0
mov esi, dword [esp + 0x14]
mov edx, dword [esp + 4]
mov ecx, edi
add esp, 4
mov edi, dword [esp + 0x14]
xor ebx, dword [esp + 4]
add esi, 0xfffffff8
xor edi, dword [esp + 8]
mov eax, ebx
mov byte [edx], bl
mov byte [edx + 1], bh
shr ebx, 0x18
shr eax, 0x10
mov byte [edx + 2], al
mov byte [edx + 3], bl
mov eax, edi
mov ebx, edi
mov byte [edx + 4], bl
mov byte [edx + 5], bh
shr eax, 0x10
shr ebx, 0x18
mov byte [edx + 6], al
mov byte [edx + 7], bl
add edx, 8
cmp esi, 7
mov dword [esp], edx
ja 0x4b4cf0
mov esi, dword [esp + 0x34]
mov edi, dword [esp + 0x3c]
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0xc]
and esi, 7
test esi, esi
je 0x4b4e34
mov eax, ebx
mov ebx, ecx
mov dword [esp + 0xc], ebp
mov ecx, dword [eax]
mov dword [esp + 4], ecx
mov dword [esp + 0x10], ecx
lea ecx, [esp + 4]
mov eax, dword [eax + 4]
mov ebp, eax
mov dword [esp + 8], eax
push 0
call fcn.004b3ab0
add esp, 4
lea eax, [esi - 1]
cmp eax, 6
ja case.default.0x4b4dd2
mov edx, dword [esp + 0xc]
mov ecx, ebx
add dword [esp], esi
xor ecx, dword [esp + 4]
xor edx, dword [esp + 8]
jmp dword [eax*4 + 0x51d39c]
mov esi, dword [esp]
mov eax, edx
shr eax, 0x10
mov byte [esi - 1], al
dec esi
mov dword [esp], esi
mov eax, dword [esp]
mov byte [eax - 1], dh
dec eax
mov dword [esp], eax
mov eax, dword [esp]
mov byte [eax - 1], dl
dec eax
mov dword [esp], eax
mov edx, dword [esp]
mov eax, ecx
shr eax, 0x18
mov byte [edx - 1], al
dec edx
mov dword [esp], edx
mov edx, dword [esp]
mov eax, ecx
shr eax, 0x10
mov byte [edx - 1], al
dec edx
mov dword [esp], edx
mov eax, dword [esp]
mov byte [eax - 1], ch
dec eax
mov dword [esp], eax
mov eax, dword [esp]
mov byte [eax - 1], cl
mov edx, dword [esp + 0x10]
jmp 0x4b4e36
mov edi, dword [esp + 0x3c]
mov edx, ecx
mov ecx, ebp
mov eax, edx
mov byte [edi], dl
mov byte [edi + 1], dh
shr edx, 0x18
shr eax, 0x10
mov byte [edi + 2], al
mov eax, ecx
mov byte [edi + 3], dl
mov byte [edi + 4], cl
mov byte [edi + 5], ch
shr ecx, 0x18
shr eax, 0x10
mov byte [edi + 6], al
mov byte [edi + 7], cl
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
xor esi, esi
jmp 0x4b4c9f