Function at 0x49f970
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [esi + 3]
shl ecx, 8
movzx ebx, byte [edi + 3]
movzx eax, byte [edi + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [edi]
shl ebx, 8
or ebx, eax
movzx eax, byte [esi + 2]
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 6]
mov dword [ebp - 0xc], ecx
movzx ecx, byte [esi + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xa]
mov dword [ebp - 4], ecx
movzx ecx, byte [esi + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xe]
mov dword [ebp - 0x24], ecx
movzx ecx, byte [esi + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 0xc]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 6]
mov dword [ebp - 0x10], ecx
movzx ecx, byte [edi + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 2]
mov dword [ebp - 0x30], ecx
movzx ecx, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 6]
mov dword [ebp + 0x14], ecx
movzx ecx, byte [edx + 7]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xa]
mov dword [ebp + 0xc], ecx
movzx ecx, byte [edx + 0xb]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 9]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 8]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xf]
mov dword [ebp + 0x10], ecx
movzx ecx, byte [edx + 0xe]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 0xd]
shl eax, 8
or eax, ecx
movzx ecx, byte [edx + 0xc]
movzx edx, byte [edi + 0xb]
shl edx, 8
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 0xa]
or edx, ecx
movzx ecx, byte [edi + 9]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 8]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0x12]
mov dword [ebp - 0x20], edx
movzx edx, byte [esi + 0x13]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0x11]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0x10]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0x16]
mov dword [ebp - 8], edx
movzx edx, byte [esi + 0x17]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0x15]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0x14]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0x1a]
mov dword [ebp - 0x18], edx
movzx edx, byte [esi + 0x1b]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0x19]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0x18]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0x1e]
mov dword [ebp - 0x14], edx
movzx edx, byte [esi + 0x1f]
shl edx, 8
or edx, ecx
movzx ecx, byte [esi + 0x1d]
shl edx, 8
or edx, ecx
mov dword [ebp - 0x2c], 0xa
movzx ecx, byte [esi + 0x1c]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 0xe]
mov dword [ebp - 0x1c], edx
movzx edx, byte [edi + 0xf]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 0xd]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 0xc]
shl edx, 8
or edx, ecx
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x30]
mov edi, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
add ecx, ebx
mov esi, dword [ebp - 0x18]
rol ecx, 7
xor dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 0x10]
add ecx, ebx
rol ecx, 9
xor dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 0x10]
rol ecx, 0xd
xor esi, ecx
mov ecx, dword [ebp + 0x10]
add ecx, esi
mov dword [ebp - 0x18], esi
ror ecx, 0xe
xor ebx, ecx
mov esi, dword [ebp - 0x14]
mov ecx, dword [ebp - 0xc]
add ecx, edx
rol ecx, 7
xor eax, ecx
mov dword [ebp - 0x30], eax
lea ecx, [eax + edx]
rol ecx, 9
xor esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + eax]
mov eax, dword [ebp - 0x1c]
rol ecx, 0xd
xor dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0xc]
add ecx, esi
mov esi, dword [ebp - 0x20]
ror ecx, 0xe
xor edx, ecx
mov ecx, dword [ebp + 0x14]
add ecx, esi
rol ecx, 7
xor eax, ecx
mov dword [ebp - 0x1c], eax
lea ecx, [eax + esi]
rol ecx, 9
xor dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, eax
mov eax, dword [ebp - 8]
rol ecx, 0xd
xor dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x14]
add ecx, dword [ebp - 4]
ror ecx, 0xe
xor esi, ecx
mov ecx, dword [ebp - 8]
add ecx, edi
mov dword [ebp - 0x20], esi
mov esi, dword [ebp - 0x24]
rol ecx, 7
xor esi, ecx
mov dword [ebp - 0x24], esi
lea ecx, [edi + esi]
rol ecx, 9
xor dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0xc]
add ecx, esi
rol ecx, 0xd
xor eax, ecx
mov ecx, dword [ebp + 0xc]
add ecx, eax
mov dword [ebp - 8], eax
ror ecx, 0xe
xor edi, ecx
lea ecx, [esi + ebx]
mov esi, dword [ebp - 0xc]
rol ecx, 7
xor esi, ecx
mov dword [ebp - 0xc], esi
lea ecx, [esi + ebx]
rol ecx, 9
xor dword [ebp - 4], ecx
mov ecx, dword [ebp - 4]
add ecx, esi
mov eax, dword [ebp - 0x24]
rol ecx, 0xd
xor eax, ecx
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
add ecx, eax
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x10]
ror ecx, 0xe
xor ebx, ecx
mov dword [ebp - 0x28], ebx
lea ecx, [edx + eax]
mov ebx, dword [ebp - 0x18]
rol ecx, 7
xor dword [ebp + 0x14], ecx
mov ecx, dword [ebp + 0x14]
add ecx, edx
rol ecx, 9
xor esi, ecx
mov ecx, dword [ebp + 0x14]
add ecx, esi
mov dword [ebp + 0xc], esi
rol ecx, 0xd
xor eax, ecx
mov ecx, esi
mov esi, dword [ebp - 0x20]
add ecx, eax
ror ecx, 0xe
xor edx, ecx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x30]
lea ecx, [esi + eax]
rol ecx, 7
xor dword [ebp - 8], ecx
mov ecx, dword [ebp - 8]
add ecx, esi
rol ecx, 9
xor dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0x10]
add ecx, dword [ebp - 8]
rol ecx, 0xd
xor eax, ecx
mov ecx, dword [ebp + 0x10]
add ecx, eax
ror ecx, 0xe
xor esi, ecx
mov ecx, dword [ebp - 0x1c]
add ecx, edi
mov dword [ebp - 0x20], esi
rol ecx, 7
xor ebx, ecx
mov dword [ebp - 0x18], ebx
lea ecx, [edi + ebx]
rol ecx, 9
xor dword [ebp - 0x14], ecx
mov ecx, dword [ebp - 0x14]
add ecx, ebx
mov ebx, dword [ebp - 0x1c]
rol ecx, 0xd
xor ebx, ecx
mov ecx, dword [ebp - 0x14]
add ecx, ebx
mov dword [ebp - 0x1c], ebx
mov ebx, dword [ebp - 0x28]
ror ecx, 0xe
xor edi, ecx
sub dword [ebp - 0x2c], 1
jne 0x49fba6
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28], edi
mov byte [ecx], bl
shr ebx, 8
mov byte [ecx + 1], bl
shr ebx, 8
mov byte [ecx + 2], bl
shr ebx, 8
mov byte [ecx + 3], bl
mov byte [ecx + 4], dl
shr edx, 8
mov byte [ecx + 5], dl
shr edx, 8
mov byte [ecx + 6], dl
shr edx, 8
mov byte [ecx + 7], dl
mov edx, esi
mov byte [ecx + 8], dl
shr edx, 8
mov byte [ecx + 9], dl
shr edx, 8
mov byte [ecx + 0xa], dl
shr edx, 8
mov byte [ecx + 0xb], dl
mov edx, edi
mov byte [ecx + 0xc], dl
shr edx, 8
mov byte [ecx + 0xd], dl
shr edx, 8
mov byte [ecx + 0xe], dl
shr edx, 8
mov byte [ecx + 0xf], dl
mov edx, dword [ebp + 0x14]
mov byte [ecx + 0x10], dl
shr edx, 8
mov byte [ecx + 0x11], dl
shr edx, 8
mov byte [ecx + 0x12], dl
shr edx, 8
mov byte [ecx + 0x13], dl
mov edx, dword [ebp + 0xc]
mov byte [ecx + 0x14], dl
shr edx, 8
mov byte [ecx + 0x15], dl
shr edx, 8
mov byte [ecx + 0x16], dl
shr edx, 8
mov byte [ecx + 0x17], dl
mov edx, dword [ebp + 0x10]
mov byte [ecx + 0x18], dl
shr edx, 8
mov byte [ecx + 0x19], dl
shr edx, 8
mov byte [ecx + 0x1a], dl
shr edx, 8
mov byte [ecx + 0x1b], dl
mov byte [ecx + 0x1c], al
shr eax, 8
mov byte [ecx + 0x1d], al
shr eax, 8
mov byte [ecx + 0x1e], al
pop edi
shr eax, 8
pop esi
mov byte [ecx + 0x1f], al
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret