Function at 0x685230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x20
call fcn.006f2580
mov ecx, dword [ebp + 0x14]
xor edx, edx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x170]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x174]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 0x164]
mov dword [ebp - 0xc], eax
mov eax, ecx
add eax, dword [esi + 0x38]
adc edx, dword [esi + 0x3c]
cmp edx, 0xf
ja 0x68552c
jb 0x68527d
cmp eax, 0xffffffe0
ja 0x68552c
cmp dword [esi + 0x16c], 0
mov dword [esi + 0x3c], edx
mov edx, dword [esi + 0x168]
mov dword [esi + 0x38], eax
mov dword [ebp - 4], edx
je 0x6852f6
test ecx, ecx
jne 0x6852bd
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 edx, 0x10
mov dword [ebp - 4], edx
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 eax, dword [esi + 0xc]
bswap eax
mov dword [ebp - 8], eax
mov eax, edx
push ebx
mov ebx, dword [ebp + 0x10]
and eax, 0xf
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
je 0x68535e
test ecx, ecx
je 0x685338
mov al, byte [eax + esi + 0x10]
dec ecx
xor al, byte [edi]
inc edi
mov byte [ebx], al
inc ebx
mov byte [edx + esi + 0x178], al
inc edx
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp + 0x14], ecx
and eax, 0xf
mov dword [ebp - 0x18], eax
jne 0x685310
jmp 0x685340
test eax, eax
jne 0x68551d
push edx
lea eax, [esi + 0x178]
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
add esp, 0x10
xor edx, edx
mov dword [ebp - 4], edx
cmp ecx, 0x10
jb 0x685387
test edx, edx
je 0x685387
push edx
lea eax, [esi + 0x178]
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
add esp, 0x10
mov dword [ebp - 4], 0
cmp ecx, 0xc00
jb 0x68541b
mov eax, 0xaaaaaaab
mul ecx
shr edx, 0xb
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 0xc0
push dword [ebp - 0x10]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x14]
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 0x6853a7
push 0xc00
lea eax, [ebx - 0xc00]
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
add esp, 0x10
sub ecx, 0xc00
sub dword [ebp - 0x20], 1
mov dword [ebp + 0x14], ecx
jne 0x6853a0
mov edx, ecx
and edx, 0xfffffff0
mov dword [ebp - 0x1c], edx
je 0x685499
cmp ecx, 0x10
jb 0x685482
shr ecx, 4
lea eax, [esi + 0x10]
mov dword [ebp - 0x20], ecx
push dword [ebp - 0x10]
push eax
push esi
call dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add esp, 0xc
inc eax
sub dword [ebp + 0x14], 0x10
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 - 0x20], 1
lea eax, [esi + 0x10]
jne 0x685433
mov edx, dword [ebp - 0x1c]
push edx
mov eax, ebx
sub eax, edx
push eax
lea eax, [esi + 0x60]
push eax
lea eax, [esi + 0x40]
push eax
call dword [ebp - 0xc]
mov ecx, dword [ebp + 0x14]
add esp, 0x10
test ecx, ecx
je 0x68550b
push dword [ebp - 0x10]
lea eax, [esi + 0x10]
push eax
push esi
call dword [ebp - 0x14]
mov eax, dword [ebp - 8]
add esp, 0xc
mov ecx, dword [ebp - 0x18]
inc eax
mov edx, dword [ebp + 0x14]
bswap eax
mov dword [esi + 0xc], eax
lea eax, [ecx + ebx]
add ecx, 0x10
add ecx, esi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], ecx
sub edi, ebx
mov ebx, dword [ebp - 0x20]
lea ecx, [esi + 0x178]
mov esi, dword [ebp - 4]
mov dword [ebp - 0x1c], ecx
nop dword [eax]
movzx ecx, byte [edi + eax]
lea ebx, [ebx + 1]
movzx eax, byte [ebx - 1]
xor ecx, eax
mov eax, dword [ebp - 0x18]
mov byte [eax], cl
mov eax, dword [ebp - 0x1c]
mov byte [eax + esi], cl
inc esi
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
sub edx, 1
jne 0x6854e0
mov dword [ebp - 4], esi
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
pop edi
mov dword [esi + 0x168], eax
xor eax, eax
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
pop edi
pop ebx
mov dword [esi + 0x168], edx
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret