Function at 0x684f90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1c
call fcn.006f2580
push ebx
mov ebx, dword [ebp + 0x14]
xor ecx, ecx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x174]
mov edx, dword [edi + 0x164]
mov dword [ebp - 0x18], eax
mov eax, ebx
add eax, dword [edi + 0x38]
mov dword [ebp - 0x10], edx
adc ecx, dword [edi + 0x3c]
cmp ecx, 0xf
ja 0x685227
jb 0x684fd5
cmp eax, 0xffffffe0
ja 0x685227
cmp dword [edi + 0x16c], 0
push esi
mov esi, dword [edi + 0x168]
mov dword [edi + 0x38], eax
mov dword [edi + 0x3c], ecx
mov dword [ebp - 8], esi
je 0x68504d
test ebx, ebx
jne 0x685014
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
mov eax, dword [edi + 0x160]
call eax
add esp, 8
mov dword [edi + 0x16c], ebx
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [edi + 0x40]
mov esi, 0x10
mov dword [ebp - 8], esi
movups xmmword [edi + 0x178], xmm0
mov dword [edi + 0x40], 0
mov dword [edi + 0x44], 0
mov dword [edi + 0x48], 0
mov dword [edi + 0x4c], 0
mov dword [edi + 0x16c], 0
mov eax, dword [edi + 0xc]
mov ecx, esi
bswap eax
mov dword [ebp - 0xc], eax
and ecx, 0xf
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], eax
je 0x6850cb
mov edx, dword [ebp + 0xc]
mov dword [ebp + 0x14], edx
nop dword [eax + eax]
test ebx, ebx
je 0x6850a3
mov cl, byte [edx]
dec ebx
mov eax, dword [ebp - 0x14]
inc edx
mov byte [esi + edi + 0x178], cl
inc esi
mov dword [ebp + 0x14], edx
mov al, byte [eax + edi + 0x10]
xor al, cl
mov ecx, dword [ebp - 4]
mov byte [ecx], al
inc ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0x14]
inc ecx
and ecx, 0xf
mov dword [ebp - 0x14], ecx
jne 0x685070
jmp 0x6850ab
test ecx, ecx
jne 0x685218
push esi
lea eax, [edi + 0x178]
push eax
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
call dword [ebp - 0x10]
mov edx, dword [ebp - 0x10]
add esp, 0x10
xor esi, esi
mov dword [ebp - 8], esi
jmp 0x6850d1
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0x14], eax
cmp ebx, 0x10
jb 0x6850f4
test esi, esi
je 0x6850f4
push esi
lea eax, [edi + 0x178]
push eax
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
push eax
call edx
add esp, 0x10
xor esi, esi
mov dword [ebp - 8], esi
cmp ebx, 0xc00
jb 0x685165
mov esi, dword [ebp + 0x14]
lea ecx, [edi + 0x60]
mov eax, 0xaaaaaaab
mul ebx
shr edx, 0xb
mov dword [ebp - 0x1c], edx
nop
push 0xc00
push esi
push ecx
lea eax, [edi + 0x40]
push eax
call dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push edi
push dword [ebp - 0x18]
push 0xc0
push eax
push esi
call dword [ebp + 0x18]
mov ecx, dword [ebp - 0xc]
add esp, 0x24
add dword [ebp - 4], 0xc00
add ecx, 0xc0
mov dword [ebp - 0xc], ecx
add esi, 0xc00
bswap ecx
sub ebx, 0xc00
mov dword [edi + 0xc], ecx
sub dword [ebp - 0x1c], 1
lea ecx, [edi + 0x60]
jne 0x685110
mov dword [ebp + 0x14], esi
mov esi, dword [ebp - 8]
mov eax, ebx
and eax, 0xfffffff0
mov dword [ebp - 0x1c], eax
je 0x6851b0
push eax
push dword [ebp + 0x14]
mov esi, eax
lea eax, [edi + 0x60]
push eax
lea eax, [edi + 0x40]
shr esi, 4
push eax
call dword [ebp - 0x10]
mov eax, dword [ebp - 4]
push edi
push dword [ebp - 0x18]
push esi
push eax
push dword [ebp + 0x14]
call dword [ebp + 0x18]
mov eax, dword [ebp - 0xc]
add esp, 0x24
add eax, esi
mov esi, dword [ebp - 8]
mov dword [ebp - 0xc], eax
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 0x1c]
add dword [ebp - 4], eax
add dword [ebp + 0x14], eax
sub ebx, eax
test ebx, ebx
je 0x685218
push dword [ebp - 0x18]
lea eax, [edi + 0x10]
push eax
mov eax, dword [edi + 0x170]
push edi
call eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov ecx, dword [ebp - 0x14]
inc eax
bswap eax
mov dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
lea edx, [ecx + eax]
add ecx, 0x10
add ecx, edi
sub dword [ebp + 0x14], eax
lea eax, [edi + 0x178]
mov dword [ebp - 0x18], ecx
mov edi, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, ecx
mov cl, byte [edi + edx]
lea edx, [edx + 1]
mov edi, dword [ebp - 0x1c]
mov byte [edi + esi], cl
inc esi
mov al, byte [eax]
mov edi, dword [ebp + 0x14]
xor al, cl
mov byte [edx - 1], al
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x18], eax
sub ebx, 1
jne 0x6851f2
mov edi, dword [ebp + 8]
mov dword [edi + 0x168], esi
xor eax, eax
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret