Function at 0x404a60
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
xor ecx, ecx
push ebx
push ebp
push edi
mov edi, eax
mov ch, byte [edi + 3]
movzx edx, byte [edi + 1]
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 4]
xor ebx, ebx
mov cl, byte [edi + 2]
mov bh, byte [edi + 7]
movzx ebp, byte [edi + 0xd]
add eax, 4
add eax, 4
shl ecx, 8
mov bl, byte [edi + 6]
or ecx, edx
movzx edx, byte [edi]
shl ecx, 8
or ecx, edx
xor ecx, dword [eax - 8]
movzx edx, byte [edi + 4]
mov dword [esp + 0xc], ecx
movzx ecx, byte [edi + 5]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edi + 9]
shl ebx, 8
or ebx, edx
xor edx, edx
mov dh, byte [edi + 0xb]
xor ebx, dword [eax - 4]
add eax, 4
add eax, 4
mov dword [esp + 0x18], ebx
mov dl, byte [edi + 0xa]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 8]
shl edx, 8
or edx, ecx
xor edx, dword [eax - 8]
xor ecx, ecx
mov ch, byte [edi + 0xf]
mov dword [esp + 0x10], edx
mov cl, byte [edi + 0xe]
movzx edi, byte [edi + 0xc]
shl ecx, 8
or ecx, ebp
shl ecx, 8
or ecx, edi
xor ecx, dword [eax - 4]
mov edi, ecx
mov ecx, dword [esp + 0x24]
mov ecx, dword [ecx]
sar ecx, 1
sub ecx, 1
test ecx, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ecx
jle 0x404d54
shr edi, 0x18
shr edx, 0x10
movzx ebp, bh
and edx, 0xff
mov ecx, dword [edx*4 + 0x46c318]
xor ecx, dword [ebp*4 + 0x46c718]
mov edx, dword [esp + 0xc]
xor ecx, dword [edi*4 + 0x46bf18]
and edx, 0xff
xor ecx, dword [edx*4 + 0x46cb18]
movzx edx, byte [esp + 0x11]
xor ecx, dword [eax]
mov edi, dword [esp + 0xc]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x14]
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x46c318]
xor ecx, dword [edx*4 + 0x46c718]
mov edx, dword [esp + 0xc]
shr edi, 0x10
and edi, 0xff
shr edx, 0x18
xor ecx, dword [edx*4 + 0x46bf18]
mov edx, ebx
and edx, 0xff
xor ecx, dword [edx*4 + 0x46cb18]
movzx edx, byte [esp + 0x15]
mov edx, dword [edx*4 + 0x46c718]
xor edx, dword [edi*4 + 0x46c318]
mov edi, dword [esp + 0x10]
and edi, 0xff
shr ebx, 0x18
xor edx, dword [ebx*4 + 0x46bf18]
movzx ebx, byte [esp + 0xd]
xor edx, dword [edi*4 + 0x46cb18]
mov edi, dword [esp + 0x18]
xor ecx, dword [eax + 4]
shr edi, 0x10
and edi, 0xff
mov edi, dword [edi*4 + 0x46c318]
xor edi, dword [ebx*4 + 0x46c718]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x10]
shr edi, 0x18
mov edi, dword [edi*4 + 0x46bf18]
xor dword [esp + 0x18], edi
mov edi, dword [esp + 0x18]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x46cb18]
add eax, 4
xor edx, dword [eax + 4]
add eax, 4
xor edi, dword [eax + 4]
add eax, 4
mov dword [esp + 0x14], edi
mov ebx, edx
shr ebx, 0x10
and ebx, 0xff
mov ebx, dword [ebx*4 + 0x46c318]
shr edi, 0x18
movzx ebp, ch
xor ebx, dword [ebp*4 + 0x46c718]
add eax, 4
xor ebx, dword [edi*4 + 0x46bf18]
mov edi, dword [esp + 0x24]
and edi, 0xff
xor ebx, dword [edi*4 + 0x46cb18]
mov edi, dword [esp + 0x14]
xor ebx, dword [eax]
shr edi, 0x10
mov dword [esp + 0xc], ebx
and edi, 0xff
mov edi, dword [edi*4 + 0x46c318]
movzx ebx, dh
xor edi, dword [ebx*4 + 0x46c718]
mov ebx, dword [esp + 0x24]
shr ebx, 0x18
add eax, 4
xor edi, dword [ebx*4 + 0x46bf18]
mov ebx, ecx
and ebx, 0xff
xor edi, dword [ebx*4 + 0x46cb18]
mov ebx, dword [esp + 0x24]
xor edi, dword [eax]
shr ebx, 0x10
mov dword [esp + 0x18], edi
movzx edi, byte [esp + 0x15]
mov edi, dword [edi*4 + 0x46c718]
and ebx, 0xff
xor edi, dword [ebx*4 + 0x46c318]
mov ebx, ecx
shr ebx, 0x18
xor edi, dword [ebx*4 + 0x46bf18]
mov ebx, edx
and ebx, 0xff
xor edi, dword [ebx*4 + 0x46cb18]
add eax, 4
xor edi, dword [eax]
shr ecx, 0x10
and ecx, 0xff
mov ebx, dword [ecx*4 + 0x46c318]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x10], edi
movzx edi, byte [esp + 0x25]
xor ebx, dword [edi*4 + 0x46c718]
shr edx, 0x18
xor ebx, dword [edx*4 + 0x46bf18]
mov edx, dword [esp + 0x10]
and ecx, 0xff
xor ebx, dword [ecx*4 + 0x46cb18]
mov ecx, dword [esp + 0x1c]
xor ebx, dword [eax + 4]
add eax, 4
sub ecx, 1
mov edi, ebx
mov ebx, dword [esp + 0x18]
add eax, 4
test ecx, ecx
mov dword [esp + 0x14], edi
mov dword [esp + 0x1c], ecx
jg 0x404b17
mov ecx, edx
shr ecx, 0x10
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x46c318]
movzx ebp, bh
xor ecx, dword [ebp*4 + 0x46c718]
mov ebp, edi
shr ebp, 0x18
xor ecx, dword [ebp*4 + 0x46bf18]
mov ebp, dword [esp + 0xc]
movzx edx, dh
shr edi, 0x10
and ebp, 0xff
xor ecx, dword [ebp*4 + 0x46cb18]
mov ebp, dword [esp + 0xc]
xor ecx, dword [eax]
and edi, 0xff
mov dword [esp + 0x24], ecx
mov ecx, dword [edi*4 + 0x46c318]
xor ecx, dword [edx*4 + 0x46c718]
mov edx, dword [esp + 0xc]
shr edx, 0x18
xor ecx, dword [edx*4 + 0x46bf18]
mov edx, ebx
and edx, 0xff
xor ecx, dword [edx*4 + 0x46cb18]
movzx edx, byte [esp + 0x15]
mov edi, dword [edx*4 + 0x46c718]
xor ecx, dword [eax + 4]
shr ebp, 0x10
and ebp, 0xff
xor edi, dword [ebp*4 + 0x46c318]
mov edx, ebx
shr edx, 0x18
xor edi, dword [edx*4 + 0x46bf18]
mov edx, dword [esp + 0x10]
and edx, 0xff
xor edi, dword [edx*4 + 0x46cb18]
movzx edx, byte [esp + 0xd]
add eax, 4
xor edi, dword [eax + 4]
add eax, 4
mov dword [esp + 0x1c], edi
shr ebx, 0x10
and ebx, 0xff
mov edi, dword [ebx*4 + 0x46c318]
xor edi, dword [edx*4 + 0x46c718]
mov edx, dword [esp + 0x10]
shr edx, 0x18
xor edi, dword [edx*4 + 0x46bf18]
mov edx, dword [esp + 0x14]
and edx, 0xff
xor edi, dword [edx*4 + 0x46cb18]
mov edx, dword [esp + 0x1c]
xor edi, dword [eax + 4]
shr edx, 0x10
add eax, 4
and edx, 0xff
movzx ebp, byte [edx + 0x46adf0]
mov dword [esp + 0x14], edi
shr edi, 0x18
xor edx, edx
mov dh, byte [edi + 0x46adf0]
add eax, 4
add eax, 4
xor ebp, edx
movzx edx, ch
movzx edx, byte [edx + 0x46adf0]
shl ebp, 8
xor ebp, edx
mov edx, dword [esp + 0x24]
mov edi, edx
and edi, 0xff
movzx edi, byte [edi + 0x46adf0]
shl ebp, 8
xor ebp, edi
xor ebp, dword [eax - 4]
mov edi, dword [esp + 0x14]
shr edi, 0x10
mov dword [esp + 0xc], ebp
and edi, 0xff
movzx edi, byte [edi + 0x46adf0]
xor ebx, ebx
shr edx, 0x18
mov bh, byte [edx + 0x46adf0]
movzx edx, byte [esp + 0x1d]
movzx edx, byte [edx + 0x46adf0]
xor edi, ebx
shl edi, 8
xor edi, edx
mov edx, ecx
and edx, 0xff
movzx edx, byte [edx + 0x46adf0]
shl edi, 8
xor edi, edx
xor edi, dword [eax]
mov edx, dword [esp + 0x24]
xor ebx, ebx
mov dword [esp + 0x18], edi
mov edi, ecx
shr edi, 0x18
mov bh, byte [edi + 0x46adf0]
movzx edi, byte [esp + 0x15]
movzx edi, byte [edi + 0x46adf0]
shr edx, 0x10
and edx, 0xff
movzx edx, byte [edx + 0x46adf0]
xor edx, ebx
shl edx, 8
xor edx, edi
mov edi, dword [esp + 0x1c]
mov ebx, edi
and ebx, 0xff
movzx ebx, byte [ebx + 0x46adf0]
shr ecx, 0x10
shr edi, 0x18
shl edx, 8
xor edx, ebx
xor edx, dword [eax + 4]
xor ebx, ebx
mov bh, byte [edi + 0x46adf0]
movzx edi, byte [esp + 0x25]
movzx edi, byte [edi + 0x46adf0]
and ecx, 0xff
movzx ecx, byte [ecx + 0x46adf0]
xor ecx, ebx
shl ecx, 8
xor ecx, edi
mov edi, dword [esp + 0x14]
add eax, 4
and edi, 0xff
movzx edi, byte [edi + 0x46adf0]
shl ecx, 8
xor ecx, edi
xor ecx, dword [eax + 4]
mov eax, ebp
mov ebx, eax
shr ebx, 8
mov byte [esi], al
mov byte [esi + 1], bl
mov ebx, eax
shr eax, 0x18
shr ebx, 0x10
mov byte [esi + 3], al
mov eax, dword [esp + 0x18]
mov byte [esi + 2], bl
mov ebx, eax
shr ebx, 8
mov byte [esi + 4], al
mov byte [esi + 5], bl
mov ebx, eax
shr eax, 0x18
mov byte [esi + 7], al
mov eax, edx
shr eax, 8
mov byte [esi + 9], al
shr ebx, 0x10
mov eax, edx
shr eax, 0x10
mov byte [esi + 6], bl
mov byte [esi + 8], dl
mov byte [esi + 0xa], al
shr edx, 0x18
mov byte [esi + 0xb], dl
mov edx, ecx
mov eax, ecx
pop edi
shr edx, 8
shr eax, 0x10
mov byte [esi + 0xc], cl
shr ecx, 0x18
pop ebp
mov byte [esi + 0xd], dl
mov byte [esi + 0xe], al
mov byte [esi + 0xf], cl
pop ebx
add esp, 0x14
ret