Function at 0x46da46
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov al, byte [0x5283a4]
sub esp, 0x84
push ebx
push esi
push edi
mov edi, ecx
test al, al
jne 0x46cee1
call fcn.00473fe0
mov al, byte [0x5283a4]
cmp byte [0x5283ac], 0
mov ecx, dword [edi + 0x18]
mov dword [ebp - 0x80], ecx
lea esi, [ecx + 0x10]
je 0x46cf0f
push esi
lea eax, [ecx + 0x30]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00475050
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ebx, dword [edi + 0x14]
mov dword [ebp - 0x38], esi
test al, al
jne 0x46cf1e
call fcn.00473fe0
movzx eax, byte [0x5283a5]
cmp ebx, 0x10000
sbb ecx, ecx
and ecx, 0xfffffffe
add ecx, 2
add eax, ecx
cmp eax, 3
ja case.default.0x46cf3e
jmp dword [eax*4 + 0x46de20]
mov edx, dword [esi + 4]
mov eax, dword [edi + 0x18]
mov ecx, dword [esi]
add eax, 0x30
mov edi, dword [esi + 8]
mov ebx, dword [esi + 0xc]
mov dword [ebp - 4], edx
lea edx, [eax + 0x700]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x68], edx
lea esi, [eax + 0x500]
lea edx, [eax + 0x600]
mov dword [ebp - 0x60], esi
mov dword [ebp - 0x64], edx
lea esi, [eax + 0x400]
lea edx, [eax + 0x200]
mov dword [ebp - 0x78], esi
mov dword [ebp - 0x84], edx
lea esi, [eax + 0x300]
lea edx, [eax + 0x708]
mov dword [ebp - 0x7c], esi
mov dword [ebp - 0x38], edx
lea esi, [eax + 0x508]
lea edx, [eax + 0x608]
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x5c], edx
lea esi, [eax + 0x108]
lea edx, [eax + 0x408]
mov dword [ebp - 0x4c], esi
mov esi, dword [ebp - 4]
mov dword [ebp - 0x54], edx
lea edx, [eax + 0x308]
mov dword [ebp - 0x50], edx
lea edx, [eax + 0x208]
add eax, 8
mov dword [ebp - 0x48], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 8]
xor edi, dword [eax + 8]
sub edx, 0x10
xor ebx, dword [eax + 0xc]
xor esi, dword [eax + 4]
xor ecx, dword [eax]
add eax, 0x10
mov dword [ebp - 0x74], eax
mov eax, ebx
mov dword [ebp - 0x3c], edi
shr eax, 0x18
and eax, 0xf0
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x34], eax
mov ebx, esi
mov eax, edi
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x2c]
mov edi, ecx
shr edi, 0x18
and edi, 0xf0
shr eax, 0x18
mov dword [ebp - 0xc], edi
and eax, 0xf0
mov edi, dword [ebp - 0x14]
shr ebx, 0x18
mov dword [ebp - 0x24], ecx
and ebx, 0xf0
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x24]
shr esi, 0x14
and esi, 0xf0
mov dword [ebp - 0x40], ebx
shr eax, 0x14
mov dword [ebp - 0x70], edx
and eax, 0xf0
mov edx, dword [ebp - 0x3c]
mov dword [ebp + 0xc], esi
lea esi, [edi + 0x100]
shr ecx, 0x14
mov ebx, dword [eax + edi]
and ecx, 0xf0
mov edi, dword [eax + edi + 4]
shr edx, 0x14
and edx, 0xf0
xor ebx, dword [esi + ecx]
xor edi, dword [esi + ecx + 4]
mov esi, dword [ebp - 0x84]
mov dword [ebp - 0x10], edx
xor ebx, dword [esi + edx]
xor edi, dword [esi + edx + 4]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 0x7c]
xor edi, dword [edx + esi + 4]
xor ebx, dword [edx + esi]
mov edx, dword [ebp - 0x78]
mov dword [ebp + 8], edi
mov edi, dword [ebp - 0xc]
xor ebx, dword [edx + edi]
mov dword [ebp - 0x30], ebx
mov ebx, dword [ebp + 8]
xor ebx, dword [edx + edi + 4]
mov edx, dword [ebp - 0x60]
mov edi, dword [ebp - 0x30]
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 0x40]
mov esi, dword [ebp + 8]
xor edi, dword [edx + ebx]
xor esi, dword [edx + ebx + 4]
mov ebx, dword [ebp - 8]
mov edx, dword [ebp - 0x64]
xor esi, dword [edx + ebx + 4]
xor edi, dword [edx + ebx]
mov ebx, dword [ebp - 0x34]
mov dword [ebp + 8], esi
mov esi, dword [ebp - 0x68]
xor edi, dword [esi + ebx]
mov dword [ebp - 0x30], edi
mov edi, dword [ebp + 8]
xor edi, dword [esi + ebx + 4]
mov dword [ebp + 8], edi
mov ebx, dword [ebp - 0x44]
mov edx, dword [ebp - 0x4c]
mov esi, dword [ebp + 0xc]
mov edi, dword [ebx + eax]
mov eax, dword [ebx + eax + 4]
xor eax, dword [edx + ecx + 4]
xor edi, dword [edx + ecx]
mov edx, dword [ebp - 0x10]
mov ecx, edi
mov ebx, dword [ebp - 0x48]
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0xc]
xor eax, dword [ebx + edx + 4]
xor ecx, dword [ebx + edx]
mov edx, dword [ebp - 0x50]
mov ebx, dword [ebp - 0x40]
xor eax, dword [edx + esi + 4]
xor ecx, dword [edx + esi]
mov edx, dword [ebp - 0x54]
mov esi, dword [ebp - 0x3c]
shr esi, 0xc
and esi, 0xf0
xor eax, dword [edx + edi + 4]
xor ecx, dword [edx + edi]
mov edx, dword [ebp - 0x58]
mov edi, dword [ebp - 0x2c]
shr edi, 0xc
and edi, 0xf0
mov dword [ebp - 0x28], esi
xor eax, dword [edx + ebx + 4]
xor ecx, dword [edx + ebx]
mov ebx, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0x6c]
xor ecx, dword [ebx + eax]
xor edx, dword [ebx + eax + 4]
mov eax, dword [ebp - 0x34]
mov ebx, dword [ebp - 0x38]
mov dword [ebp - 0x34], edi
xor ecx, dword [ebx + eax]
xor edx, dword [ebx + eax + 4]
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x24]
shr eax, 0x10
and eax, 0xf0
shr ebx, 0x10
mov dword [ebp - 0x10], eax
and ebx, 0xf0
mov eax, dword [ebp - 0x3c]
shr eax, 0x10
and eax, 0xf0
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x24]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0xc], ebx
mov ebx, dword [ebp - 0x14]
shr eax, 0x10
lea edi, [ebx + 0x100]
mov dword [ebp - 0x6c], edx
and eax, 0xf0
mov edx, dword [ebp - 4]
shr ecx, 0xc
and ecx, 0xf0
shr edx, 0xc
mov dword [ebp - 0x1c], eax
and edx, 0xf0
mov eax, dword [ecx + ebx]
mov ebx, dword [ecx + ebx + 4]
xor eax, dword [edx + edi]
xor ebx, dword [edx + edi + 4]
mov edi, dword [ebp - 0x84]
xor eax, dword [esi + edi]
xor ebx, dword [esi + edi + 4]
mov edi, dword [ebp - 0x34]
mov esi, dword [ebp - 0x7c]
xor eax, dword [edi + esi]
xor ebx, dword [edi + esi + 4]
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp - 0xc]
mov esi, dword [ebp - 0x78]
xor eax, dword [ebx + esi]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
xor eax, dword [ebx + esi + 4]
mov esi, dword [ebp - 0x60]
mov ebx, dword [ebp - 8]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp + 0xc]
xor ebx, dword [eax + esi]
xor edi, dword [eax + esi + 4]
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x64]
xor ebx, dword [eax + esi]
xor edi, dword [eax + esi + 4]
mov eax, dword [ebp - 0x10]
mov esi, dword [ebp - 0x4c]
mov dword [ebp + 0xc], edi
mov edi, dword [ebp - 0x68]
xor ebx, dword [eax + edi]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
xor ebx, dword [eax + edi + 4]
mov eax, dword [ebp + 8]
mov edi, dword [ebp - 0x34]
mov dword [ebp + 0xc], ebx
mov ebx, dword [ebp - 0x30]
shld eax, ebx, 8
xor dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x44]
shl ebx, 8
xor dword [ebp - 8], ebx
mov ebx, dword [ecx + eax]
mov eax, dword [ecx + eax + 4]
xor eax, dword [edx + esi + 4]
xor ebx, dword [edx + esi]
mov esi, dword [ebp - 0x28]
mov ecx, ebx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x40], ebx
mov ebx, dword [ebp - 0xc]
xor ecx, dword [esi + eax]
xor edx, dword [esi + eax + 4]
mov eax, dword [ebp - 0x50]
mov esi, dword [ebp - 0x58]
xor ecx, dword [edi + eax]
xor edx, dword [edi + eax + 4]
mov eax, dword [ebp - 0x54]
mov edi, dword [ebp - 0x18]
xor ecx, dword [ebx + eax]
xor edx, dword [ebx + eax + 4]
mov eax, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x5c]
xor ecx, dword [eax + esi]
xor edx, dword [eax + esi + 4]
mov eax, dword [ebp - 0x20]
xor ecx, dword [eax + ebx]
xor edx, dword [eax + ebx + 4]
mov eax, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x38]
xor ecx, dword [eax + ebx]
xor edx, dword [eax + ebx + 4]
mov eax, dword [ebp + 8]
xor edx, 0
shr eax, 0x18
xor ecx, eax
mov eax, dword [ebp - 0x6c]
shld eax, edi, 8
xor edx, eax
shl edi, 8
mov eax, dword [ebp - 0x2c]
xor ecx, edi
shr eax, 8
mov dword [ebp - 0x40], ecx
and eax, 0xf0
mov ecx, dword [ebp - 0x14]
add eax, ecx
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x3c]
shr eax, 8
and eax, 0xf0
mov ebx, dword [ebp - 4]
add eax, ecx
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x24]
mov esi, dword [ebp - 0x3c]
mov edx, dword [ebp - 4]
shr eax, 8
and eax, 0xf0
shr ebx, 8
add eax, ecx
shr edi, 4
mov dword [ebp - 0x1c], eax
and ebx, 0xf0
mov eax, dword [ebp - 0x24]
add ebx, ecx
shr eax, 4
and edi, 0xf0
add edi, ecx
shr esi, 4
and eax, 0xf0
shr edx, 4
and esi, 0xf0
mov dword [ebp - 0x28], ebx
add esi, ecx
and edx, 0xf0
add edx, ecx
add ecx, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x34], ecx
mov ecx, dword [eax + 0x700]
mov eax, dword [eax + 0x704]
xor eax, dword [ebx + 0x504]
xor ecx, dword [ebx + 0x500]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp + 8]
xor ecx, dword [eax + 0x600]
xor ebx, dword [eax + 0x604]
mov eax, dword [ebp - 0x1c]
mov dword [ebp + 8], ebx
xor ecx, dword [eax + 0x400]
mov dword [ebp - 0x18], ecx
mov ecx, ebx
xor ecx, dword [eax + 0x404]
xor ecx, dword [edi + 0x304]
xor ecx, dword [esi + 0x204]
mov eax, dword [ebp - 0x18]
xor eax, dword [edi + 0x300]
xor eax, dword [esi + 0x200]
xor eax, dword [edx + 0x100]
xor ecx, dword [edx + 0x104]
mov ebx, dword [ebp - 0x28]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 8]
shld eax, ecx, 8
xor dword [ebp + 8], eax
shl ecx, 8
xor dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x18]
xor eax, dword [ecx]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
xor eax, dword [ecx + 4]
mov dword [ebp + 8], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x708]
xor ecx, dword [ebx + 0x508]
mov dword [ebp - 8], ecx
mov ecx, dword [eax + 0x70c]
mov eax, dword [ebp - 0x20]
xor ecx, dword [ebx + 0x50c]
mov ebx, dword [ebp - 8]
xor ebx, dword [eax + 0x608]
xor ecx, dword [eax + 0x60c]
mov eax, dword [ebp - 0x1c]
xor ecx, dword [eax + 0x40c]
xor ecx, dword [edi + 0x30c]
xor ebx, dword [eax + 0x408]
xor ecx, dword [esi + 0x20c]
xor ecx, dword [edx + 0x10c]
xor ebx, dword [edi + 0x308]
xor ebx, dword [esi + 0x208]
xor ebx, dword [edx + 0x108]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0xc]
shr eax, 0x18
mov esi, dword [ebp - 0x2c]
xor ebx, dword [ecx + 8]
xor edx, dword [ecx + 0xc]
xor ebx, eax
mov eax, dword [ebp - 0x30]
xor edx, 0
mov edi, dword [ebp - 0x3c]
mov ecx, dword [ebp - 4]
and edi, 0xf
mov dword [ebp - 8], ebx
and ecx, 0xf
mov ebx, dword [ebp - 0x40]
shld eax, ebx, 8
mov dword [ebp - 0x1c], ecx
add ecx, 0x10
xor edx, eax
shl ebx, 8
mov eax, dword [ebp - 0x24]
add ecx, ecx
xor dword [ebp - 8], ebx
and eax, 0xf
shl eax, 4
mov ebx, esi
mov dword [ebp - 0xc], edx
and esi, 0xf0
mov edx, dword [ebp - 0x14]
and ebx, 0xf
add eax, edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x28], eax
add esi, edx
mov eax, dword [ebp - 0x3c]
and eax, 0xf0
and dword [ebp - 4], 0xf0
add edx, eax
mov dword [ebp - 0x10], esi
mov esi, dword [ebp - 0x14]
lea eax, [edi + 0x20]
mov edi, dword [ebp - 0x14]
add eax, eax
and dword [ebp - 0x24], 0xf0
mov edi, dword [edi + ecx*8]
xor edi, dword [esi + eax*8]
mov dword [ebp + 0xc], edi
mov edi, dword [esi + ecx*8 + 4]
mov ecx, esi
xor edi, dword [ecx + eax*8 + 4]
lea eax, [ebx + 0x30]
mov ecx, dword [ebp + 0xc]
add eax, eax
xor ecx, dword [esi + eax*8]
xor edi, dword [esi + eax*8 + 4]
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
xor ecx, dword [esi + 0x700]
xor edi, dword [esi + 0x704]
mov esi, dword [ebp - 4]
xor ecx, dword [edx + 0x600]
xor edi, dword [edx + 0x604]
xor ecx, dword [esi + eax + 0x500]
xor edi, dword [esi + eax + 0x504]
mov esi, dword [ebp - 0x24]
xor ecx, dword [esi + eax + 0x400]
xor edi, dword [esi + eax + 0x404]
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x18]
add ebx, ebx
shld eax, ecx, 8
xor edi, eax
shl ecx, 8
xor dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp + 0xc]
xor eax, dword [ecx]
xor edi, dword [ecx + 4]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x28], edi
mov edi, dword [ebp - 0x20]
add edi, edi
mov esi, dword [eax + ebx*8 + 0x308]
xor esi, dword [eax + edi*8 + 0x208]
mov dword [ebp - 0x3c], esi
mov esi, dword [eax + ebx*8 + 0x30c]
mov ebx, eax
mov eax, dword [ebp - 0x1c]
add eax, eax
xor esi, dword [ebx + edi*8 + 0x20c]
mov edi, dword [ebp - 0x3c]
xor esi, dword [ebx + eax*8 + 0x10c]
xor edi, dword [ebx + eax*8 + 0x108]
mov dword [ebp - 0x2c], esi
mov esi, dword [ebp - 0x10]
mov eax, dword [ebp - 0x2c]
xor eax, dword [esi + 0x70c]
xor eax, dword [edx + 0x60c]
xor edi, dword [esi + 0x708]
xor edi, dword [edx + 0x608]
mov edx, dword [ebp - 4]
mov esi, dword [ebp - 0xc]
xor eax, dword [edx + ebx + 0x50c]
xor edi, dword [edx + ebx + 0x508]
mov edx, dword [ebp - 0x24]
xor eax, dword [edx + ebx + 0x40c]
xor eax, dword [ecx + 0xc]
xor edi, dword [edx + ebx + 0x408]
xor edi, dword [ecx + 8]
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 0x2c]
shr eax, 0x18
xor ebx, 0
xor edi, eax
mov eax, esi
shld eax, ecx, 8
shr esi, 0x18
xor ebx, eax
shl ecx, 8
mov eax, dword [ebp - 0x6c]
xor edi, ecx
shr eax, 0x18
movzx eax, word [eax*2 + 0x528188]
cdq
mov ecx, eax
mov eax, edx
shld eax, ecx, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x30]
shr eax, 0x18
shl ecx, 8
movzx eax, word [eax*2 + 0x528188]
cdq
xor ecx, eax
mov eax, dword [ebp - 4]
xor eax, edx
shld eax, ecx, 8
mov dword [ebp - 4], eax
movzx eax, word [esi*2 + 0x528188]
mov esi, dword [ebp - 4]
shl ecx, 8
cdq
xor ecx, eax
xor esi, edx
xor ecx, dword [ebp + 0xc]
xor esi, dword [ebp - 0x28]
mov edx, dword [ebp - 0x70]
mov eax, dword [ebp - 0x74]
cmp edx, 0x10
jae 0x46cfe3
mov eax, dword [ebp - 0x80]
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], esi
mov dword [eax + 0x18], edi
mov dword [eax + 0x1c], ebx
mov eax, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esi + 4]
mov eax, dword [edi + 0x18]
mov ecx, dword [esi]
add eax, 0x30
mov ebx, dword [esi + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], edx
mov edx, dword [esi + 0xc]
mov esi, dword [ebp + 8]
jmp 0x46d6e3
mov ecx, dword [ebp + 0xc]
xor ecx, dword [esi]
sub edi, 0x10
mov dword [ebp + 0xc], ecx
xor ebx, dword [esi + 8]
xor edx, dword [esi + 0xc]
mov ecx, dword [ebp - 4]
xor ecx, dword [esi + 4]
add esi, 0x10
mov dword [ebp - 4], ecx
shr ecx, 0x14
and ecx, 0xff0
mov dword [ebp - 0x60], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x4c], ecx
mov ecx, esi
shr ecx, 0x14
and ecx, 0xff0
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x48], ecx
mov ecx, edx
shr ecx, 4
and ecx, 0xff0
mov dword [ebp - 0x64], edi
mov dword [ebp - 0x1c], ecx
mov ecx, ebx
shr ecx, 4
and ecx, 0xff0
mov edi, dword [ebp - 0xc]
mov dword [ebp - 0x58], ecx
mov ecx, dword [ebp - 4]
shr ecx, 0xc
and ecx, 0xff0
movzx edx, dl
mov dword [ebp - 0x10], ecx
mov ecx, esi
shr ecx, 0xc
and ecx, 0xff0
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x38], ecx
add edx, 0xc00
movzx ecx, bl
add edx, edx
mov dword [ebp - 0x74], ecx
mov ecx, dword [ebp - 4]
shr ecx, 4
and ecx, 0xff0
mov dword [ebp + 8], ebx
mov dword [ebp - 0x20], ecx
mov ecx, esi
shr ecx, 4
and ecx, 0xff0
mov dword [ebp - 0x5c], ecx
mov ecx, edi
shr ecx, 0x14
and ecx, 0xff0
shr edi, 0xc
mov dword [ebp - 0x50], ecx
mov ecx, ebx
shr ecx, 0x14
mov ebx, edi
mov edi, dword [ebp + 8]
and ecx, 0xff0
mov dword [ebp - 0x54], ecx
and ebx, 0xff0
mov ecx, dword [ebp - 4]
movzx esi, cl
mov ecx, dword [ebp + 0xc]
movzx ecx, cl
shl ecx, 4
add ecx, eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x44], ecx
lea ecx, [esi + 0x400]
mov esi, dword [eax + edx*8]
add ecx, ecx
mov edx, dword [eax + edx*8 + 4]
shr edi, 0xc
and edi, 0xff0
mov dword [ebp - 0x68], ebx
xor esi, dword [eax + ecx*8]
xor edx, dword [eax + ecx*8 + 4]
mov dword [ebp - 4], edx
mov edx, dword [ebp - 0x74]
lea ecx, [edx + 0x800]
add edx, edx
add ecx, ecx
xor esi, dword [eax + ecx*8]
mov dword [ebp + 0xc], esi
mov esi, dword [ebp - 4]
xor esi, dword [eax + ecx*8 + 4]
xor esi, dword [edi + eax + 0xa004]
mov ecx, dword [ebp + 0xc]
xor ecx, dword [edi + eax + 0xa000]
xor ecx, dword [ebx + eax + 0xe000]
mov dword [ebp + 0xc], ecx
mov ecx, esi
xor ecx, dword [ebx + eax + 0xe004]
mov dword [ebp - 4], esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x5c]
mov ebx, dword [ebp - 4]
xor esi, dword [ecx + eax + 0x1000]
xor ebx, dword [ecx + eax + 0x1004]
mov ecx, dword [ebp - 0x20]
xor esi, dword [ecx + eax + 0x5000]
xor ebx, dword [ecx + eax + 0x5004]
mov ecx, dword [ebp - 0x38]
xor esi, dword [eax + ecx + 0x2000]
xor ebx, dword [eax + ecx + 0x2004]
mov ecx, dword [ebp - 0x10]
xor esi, dword [eax + ecx + 0x6000]
xor ebx, dword [eax + ecx + 0x6004]
mov ecx, dword [ebp - 0x58]
xor esi, dword [eax + ecx + 0x9000]
xor ebx, dword [eax + ecx + 0x9004]
mov ecx, dword [ebp - 0x1c]
xor esi, dword [eax + ecx + 0xd000]
xor ebx, dword [eax + ecx + 0xd004]
mov ecx, dword [ebp - 0x48]
xor esi, dword [eax + ecx + 0x3000]
xor ebx, dword [eax + ecx + 0x3004]
mov ecx, dword [ebp - 0x4c]
xor esi, dword [eax + ecx + 0x7000]
xor ebx, dword [eax + ecx + 0x7004]
mov ecx, dword [ebp - 0x54]
xor esi, dword [ecx + eax + 0xb000]
xor ebx, dword [ecx + eax + 0xb004]
mov ecx, dword [ebp - 0x50]
xor esi, dword [ecx + eax + 0xf000]
xor ebx, dword [ecx + eax + 0xf004]
mov ecx, dword [ebp - 0x44]
mov dword [ebp - 4], ebx
xor esi, dword [ecx]
mov dword [ebp + 0xc], esi
mov esi, ebx
xor esi, dword [ecx + 4]
mov ebx, dword [ebp - 0x68]
mov dword [ebp - 4], esi
mov esi, dword [ebp - 0x70]
add esi, esi
mov ecx, dword [eax + esi*8 + 0x4008]
xor ecx, dword [eax + edx*8 + 0x8008]
mov dword [ebp + 8], ecx
mov ecx, dword [eax + esi*8 + 0x400c]
xor ecx, dword [eax + edx*8 + 0x800c]
mov edx, dword [ebp - 0x28]
mov esi, dword [ebp + 8]
add edx, edx
xor esi, dword [eax + edx*8 + 0xc008]
xor ecx, dword [eax + edx*8 + 0xc00c]
xor esi, dword [edi + eax + 0xa008]
xor ecx, dword [edi + eax + 0xa00c]
xor esi, dword [ebx + eax + 0xe008]
mov edx, dword [ebp - 0x38]
xor ecx, dword [ebx + eax + 0xe00c]
mov ebx, esi
mov dword [ebp + 8], esi
xor ebx, dword [edx + eax + 0x2008]
xor ecx, dword [edx + eax + 0x200c]
mov edx, dword [ebp - 0x10]
xor ebx, dword [edx + eax + 0x6008]
xor ecx, dword [edx + eax + 0x600c]
mov edx, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x64]
mov esi, dword [ebp - 0x60]
xor ebx, dword [edx + eax + 0x1008]
xor ecx, dword [edx + eax + 0x100c]
mov edx, dword [ebp - 0x20]
xor ebx, dword [edx + eax + 0x5008]
xor ecx, dword [edx + eax + 0x500c]
mov edx, dword [ebp - 0x58]
xor ebx, dword [edx + eax + 0x9008]
xor ecx, dword [edx + eax + 0x900c]
mov edx, dword [ebp - 0x1c]
xor ebx, dword [edx + eax + 0xd008]
xor ecx, dword [edx + eax + 0xd00c]
mov edx, dword [ebp - 0x54]
xor ebx, dword [edx + eax + 0xb008]
xor ecx, dword [edx + eax + 0xb00c]
mov edx, dword [ebp - 0x50]
xor ebx, dword [edx + eax + 0xf008]
xor ecx, dword [edx + eax + 0xf00c]
mov edx, dword [ebp - 0x48]
xor ebx, dword [edx + eax + 0x3008]
xor ecx, dword [edx + eax + 0x300c]
mov edx, dword [ebp - 0x4c]
xor ecx, dword [edx + eax + 0x700c]
xor ebx, dword [edx + eax + 0x7008]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 0x44]
mov edx, dword [ebp - 0xc]
xor ebx, dword [ecx + 8]
xor edx, dword [ecx + 0xc]
cmp edi, 0x10
jae 0x46d6e0
mov ecx, dword [ebp - 0x80]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x10], eax
mov eax, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov eax, edi
mov dword [ecx + 0x18], ebx
mov dword [ecx + 0x1c], edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x38]
shr edx, 4
push ebx
push ebp
lea ebp, [0x528188]
movdqa xmm0, xmmword [esi]
movdqu xmm4, xmmword [ecx]
pxor xmm0, xmm4
movd ebx, xmm0
mov eax, 0xf0f0f0f0
and eax, ebx
shl ebx, 4
and ebx, 0xf0f0f0f0
movzx edi, ah
movdqa xmm5, xmmword [esi + edi + 0x420]
movzx edi, al
movdqa xmm4, xmmword [esi + edi + 0x420]
shr eax, 0x10
movzx edi, ah
movdqa xmm3, xmmword [esi + edi + 0x420]
movzx edi, al
movdqa xmm2, xmmword [esi + edi + 0x420]
psrldq xmm0, 4
movd eax, xmm0
and eax, 0xf0f0f0f0
movzx edi, bh
pxor xmm5, xmmword [esi + edi + 0x20]
movzx edi, bl
pxor xmm4, xmmword [esi + edi + 0x20]
shr ebx, 0x10
movzx edi, bh
pxor xmm3, xmmword [esi + edi + 0x20]
movzx edi, bl
pxor xmm2, xmmword [esi + edi + 0x20]
movd ebx, xmm0
shl ebx, 4
and ebx, 0xf0f0f0f0
movzx edi, ah
pxor xmm5, xmmword [esi + edi + 0x520]
movzx edi, al
pxor xmm4, xmmword [esi + edi + 0x520]
shr eax, 0x10
movzx edi, ah
pxor xmm3, xmmword [esi + edi + 0x520]
movzx edi, al
pxor xmm2, xmmword [esi + edi + 0x520]
psrldq xmm0, 4
movd eax, xmm0
and eax, 0xf0f0f0f0
movzx edi, bh
pxor xmm5, xmmword [esi + edi + 0x120]
movzx edi, bl
pxor xmm4, xmmword [esi + edi + 0x120]
shr ebx, 0x10
movzx edi, bh
pxor xmm3, xmmword [esi + edi + 0x120]
movzx edi, bl
pxor xmm2, xmmword [esi + edi + 0x120]
movd ebx, xmm0
shl ebx, 4
and ebx, 0xf0f0f0f0
movzx edi, ah
pxor xmm5, xmmword [esi + edi + 0x620]
movzx edi, al
pxor xmm4, xmmword [esi + edi + 0x620]
shr eax, 0x10
movzx edi, ah
pxor xmm3, xmmword [esi + edi + 0x620]
movzx edi, al
pxor xmm2, xmmword [esi + edi + 0x620]
psrldq xmm0, 4
movd eax, xmm0
and eax, 0xf0f0f0f0
movzx edi, bh
pxor xmm5, xmmword [esi + edi + 0x220]
movzx edi, bl
pxor xmm4, xmmword [esi + edi + 0x220]
shr ebx, 0x10
movzx edi, bh
pxor xmm3, xmmword [esi + edi + 0x220]
movzx edi, bl
pxor xmm2, xmmword [esi + edi + 0x220]
movd ebx, xmm0
shl ebx, 4
and ebx, 0xf0f0f0f0
movzx edi, ah
pxor xmm5, xmmword [esi + edi + 0x720]
movzx edi, al
pxor xmm4, xmmword [esi + edi + 0x720]
shr eax, 0x10
movzx edi, ah
pxor xmm3, xmmword [esi + edi + 0x720]
movzx edi, al
pxor xmm2, xmmword [esi + edi + 0x720]
movzx edi, bh
pxor xmm5, xmmword [esi + edi + 0x320]
movzx edi, bl
pxor xmm4, xmmword [esi + edi + 0x320]
shr ebx, 0x10
movzx edi, bh
pxor xmm3, xmmword [esi + edi + 0x320]
movzx edi, bl
pxor xmm2, xmmword [esi + edi + 0x320]
movdqa xmm0, xmm3
pslldq xmm3, 1
pxor xmm2, xmm3
movdqa xmm1, xmm2
pslldq xmm2, 1
pxor xmm5, xmm2
psrldq xmm0, 0xf
movd edi, xmm0
movzx eax, word [ebp + edi*2]
shl eax, 8
movdqa xmm0, xmm5
pslldq xmm5, 1
pxor xmm4, xmm5
psrldq xmm1, 0xf
movd edi, xmm1
xor ax, word [ebp + edi*2]
shl eax, 8
psrldq xmm0, 0xf
movd edi, xmm0
xor ax, word [ebp + edi*2]
movd xmm0, eax
pxor xmm0, xmm4
add ecx, 0x10
sub edx, 1
jne 0x46da5e
movdqa xmmword [esi], xmm0
pop ebp
pop ebx
mov eax, dword [ebp + 0xc]
and eax, 0xf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp - 0x38]
shr edx, 4
movdqa xmm0, xmmword [esi]
movdqu xmm1, xmmword [ecx]
pxor xmm1, xmm0
pxor xmm0, xmm0
movd eax, xmm1
psrldq xmm1, 4
movzx edi, al
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0x20]
movzx edi, ah
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0x1020]
shr eax, 0x10
movzx edi, al
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0x2020]
movzx edi, ah
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0x3020]
movd eax, xmm1
psrldq xmm1, 4
movzx edi, al
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0x4020]
movzx edi, ah
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0x5020]
shr eax, 0x10
movzx edi, al
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0x6020]
movzx edi, ah
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0x7020]
movd eax, xmm1
psrldq xmm1, 4
movzx edi, al
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0x8020]
movzx edi, ah
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0x9020]
shr eax, 0x10
movzx edi, al
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0xa020]
movzx edi, ah
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0xb020]
movd eax, xmm1
psrldq xmm1, 4
movzx edi, al
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0xc020]
movzx edi, ah
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0xd020]
shr eax, 0x10
movzx edi, al
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0xe020]
movzx edi, ah
add edi, edi
pxor xmm0, xmmword [esi + edi*8 + 0xf020]
add ecx, 0x10
sub edx, 1
jne 0x46dce7
movdqa xmmword [esi], xmm0
mov eax, dword [ebp + 0xc]
pop edi
pop esi
and eax, 0xf
pop ebx
mov esp, ebp
pop ebp
ret 8