Function at 0x10211590
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x914
mov eax, dword [0x102a8930]
xor eax, esp
mov dword [esp + 0x910], eax
mov ecx, dword [esp + 0x920]
mov eax, dword [esp + 0x918]
mov edx, dword [esp + 0x924]
push ebx
mov ebx, dword [esp + 0x92c]
push ebp
push esi
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x938]
push edi
push eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x30], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x1c], ecx
call fcn.101ec180
mov esi, dword [esp + 0x930]
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
add esp, 4
mov dword [esp + 0x1c], eax
lea edi, [eax - 1]
cmp esi, 4
jne 0x1021160e
mov esi, 0x20
jmp 0x1021161b
sub esi, 6
neg esi
sbb esi, esi
and esi, 0xffffffd4
add esi, 0x40
lea edx, [esi + esi]
mov ebp, edi
sub ebp, edx
lea eax, [ebp - 1]
cmp ebx, eax
jle 0x10211631
or eax, 0xffffffff
jmp 0x102117e4
lea ecx, [edi + edi*2 + 3]
push 1
push ecx
call fcn.10227692
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x1021164e
lea eax, [ebx - 2]
jmp 0x102117e4
lea eax, [ebx + edi + 1]
lea edx, [eax + edi + 1]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x92c]
mov dword [esp + 0x28], edx
cmp eax, 4
je 0x1021168e
cmp eax, 6
je 0x1021168e
mov eax, dword [esp + 0x940]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esp + 0x8a8]
push edx
call fcn.101fc890
add esp, 0xc
jmp 0x102116b3
mov eax, dword [esp + 0x940]
mov ecx, dword [esp + 0x18]
push eax
push ecx
lea edx, [esi*8]
push edx
lea eax, [esp + 0x8ac]
push eax
call fcn.101fb430
add esp, 0x10
push esi
lea ecx, [esp + 0x8a4]
push ecx
push ebx
call fcn.10228b20
sub ebp, dword [esp + 0x1c]
lea edx, [ebx + esi]
dec ebp
push ebp
push 0
push edx
call fcn.10228aa0
mov ecx, dword [esp + 0x28]
mov eax, ebx
sub eax, ecx
push ecx
mov ecx, dword [esp + 0x48]
sub eax, esi
add eax, edi
push ecx
push eax
mov byte [eax - 1], 1
call fcn.10228b20
lea edx, [esp + 0x884]
push esi
push edx
call fcn.101ef540
mov ecx, dword [esp + 0x958]
push esi
lea eax, [esp + 0x890]
mov ebp, edi
push eax
sub ebp, esi
push ecx
mov ecx, dword [esp + 0x4c]
mov edi, ebp
call fcn.10211380
add esp, 0x38
test ebp, ebp
jle 0x1021173b
mov edi, dword [esp + 0x14]
mov eax, ebx
sub edi, ebx
mov ecx, ebp
mov edi, edi
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x10211730
mov eax, dword [esp + 0x92c]
push ebp
push ebx
push eax
mov edi, esi
lea ecx, [esp + 0x8ec]
call fcn.10211380
add esp, 0xc
xor eax, eax
test esi, esi
jle 0x10211773
lea esp, [esp]
mov cl, byte [esp + eax + 0x8e0]
xor byte [esp + eax + 0x860], cl
inc eax
cmp eax, esi
jl 0x10211760
mov edi, dword [esp + 0x28]
push esi
lea edx, [esp + 0x864]
push edx
push edi
call fcn.10228b20
push ebp
lea eax, [edi + esi]
push ebx
push eax
call fcn.10228b20
mov eax, dword [esp + 0x34]
dec eax
push eax
lea ecx, [esp + 0x464]
push edi
push ecx
call fcn.101ebf30
mov eax, dword [esp + 0x44]
push eax
add eax, 0x418
push eax
lea edx, [esp + 0x474]
push edx
lea eax, [esp + 0x60]
push eax
call fcn.101f0790
mov esi, dword [esp + 0x50]
mov edx, dword [esp + 0x58]
push esi
lea ecx, [esp + 0x68]
push ecx
push edx
call fcn.101ecb60
add esp, 0x40
push ebx
call fcn.102264a9
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x920]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1022649a
add esp, 0x914
ret