Function at 0x4658f0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
push esi
mov ebx, dword [esp + 0x20]
push edi
push ebp
lea eax, [ebx + 0x48]
lea edi, [ebx + 0x448]
lea ecx, [ebx + 0x848]
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], edi
lea eax, [ebx + 0xc48]
mov dword [esp + 0x1c], ecx
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], eax
xor eax, eax
mov ax, word [0x47e638]
and eax, 0xffffff00
cmp eax, 0x2300
je 0x465966
mov edx, esi
mov ecx, 2
mov eax, dword [edx]
add edx, 4
mov edi, eax
shl edi, 0x10
shr eax, 0x10
or edi, eax
mov eax, edi
shl eax, 8
shr edi, 8
xor edi, eax
and edi, 0xff00ff
xor edi, eax
dec ecx
mov dword [edx - 4], edi
jne 0x46593f
mov edx, dword [esi]
mov edi, dword [esp + 0x14]
xor edx, dword [ebx]
mov eax, edx
and eax, 0xff0000
mov dword [esp + 0x10], 0
shr eax, 0x10
mov byte [esp + 0x10], dh
mov ebp, dword [esp + 0x1c]
mov ecx, dword [edi + eax*4]
mov edi, edx
mov eax, dword [esp + 0x18]
shr edi, 0x18
add ecx, dword [eax + edi*4]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x20]
xor ecx, dword [ebp + edi*4]
mov edi, edx
and edi, 0xff
add ecx, dword [eax + edi*4]
mov edi, dword [esp + 0x14]
xor ecx, dword [ebx + 4]
xor ecx, dword [esi + 4]
mov eax, ecx
mov ebp, ecx
shr ebp, 0x18
and eax, 0xff0000
mov dword [esp + 0x10], 0
shr eax, 0x10
mov byte [esp + 0x10], ch
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
add edi, dword [eax + ebp*4]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
xor edi, dword [eax + ebp*4]
mov ebp, ecx
and ebp, 0xff
mov eax, dword [esp + 0x20]
add edi, dword [eax + ebp*4]
xor edx, edi
mov edi, dword [esp + 0x14]
xor edx, dword [ebx + 8]
mov eax, edx
mov ebp, edx
shr ebp, 0x18
and eax, 0xff0000
mov dword [esp + 0x10], 0
shr eax, 0x10
mov byte [esp + 0x10], dh
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
add edi, dword [eax + ebp*4]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
xor edi, dword [eax + ebp*4]
mov ebp, edx
and ebp, 0xff
mov eax, dword [esp + 0x20]
add edi, dword [eax + ebp*4]
xor ecx, edi
xor ecx, dword [ebx + 0xc]
mov edi, dword [esp + 0x14]
mov eax, ecx
mov ebp, ecx
shr ebp, 0x18
and eax, 0xff0000
mov dword [esp + 0x10], 0
shr eax, 0x10
mov byte [esp + 0x10], ch
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
add edi, dword [eax + ebp*4]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
xor edi, dword [eax + ebp*4]
mov ebp, ecx
and ebp, 0xff
mov eax, dword [esp + 0x20]
add edi, dword [eax + ebp*4]
xor edx, edi
mov edi, dword [esp + 0x14]
xor edx, dword [ebx + 0x10]
mov eax, edx
mov ebp, edx
shr ebp, 0x18
and eax, 0xff0000
mov dword [esp + 0x10], 0
shr eax, 0x10
mov byte [esp + 0x10], dh
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
add edi, dword [eax + ebp*4]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
xor edi, dword [eax + ebp*4]
mov ebp, edx
and ebp, 0xff
mov eax, dword [esp + 0x20]
add edi, dword [eax + ebp*4]
xor ecx, edi
mov edi, dword [esp + 0x14]
xor ecx, dword [ebx + 0x14]
mov eax, ecx
mov ebp, ecx
shr ebp, 0x18
and eax, 0xff0000
mov dword [esp + 0x10], 0
shr eax, 0x10
mov byte [esp + 0x10], ch
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
add edi, dword [eax + ebp*4]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
xor edi, dword [eax + ebp*4]
mov ebp, ecx
and ebp, 0xff
mov eax, dword [esp + 0x20]
add edi, dword [eax + ebp*4]
xor edx, edi
xor edx, dword [ebx + 0x18]
mov eax, edx
mov edi, dword [esp + 0x14]
and eax, 0xff0000
mov ebp, edx
mov dword [esp + 0x10], 0
shr eax, 0x10
mov byte [esp + 0x10], dh
shr ebp, 0x18
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
add edi, dword [eax + ebp*4]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
xor edi, dword [eax + ebp*4]
mov ebp, edx
and ebp, 0xff
mov eax, dword [esp + 0x20]
add edi, dword [eax + ebp*4]
xor ecx, edi
mov edi, dword [esp + 0x14]
xor ecx, dword [ebx + 0x1c]
mov eax, ecx
mov ebp, ecx
shr ebp, 0x18
and eax, 0xff0000
mov dword [esp + 0x10], 0
shr eax, 0x10
mov byte [esp + 0x10], ch
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
add edi, dword [eax + ebp*4]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
xor edi, dword [eax + ebp*4]
mov ebp, ecx
and ebp, 0xff
mov eax, dword [esp + 0x20]
add edi, dword [eax + ebp*4]
xor edx, edi
mov edi, dword [esp + 0x14]
xor edx, dword [ebx + 0x20]
mov eax, edx
mov ebp, edx
shr ebp, 0x18
and eax, 0xff0000
mov dword [esp + 0x10], 0
shr eax, 0x10
mov byte [esp + 0x10], dh
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
add edi, dword [eax + ebp*4]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
xor edi, dword [eax + ebp*4]
mov ebp, edx
and ebp, 0xff
mov eax, dword [esp + 0x20]
add edi, dword [eax + ebp*4]
xor ecx, edi
xor ecx, dword [ebx + 0x24]
mov eax, ecx
and eax, 0xff0000
mov edi, dword [esp + 0x14]
shr eax, 0x10
mov ebp, ecx
mov dword [esp + 0x10], 0
shr ebp, 0x18
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x10], ch
add edi, dword [eax + ebp*4]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
xor edi, dword [eax + ebp*4]
mov ebp, ecx
and ebp, 0xff
mov eax, dword [esp + 0x20]
add edi, dword [eax + ebp*4]
xor edx, edi
mov edi, dword [esp + 0x14]
xor edx, dword [ebx + 0x28]
mov eax, edx
mov ebp, edx
shr ebp, 0x18
and eax, 0xff0000
mov dword [esp + 0x10], 0
shr eax, 0x10
mov byte [esp + 0x10], dh
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
add edi, dword [eax + ebp*4]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
xor edi, dword [eax + ebp*4]
mov ebp, edx
and ebp, 0xff
mov eax, dword [esp + 0x20]
add edi, dword [eax + ebp*4]
xor ecx, edi
mov edi, dword [esp + 0x14]
xor ecx, dword [ebx + 0x2c]
mov eax, ecx
mov ebp, ecx
shr ebp, 0x18
and eax, 0xff0000
mov dword [esp + 0x10], 0
shr eax, 0x10
mov byte [esp + 0x10], ch
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
add edi, dword [eax + ebp*4]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
xor edi, dword [eax + ebp*4]
mov ebp, ecx
and ebp, 0xff
mov eax, dword [esp + 0x20]
add edi, dword [eax + ebp*4]
xor edx, edi
xor edx, dword [ebx + 0x30]
mov eax, edx
and eax, 0xff0000
shr eax, 0x10
mov edi, dword [esp + 0x14]
mov dword [esp + 0x10], 0
mov edi, dword [edi + eax*4]
mov ebp, edx
shr ebp, 0x18
mov eax, dword [esp + 0x18]
mov byte [esp + 0x10], dh
add edi, dword [eax + ebp*4]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
xor edi, dword [eax + ebp*4]
mov ebp, edx
and ebp, 0xff
mov eax, dword [esp + 0x20]
add edi, dword [eax + ebp*4]
xor ecx, edi
mov edi, dword [esp + 0x14]
xor ecx, dword [ebx + 0x34]
mov eax, ecx
mov ebp, ecx
shr ebp, 0x18
and eax, 0xff0000
mov dword [esp + 0x10], 0
shr eax, 0x10
mov byte [esp + 0x10], ch
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
add edi, dword [eax + ebp*4]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
xor edi, dword [eax + ebp*4]
mov ebp, ecx
and ebp, 0xff
mov eax, dword [esp + 0x20]
add edi, dword [eax + ebp*4]
xor edx, edi
mov edi, dword [esp + 0x14]
xor edx, dword [ebx + 0x38]
mov eax, edx
mov ebp, edx
shr ebp, 0x18
and eax, 0xff0000
mov dword [esp + 0x10], 0
shr eax, 0x10
mov byte [esp + 0x10], dh
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
add edi, dword [eax + ebp*4]
mov ebp, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
xor edi, dword [eax + ebp*4]
mov ebp, edx
and ebp, 0xff
mov eax, dword [esp + 0x20]
add edi, dword [eax + ebp*4]
xor ecx, edi
xor ecx, dword [ebx + 0x3c]
mov eax, ecx
and eax, 0xff0000
shr eax, 0x10
mov edi, dword [esp + 0x14]
mov ebp, ecx
mov dword [esp + 0x10], 0
shr ebp, 0x18
mov edi, dword [edi + eax*4]
mov eax, dword [esp + 0x18]
mov byte [esp + 0x10], ch
add edi, dword [eax + ebp*4]
mov eax, dword [esp + 0x1c]
mov ebp, dword [esp + 0x10]
xor edi, dword [eax + ebp*4]
mov ebp, ecx
and ebp, 0xff
mov eax, dword [esp + 0x20]
xor ecx, dword [ebx + 0x44]
add edi, dword [eax + ebp*4]
xor edx, edi
xor eax, eax
xor edx, dword [ebx + 0x40]
mov dword [esi], ecx
mov dword [esi + 4], edx
mov ax, word [0x47e638]
and eax, 0xffffff00
cmp eax, 0x2300
je 0x465e34
mov edx, 2
mov eax, dword [esi]
add esi, 4
mov ecx, eax
shl ecx, 0x10
shr eax, 0x10
or ecx, eax
mov eax, ecx
shl eax, 8
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor ecx, eax
dec edx
mov dword [esi - 4], ecx
jne 0x465e0d
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x14
ret