Function at 0x6988c0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x38
mov ecx, dword [esp + 0x3c]
xorps xmm0, xmm0
push ebx
push ebp
push esi
mov edx, dword [ecx + 4]
lea eax, [ecx + 0x10]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
push edi
mov edi, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
lea esi, [edi - 1]
lea eax, [eax + edx*4]
mov dword [esp + 0x10], edx
mov ebp, ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x24], ecx
neg ebp
shr ebp, 0x1f
mov edx, esi
neg edx
movlpd qword [esp + 0x28], xmm0
dec ebp
mov dword [esp + 0x34], edi
or edx, esi
mov dword [esp + 0x38], ebp
shr edx, 0x1f
mov eax, ebp
and eax, 1
mov dword [esp + 0x1c], 0x20
or eax, ecx
dec edx
mov ecx, 0x20
sub ecx, eax
mov eax, edx
and eax, 1
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x54]
or eax, esi
or edx, ebp
mov ebp, dword [esp + 0x28]
not edx
mov ebx, dword [ecx + eax*4 - 4]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
shr ebx, cl
mov ecx, dword [esp + 0x24]
and ebx, edx
mov eax, dword [eax + esi*4]
mov edx, dword [esp + 0x10]
shl eax, cl
lea ecx, [edi + edi]
add ebx, eax
mov eax, edx
sub eax, ecx
mov dword [esp + 0x3c], ebx
sub ecx, edx
or eax, ecx
mov ecx, ebx
shr eax, 0x1f
mov eax, dword [esp + eax*4 + 0x40]
mov esi, dword [eax]
sub ecx, esi
mov eax, esi
mov dword [esp + 0x40], esi
sub eax, ebx
mov dword [esp + 0x4c], esi
or ecx, eax
xor eax, eax
shr ecx, 0x1f
dec ecx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x50]
or eax, dword [ecx + edx*4 - 4]
xor ecx, ecx
mov edx, dword [esp + 0x2c]
mov dword [esp + 0x18], edx
shrd ecx, ebx, 1
mov edx, eax
shr ebx, 1
sub edx, ecx
mov dword [esp + 0x28], ecx
sbb esi, ebx
xor ecx, ecx
mov edi, esi
shr edi, 0x1f
neg edi
adc ecx, ecx
and eax, edi
mov dword [esp + 0x14], eax
not edi
neg ecx
mov eax, edi
and dword [esp + 0x4c], ecx
and eax, edx
mov edx, dword [esp + 0x18]
not ecx
or dword [esp + 0x14], eax
and ecx, esi
mov esi, dword [esp + 0x4c]
xor eax, eax
shld edx, ebp, 1
and edi, 1
or esi, ecx
mov ecx, dword [esp + 0x28]
add ebp, ebp
or edx, eax
mov dword [esp + 0x4c], esi
mov eax, dword [esp + 0x14]
or ebp, edi
sub dword [esp + 0x1c], 1
mov dword [esp + 0x18], edx
jne 0x6989a6
mov edi, dword [esp + 0x34]
mov ebx, 0
mov dword [esp + 0x4c], ebp
mov eax, edi
mov ebp, dword [esp + 0x30]
not ebp
mov ecx, dword [esp + 0x54]
and ebp, dword [esp + 0x4c]
or ebp, dword [esp + 0x30]
add eax, 0xffffffff
mov eax, 1
adc ebx, 0xffffffff
sub eax, edi
mov eax, 0
sbb eax, eax
or ebx, eax
xor eax, eax
shr ebx, 0x1f
add ebx, 0xffffffff
adc eax, 0xffffffff
add edi, 0xfffffffe
mov dword [esp + 0x4c], eax
mov eax, ebx
not eax
not ebx
and edi, eax
mov esi, edi
neg esi
or esi, edi
shr esi, 0x1f
dec esi
mov eax, esi
or esi, dword [esp + 0x38]
and eax, 1
mov dword [esp + 0x38], ebx
or eax, edi
not esi
mov edx, dword [ecx + eax*4 - 4]
mov eax, dword [esp + 0x54]
mov ecx, dword [esp + 0x20]
shr edx, cl
mov ecx, dword [esp + 0x24]
and edx, esi
mov eax, dword [eax + edi*4]
mov esi, dword [esp + 0x4c]
shl eax, cl
not esi
add eax, edx
mov dword [esp + 0x4c], esi
mov dword [esp + 0x28], eax
mov dword [esp + 0x54], 2
nop dword [eax + eax]
mul ebp
mov edi, dword [esp + 0x10]
and eax, dword [esp + 0x38]
mov ecx, edx
mov dword [esp + 0x30], eax
and ecx, esi
mov ebx, dword [esp + 0x50]
mov eax, ebp
mul dword [esp + 0x3c]
add eax, ecx
adc edx, 0
cmp edx, dword [esp + 0x40]
sbb esi, esi
neg esi
cmp dword [esp + 0x40], edx
mov dword [esp + 0x34], esi
sbb edx, edx
neg edx
mov ecx, edx
xor ecx, esi
mov esi, dword [esp + 0x50]
xor ecx, 1
cmp eax, dword [ebx + edi*4 - 4]
mov ebx, dword [esp + 0x10]
sbb edi, edi
and edi, ecx
cmp dword [esi + ebx*4 - 4], eax
sbb eax, eax
and eax, ecx
mov ecx, ebx
sub edi, eax
sub edi, edx
mov edx, esi
mov esi, dword [esp + 0x4c]
mov eax, dword [edx + ecx*4 - 8]
cmp dword [esp + 0x30], eax
sbb edx, edx
neg edx
cmp eax, dword [esp + 0x30]
sbb eax, eax
xor ecx, ecx
neg eax
sub edx, eax
add edi, dword [esp + 0x34]
mov eax, dword [esp + 0x28]
cmove ecx, edx
add edi, ecx
shr edi, 0x1f
sub ebp, edi
sub dword [esp + 0x54], 1
jne 0x698ab0
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x38
ret