Function at 0x4d94eb
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x48
mov eax, dword [0x5c9040]
xor eax, esp
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x20], eax
movzx eax, byte [edx + 2]
push ebx
push ebp
push esi
movzx esi, byte [edx + 3]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 1]
shl esi, 8
or esi, eax
movzx eax, byte [edx]
shl esi, 8
or esi, eax
movzx eax, byte [edx + 6]
push edi
mov edi, ecx
mov dword [esp + 0x34], esi
movzx ecx, byte [edx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
mov ebp, dword [edi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
mov ebx, dword [ebp]
or ecx, eax
movzx eax, byte [edx + 0xa]
xor ebx, esi
mov dword [esp + 0x38], ecx
mov dword [esp + 0x34], ebx
mov esi, dword [ebp + 4]
xor esi, ecx
mov dword [esp + 0x1c], ebx
movzx ecx, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x38], esi
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x14], esi
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x3c], ecx
mov eax, dword [ebp + 8]
xor eax, ecx
movzx ecx, byte [edx + 0xf]
mov dword [esp + 0x28], eax
mov dword [esp + 0x3c], eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xc]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x40], ecx
mov eax, dword [ebp + 0xc]
add ebp, 0x10
xor eax, ecx
mov ecx, eax
mov dword [esp + 0x18], eax
mov eax, dword [edi]
sar eax, 1
dec eax
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], eax
push 4
pop edi
test eax, eax
jle 0x4d9821
mov eax, dword [esp + 0x28]
shr eax, 0x10
movzx eax, al
mov edx, dword [esp + 0x14]
shr ecx, 8
movzx ecx, cl
mov esi, dword [esp + 0x1c]
shr esi, 0x18
push 4
mov ecx, dword [ecx*4 + 0x894cc0]
xor ecx, dword [eax*4 + 0x895cc0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x893f90]
movzx eax, bl
xor ecx, dword [eax*4 + 0x8950c0]
xor ecx, dword [ebp]
add ebp, edi
mov eax, dword [esp + 0x1c]
shr eax, 0x10
mov dword [esp + 0x48], ecx
mov dword [esp + 0x28], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
pop edi
mov ecx, dword [ecx*4 + 0x895cc0]
xor ecx, dword [eax*4 + 0x894cc0]
mov eax, dword [esp + 0x28]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x893f90]
movzx eax, dl
xor ecx, dword [eax*4 + 0x8950c0]
mov eax, edx
xor ecx, dword [ebp]
add ebp, 4
shr eax, 8
mov dword [esp + 0x48], ecx
mov dword [esp + 0x20], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr edx, 0x10
mov ebx, dword [ecx*4 + 0x894cc0]
mov ecx, dword [esp + 0x28]
xor ebx, dword [eax*4 + 0x895cc0]
mov eax, dword [esp + 0x18]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x893f90]
movzx eax, cl
shr ecx, 8
movzx ecx, cl
xor ebx, dword [eax*4 + 0x8950c0]
xor ebx, dword [ebp]
add ebp, edi
movzx eax, dl
mov edx, dword [ecx*4 + 0x894cc0]
mov dword [esp + 0x4c], ebx
xor edx, dword [eax*4 + 0x895cc0]
mov eax, dword [esp + 0x18]
xor edx, dword [esi*4 + 0x893f90]
movzx eax, al
xor edx, dword [eax*4 + 0x8950c0]
mov eax, ebx
xor edx, dword [ebp]
add ebp, edi
shr eax, 0x10
movzx ecx, al
mov eax, edx
shr eax, 8
movzx eax, al
mov dword [esp + 0x50], edx
mov esi, dword [ecx*4 + 0x895cc0]
mov ecx, dword [esp + 0x24]
xor esi, dword [eax*4 + 0x894cc0]
mov eax, dword [esp + 0x20]
shr eax, 0x18
xor esi, dword [eax*4 + 0x893f90]
movzx eax, cl
xor esi, dword [eax*4 + 0x8950c0]
mov eax, ecx
shr eax, 8
xor esi, dword [ebp]
add ebp, edi
movzx ecx, al
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x34], esi
mov ecx, dword [ecx*4 + 0x894cc0]
mov dword [esp + 0x1c], esi
xor ecx, dword [eax*4 + 0x895cc0]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x893f90]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x14]
movzx eax, cl
xor esi, dword [eax*4 + 0x8950c0]
mov eax, ecx
xor esi, dword [ebp]
add ebp, edi
shr eax, 8
movzx ecx, al
mov eax, dword [esp + 0x24]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x894cc0]
mov dword [esp + 0x38], esi
mov dword [esp + 0x14], esi
xor ecx, dword [eax*4 + 0x895cc0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x893f90]
movzx eax, bl
shr ebx, 8
xor ecx, dword [eax*4 + 0x8950c0]
xor ecx, dword [ebp]
add ebp, edi
mov eax, dword [esp + 0x20]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x3c], ecx
shr eax, 0x10
movzx eax, al
movzx ecx, bl
mov ebx, dword [esp + 0x1c]
mov ecx, dword [ecx*4 + 0x894cc0]
xor ecx, dword [eax*4 + 0x895cc0]
mov eax, dword [esp + 0x24]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x893f90]
movzx eax, dl
xor ecx, dword [eax*4 + 0x8950c0]
xor ecx, dword [ebp]
add ebp, edi
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x18], ecx
mov dword [esp + 0x40], ecx
mov dword [esp + 0x2c], eax
test eax, eax
jg 0x4d95e2
mov eax, dword [esp + 0x28]
shr eax, 0x10
movzx eax, al
mov edx, dword [esp + 0x14]
shr ecx, 8
movzx ecx, cl
mov esi, dword [esp + 0x1c]
shr esi, 0x18
mov ecx, dword [ecx*4 + 0x894cc0]
xor ecx, dword [eax*4 + 0x895cc0]
mov eax, edx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x893f90]
movzx eax, bl
xor ecx, dword [eax*4 + 0x8950c0]
xor ecx, dword [ebp]
add ebp, edi
mov eax, dword [esp + 0x18]
shr eax, 0x10
mov dword [esp + 0x44], ecx
mov dword [esp + 0x24], ecx
movzx ecx, al
mov eax, ebx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x895cc0]
xor ecx, dword [eax*4 + 0x894cc0]
mov eax, dword [esp + 0x28]
shr eax, 0x18
xor ecx, dword [eax*4 + 0x893f90]
movzx eax, dl
xor ecx, dword [eax*4 + 0x8950c0]
mov eax, edx
xor ecx, dword [ebp]
add ebp, edi
shr eax, 8
mov dword [esp + 0x14], ecx
mov dword [esp + 0x48], ecx
movzx ecx, al
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr edx, 0x10
mov ebx, dword [ecx*4 + 0x894cc0]
mov ecx, dword [esp + 0x28]
xor ebx, dword [eax*4 + 0x895cc0]
mov eax, dword [esp + 0x18]
shr eax, 0x18
xor ebx, dword [eax*4 + 0x893f90]
movzx eax, cl
shr ecx, 8
movzx ecx, cl
xor ebx, dword [eax*4 + 0x8950c0]
xor ebx, dword [ebp]
add ebp, edi
mov ecx, dword [ecx*4 + 0x894cc0]
movzx eax, dl
mov dword [esp + 0x4c], ebx
mov dword [esp + 0x2c], ebx
xor ecx, dword [eax*4 + 0x895cc0]
mov eax, dword [esp + 0x18]
xor ecx, dword [esi*4 + 0x893f90]
movzx eax, al
xor ecx, dword [eax*4 + 0x8950c0]
mov eax, ebx
xor ecx, dword [ebp]
add ebp, edi
shr eax, 0x10
movzx eax, al
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x50], ecx
movzx edx, byte [eax + 0x894390]
mov eax, dword [esp + 0x14]
shr eax, 0x18
movzx eax, byte [eax + 0x894390]
shl eax, 8
xor edx, eax
mov eax, ecx
shl edx, 8
shr eax, 8
movzx eax, al
movzx eax, byte [eax + 0x894390]
xor edx, eax
mov esi, dword [esp + 0x30]
mov eax, dword [esp + 0x24]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x894390]
xor edx, eax
mov eax, ebx
shr eax, 0x18
xor edx, dword [ebp]
add ebp, edi
mov dword [esp + 0x34], edx
mov dword [esp + 0x20], edx
movzx ebx, byte [eax + 0x894390]
mov eax, ecx
shr eax, 0x10
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + 0x894390]
xor ebx, eax
mov eax, dword [esp + 0x24]
shr eax, 8
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + 0x894390]
xor ebx, eax
mov eax, dword [esp + 0x14]
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + 0x894390]
xor ebx, eax
mov eax, dword [esp + 0x24]
shr eax, 0x10
movzx eax, al
xor ebx, dword [ebp]
mov dword [esp + 0x38], ebx
movzx edx, byte [eax + 0x894390]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + 0x894390]
shl eax, 8
xor edx, eax
mov eax, dword [esp + 0x14]
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x894390]
xor edx, eax
mov eax, dword [esp + 0x2c]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x894390]
xor edx, eax
mov eax, dword [esp + 0x24]
shr eax, 0x18
xor edx, dword [ebp + edi]
mov dword [esp + 0x3c], edx
movzx ecx, byte [eax + 0x894390]
mov eax, dword [esp + 0x14]
shr eax, 0x10
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x894390]
xor ecx, eax
mov eax, dword [esp + 0x2c]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x894390]
xor ecx, eax
mov eax, dword [esp + 0x1c]
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x894390]
xor ecx, eax
mov eax, dword [esp + 0x20]
xor ecx, dword [ebp + edi + 4]
mov byte [esi], al
mov dword [esp + 0x40], ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, dword [esp + 0x20]
shr eax, 0x10
mov byte [esi + 2], al
mov eax, dword [esp + 0x20]
shr eax, 0x18
mov byte [esi + 3], al
mov eax, ebx
shr eax, 8
mov byte [esi + 5], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 6], al
mov eax, edx
shr eax, 8
mov byte [esi + 9], al
mov eax, edx
shr eax, 0x10
mov byte [esi + 0xa], al
mov eax, ecx
shr eax, 8
mov byte [esi + 0xd], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 0xe], al
lea eax, [esp + 0x34]
push 0x20
mov byte [esi + 4], bl
mov byte [esi + 8], dl
mov byte [esi + 0xc], cl
push 0
shr edx, 0x18
shr ecx, 0x18
push eax
mov eax, dword [fcn.0051c010]
shr ebx, 0x18
mov byte [esi + 7], bl
mov byte [esi + 0xb], dl
mov byte [esi + 0xf], cl
call eax
mov ecx, dword [esp + 0x60]
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0051b034
add esp, 0x48
ret