Function at 0x460090
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x4c
call fcn.00446210
push ebx
mov ebx, dword [esp + 0x58]
push ebp
push esi
mov esi, dword [esp + 0x6c]
mov ebp, 1
mov ecx, esi
push ebx
push dword [esp + 0x60]
shl ebp, cl
mov dword [esp + 0x1c], ebp
call fcn.0044dd90
add esp, 8
test eax, eax
jne 0x4600ca
pop esi
pop ebp
pop ebx
add esp, 0x4c
ret
push edi
cmp esi, 3
jg 0x46018e
xor edx, edx
mov dword [esp + 0x70], edx
test ebx, ebx
jle 0x4603a1
mov ebx, dword [esp + 0x68]
lea eax, [ebp*8]
mov dword [esp + 0x2c], eax
xorps xmm0, xmm0
xor eax, eax
movlpd qword [esp + 0x54], xmm0
test ebp, ebp
mov ecx, dword [esp + 0x54]
mov ebp, dword [esp + 0x58]
jle 0x460152
mov dword [esp + 0x68], ecx
nop dword [eax]
mov ecx, eax
xor esi, esi
xor ecx, dword [esp + 0x6c]
lea edi, [ecx - 1]
not ecx
shr edi, 0x1f
shr ecx, 0x1f
and edi, ecx
mov ecx, dword [ebx + eax*8]
mov edx, dword [ebx + eax*8 + 4]
neg edi
and edi, 1
neg edi
adc esi, esi
and edi, ecx
mov ecx, dword [esp + 0x68]
neg esi
and esi, edx
or ecx, edi
inc eax
mov dword [esp + 0x68], ecx
or ebp, esi
cmp eax, dword [esp + 0x18]
jl 0x460110
mov edx, dword [esp + 0x70]
mov eax, dword [esp + 0x60]
add ebx, dword [esp + 0x2c]
mov eax, dword [eax]
mov dword [eax + edx*8], ecx
mov dword [eax + edx*8 + 4], ebp
inc edx
mov ebp, dword [esp + 0x18]
mov dword [esp + 0x70], edx
cmp edx, dword [esp + 0x64]
jl 0x4600f1
mov eax, dword [esp + 0x60]
mov ebx, dword [esp + 0x64]
pop edi
pop esi
mov dword [eax + 4], ebx
mov eax, 1
pop ebp
pop ebx
add esp, 0x4c
ret
mov edi, dword [esp + 0x6c]
lea ecx, [esi - 2]
mov esi, 1
mov edx, edi
shl esi, cl
sar edx, cl
mov dword [esp + 0x50], esi
lea eax, [esi - 1]
and edi, eax
lea ecx, [edx - 1]
shr ecx, 0x1f
mov eax, edx
not eax
mov dword [esp + 0x2c], edi
shr eax, 0x1f
and ecx, eax
xor eax, eax
neg ecx
and ecx, 1
neg ecx
mov dword [esp + 0x48], ecx
adc eax, eax
neg eax
mov dword [esp + 0x4c], eax
mov eax, edx
xor eax, 1
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
xor eax, eax
neg ecx
and ecx, 1
neg ecx
mov dword [esp + 0x40], ecx
adc eax, eax
neg eax
mov dword [esp + 0x44], eax
mov eax, edx
xor eax, 2
lea ecx, [eax - 1]
not eax
shr eax, 0x1f
shr ecx, 0x1f
and ecx, eax
xor eax, eax
neg ecx
and ecx, 1
neg ecx
mov dword [esp + 0x38], ecx
adc eax, eax
xor edx, 3
neg eax
xor ecx, ecx
mov dword [esp + 0x3c], eax
lea eax, [edx - 1]
not edx
shr eax, 0x1f
shr edx, 0x1f
and eax, edx
neg eax
and eax, 1
neg eax
mov dword [esp + 0x30], eax
adc ecx, ecx
xor eax, eax
neg ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x34], ecx
test ebx, ebx
jle 0x4603a1
lea ecx, [ebp*8]
mov ebp, dword [esp + 0x68]
mov dword [esp + 0x54], ecx
xorps xmm0, xmm0
xor ecx, ecx
movlpd qword [esp + 0x18], xmm0
mov edx, dword [esp + 0x18]
mov dword [esp + 0x70], ecx
test esi, esi
jle 0x460377
lea eax, [esi*8]
mov dword [esp + 0x18], edx
add eax, ebp
mov ebx, esi
mov dword [esp + 0x14], eax
lea eax, [esi + esi*2]
shl ebx, 4
lea eax, [eax*8]
add ebx, ebp
add eax, ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x10]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
jmp 0x4602ba
mov edi, dword [esp + 0x2c]
mov eax, dword [edx]
mov ebp, ecx
mov ecx, dword [edx + 4]
xor ebp, edi
mov edx, dword [ebx]
and edx, dword [esp + 0x38]
and eax, dword [esp + 0x30]
mov esi, dword [ebx + 4]
or edx, eax
and esi, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
and ecx, dword [esp + 0x34]
or esi, ecx
mov ecx, dword [esp + 0x70]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
and ebx, dword [esp + 0x44]
and edi, dword [esp + 0x40]
or ebx, esi
lea esi, [ebp - 1]
or edi, edx
shr esi, 0x1f
not ebp
shr ebp, 0x1f
xor edx, edx
and esi, ebp
mov ebp, dword [esp + 0x68]
neg esi
and esi, 1
neg esi
mov eax, dword [ebp + ecx*8]
mov ecx, dword [ebp + ecx*8 + 4]
adc edx, edx
and ecx, dword [esp + 0x4c]
neg edx
and eax, dword [esp + 0x48]
or ecx, ebx
mov ebx, dword [esp + 0x24]
and edx, ecx
mov ecx, dword [esp + 0x70]
or eax, edi
mov edi, dword [esp + 0x20]
and esi, eax
or dword [esp + 0x18], esi
or edi, edx
mov edx, dword [esp + 0x10]
inc ecx
add dword [esp + 0x14], 8
add edx, 8
mov esi, dword [esp + 0x50]
add ebx, 8
mov dword [esp + 0x20], edi
mov dword [esp + 0x70], ecx
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], ebx
cmp ecx, esi
jl 0x4602b6
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x18]
mov ebx, dword [esp + 0x64]
jmp 0x46037b
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x60]
add ebp, dword [esp + 0x54]
mov dword [esp + 0x68], ebp
mov ecx, dword [ecx]
mov dword [ecx + eax*8], edx
mov dword [ecx + eax*8 + 4], edi
inc eax
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x28], eax
cmp eax, ebx
jl 0x460261
mov eax, dword [esp + 0x60]
pop edi
pop esi
pop ebp
mov dword [eax + 4], ebx
mov eax, 1
pop ebx
add esp, 0x4c
ret