Function at 0x46d910
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov ecx, dword [esp + 0x14]
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov ecx, edx
shr ecx, 4
xor ecx, eax
and ecx, 0xf0f0f0f
xor eax, ecx
shl ecx, 4
xor edx, ecx
mov ecx, eax
shr ecx, 0x10
xor ecx, edx
and ecx, 0xffff
xor edx, ecx
shl ecx, 0x10
xor eax, ecx
mov ecx, edx
shr ecx, 2
xor ecx, eax
and ecx, 0x33333333
xor eax, ecx
shl ecx, 2
xor edx, ecx
mov ecx, eax
shr ecx, 8
xor ecx, edx
and ecx, 0xff00ff
xor edx, ecx
shl ecx, 8
xor eax, ecx
mov ecx, edx
shr ecx, 1
xor ecx, eax
and ecx, 0x55555555
xor eax, ecx
add ecx, ecx
xor edx, ecx
mov ecx, eax
shr ecx, 0x1d
lea ecx, [ecx + eax*8]
mov eax, edx
shr eax, 0x1d
lea eax, [eax + edx*8]
mov edx, dword [esp + 0x1c]
test edx, edx
mov esi, dword [esp + 0x18]
je 0x46dc2a
add esi, 8
mov dword [esp + 0x18], 4
lea ebx, [ebx]
mov ebx, dword [esi - 4]
xor ebx, ecx
mov edi, dword [esi - 8]
mov edx, ebx
shr ebx, 4
xor edi, ecx
mov ebp, edi
shr ebp, 0x10
and ebp, 0xfc
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x5d38c8]
xor ebx, dword [ebp + 0x5d36c8]
mov ebp, edi
and edi, 0xfc
sar ebp, 8
and ebp, 0xfc
xor ebx, dword [ebp + 0x5d34c8]
xor ebx, dword [edi + 0x5d32c8]
xor eax, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x5d37c8]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x5d39c8]
xor edi, ebp
mov ebx, edx
sar ebx, 8
and ebx, 0xfc
xor edi, dword [ebx + 0x5d35c8]
and edx, 0xfc
xor edi, dword [edx + 0x5d33c8]
mov ebx, dword [esi + 4]
xor eax, edi
mov edi, dword [esi]
xor ebx, eax
mov edx, ebx
shr ebx, 4
xor edi, eax
mov ebp, edi
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x5d38c8]
shr ebp, 0x10
and ebp, 0xfc
xor ebx, dword [ebp + 0x5d36c8]
mov ebp, edi
sar ebp, 8
and edi, 0xfc
and ebp, 0xfc
xor ebx, dword [ebp + 0x5d34c8]
xor ebx, dword [edi + 0x5d32c8]
xor ecx, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x5d37c8]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x5d39c8]
mov ebx, edx
sar ebx, 8
xor edi, ebp
and ebx, 0xfc
xor edi, dword [ebx + 0x5d35c8]
and edx, 0xfc
xor edi, dword [edx + 0x5d33c8]
mov ebx, dword [esi + 0xc]
xor ecx, edi
xor ebx, ecx
mov edi, dword [esi + 8]
mov edx, ebx
shr ebx, 4
xor edi, ecx
mov ebp, edi
shr ebp, 0x10
and ebp, 0xfc
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x5d38c8]
xor ebx, dword [ebp + 0x5d36c8]
mov ebp, edi
and edi, 0xfc
sar ebp, 8
and ebp, 0xfc
xor ebx, dword [ebp + 0x5d34c8]
xor ebx, dword [edi + 0x5d32c8]
xor eax, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x5d37c8]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x5d39c8]
xor edi, ebp
mov ebx, edx
sar ebx, 8
and ebx, 0xfc
xor edi, dword [ebx + 0x5d35c8]
and edx, 0xfc
xor edi, dword [edx + 0x5d33c8]
mov ebx, dword [esi + 0x14]
xor eax, edi
mov edi, dword [esi + 0x10]
xor ebx, eax
mov edx, ebx
shr ebx, 4
xor edi, eax
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x5d38c8]
mov ebp, edi
shr ebp, 0x10
and ebp, 0xfc
xor ebx, dword [ebp + 0x5d36c8]
mov ebp, edi
sar ebp, 8
and edi, 0xfc
and ebp, 0xfc
xor ebx, dword [ebp + 0x5d34c8]
xor ebx, dword [edi + 0x5d32c8]
xor ecx, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x5d37c8]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x5d39c8]
mov ebx, edx
sar ebx, 8
xor edi, ebp
and ebx, 0xfc
mov ebp, dword [ebx + 0x5d35c8]
and edx, 0xfc
xor edi, ebp
mov ebp, dword [edx + 0x5d33c8]
mov edx, dword [esp + 0x18]
xor edi, ebp
xor ecx, edi
add esi, 0x20
dec edx
mov dword [esp + 0x18], edx
jne 0x46d9b0
jmp 0x46deaa
add esi, 0x70
mov dword [esp + 0x18], 4
mov ebx, dword [esi + 0xc]
xor ebx, ecx
mov edi, dword [esi + 8]
mov edx, ebx
shr ebx, 4
xor edi, ecx
mov ebp, edi
shr ebp, 0x10
and ebp, 0xfc
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x5d38c8]
xor ebx, dword [ebp + 0x5d36c8]
mov ebp, edi
and edi, 0xfc
sar ebp, 8
and ebp, 0xfc
xor ebx, dword [ebp + 0x5d34c8]
xor ebx, dword [edi + 0x5d32c8]
xor eax, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x5d37c8]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x5d39c8]
xor edi, ebp
mov ebx, edx
sar ebx, 8
and ebx, 0xfc
xor edi, dword [ebx + 0x5d35c8]
and edx, 0xfc
xor edi, dword [edx + 0x5d33c8]
mov ebx, dword [esi + 4]
xor eax, edi
mov edi, dword [esi]
xor ebx, eax
mov edx, ebx
shr ebx, 4
xor edi, eax
mov ebp, edi
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x5d38c8]
shr ebp, 0x10
and ebp, 0xfc
xor ebx, dword [ebp + 0x5d36c8]
mov ebp, edi
sar ebp, 8
and edi, 0xfc
and ebp, 0xfc
xor ebx, dword [ebp + 0x5d34c8]
xor ebx, dword [edi + 0x5d32c8]
xor ecx, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x5d37c8]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x5d39c8]
mov ebx, edx
sar ebx, 8
xor edi, ebp
and ebx, 0xfc
xor edi, dword [ebx + 0x5d35c8]
and edx, 0xfc
xor edi, dword [edx + 0x5d33c8]
mov ebx, dword [esi - 4]
xor ecx, edi
xor ebx, ecx
mov edi, dword [esi - 8]
mov edx, ebx
shr ebx, 4
xor edi, ecx
mov ebp, edi
shr ebp, 0x10
and ebp, 0xfc
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x5d38c8]
xor ebx, dword [ebp + 0x5d36c8]
mov ebp, edi
and edi, 0xfc
sar ebp, 8
and ebp, 0xfc
xor ebx, dword [ebp + 0x5d34c8]
xor ebx, dword [edi + 0x5d32c8]
xor eax, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x5d37c8]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x5d39c8]
xor edi, ebp
mov ebx, edx
sar ebx, 8
and ebx, 0xfc
xor edi, dword [ebx + 0x5d35c8]
and edx, 0xfc
xor edi, dword [edx + 0x5d33c8]
mov ebx, dword [esi - 0xc]
xor eax, edi
mov edi, dword [esi - 0x10]
xor ebx, eax
mov edx, ebx
shr ebx, 4
xor edi, eax
shl edx, 0x1c
add edx, ebx
mov ebx, edi
shr ebx, 0x18
and ebx, 0xfc
mov ebx, dword [ebx + 0x5d38c8]
mov ebp, edi
shr ebp, 0x10
and ebp, 0xfc
xor ebx, dword [ebp + 0x5d36c8]
mov ebp, edi
sar ebp, 8
and edi, 0xfc
and ebp, 0xfc
xor ebx, dword [ebp + 0x5d34c8]
xor ebx, dword [edi + 0x5d32c8]
xor ecx, ebx
mov ebx, edx
shr ebx, 0x10
and ebx, 0xfc
mov ebp, dword [ebx + 0x5d37c8]
mov edi, edx
shr edi, 0x18
and edi, 0xfc
mov edi, dword [edi + 0x5d39c8]
mov ebx, edx
sar ebx, 8
xor edi, ebp
and ebx, 0xfc
mov ebp, dword [ebx + 0x5d35c8]
and edx, 0xfc
xor edi, ebp
mov ebp, dword [edx + 0x5d33c8]
mov edx, dword [esp + 0x18]
xor edi, ebp
xor ecx, edi
sub esi, 0x20
dec edx
mov dword [esp + 0x18], edx
jne 0x46dc35
mov edx, eax
shr eax, 3
shl edx, 0x1d
add edx, eax
mov eax, ecx
shr ecx, 3
shl eax, 0x1d
add eax, ecx
mov ecx, eax
shr ecx, 1
xor ecx, edx
and ecx, 0x55555555
xor edx, ecx
add ecx, ecx
xor eax, ecx
mov ecx, edx
shr ecx, 8
xor ecx, eax
and ecx, 0xff00ff
xor eax, ecx
shl ecx, 8
xor edx, ecx
mov ecx, eax
shr ecx, 2
xor ecx, edx
and ecx, 0x33333333
xor edx, ecx
shl ecx, 2
xor eax, ecx
mov ecx, edx
shr ecx, 0x10
xor ecx, eax
and ecx, 0xffff
xor eax, ecx
shl ecx, 0x10
xor edx, ecx
mov ecx, eax
shr ecx, 4
xor ecx, edx
and ecx, 0xf0f0f0f
mov esi, ecx
xor esi, edx
mov edx, dword [esp + 0x14]
pop edi
mov dword [edx], esi
pop esi
shl ecx, 4
xor ecx, eax
pop ebp
mov dword [edx + 4], ecx
pop ebx
ret