Function at 0x6842b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x74
call fcn.006d13f0
mov eax, dword [0x7c0ab4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x24]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x1c]
push edi
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], 1
call fcn.005da290
add esp, 4
mov dword [ebp - 0x50], eax
test eax, eax
js 0x6845a3
call fcn.00662f90
mov dword [ebp - 0x48], eax
test eax, eax
je 0x6845a3
test esi, esi
jne 0x684314
mov esi, 0x78c138
xor ecx, ecx
jmp 0x68432d
mov ecx, dword [ebp + 0xc]
cmp ecx, 0xffffffff
jne 0x68432d
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x684321
mov eax, dword [ebp - 0x48]
sub ecx, edx
push 0
push edi
push ecx
push esi
push eax
call fcn.00663170
add esp, 0x14
test eax, eax
je 0x684598
call fcn.00662f90
mov esi, eax
mov dword [ebp - 0x74], esi
test esi, esi
je 0x684598
mov edx, dword [ebp + 0x20]
test edx, edx
je 0x68454d
mov ecx, 1
cmp edx, dword [ebp - 0x50]
mov edi, edx
push dword [ebp - 0x48]
cmovg edi, dword [ebp - 0x50]
mov eax, ecx
shr eax, 0x18
mov byte [ebp - 0x4c], al
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 0x4b], al
mov eax, ecx
shr eax, 8
push esi
mov dword [ebp - 0x70], edi
mov byte [ebp - 0x4a], al
mov byte [ebp - 0x49], cl
call fcn.00662e40
add esp, 8
test eax, eax
je 0x684574
push dword [ebp + 0x14]
push dword [ebp - 0x60]
push esi
call fcn.006633c0
add esp, 0xc
test eax, eax
je 0x684574
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call fcn.006633c0
add esp, 0xc
test eax, eax
je 0x684574
push 0
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.006630c0
add esp, 0xc
test eax, eax
je 0x684574
push edi
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.006d2cf0
add esp, 0xc
mov dword [ebp - 0x54], 1
cmp dword [ebp + 0x18], 1
jle 0x684531
push dword [ebp - 0x48]
push esi
call fcn.00662e40
add esp, 8
test eax, eax
je 0x684574
push dword [ebp - 0x50]
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.006633c0
add esp, 0xc
test eax, eax
je 0x684574
push 0
lea eax, [ebp - 0x44]
push eax
push esi
call fcn.006630c0
add esp, 0xc
test eax, eax
je 0x684574
xor ecx, ecx
test edi, edi
jle 0x68451e
cmp edi, 0x40
jb 0x6844ff
lea edx, [ebx - 1]
lea eax, [ebp + edi - 0x45]
add edx, edi
cmp ebx, eax
ja 0x684472
lea eax, [ebp - 0x44]
cmp edx, eax
jae 0x6844ff
mov eax, edi
and eax, 0x8000003f
jns 0x684480
dec eax
or eax, 0xffffffc0
inc eax
mov edx, edi
lea esi, [ebp - 0x44]
lea edi, [ebp - 0x34]
sub edx, eax
sub edi, ebx
sub esi, ebx
mov dword [ebp - 0x64], edi
mov eax, ebx
lea edi, [ebp - 0x24]
sub edi, ebx
mov dword [ebp - 0x68], edi
lea edi, [ebp - 0x14]
sub edi, ebx
mov ebx, dword [ebp - 0x64]
mov dword [ebp - 0x6c], edi
movups xmm0, xmmword [eax]
mov edi, dword [ebp - 0x68]
add ecx, 0x40
lea eax, [eax + 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x30], xmm1
movups xmm0, xmmword [eax - 0x20]
movups xmm1, xmmword [edi + eax - 0x40]
mov edi, dword [ebp - 0x6c]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
movups xmm1, xmmword [edi + eax - 0x40]
mov edi, dword [ebp - 0x70]
movups xmm0, xmmword [eax - 0x10]
pxor xmm1, xmm0
movups xmmword [eax - 0x10], xmm1
cmp ecx, edx
jl 0x6844a6
mov ebx, dword [ebp - 0x5c]
cmp ecx, edi
jge 0x68451e
lea esi, [ebp - 0x44]
mov edx, edi
sub esi, ebx
lea eax, [ecx + ebx]
sub edx, ecx
nop
mov cl, byte [esi + eax]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub edx, 1
jne 0x684510
mov eax, dword [ebp - 0x54]
mov esi, dword [ebp - 0x74]
inc eax
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp + 0x18]
jl 0x684404
mov edx, dword [ebp + 0x20]
add ebx, edi
mov ecx, dword [ebp - 0x58]
sub edx, edi
inc ecx
mov dword [ebp + 0x20], edx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], ebx
test edx, edx
jne 0x684365
push esi
call fcn.00662f20
push dword [ebp - 0x48]
call fcn.00662f20
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
push esi
call fcn.00662f20
push dword [ebp - 0x48]
call fcn.00662f20
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.006d0856
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x48]
call fcn.00662f20
add esp, 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.006d0856
mov esp, ebp
pop ebp
ret