Function at 0x6913d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.006fed10
mov edx, dword [ebp + 0x14]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x170]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x174]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x164]
mov dword [ebp - 0xc], eax
mov eax, edx
add eax, dword [esi + 0x38]
adc ecx, dword [esi + 0x3c]
cmp ecx, 0xf
ja 0x6916d4
jb 0x69141d
cmp eax, 0xffffffe0
ja 0x6916d4
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x38], eax
mov eax, dword [esi + 0x168]
mov dword [esi + 0x3c], ecx
mov dword [ebp - 4], eax
je 0x691496
test edx, edx
jne 0x69145d
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
mov eax, dword [esi + 0x160]
call eax
add esp, 8
mov dword [esi + 0x16c], 0
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esi + 0x40]
mov eax, 0x10
mov dword [ebp - 4], eax
movups xmmword [esi + 0x178], xmm0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x16c], 0
mov ecx, dword [esi + 0xc]
bswap ecx
mov dword [ebp - 8], ecx
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0x10]
and ecx, 0xf
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
je 0x691509
test edx, edx
je 0x6914e3
mov cl, byte [edi]
dec edx
mov byte [eax + esi + 0x178], cl
inc edi
mov eax, dword [ebp - 0x10]
mov dword [ebp + 0x14], edx
mov al, byte [eax + esi + 0x10]
xor al, cl
mov ecx, dword [ebp - 0x10]
mov byte [ebx], al
inc ecx
mov eax, dword [ebp - 4]
inc ebx
inc eax
and ecx, 0xf
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], ecx
jne 0x6914b0
jmp 0x6914eb
test ecx, ecx
jne 0x6916b3
push eax
lea eax, [esi + 0x178]
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [ebp - 0xc]
mov edx, dword [ebp + 0x14]
add esp, 0x10
xor eax, eax
mov dword [ebp - 4], eax
cmp edx, 0x10
jb 0x691532
test eax, eax
je 0x691532
push eax
lea eax, [esi + 0x178]
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [ebp - 0xc]
mov edx, dword [ebp + 0x14]
add esp, 0x10
mov dword [ebp - 4], 0
cmp edx, 0xc00
jb 0x6915c5
mov eax, 0xaaaaaaab
lea ecx, [esi + 0x60]
mul edx
shr edx, 0xb
mov dword [ebp - 0x20], edx
nop
push 0xc00
push edi
push ecx
lea eax, [esi + 0x40]
push eax
call dword [ebp - 0xc]
add esp, 0x10
mov dword [ebp - 0x1c], 0xc0
push dword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x18]
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
mov dword [ebp - 8], eax
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x1c], 1
jne 0x691568
mov edx, dword [ebp + 0x14]
lea ecx, [esi + 0x60]
sub edx, 0xc00
sub dword [ebp - 0x20], 1
mov dword [ebp + 0x14], edx
jne 0x691550
mov eax, edx
and eax, 0xfffffff0
je 0x691641
push eax
push edi
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [ebp - 0xc]
mov edx, dword [ebp + 0x14]
add esp, 0x10
cmp edx, 0x10
jb 0x691641
shr edx, 4
lea eax, [esi + 0x10]
mov dword [ebp - 0x20], edx
nop dword [eax]
push dword [ebp - 0x14]
push eax
push esi
call dword [ebp - 0x18]
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
mov edx, dword [ebp + 0x14]
mov dword [ebp - 8], eax
sub edx, 0x10
bswap eax
mov dword [esi + 0xc], eax
mov eax, dword [edi]
xor eax, dword [esi + 0x10]
mov dword [ebx], eax
mov eax, dword [edi + 4]
xor eax, dword [esi + 0x14]
mov dword [ebx + 4], eax
mov eax, dword [edi + 8]
xor eax, dword [esi + 0x18]
mov dword [ebx + 8], eax
mov eax, dword [edi + 0xc]
add edi, 0x10
xor eax, dword [esi + 0x1c]
mov dword [ebx + 0xc], eax
add ebx, 0x10
sub dword [ebp - 0x20], 1
lea eax, [esi + 0x10]
mov dword [ebp + 0x14], edx
jne 0x6915f0
test edx, edx
je 0x6916c2
push dword [ebp - 0x14]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x18]
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x10]
inc eax
mov edx, dword [ebp + 0x14]
bswap eax
mov dword [esi + 0xc], eax
lea eax, [ecx + ebx]
mov dword [ebp - 0x20], eax
lea eax, [ecx + 0x10]
add eax, esi
lea ecx, [esi + 0x178]
mov esi, dword [ebp - 0x20]
sub edi, ebx
mov ebx, dword [ebp - 4]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x1c], ecx
mov eax, dword [ebp - 0x1c]
lea esi, [esi + 1]
mov cl, byte [edi + esi - 1]
mov byte [eax + ebx], cl
inc ebx
mov eax, dword [ebp - 0x18]
inc dword [ebp - 0x18]
mov al, byte [eax]
xor al, cl
mov byte [esi - 1], al
sub edx, 1
jne 0x691681
mov esi, dword [ebp + 8]
xor eax, eax
pop edi
mov dword [esi + 0x168], ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x168], eax
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp - 4]
xor eax, eax
pop edi
mov dword [esi + 0x168], ebx
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret