Function at 0x10006f91
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x1002b134]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
lea ebx, [eax + 0xa]
and ebx, 0x80000007
push edi
jns 0x10006fc9
dec ebx
or ebx, 0xfffffff8
inc ebx
je 0x10006fd2
push 8
pop eax
sub eax, ebx
mov ebx, eax
call fcn.1000d230
and al, 0xf8
or al, bl
mov byte [ebp - 0xc], al
xor esi, esi
inc esi
jmp 0x10006fee
dec ebx
call fcn.1000d230
mov byte [ebp + esi - 0xc], al
inc esi
test ebx, ebx
jne 0x10006fe3
lea edi, [ebp - 0x14]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x20]
and dword [eax], ebx
lea edi, [ebp - 0x14]
mov ebx, edi
sub ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
cmp esi, 8
jge 0x10007022
call fcn.1000d230
mov byte [ebp + esi - 0xc], al
inc esi
inc dword [ebp - 0x1c]
cmp esi, 8
jne 0x10007072
xor eax, eax
lea esi, [ebp - 0xc]
sub edi, esi
lea esi, [ebp + eax - 0xc]
mov cl, byte [edi + esi]
xor byte [esi], cl
inc eax
cmp eax, 8
jl 0x1000702b
lea eax, [ebp - 0xc]
push dword [ebp - 0x18]
push dword [ebp - 0x24]
call fcn.10006eeb
pop ecx
mov ecx, dword [ebp - 0x18]
pop esi
push 8
pop esi
mov al, byte [ebx + ecx]
xor byte [ecx], al
inc ecx
dec esi
jne 0x10007050
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebp - 0x20]
add dword [eax], 8
xor esi, esi
sub ebx, 8
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x1c], 2
jle 0x1000700d
cmp dword [ebp + 0xc], 0
je 0x100070f2
lea ebx, [ebp - 0x14]
sub ebx, dword [ebp - 0x18]
cmp esi, 8
jge 0x1000709c
inc esi
mov eax, dword [ebp + 8]
mov al, byte [eax]
inc dword [ebp + 8]
dec dword [ebp + 0xc]
cmp esi, 8
mov byte [ebp + esi - 0xd], al
jne 0x100070ec
xor ecx, ecx
lea esi, [ebp - 0xc]
sub edi, esi
lea esi, [ebp + ecx - 0xc]
mov dl, byte [edi + esi]
xor byte [esi], dl
inc ecx
cmp ecx, 8
jl 0x100070a5
push dword [ebp - 0x18]
lea eax, [ebp - 0xc]
push dword [ebp - 0x24]
call fcn.10006eeb
pop ecx
pop ecx
mov ecx, dword [ebp - 0x18]
push 8
pop edi
mov al, byte [ebx + ecx]
xor byte [ecx], al
inc ecx
dec edi
jne 0x100070ca
lea edi, [ebp - 0x14]
lea esi, [ebp - 0xc]
mov eax, dword [ebp - 0x20]
add dword [eax], 8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x18]
mov dword [ebp - 0x18], ecx
xor esi, esi
sub ebx, 8
cmp dword [ebp + 0xc], 0
jne 0x10007084
lea ebx, [ebp - 0x14]
sub ebx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], 1
cmp esi, 8
jge 0x10007110
mov byte [ebp + esi - 0xc], 0
inc esi
inc dword [ebp - 0x1c]
cmp esi, 8
jne 0x10007160
xor eax, eax
lea esi, [ebp - 0xc]
sub edi, esi
lea esi, [ebp + eax - 0xc]
mov cl, byte [edi + esi]
xor byte [esi], cl
inc eax
cmp eax, 8
jl 0x10007119
push dword [ebp - 0x18]
push dword [ebp - 0x24]
lea eax, [ebp - 0xc]
call fcn.10006eeb
pop edi
pop ecx
mov ecx, dword [ebp - 0x18]
push 8
pop edi
mov al, byte [ebx + ecx]
xor byte [ecx], al
inc ecx
dec edi
jne 0x1000713e
lea esi, [ebp - 0xc]
lea edi, [ebp - 0x14]
mov eax, dword [ebp - 0x20]
add dword [eax], 8
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor esi, esi
mov edi, dword [ebp - 0x18]
sub ebx, 8
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x1c], 7
jle 0x100070ff
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
pop ebx
call fcn.1000bda4
leave
ret