Function at 0x46df30
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [ecx + 4]
mov eax, dword [ecx]
mov ecx, eax
shr ecx, 0x1d
lea ecx, [ecx + eax*8]
mov eax, edx
push ebx
shr eax, 0x1d
push ebp
lea eax, [eax + edx*8]
mov edx, dword [esp + 0x14]
test edx, edx
push esi
mov esi, dword [esp + 0x14]
push edi
je 0x46e1e2
add esi, 8
mov dword [esp + 0x18], 4
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 0x46df68
jmp 0x46e465
add esi, 0x70
mov dword [esp + 0x18], 4
lea ecx, [ecx]
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 0x46e1f0
mov edx, eax
shl edx, 0x1d
shr eax, 3
add edx, eax
mov eax, dword [esp + 0x14]
mov dword [eax], edx
pop edi
mov edx, ecx
pop esi
shl edx, 0x1d
shr ecx, 3
add edx, ecx
pop ebp
mov dword [eax + 4], edx
pop ebx
ret