Function at 0x10210860
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x170
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [0x102727c4]
mov dword [0x102727c4], 0xf98
add edx, 0xffffeba2
mov dword [0x102727c8], edx
mov edx, ecx
mov dword [ebp - 0x130], eax
mov dword [ebp - 0x134], edx
mov dword [ebp - 0x138], ecx
jmp 0x10210913
lea eax, [ebp - 0x2c]
mov dword [0x102727c4], 0x158a
mov dword [ebp - 0x13c], eax
call fcn.10211711
mov dword [esp], eax
mov eax, dword [ebp - 0x13c]
mov dword [esp + 4], eax
call fcn.1021046d
mov ecx, eax
mov dword [0x102727e4], eax
mov eax, esp
mov edx, dword [ebp - 0x140]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
mov dword [ebp - 0x144], eax
xor eax, eax
mov ecx, eax
mov dword [ebp - 0x148], ecx
mov dword [ebp - 0x14c], eax
jmp 0x102109b4
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0x134]
lea edx, section..data
imul esi, ecx, 0x10c
mov edi, edx
add edi, esi
add edi, 0xbc
imul esi, ecx, 0x10c
add edx, esi
add edx, 0x60
add ecx, 1
mov esi, dword [edi]
movzx edx, word [edx]
xor edx, esi
add edx, eax
cmp ecx, 0x5a4
mov eax, edx
mov dword [ebp - 0x140], edx
mov dword [ebp - 0x134], ecx
mov dword [ebp - 0x138], eax
jne 0x10210913
mov dword [0x102727c4], 0x40d
xor eax, eax
mov dword [ebp - 0x150], eax
jmp 0x10210982
mov eax, dword [ebp - 0x150]
mov cl, byte [eax + 0x102135a0]
mov dl, byte [eax + 0x10213571]
sub dl, cl
mov byte [ebp + eax - 0x2c], dl
add eax, 1
cmp eax, 0xe
mov dword [ebp - 0x150], eax
je 0x102108a3
jmp 0x10210982
mov eax, dword [ebp - 0x14c]
mov ecx, dword [ebp - 0x148]
lea edx, section..data
mov esi, eax
add esi, 1
imul edi, eax, 0x10c
mov ebx, edx
add ebx, edi
add ebx, 0x60
mov edi, dword [ebp - 0x144]
add edi, ecx
mov dword [ebp - 0x154], eax
imul eax, eax, 0x10c
mov dword [ebp - 0x158], eax
mov eax, edx
mov dword [ebp - 0x15c], ecx
mov ecx, dword [ebp - 0x158]
add eax, ecx
add eax, 0xbc
mov ecx, dword [ebp - 0x154]
imul ecx, ecx, 0x10c
add edx, ecx
add edx, 0x5c
mov eax, dword [eax]
mov ecx, dword [edx]
movzx edx, word [ebx]
xor edx, eax
mov dword [esp], edi
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 0x164], esi
call fcn.10210be2
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0x15c]
add eax, ecx
mov edx, dword [ebp - 0x164]
cmp edx, 0x5a4
mov dword [ebp - 0x14c], edx
mov dword [ebp - 0x148], eax
jne 0x102109b4
lea eax, [0x1021357f]
mov ecx, 0x20
lea edx, [ebp - 0x12c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x20
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x16c], ecx
call fcn.102106ea
mov eax, dword [ebp - 0x168]
mov dword [esp], eax
mov ecx, dword [ebp - 0x144]
mov dword [esp + 4], ecx
mov dword [esp + 8], ecx
mov edx, dword [ebp - 0x140]
mov dword [esp + 0xc], edx
call fcn.1021125d
xor eax, eax
mov ecx, dword [ebp - 0x144]
add ecx, 0xb2e04
mov edx, dword [ebp - 0x130]
mov dword [edx], ecx
mov dword [edx + 4], 0x158e00
mov ecx, dword [ebp - 0x144]
add ecx, 0xae6e3
mov dword [edx + 8], ecx
mov dword [edx + 0xc], 0x2010
mov dword [0x102727c4], 0x2343
add esp, 0x170
pop esi
pop edi
pop ebx
pop ebp
ret