Function at 0x694ef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x18
call fcn.00702be0
cmp dword [ebp + 0x20], 0
push ebx
push esi
mov esi, dword [ebp + 0x1c]
push edi
mov esi, dword [esi]
je 0x695033
mov edx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
mov dword [ebp - 4], edx
test esi, esi
je 0x695028
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x20], ebx
nop dword [eax]
test edi, edi
je 0x694f54
movzx ecx, byte [esi + eax]
dec edi
movzx eax, byte [ebx]
inc ebx
xor ecx, eax
mov dword [ebp + 0x20], ebx
mov eax, dword [ebp + 0x18]
mov byte [esi + eax], cl
inc esi
mov byte [edx], cl
inc edx
mov dword [ebp - 4], edx
and esi, 0xf
jne 0x694f30
mov ecx, dword [ebp + 0x20]
cmp edi, 0x10
jb 0x694fcd
mov eax, ecx
mov ebx, edx
sub eax, dword [ebp + 0x18]
sub ebx, dword [ebp + 0x18]
mov dword [ebp - 8], eax
mov eax, edi
shr eax, 4
mov dword [ebp - 0xc], eax
shl eax, 4
add edx, eax
add ecx, eax
mov dword [ebp - 4], edx
mov dword [ebp + 0x20], ecx
nop
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
push eax
push eax
call dword [ebp + 0x24]
add esp, 0xc
cmp esi, 0x10
jae 0x694fbb
mov ecx, dword [ebp + 0x18]
mov edx, 0xf
sub edx, esi
add ecx, esi
mov esi, dword [ebp - 8]
shr edx, 2
inc edx
mov eax, dword [esi + ecx]
lea ecx, [ecx + 4]
xor dword [ecx - 4], eax
mov eax, dword [ecx - 4]
mov dword [ebx + ecx - 4], eax
sub edx, 1
jne 0x694fa6
add dword [ebp - 8], 0x10
sub edi, 0x10
add ebx, 0x10
xor esi, esi
sub dword [ebp - 0xc], 1
jne 0x694f80
test edi, edi
je 0x69515d
push dword [ebp + 0x14]
mov ebx, dword [ebp + 0x18]
push ebx
push ebx
call dword [ebp + 0x24]
sub dword [ebp + 0x20], ebx
lea edx, [esi + ebx]
mov ebx, dword [ebp - 4]
add esp, 0xc
sub ebx, dword [ebp + 0x18]
add esi, edi
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 0x20]
nop word [eax + eax]
movzx ecx, byte [edx + esi]
lea edx, [edx + 1]
movzx eax, byte [edx - 1]
xor ecx, eax
mov byte [edx - 1], cl
mov byte [edx + ebx - 1], cl
sub edi, 1
jne 0x695000
mov eax, dword [ebp + 0x1c]
mov esi, dword [ebp - 0xc]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 8]
mov dword [ebp + 0x20], ecx
jmp 0x694f57
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
test esi, esi
je 0x695077
mov edx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x20], edx
nop dword [eax]
test ebx, ebx
je 0x69507d
mov al, byte [esi + eax]
dec ebx
mov cl, byte [edx]
inc edx
xor al, cl
mov dword [ebp + 0x20], edx
mov byte [edi], al
inc edi
mov eax, dword [ebp + 0x18]
mov dword [ebp - 4], edi
mov dword [ebp - 8], ebx
mov byte [esi + eax], cl
inc esi
and esi, 0xf
jne 0x695050
jmp 0x69507d
mov eax, dword [ebp + 8]
mov dword [ebp + 0x20], eax
mov edx, dword [ebp + 0x24]
cmp ebx, 0x10
jb 0x695112
mov ecx, dword [ebp + 0x18]
mov eax, edi
sub eax, ecx
mov dword [ebp - 0xc], eax
mov eax, ebx
shr eax, 4
mov dword [ebp - 0x10], eax
jmp 0x6950a3
mov ecx, dword [ebp + 0x18]
push dword [ebp + 0x14]
push ecx
push ecx
call edx
add esp, 0xc
cmp esi, 0x10
jae 0x6950f3
mov edi, dword [ebp + 0x18]
mov eax, 0xf
mov edx, dword [ebp + 0x20]
sub eax, esi
sub edx, dword [ebp - 4]
add edi, esi
mov ebx, dword [ebp - 0xc]
mov esi, eax
shr esi, 2
mov dword [ebp - 0x18], edx
inc esi
mov dword [ebp - 0x14], eax
mov eax, dword [edi]
lea ecx, [ebx + edi]
mov edx, dword [ecx + edx]
lea edi, [edi + 4]
xor eax, edx
mov dword [ecx], eax
mov dword [edi - 4], edx
mov edx, dword [ebp - 0x18]
sub esi, 1
jne 0x6950d3
mov ebx, dword [ebp - 8]
mov edi, dword [ebp - 4]
add dword [ebp - 0xc], 0x10
sub ebx, 0x10
add dword [ebp + 0x20], 0x10
add edi, 0x10
mov edx, dword [ebp + 0x24]
xor esi, esi
sub dword [ebp - 0x10], 1
mov dword [ebp - 8], ebx
mov dword [ebp - 4], edi
jne 0x6950a0
test ebx, ebx
je 0x69515d
push dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
push eax
push eax
call edx
mov ecx, dword [ebp + 0x18]
add esp, 0xc
sub dword [ebp + 0x20], edi
sub edi, ecx
lea eax, [esi + ecx]
add esi, ebx
mov dword [ebp - 0xc], esi
mov esi, dword [ebp + 0x20]
mov dword [ebp - 0x10], eax
nop dword [eax]
lea ecx, [eax + edi]
mov al, byte [eax]
mov dl, byte [ecx + esi]
xor al, dl
mov byte [ecx], al
mov eax, dword [ebp - 0x10]
mov byte [eax], dl
inc eax
mov dword [ebp - 0x10], eax
sub ebx, 1
jne 0x695140
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp + 0x1c]
pop edi
mov dword [eax], esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret