Function at 0x46c988
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
push dword [eax + edx*8 + 4]
push dword [eax + edx*8]
call fcn.0046e378
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov dword [ecx + ebx*8], eax
mov dword [ecx + ebx*8 + 4], edx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x10
jne 0x46c99d
mov dword [ebp - 0x10], 0x10
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
lea eax, [eax + edx*8 - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
shrd eax, edx, 0x13
shr edx, 0x13
push edx
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*8 - 0x10]
shl edx, 0xd
xor eax, eax
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov eax, dword [eax + edx*8 - 0xc]
shr eax, 0x1d
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
lea eax, [eax + edx*8 - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
shld edx, eax, 3
shl eax, 3
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
lea eax, [eax + edx*8 - 0x10]
mov edx, dword [eax + 4]
mov eax, dword [eax]
shrd eax, edx, 6
shr edx, 6
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
add eax, dword [ecx + ebx*8 - 0x38]
adc edx, dword [ecx + ebx*8 - 0x34]
push edx
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
lea eax, [eax + edx*8 - 0x78]
mov edx, dword [eax + 4]
mov eax, dword [eax]
shrd eax, edx, 1
shr edx, 1
push edx
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*8 - 0x78]
shl edx, 0x1f
xor eax, eax
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
lea eax, [eax + edx*8 - 0x78]
mov edx, dword [eax + 4]
mov eax, dword [eax]
shrd eax, edx, 8
shr edx, 8
push edx
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
mov edx, dword [eax + edx*8 - 0x78]
shl edx, 0x18
xor eax, eax
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
lea eax, [eax + edx*8 - 0x78]
mov edx, dword [eax + 4]
mov eax, dword [eax]
shrd eax, edx, 7
shr edx, 7
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
add eax, dword [ecx + ebx*8 - 0x80]
adc edx, dword [ecx + ebx*8 - 0x7c]
mov ecx, dword [ebp - 0xc]
mov ebx, dword [ebp - 0x10]
mov dword [ecx + ebx*8], eax
mov dword [ecx + ebx*8 + 4], edx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x50
jne 0x46c9cc
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x8c]
mov dword [ebp - 0x18], edx
mov edx, dword [eax + 0x90]
mov dword [ebp - 0x14], edx
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x94]
mov dword [ebp - 0x20], edx
mov edx, dword [eax + 0x98]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0x9c]
mov dword [ebp - 0x28], edx
mov edx, dword [eax + 0xa0]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xa4]
mov dword [ebp - 0x30], edx
mov edx, dword [eax + 0xa8]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xac]
mov dword [ebp - 0x38], edx
mov edx, dword [eax + 0xb0]
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xb4]
mov dword [ebp - 0x40], edx
mov edx, dword [eax + 0xb8]
mov dword [ebp - 0x3c], edx
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xbc]
mov dword [ebp - 0x48], edx
mov edx, dword [eax + 0xc0]
mov dword [ebp - 0x44], edx
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc4]
mov dword [ebp - 0x50], edx
mov edx, dword [eax + 0xc8]
mov dword [ebp - 0x4c], edx
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
shrd eax, edx, 0xe
shr edx, 0xe
push edx
push eax
mov edx, dword [ebp - 0x38]
shl edx, 0x12
xor eax, eax
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
shrd eax, edx, 0x12
shr edx, 0x12
push edx
push eax
mov edx, dword [ebp - 0x38]
shl edx, 0xe
xor eax, eax
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0x34]
shr eax, 9
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
shld edx, eax, 0x17
shl eax, 0x17
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
add dword [ebp - 0x58], eax
adc dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
and eax, dword [ebp - 0x40]
and edx, dword [ebp - 0x3c]
push edx
push eax
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
not eax
not edx
and eax, dword [ebp - 0x48]
and edx, dword [ebp - 0x44]
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
add dword [ebp - 0x58], eax
adc dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x10]
mov edx, dword [eax*8 + 0x502824]
mov eax, dword [eax*8 + 0x502820]
add dword [ebp - 0x58], eax
adc dword [ebp - 0x54], edx
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
lea eax, [eax + edx*8]
mov edx, dword [eax + 4]
mov eax, dword [eax]
add dword [ebp - 0x58], eax
adc dword [ebp - 0x54], edx
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
shrd eax, edx, 0x1c
shr edx, 0x1c
push edx
push eax
mov edx, dword [ebp - 0x18]
shl edx, 4
xor eax, eax
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0x14]
shr eax, 2
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
shld edx, eax, 0x1e
shl eax, 0x1e
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0x14]
shr eax, 7
xor edx, edx
push edx
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
shld edx, eax, 0x19
shl eax, 0x19
or eax, dword [esp]
or edx, dword [esp + 4]
add esp, 8
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
and eax, dword [ebp - 0x20]
and edx, dword [ebp - 0x1c]
push edx
push eax
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
and eax, dword [ebp - 0x28]
and edx, dword [ebp - 0x24]
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
push edx
push eax
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
and eax, dword [ebp - 0x28]
and edx, dword [ebp - 0x24]
xor eax, dword [esp]
xor edx, dword [esp + 4]
add esp, 8
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0x44]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
add eax, dword [ebp - 0x58]
adc edx, dword [ebp - 0x54]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], edx
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x58]
mov edx, dword [ebp - 0x54]
add eax, dword [ebp - 0x60]
adc edx, dword [ebp - 0x5c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edx
inc dword [ebp - 0x10]
cmp dword [ebp - 0x10], 0x50
jne 0x46cbda
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 8]
add dword [ecx + 0x8c], eax
adc dword [ecx + 0x90], edx
mov eax, dword [ebp - 0x20]
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 8]
add dword [ecx + 0x94], eax
adc dword [ecx + 0x98], edx
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 8]
add dword [ecx + 0x9c], eax
adc dword [ecx + 0xa0], edx
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 8]
add dword [ecx + 0xa4], eax
adc dword [ecx + 0xa8], edx
mov eax, dword [ebp - 0x38]
mov edx, dword [ebp - 0x34]
mov ecx, dword [ebp - 8]
add dword [ecx + 0xac], eax
adc dword [ecx + 0xb0], edx
mov eax, dword [ebp - 0x40]
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 8]
add dword [ecx + 0xb4], eax
adc dword [ecx + 0xb8], edx
mov eax, dword [ebp - 0x48]
mov edx, dword [ebp - 0x44]
mov ecx, dword [ebp - 8]
add dword [ecx + 0xbc], eax
adc dword [ecx + 0xc0], edx
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 8]
add dword [ecx + 0xc4], eax
adc dword [ecx + 0xc8], edx
pop ebx
mov esp, ebp
pop ebp
ret