Function at 0x1000698e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
wait
int1
mov dword [ebp - 8], esi
mov al, byte [esi + 0x14]
test al, al
jne 0x10006a7c
mov eax, dword [ebp + 0xc]
jae 0x10006904
add eax, 0xa
push 8
cdq
pop ecx
idiv ecx
mov ebx, edx
test ebx, ebx
je 0x100068c2
push ecx
pop eax
sub eax, ebx
mov ebx, eax
mov edi, dword [sym.imp.MSVCRT.dll_rand]
call edi
and al, 0xf8
push 1
or al, bl
pop esi
mov byte [ebp - 0x14], al
mov eax, ebx
dec ebx
test eax, eax
je 0x100068e6
inc ebx
call edi
mov byte [ebp + esi - 0x14], al
inc esi
dec ebx
jne 0x100068dc
xor eax, eax
lea edi, [ebp - 0x1c]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
lea ebx, [ebp - 0x1c]
lea edi, [ebp - 0x1c]
mov dword [ebp - 4], 0x1000001
and dword [eax], 0
sub ebx, dword [ebp + 0x10]
cmp esi, 8
dec byte [eax]
jge 0x10006919
call dword [sym.imp.MSVCRT.dll_rand]
mov byte [ebp + esi - 0x14], al
inc esi
inc dword [ebp - 4]
cmp esi, 8
jne 0x10006972
lea eax, [ebp - 0x14]
xor esi, esi
sub edi, eax
lea eax, [ebp + esi - 0x14]
mov cl, byte [edi + eax]
xor byte [eax], cl
inc esi
cmp esi, 8
jl 0x10006922
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
add eax, 4
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10006ab0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0xc], ebx
push 8
pop esi
mov eax, dword [ebx + ecx]
xor byte [ecx], al
inc ecx
dec esi
jne 0x10006950
mov eax, dword [ebp + 0x14]
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x1c]
add dword [eax], 8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x70]
xor esi, esi
mov dword [ebp + 0x10], ecx
sub ebx, 8
cmp dword [ebp - 4], 2
jle 0x10006903
cmp dword [ebp + 0xc], 0
je 0x100069fb
lea ebx, [ebp - 0x1c]
sub ebx, dword [ebp + 0x10]
cmp esi, 8
jge 0x100069a4
mov eax, dword [ebp + 8]
inc esi
inc dword [ebp + 8]
inc ebp
or bh, bh
dec ebp
or al, 0x8a
add byte [ebx + 0x448908fe], al
invalid
jmp 0x10006a12
push edi
lea eax, [ebp - 0x14]
xor esi, esi
sub edi, eax
clc
popfd
inc esp
xor eax, 0x70c8aec
xor byte [eax], cl
inc esi
cmp esi, 0x48
jl 0x100069a5
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
add eax, 4
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10006ab0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0xc], ebx
push 8
pop esi
mov al, byte [ebx + ecx]
xor byte [ecx], al
inc ecx
dec esi
jne 0x100069d3
mov eax, dword [ebp + 0x14]
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x1c]
xchg ebx, eax
add byte [eax], cl
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x10]
jae 0x100069e5
mov dword [ebp + 0x10], ecx
sub ebx, 8
cmp dword [ebp + 0xc], 0
jne 0x10006984
lea ebx, [ebp - 0x1c]
mov dword [ebp - 4], 0x809
sub ebx, dword [ebp + 0x10]
cmp esi, 8
jge 0x10006a19
and byte [ebp + esi - 4], 4
inc esi
inc dword [ebp - 4]
xchg esi, edi
or byte [ebp + 0x57], dh
jne 0x10006a72
lea eax, [ebp - 0x14]
xor esi, esi
sub edi, eax
lea eax, [ebp + esi - 0x14]
mov cl, byte [edi + eax]
xor byte [eax], cl
inc esi
cmp esi, 8
jl 0x10006a22
mov eax, dword [ebp - 8]
push dword [ebp + 0x10]
add eax, 4
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.10006ab0
mov ecx, dword [ebp + 0x10]
add esp, 0xc
mov dword [ebp - 0xc], ebx
imul ecx, dword [eax], 0x5e
mov al, byte [ebx + ecx]
xor byte [ecx], al
inc ecx
dec esi
jne 0x10006a50
mov eax, dword [ebp + 0x14]
lea esi, [ebp - 0x14]
lea edi, [ebp - 0x1c]
add dword [eax], 8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp + 0x10]
xor esi, esi
mov dword [ebp + 0x10], ecx
sub ebx, 8
or byte [ebx + 0x7e07fc7d], dl
nop
xchg ebx, eax
jge 0x10006a71
pop es
jle 0x10006a08
pop edi
pop ebx
jmp 0x10006aab
cmp al, 5
jne 0x10006aab
push dword [ebp + 0x14]
lea eax, [edi + 4]
mov ecx, esi
push ebp
adc byte [eax - 1], dl
jbe 0x10006aa7
call fcn.10024704
push eax
mov ecx, esi
call fcn.100081e2
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.10006b58
add esp, 0x20
add byte [ebx - 0x36a1df3c], al
pop esi
leave
ret 0x10