Function at 0x46fc8d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [ebp + 0x1c], 0
mov eax, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
je 0x46fe63
movzx edx, byte [eax]
inc eax
movzx ecx, byte [eax]
shl ecx, 8
or edx, ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 0x10
or edx, ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 0x18
or edx, ecx
inc eax
movzx ecx, byte [eax]
inc eax
movzx ebx, byte [eax]
shl ebx, 8
or ecx, ebx
movzx ebx, byte [eax + 2]
inc eax
movzx eax, byte [eax]
shl ebx, 8
or ebx, eax
shl ebx, 0x10
or ecx, ebx
mov ebx, dword [ebp + 0x10]
add ebx, 0xfffffff8
mov dword [ebp + 8], edx
mov dword [ebp + 0x18], ecx
js 0x46fdad
lea eax, [ebx + 8]
shr eax, 3
mov dword [ebp + 0x10], eax
imul eax, eax, 0xfffffff8
add ebx, eax
movzx eax, byte [esi]
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
xor eax, dword [ebp + 8]
inc esi
movzx ecx, byte [esi]
inc esi
movzx edx, byte [esi]
shl edx, 8
or ecx, edx
inc esi
movzx edx, byte [esi]
shl edx, 0x10
or ecx, edx
inc esi
movzx edx, byte [esi]
shl edx, 0x18
or ecx, edx
xor ecx, dword [ebp + 0x18]
push 1
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
push eax
inc esi
call fcn.0046ea5c
mov eax, dword [ebp - 0xc]
mov byte [edi], al
inc edi
mov ecx, eax
sar ecx, 8
mov byte [edi], cl
inc edi
mov ecx, eax
sar ecx, 0x10
mov byte [edi], cl
inc edi
mov edx, eax
sar eax, 0x18
mov byte [edi], al
mov eax, dword [ebp - 8]
inc edi
mov byte [edi], al
inc edi
mov ecx, eax
sar ecx, 8
mov byte [edi], cl
inc edi
mov ecx, eax
sar ecx, 0x10
mov byte [edi], cl
inc edi
mov dword [ebp + 0x18], eax
sar eax, 0x18
mov byte [edi], al
inc edi
dec dword [ebp + 0x10]
mov dword [ebp + 8], edx
jne 0x46fd09
cmp ebx, 0xfffffff8
je case.default.0x46ffe3
lea esi, [esi + ebx + 8]
add ebx, 7
xor ecx, ecx
xor eax, eax
cmp ebx, 7
ja case.default.0x46fdc6
jmp dword [ebx*4 + 0x470029]
dec esi
movzx ecx, byte [esi]
shl ecx, 0x18
dec esi
movzx eax, byte [esi]
shl eax, 0x10
or ecx, eax
dec esi
movzx eax, byte [esi]
shl eax, 8
or ecx, eax
dec esi
movzx eax, byte [esi]
or ecx, eax
dec esi
movzx eax, byte [esi]
shl eax, 0x18
dec esi
movzx ebx, byte [esi]
shl ebx, 0x10
or eax, ebx
dec esi
movzx ebx, byte [esi]
shl ebx, 8
or eax, ebx
movzx esi, byte [esi - 1]
or eax, esi
xor ecx, dword [ebp + 0x18]
xor eax, edx
push 1
push dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
push eax
call fcn.0046ea5c
mov eax, dword [ebp - 0xc]
mov byte [edi], al
inc edi
mov ecx, eax
sar ecx, 8
mov byte [edi], cl
inc edi
mov ecx, eax
sar ecx, 0x10
mov byte [edi], cl
sar eax, 0x18
inc edi
mov byte [edi], al
mov eax, dword [ebp - 8]
inc edi
mov byte [edi], al
mov ecx, eax
sar ecx, 8
inc edi
mov byte [edi], cl
mov ecx, eax
inc edi
sar ecx, 0x10
sar eax, 0x18
mov byte [edi], cl
mov byte [edi + 1], al
jmp case.default.0x46ffe3
movzx ebx, byte [eax]
inc eax
movzx ecx, byte [eax]
shl ecx, 8
or ebx, ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 0x10
or ebx, ecx
inc eax
movzx ecx, byte [eax]
shl ecx, 0x18
or ebx, ecx
inc eax
movzx ecx, byte [eax]
inc eax
movzx edx, byte [eax]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
inc eax
movzx eax, byte [eax]
shl edx, 8
or edx, eax
shl edx, 0x10
or ecx, edx
mov dword [ebp + 0x18], ecx
mov ecx, dword [ebp + 0x10]
add ecx, 0xfffffff8
mov dword [ebp + 0x10], ecx
js 0x46ff6d
lea eax, [ecx + 8]
shr eax, 3
mov dword [ebp + 8], eax
imul eax, eax, 0xfffffff8
add ecx, eax
mov dword [ebp + 0x10], ecx
movzx eax, byte [esi]
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov dword [ebp + 0xc], eax
inc esi
mov dword [ebp - 0xc], eax
movzx eax, byte [esi]
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
mov ecx, dword [ebp - 4]
push 0
push dword [ebp + 0x14]
mov dword [ebp + 0x1c], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
inc esi
call fcn.0046ea5c
mov ecx, dword [ebp + 0x18]
xor ecx, dword [ebp - 8]
mov eax, ebx
xor eax, dword [ebp - 0xc]
mov ebx, dword [ebp + 0xc]
mov byte [edi], al
inc edi
mov edx, eax
sar edx, 8
mov byte [edi], dl
mov edx, eax
sar eax, 0x18
inc edi
sar edx, 0x10
mov byte [edi], dl
inc edi
mov byte [edi], al
inc edi
mov byte [edi], cl
inc edi
mov eax, ecx
sar eax, 8
mov byte [edi], al
inc edi
mov eax, ecx
sar eax, 0x10
mov byte [edi], al
mov eax, dword [ebp + 0x1c]
inc edi
sar ecx, 0x18
mov byte [edi], cl
inc edi
dec dword [ebp + 8]
mov dword [ebp + 0x18], eax
jne 0x46fec3
cmp dword [ebp + 0x10], 0xfffffff8
je case.default.0x46ffe3
movzx eax, byte [esi]
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x10
or eax, ecx
inc esi
movzx ecx, byte [esi]
shl ecx, 0x18
or eax, ecx
inc esi
mov dword [ebp - 0xc], eax
movzx eax, byte [esi]
inc esi
movzx ecx, byte [esi]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 2]
inc esi
movzx edx, byte [esi]
shl ecx, 8
or ecx, edx
shl ecx, 0x10
push 0
push dword [ebp + 0x14]
or ecx, eax
lea eax, [ebp - 0xc]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 4]
push eax
call fcn.0046ea5c
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
xor ebx, dword [ebp - 0xc]
xor eax, dword [ebp - 8]
lea edi, [edi + ecx + 8]
add ecx, 7
cmp ecx, 7
ja case.default.0x46ffe3
jmp dword [ecx*4 + 0x470049]
dec edi
mov ecx, eax
sar ecx, 0x18
mov byte [edi], cl
dec edi
mov ecx, eax
sar ecx, 0x10
mov byte [edi], cl
dec edi
mov ecx, eax
sar ecx, 8
mov byte [edi], cl
dec edi
mov byte [edi], al
dec edi
mov eax, ebx
sar eax, 0x18
mov byte [edi], al
dec edi
mov eax, ebx
sar eax, 0x10
mov byte [edi], al
dec edi
mov eax, ebx
sar eax, 8
mov byte [edi], al
mov byte [edi - 1], bl
pop edi
pop esi
pop ebx
leave
ret 0x18