Function at 0x4a7f50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x40
call fcn.00525ec0
mov eax, dword [0x5af1b4]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, edx
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], ecx
cmp ebx, edi
je 0x4a7ff1
mov ecx, dword [ebp + 0xc]
mov eax, esi
mov dword [esp + 0x14], eax
cmp ecx, 0x10
jb 0x4a7fd9
mov eax, ecx
shr eax, 4
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x20]
push edx
push edi
push ebx
call dword [esp + 0x24]
mov eax, dword [esp + 0x20]
mov ecx, dword [eax]
xor dword [edi], ecx
mov edx, dword [eax + 4]
xor dword [edi + 4], edx
mov ecx, dword [eax + 8]
xor dword [edi + 8], ecx
mov edx, dword [eax + 0xc]
xor dword [edi + 0xc], edx
sub dword [ebp + 0xc], 0x10
mov dword [esp + 0x20], ebx
add esp, 0xc
add ebx, 0x10
add edi, 0x10
sub dword [esp + 0x10], 1
jne 0x4a7f98
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
mov dword [esi], ecx
mov edx, dword [eax + 4]
mov dword [esi + 4], edx
mov ecx, dword [eax + 8]
mov dword [esi + 8], ecx
mov edx, dword [eax + 0xc]
mov dword [esi + 0xc], edx
jmp 0x4a8060
cmp dword [ebp + 0xc], 0x10
jb 0x4a8060
mov eax, dword [ebp + 0xc]
shr eax, 4
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
push eax
lea ecx, [esp + 0x38]
push ecx
push ebx
call dword [esp + 0x24]
mov eax, dword [ebx]
mov edx, dword [esi]
xor edx, dword [esp + 0x40]
sub dword [ebp + 0xc], 0x10
mov dword [edi], edx
mov ecx, dword [esi + 4]
xor ecx, dword [esp + 0x44]
mov dword [esi], eax
mov eax, dword [ebx + 4]
mov dword [edi + 4], ecx
mov edx, dword [esi + 8]
xor edx, dword [esp + 0x48]
mov dword [esi + 4], eax
mov eax, dword [ebx + 8]
mov dword [edi + 8], edx
mov ecx, dword [esi + 0xc]
xor ecx, dword [esp + 0x4c]
mov dword [esi + 8], eax
mov eax, dword [ebx + 0xc]
mov dword [edi + 0xc], ecx
add esp, 0xc
add ebx, 0x10
add edi, 0x10
sub dword [esp + 0x10], 1
mov dword [esi + 0xc], eax
jne 0x4a8001
cmp dword [ebp + 0xc], 0
je 0x4a81db
lea edx, [esp + 0x34]
mov eax, esi
sub eax, edx
mov dword [esp + 0x24], eax
mov ecx, edx
mov eax, 1
sub eax, ecx
mov dword [esp + 0x30], eax
mov eax, 2
sub eax, edx
mov dword [esp + 0x28], eax
mov eax, 3
sub eax, ecx
mov dword [esp + 0x2c], eax
mov eax, ecx
lea edx, [edi + 2]
sub edi, eax
mov eax, ebx
sub eax, ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], edi
mov dword [esp + 0x1c], eax
mov edx, dword [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push ebx
call dword [esp + 0x24]
add esp, 0xc
xor eax, eax
cmp eax, dword [ebp + 0xc]
jae 0x4a8186
mov edx, dword [esp + 0x1c]
mov edi, dword [esp + 0x24]
lea ecx, [esp + eax + 0x34]
movzx edx, byte [ecx + edx]
mov byte [esp + 0xf], dl
movzx edx, byte [ecx]
xor dl, byte [ecx + edi]
mov edi, dword [esp + 0x10]
mov byte [ecx + edi], dl
movzx edx, byte [esp + 0xf]
mov edi, dword [esp + 0x24]
mov byte [ecx + edi], dl
mov edx, dword [esp + 0x30]
add edx, ecx
cmp edx, dword [ebp + 0xc]
jae 0x4a817b
movzx edx, byte [ebx + eax + 1]
mov edi, dword [esp + 0x14]
mov byte [esp + 0xf], dl
movzx edx, byte [ecx + 1]
xor dl, byte [esi + eax + 1]
mov byte [edi + eax - 1], dl
movzx edx, byte [esp + 0xf]
mov byte [esi + eax + 1], dl
mov edx, dword [esp + 0x28]
add edx, ecx
cmp edx, dword [ebp + 0xc]
jae 0x4a817e
movzx edx, byte [ebx + eax + 2]
mov byte [esp + 0xf], dl
movzx edx, byte [ecx + 2]
xor dl, byte [esi + eax + 2]
mov byte [edi + eax], dl
movzx edx, byte [esp + 0xf]
mov byte [esi + eax + 2], dl
mov edx, dword [esp + 0x2c]
add edx, ecx
cmp edx, dword [ebp + 0xc]
jae 0x4a8183
mov cl, byte [ecx + 3]
xor cl, byte [esi + eax + 3]
mov dl, byte [ebx + eax + 3]
mov byte [edi + eax + 1], cl
mov byte [esi + eax + 3], dl
add eax, 4
cmp eax, 0x10
jb 0x4a80c4
jmp 0x4a8186
inc eax
jmp 0x4a8186
add eax, 2
jmp 0x4a8186
add eax, 3
mov ecx, dword [ebp + 0xc]
mov edx, 0x10
cmp ecx, edx
jbe 0x4a81be
add dword [esp + 0x1c], edx
add dword [esp + 0x10], edx
add dword [esp + 0x14], edx
sub ecx, edx
add ebx, edx
mov dword [ebp + 0xc], ecx
test ecx, ecx
jne 0x4a80b0
pop edi
pop ebx
mov ecx, dword [esp + 0x3c]
xor ecx, esp
call fcn.00511c1b
mov esp, ebp
pop ebp
ret
cmp eax, edx
jae 0x4a81db
mov edi, ebx
sub edi, esi
lea ecx, [esi + eax]
sub edx, eax
jmp 0x4a81d0
mov al, byte [edi + ecx]
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x4a81d0
mov ecx, dword [esp + 0x44]
pop edi
pop ebx
xor ecx, esp
call fcn.00511c1b
mov esp, ebp
pop ebp
ret