Function at 0x10020880
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0x2c], eax
cmp dword [esp + 0x38], 0
push ebx
push ebp
mov ebp, dword [esp + 0x3c]
push esi
mov dword [esp + 0x14], ebp
mov ebx, ecx
je 0x10020a6e
test ebx, ebx
je 0x10020a6e
lea eax, [ebp + 0x8c]
test eax, eax
je 0x10020a6e
lea esi, [ebp + 0x34]
test esi, esi
je 0x10020a6e
lea ecx, [ebp + 0x88]
test ecx, ecx
je 0x10020a6e
mov ecx, dword [esi + 4]
mov edx, dword [esi]
mov eax, dword [eax]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x18], edx
mov edx, dword [esi + 8]
push edi
mov dword [esp + 0x28], ecx
push esi
mov ecx, esi
mov dword [esp + 0x28], edx
call fcn.1001fdb0
mov eax, dword [esp + 0x50]
add eax, 7
cdq
and edx, 7
add eax, edx
mov edi, eax
add esp, 4
sar edi, 3
cmp dword [ebp + 0x20], 0
je 0x10020946
xor edx, edx
test edi, edi
jle 0x10020981
mov eax, dword [esp + 0x48]
lea ecx, [esp + 0x2c]
mov ebp, ebx
sub eax, ecx
sub ebp, ecx
lea ebx, [ebx]
mov cl, byte [esi + edx]
lea ebx, [esp + edx + 0x2c]
xor cl, byte [eax + ebx]
inc edx
cmp edx, edi
mov byte [ebx], cl
mov byte [ebx + ebp], cl
jl 0x10020930
jmp 0x1002097d
xor ecx, ecx
test edi, edi
jle 0x10020981
mov edx, dword [esp + 0x48]
lea eax, [esp + 0x2c]
sub edx, eax
mov eax, ebx
lea ebx, [esp + 0x2c]
sub eax, ebx
mov dword [esp + 0x14], eax
mov bl, byte [esi + ecx]
lea ebp, [esp + ecx + 0x2c]
mov al, byte [edx + ebp]
xor bl, al
mov byte [ebp], al
mov eax, dword [esp + 0x14]
inc ecx
cmp ecx, edi
mov byte [eax + ebp], bl
jl 0x10020962
mov ebp, dword [esp + 0x18]
mov ebx, dword [esp + 0x4c]
and ebx, 0x80000007
jns 0x10020992
dec ebx
or ebx, 0xfffffff8
inc ebx
mov eax, dword [esp + 0x4c]
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x100209d9
mov ecx, dword [esp + eax + 0x1c]
mov edx, dword [esp + eax + 0x20]
lea eax, [esp + eax + 0x1c]
mov dword [esi], ecx
mov ecx, dword [eax + 8]
mov dword [esi + 4], edx
mov edx, dword [eax + 0xc]
pop edi
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10087a66
add esp, 0x30
ret
mov cl, 8
sub cl, bl
lea edi, [ebp + 0x35]
mov byte [esp + 0x11], cl
lea esi, [esp + eax + 0x1d]
mov ebp, 4
lea ecx, [ecx]
movzx edx, byte [esi - 1]
mov al, byte [esi]
mov ecx, ebx
shl dl, cl
movzx ecx, byte [esp + 0x11]
mov bl, al
shr bl, cl
add esi, 4
add edi, 4
or dl, bl
mov ebx, dword [esp + 0x14]
mov byte [edi - 5], dl
mov dl, byte [esi - 3]
mov ecx, ebx
shl al, cl
movzx ecx, byte [esp + 0x11]
shr dl, cl
movzx ecx, byte [esp + 0x11]
or al, dl
mov byte [edi - 4], al
mov al, byte [esi - 2]
mov dl, al
mov al, byte [esi - 3]
shr dl, cl
mov ecx, ebx
shl al, cl
movzx ecx, byte [esp + 0x11]
or dl, al
mov al, byte [esi - 2]
mov byte [edi - 3], dl
movzx edx, byte [esi - 1]
shr dl, cl
mov ecx, ebx
shl al, cl
or dl, al
sub ebp, 1
mov byte [edi - 2], dl
jne 0x100209f0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.10087a66
add esp, 0x30
ret
mov ecx, dword [esp + 0x38]
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 0x1904002b
call fcn.10087a66
add esp, 0x30
ret