Function at 0x4a6b70
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x55ca98]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
movzx ebx, byte [edx + 3]
mov esi, dword [ebp + 8]
movzx ecx, byte [edx + 2]
shl ebx, 8
or ebx, ecx
mov dword [ebp - 0x6c], eax
movzx ecx, byte [edx + 1]
mov eax, dword [esi + 4]
shl ebx, 8
lea eax, [esi + eax*4]
or ebx, ecx
movzx ecx, byte [edx]
shl ebx, 8
or ebx, ecx
xor ebx, dword [eax + 8]
mov ecx, ebx
mov dword [ebp - 0x24], ebx
shr ecx, 8
mov dword [ebp - 0x64], ecx
mov ecx, ebx
shr ecx, 0x10
mov dword [ebp - 0x58], ecx
mov ecx, ebx
shr ecx, 0x18
mov dword [ebp - 0x40], ecx
movzx ecx, byte [edx + 7]
shl ecx, 8
mov dword [ebp - 0x2c], ecx
movzx ecx, byte [edx + 6]
or dword [ebp - 0x2c], ecx
shl dword [ebp - 0x2c], 8
movzx ecx, byte [edx + 5]
or dword [ebp - 0x2c], ecx
shl dword [ebp - 0x2c], 8
movzx ecx, byte [edx + 4]
or dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, dword [eax + 0xc]
mov edi, ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x20], ecx
shr edi, 0x10
mov dword [ebp - 0x60], edi
mov edi, ecx
shr ecx, 8
mov dword [ebp - 0x44], ecx
movzx ecx, byte [edx + 0xb]
shl ecx, 8
mov dword [ebp - 0x28], ecx
movzx ecx, byte [edx + 0xa]
or dword [ebp - 0x28], ecx
shl dword [ebp - 0x28], 8
movzx ecx, byte [edx + 9]
or dword [ebp - 0x28], ecx
shl dword [ebp - 0x28], 8
movzx ecx, byte [edx + 8]
or dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x28]
xor ecx, dword [eax + 0x10]
shr edi, 0x18
mov dword [ebp - 0x5c], edi
mov edi, ecx
shr edi, 0x18
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x48], edi
mov edi, ecx
shr ecx, 0x10
mov dword [ebp - 0x50], ecx
movzx ecx, byte [edx + 0xf]
shr edi, 8
shl ecx, 8
mov dword [ebp - 0x30], ecx
movzx ecx, byte [edx + 0xe]
mov dword [ebp - 0x3c], ebx
mov dword [ebp - 0x34], edi
or dword [ebp - 0x30], ecx
movzx ecx, byte [edx + 0xd]
shl dword [ebp - 0x30], 8
or dword [ebp - 0x30], ecx
shl dword [ebp - 0x30], 8
movzx ecx, byte [edx + 0xc]
mov edx, dword [ebp - 0x30]
or edx, ecx
xor edx, dword [eax + 0x14]
add eax, 0x18
mov ecx, edx
mov dword [ebp - 0x30], edx
shr ecx, 8
mov edi, edx
mov dword [ebp - 0x38], ecx
mov ecx, edx
shr ecx, 0x10
mov dword [ebp - 0x54], ecx
mov ecx, dword [esi]
sar ecx, 1
dec ecx
shr edi, 0x18
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x68], ecx
test ecx, ecx
jle 0x4a6f62
mov ecx, dword [ebp - 0x50]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], ecx
mov ecx, dword [ebp - 0x34]
mov dword [ebp - 0x34], ecx
mov ecx, dword [ebp - 0x54]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x28]
mov dword [ebp - 0x28], ecx
mov ecx, dword [ebp - 0x38]
mov dword [ebp - 0x38], ecx
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x5c], ecx
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x64], ecx
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x60], ecx
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ebp - 0x44]
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x48], ecx
nop
mov ecx, dword [ebp - 0x50]
movzx ecx, cl
movzx edx, bl
mov ebx, dword [ecx*4 + 0x560a20]
xor ebx, dword [edx*4 + 0x560620]
mov ecx, dword [ebp - 0x3c]
movzx ecx, cl
mov edx, dword [ebp - 0x34]
movzx edx, dl
xor ebx, dword [ecx*4 + 0x560220]
xor ebx, dword [edi*4 + 0x560e20]
xor ebx, dword [eax]
mov ecx, dword [ebp - 0x54]
movzx ecx, cl
mov dword [ebp - 0x4c], ebx
mov ebx, dword [ecx*4 + 0x560a20]
xor ebx, dword [edx*4 + 0x560620]
mov ecx, dword [ebp - 0x2c]
movzx ecx, cl
mov edx, dword [ebp - 0x38]
movzx edx, dl
xor ebx, dword [ecx*4 + 0x560220]
xor ebx, dword [esi*4 + 0x560e20]
xor ebx, dword [eax + 4]
mov ecx, dword [ebp - 0x58]
movzx ecx, cl
mov dword [ebp - 0x34], ebx
mov ebx, dword [ecx*4 + 0x560a20]
xor ebx, dword [edx*4 + 0x560620]
mov ecx, dword [ebp - 0x28]
movzx ecx, cl
mov edx, dword [ebp - 0x64]
movzx edx, dl
xor ebx, dword [ecx*4 + 0x560220]
mov ecx, dword [ebp - 0x5c]
xor ebx, dword [ecx*4 + 0x560e20]
xor ebx, dword [eax + 8]
mov ecx, dword [ebp - 0x60]
movzx ecx, cl
mov dword [ebp - 0x38], ebx
mov ebx, dword [ecx*4 + 0x560a20]
xor ebx, dword [edx*4 + 0x560620]
mov ecx, dword [ebp - 0x30]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x560220]
mov ecx, dword [ebp - 0x48]
xor ebx, dword [ecx*4 + 0x560e20]
mov ecx, dword [ebp - 0x34]
xor ebx, dword [eax + 0xc]
shr ecx, 8
movzx edx, cl
mov ecx, dword [ebp - 0x38]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x560620]
xor edx, dword [ecx*4 + 0x560a20]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x560e20]
mov ecx, dword [ebp - 0x4c]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x560220]
xor edx, dword [eax + 0x10]
mov ecx, edx
mov dword [ebp - 0x3c], edx
shr ecx, 8
mov dword [ebp - 0x64], ecx
mov ecx, edx
shr ecx, 0x10
mov dword [ebp - 0x58], ecx
mov ecx, edx
shr ecx, 0x18
mov dword [ebp - 0x40], ecx
mov ecx, ebx
shr ecx, 0x10
mov dword [ebp - 0x24], edx
movzx edx, cl
mov ecx, dword [ebp - 0x38]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x560a20]
xor edx, dword [ecx*4 + 0x560620]
mov ecx, dword [ebp - 0x4c]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x560e20]
mov ecx, dword [ebp - 0x34]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x560220]
xor edx, dword [eax + 0x14]
mov ecx, edx
mov dword [ebp - 0x20], edx
shr ecx, 0x10
mov dword [ebp - 0x60], ecx
mov ecx, edx
shr ecx, 0x18
mov dword [ebp - 0x5c], ecx
mov ecx, edx
shr ecx, 8
mov dword [ebp - 0x44], ecx
mov ecx, ebx
shr ecx, 8
mov dword [ebp - 0x2c], edx
movzx edx, cl
mov ecx, dword [ebp - 0x4c]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x560620]
xor edx, dword [ecx*4 + 0x560a20]
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x34]
mov ecx, edx
mov edi, dword [ebp - 0x28]
shr ecx, 0x18
shr edx, 0x10
movzx edx, dl
xor edi, dword [ecx*4 + 0x560e20]
mov ecx, dword [ebp - 0x38]
movzx ecx, cl
mov edx, dword [edx*4 + 0x560a20]
xor edi, dword [ecx*4 + 0x560220]
mov ecx, edi
mov dword [ebp - 0x28], edi
xor ecx, dword [eax + 0x18]
mov dword [ebp - 0x1c], ecx
mov esi, ecx
mov edi, ecx
mov dword [ebp - 0x28], ecx
shr ecx, 0x10
mov dword [ebp - 0x50], ecx
mov ecx, dword [ebp - 0x4c]
shr ecx, 8
movzx ecx, cl
shr edi, 8
mov dword [ebp - 0x34], edi
shr esi, 0x18
xor edx, dword [ecx*4 + 0x560620]
mov ecx, dword [ebp - 0x38]
shr ecx, 0x18
mov dword [ebp - 0x48], esi
mov esi, dword [ebp - 0x40]
xor edx, dword [ecx*4 + 0x560e20]
movzx ecx, bl
mov ebx, dword [ebp - 0x44]
xor edx, dword [ecx*4 + 0x560220]
xor edx, dword [eax + 0x1c]
add eax, 0x20
mov ecx, edx
mov dword [ebp - 0x30], edx
shr ecx, 8
mov edi, edx
mov dword [ebp - 0x38], ecx
mov ecx, edx
shr ecx, 0x10
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp - 0x68]
dec ecx
shr edi, 0x18
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x68], ecx
test ecx, ecx
jg 0x4a6d10
mov ecx, dword [ebp - 0x50]
movzx ecx, cl
mov edx, dword [ebp - 0x44]
movzx edx, dl
mov ebx, dword [ecx*4 + 0x560a20]
mov ecx, dword [ebp - 0x3c]
xor ebx, dword [edx*4 + 0x560620]
movzx ecx, cl
mov edx, dword [ebp - 0x34]
movzx edx, dl
xor ebx, dword [ecx*4 + 0x560220]
xor ebx, dword [edi*4 + 0x560e20]
xor ebx, dword [eax]
mov ecx, dword [ebp - 0x54]
movzx ecx, cl
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x3c], ebx
mov ebx, dword [ecx*4 + 0x560a20]
xor ebx, dword [edx*4 + 0x560620]
mov ecx, dword [ebp - 0x2c]
movzx ecx, cl
mov edx, dword [ebp - 0x38]
movzx edx, dl
xor ebx, dword [ecx*4 + 0x560220]
mov ecx, dword [ebp - 0x40]
xor ebx, dword [ecx*4 + 0x560e20]
xor ebx, dword [eax + 4]
mov ecx, dword [ebp - 0x58]
movzx ecx, cl
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x44], ebx
mov ebx, dword [ecx*4 + 0x560a20]
xor ebx, dword [edx*4 + 0x560620]
mov ecx, dword [ebp - 0x28]
movzx ecx, cl
mov edx, dword [ebp - 0x64]
movzx edx, dl
xor ebx, dword [ecx*4 + 0x560220]
mov ecx, dword [ebp - 0x5c]
xor ebx, dword [ecx*4 + 0x560e20]
mov ecx, dword [ebp - 0x60]
movzx ecx, cl
xor ebx, dword [eax + 8]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x68], ebx
mov ecx, dword [ecx*4 + 0x560a20]
xor ecx, dword [edx*4 + 0x560620]
mov dword [ebp - 0x40], ecx
mov ecx, dword [ebp - 0x30]
mov edx, dword [ebp - 0x40]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x560220]
mov ecx, dword [ebp - 0x48]
xor edx, dword [ecx*4 + 0x560e20]
xor edx, dword [eax + 0xc]
mov ecx, edx
mov dword [ebp - 8], edx
shr ecx, 0x18
mov dword [ebp - 0x40], edx
movzx esi, byte [ecx + 0x560120]
mov ecx, ebx
shr ecx, 0x10
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x560120]
xor esi, ecx
mov ecx, dword [ebp - 0x44]
shr ecx, 8
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x560120]
xor esi, ecx
mov ecx, dword [ebp - 0x3c]
movzx ecx, cl
shl esi, 8
movzx ecx, byte [ecx + 0x560120]
xor esi, ecx
mov ecx, edx
xor esi, dword [eax + 0x10]
mov dword [ebp - 0x4c], esi
mov dword [ebp - 0x24], esi
shr ecx, 0x10
movzx ecx, cl
movzx edx, byte [ecx + 0x560120]
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x18
movzx ecx, byte [ecx + 0x560120]
shl ecx, 8
xor edx, ecx
mov ecx, ebx
shr ecx, 8
movzx ecx, cl
mov ebx, dword [ebp - 0x44]
shl edx, 8
movzx ecx, byte [ecx + 0x560120]
xor edx, ecx
movzx ecx, bl
shl edx, 8
movzx ecx, byte [ecx + 0x560120]
xor edx, ecx
mov ecx, ebx
xor edx, dword [eax + 0x14]
shr ecx, 0x18
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x20], edx
mov edx, dword [ebp - 0x68]
movzx ebx, byte [ecx + 0x560120]
mov ecx, dword [ebp - 0x3c]
shr ecx, 0x10
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx + 0x560120]
xor ebx, ecx
mov ecx, dword [ebp - 0x40]
shr ecx, 8
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx + 0x560120]
xor ebx, ecx
movzx ecx, dl
shr edx, 0x18
shl ebx, 8
movzx ecx, byte [ecx + 0x560120]
movzx edx, byte [edx + 0x560120]
xor ebx, ecx
mov ecx, dword [ebp - 0x44]
xor ebx, dword [eax + 0x18]
shr ecx, 0x10
movzx ecx, cl
shl edx, 8
mov dword [ebp - 0x1c], ebx
movzx ecx, byte [ecx + 0x560120]
xor edx, ecx
mov ecx, dword [ebp - 0x3c]
shr ecx, 8
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x560120]
xor edx, ecx
mov ecx, dword [ebp - 0x40]
movzx ecx, cl
shl edx, 8
movzx ecx, byte [ecx + 0x560120]
xor edx, ecx
mov ecx, esi
xor edx, dword [eax + 0x1c]
mov eax, ecx
mov esi, dword [ebp - 0x6c]
shr eax, 8
mov dword [ebp - 0x18], edx
mov byte [esi + 1], al
mov eax, ecx
mov byte [esi], cl
shr ecx, 0x18
shr eax, 0x10
mov byte [esi + 2], al
mov byte [esi + 3], cl
mov ecx, dword [ebp - 0x48]
mov eax, ecx
shr eax, 8
mov byte [esi + 4], cl
mov byte [esi + 5], al
mov eax, ecx
mov byte [esi + 8], bl
shr eax, 0x10
mov byte [esi + 6], al
mov eax, ebx
shr eax, 8
mov byte [esi + 9], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 0xa], al
mov eax, edx
shr eax, 8
mov byte [esi + 0xd], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0xe], al
lea eax, [ebp - 0x24]
mov byte [esi + 0xc], dl
shr ecx, 0x18
shr edx, 0x18
push 0x20
shr ebx, 0x18
push eax
mov byte [esi + 7], cl
mov byte [esi + 0xb], bl
mov byte [esi + 0xf], dl
call fcn.004ae790
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.005091c5
mov esp, ebp
pop ebp
ret