Function at 0x6fa63e10
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x6c
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x80]
mov eax, dword [eax + 0x18]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x80]
mov ecx, dword [eax + 0x10]
mov eax, dword [eax + 0x1c]
mov esi, eax
mov dword [esp + 0x38], eax
mov eax, ecx
cdq
idiv esi
mov ebx, eax
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x80]
mov ebp, edx
mov dword [esp + 0x44], edx
mov eax, dword [eax + 0x20]
test eax, eax
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x80]
jne 0x6fa63e7a
cmp dword [eax + 8], 1
je 0x6fa64183
mov eax, dword [eax + 0x24]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x94]
test eax, eax
jle 0x6fa64314
mov eax, dword [esp + 0x80]
mov dword [esp + 0x10], 0
mov eax, dword [eax + 4]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x80]
mov ebp, dword [eax + 8]
mov eax, dword [eax + 0x28]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x84]
mov dword [esp + 0x30], eax
lea eax, [ebp + ebp]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x50], eax
sar eax, 0x1f
mov dword [esp + 0x54], eax
lea esi, [esi]
mov esi, dword [esp + 0x2c]
mov eax, dword [esp + 0x58]
movzx ecx, byte [esp + 0x48]
mov edi, dword [esp + 0x4c]
and eax, esi
imul eax, ebp
lea edi, [edi + eax*2]
mov eax, esi
sar eax, cl
test eax, eax
mov ecx, eax
js 0x6fa64110
lea eax, [eax + ebp]
cmp dword [esp + 0x90], eax
jl 0x6fa64168
mov eax, dword [esp + 0x80]
mov edx, dword [eax + 0x2c]
test edx, edx
jne 0x6fa64060
test ebp, ebp
jle 0x6fa64161
mov eax, dword [esp + 0x88]
xor esi, esi
lea ebx, [eax + ecx*2]
xor ecx, ecx
nop
movsx edx, word [ebx + ecx*2]
movsx eax, word [edi + ecx*2]
add ecx, 1
imul eax, edx
add esi, eax
cmp ecx, ebp
jne 0x6fa63f40
add esi, 0x4000
mov edx, esi
sar edx, 0xf
lea ecx, [edx + 0x8000]
cmp ecx, 0xffff
jbe 0x6fa63f77
sar esi, 0x1f
mov edx, esi
xor dx, 0x7fff
mov eax, dword [esp + 0x30]
mov edi, dword [esp + 0x44]
add dword [esp + 0x28], edi
mov esi, dword [esp + 0x40]
add dword [esp + 0x2c], esi
mov word [eax], dx
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x38], eax
jg 0x6fa63fa5
mov esi, dword [esp + 0x38]
add dword [esp + 0x2c], 1
sub dword [esp + 0x28], esi
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x3c]
je 0x6fa640e0
add dword [esp + 0x30], 2
cmp eax, dword [esp + 0x94]
jne 0x6fa63ee0
mov edi, dword [esp + 0x2c]
movzx ecx, byte [esp + 0x48]
mov eax, 0
mov ebx, dword [esp + 0x8c]
test edi, edi
cmovns eax, edi
sar eax, cl
test edi, edi
mov dword [ebx], eax
js 0x6fa63ffa
mov edi, dword [esp + 0x80]
mov ebx, dword [edi + 0x28]
and dword [esp + 0x2c], ebx
mov esi, dword [esp + 0x3c]
mov eax, esi
sub eax, dword [esp + 0x94]
test esi, esi
cmove eax, esi
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x98]
test eax, eax
je 0x6fa64048
mov eax, dword [esp + 0x80]
mov edi, dword [esp + 0x28]
mov esi, dword [esp + 0x3c]
mov dword [eax + 0x18], edi
mov edi, dword [esp + 0x2c]
mov ebx, eax
mov dword [eax + 0x14], edi
mov eax, dword [esp + 0x40]
imul eax, dword [ebx + 0x1c]
mov dword [ebx + 0x20], esi
add eax, dword [esp + 0x44]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x94]
add esp, 0x6c
pop ebx
pop esi
pop edi
pop ebp
ret
test ebp, ebp
jle 0x6fa64178
mov eax, dword [esp + 0x88]
xor esi, esi
xor ebx, ebx
lea eax, [eax + ecx*2]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x5c]
add eax, edi
mov dword [esp + 0x18], eax
xor eax, eax
lea esi, [esi]
lea edi, [edi]
mov ecx, dword [esp + 0x20]
movsx edx, word [edi + ebx*2]
movsx ecx, word [ecx + ebx*2]
imul edx, ecx
add esi, edx
mov edx, dword [esp + 0x18]
movsx edx, word [edx + ebx*2]
add ebx, 1
imul edx, ecx
add eax, edx
cmp ebx, ebp
jne 0x6fa64090
sub eax, esi
imul dword [esp + 0x28]
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], edx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ebx
call fcn.703e0860
add esi, eax
jmp 0x6fa63f54
mov eax, dword [esp + 0x80]
mov dword [esp + 0x3c], 0
mov eax, dword [eax + 0xc]
cdq
idiv dword [esp + 0x38]
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x10]
jmp 0x6fa63fb8
test ebp, ebp
jle 0x6fa64161
lea ebx, [eax + ebp]
mov dword [esp + 0x18], ebp
lea eax, [eax + eax]
mov ebp, dword [esp + 0x88]
xor esi, esi
sub edi, eax
lea esi, [esi]
mov edx, ecx
sar edx, 0x1f
mov eax, edx
xor eax, ecx
sub eax, edx
cdq
idiv dword [esp + 0x90]
movsx eax, word [edi + ecx*2]
add ecx, 1
movsx edx, word [ebp + edx*2]
imul eax, edx
add esi, eax
cmp ecx, ebx
jne 0x6fa64130
mov ebp, dword [esp + 0x18]
jmp 0x6fa63f54
xor edx, edx
jmp 0x6fa63f77
mov eax, dword [esp + 0x10]
mov dword [esp + 0x94], eax
jmp 0x6fa63fca
xor esi, esi
xor eax, eax
xor edx, edx
jmp 0x6fa640bb
mov eax, dword [eax + 0x24]
test eax, eax
mov dword [esp + 0x48], eax
jne 0x6fa63e81
mov esi, dword [esp + 0x2c]
mov eax, ecx
mov dword [esp + 4], ecx
sar eax, 0x1f
mov dword [esp], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x1c], eax
mov edi, esi
xor esi, esi
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x34], edi
mov eax, esi
mov dword [esp + 8], esi
mov dword [esp + 0x20], esi
cdq
mov dword [esp + 0xc], edx
mov dword [esp + 0x24], edx
call fcn.703e0860
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x90]
mov dword [esp + 0x14], edx
mov edi, dword [esp + 0x1c]
sub eax, 1
sub eax, dword [esp + 0x2c]
mov dword [esp + 0xc], edi
imul esi
mov esi, dword [esp + 0x18]
mov dword [esp], eax
mov dword [esp + 8], esi
mov dword [esp + 4], edx
call fcn.703e0860
mov esi, dword [esp + 0x94]
mov ecx, eax
mov dword [esp + 0x18], esi
sar esi, 0x1f
mov dword [esp + 0x1c], esi
cmp edx, dword [esp + 0x1c]
jge 0x6fa642ff
test ecx, ecx
jle 0x6fa64324
mov esi, dword [esp + 0x30]
mov dword [esp + 0x18], ebp
xor eax, eax
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x88]
mov ebx, dword [esp + 0x84]
mov dword [esp + 0x94], ecx
mov esi, esi
lea edi, [edi]
movzx edx, word [ebp + edi*2]
add esi, dword [esp + 0x10]
adc edi, dword [esp + 0x14]
mov word [ebx + eax*2], dx
add eax, 1
cmp eax, ecx
jne 0x6fa64260
mov ebx, dword [esp + 0x30]
mov ebp, dword [esp + 0x18]
imul ebx, eax
imul ebp
mov dword [esp + 0x48], ebx
mov esi, dword [esp + 0x28]
mov edi, esi
sar edi, 0x1f
add esi, eax
mov eax, dword [esp + 0x20]
adc edi, edx
mov edx, dword [esp + 0x24]
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.703e0860
mov edx, dword [esp + 0x2c]
add edx, dword [esp + 0x48]
mov dword [esp], esi
mov dword [esp + 4], edi
lea ebx, [edx + eax]
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x2c], ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call fcn.703e0b60
mov esi, dword [esp + 0x8c]
mov dword [esp + 0x28], eax
test ebx, ebx
mov eax, 0
cmovns eax, ebx
mov dword [esi], eax
jns 0x6fa63fec
jmp 0x6fa64010
jg 0x6fa6430b
cmp eax, dword [esp + 0x18]
jbe 0x6fa64228
mov ecx, dword [esp + 0x18]
jmp 0x6fa64228
mov dword [esp + 0x94], 0
jmp 0x6fa63fca
xor eax, eax
xor edx, edx
mov dword [esp + 0x94], 0
jmp 0x6fa64289