Function at 0x10211800
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x904
mov eax, dword [0x102a8930]
xor eax, esp
mov dword [esp + 0x900], eax
mov ecx, dword [esp + 0x910]
mov eax, dword [esp + 0x908]
mov edx, dword [esp + 0x914]
push ebx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x920]
push esi
push eax
mov dword [esp + 0x14], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x10], ecx
call fcn.101ec180
mov esi, dword [esp + 0x918]
add eax, 7
cdq
and edx, 7
add eax, edx
mov ebx, eax
sar ebx, 3
add esp, 4
dec ebx
cmp esi, 4
jne 0x1021186d
mov esi, 0x20
jmp 0x1021187a
sub esi, 6
neg esi
sbb esi, esi
and esi, 0xffffffd4
add esi, 0x40
lea edx, [esi + esi + 1]
cmp dword [esp + 0x920], edx
jge 0x102118a1
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x900]
xor ecx, esp
call fcn.1022649a
add esp, 0x904
ret
push ebp
lea eax, [ebx + ebx*2 + 3]
push 1
push eax
call fcn.10227692
mov ebp, eax
add esp, 8
test ebp, ebp
jne 0x102118d2
lea eax, [ebp - 2]
pop ebp
pop esi
pop ebx
mov ecx, dword [esp + 0x900]
xor ecx, esp
call fcn.1022649a
add esp, 0x904
ret
mov ecx, dword [esp + 0x924]
mov edx, dword [esp + 0xc]
push edi
push ecx
push edx
lea eax, [esp + 0x440]
lea edi, [ebx + ebp + 1]
push eax
lea edi, [edi + ebx + 1]
call fcn.101ebf30
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx + 0x20bc]
add esp, 0xc
test eax, eax
je 0x1021192c
cmp eax, 1
jne 0x10211914
cmp dword [ecx + 0x1cac], 0
je 0x1021192c
push ecx
lea ecx, [esp + 0x43c]
push ecx
lea edx, [esp + 0x28]
push edx
call fcn.102102a0
add esp, 0xc
jmp 0x10211949
push ecx
add ecx, 0x830
push ecx
lea eax, [esp + 0x440]
push eax
lea ecx, [esp + 0x2c]
push ecx
call fcn.101f0790
add esp, 0x10
lea edx, [esp + 0x20]
push edx
call fcn.101ec180
add eax, 7
cdq
and edx, 7
add eax, edx
sar eax, 3
add esp, 4
cmp eax, ebx
jle 0x10211976
push ebp
call fcn.102264a9
mov eax, 0xfffffffe
jmp 0x10211b20
push ebx
lea eax, [esp + 0x24]
push eax
push edi
call fcn.101ecb60
push esi
lea ecx, [esp + 0x860]
push edi
push ecx
call fcn.10228b20
mov eax, dword [esp + 0x940]
sub eax, esi
push eax
add edi, esi
push edi
push ebp
call fcn.10228b20
mov edx, dword [esp + 0x940]
mov eax, ebx
sub eax, esi
push eax
push ebp
push edx
mov edi, esi
lea ecx, [esp + 0x900]
mov dword [esp + 0x40], eax
call fcn.10211380
add esp, 0x30
xor eax, eax
test esi, esi
jle 0x102119e3
lea ecx, [ecx]
mov cl, byte [esp + eax + 0x8d0]
xor byte [esp + eax + 0x850], cl
inc eax
cmp eax, esi
jl 0x102119d0
mov eax, dword [esp + 0x91c]
mov edi, dword [esp + 0x10]
push esi
lea edx, [esp + 0x854]
push edx
push eax
lea ecx, [ebx + ebp + 1]
call fcn.10211380
mov ecx, edi
add esp, 0xc
test ecx, ecx
jle 0x10211a1d
lea edi, [ebx + ebp + 1]
mov eax, ebp
sub edi, ebp
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x10211a12
mov eax, dword [esp + 0x91c]
cmp eax, 4
je 0x10211a4d
cmp eax, 6
je 0x10211a4d
mov eax, dword [esp + 0x930]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0x898]
push edx
call fcn.101fc890
add esp, 0xc
jmp 0x10211a72
mov eax, dword [esp + 0x930]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esi*8]
push edx
lea eax, [esp + 0x89c]
push eax
call fcn.101fb430
add esp, 0x10
cmp byte [esi + ebp], 0
lea eax, [esi + ebp]
jne 0x10211a86
jmp 0x10211a80
inc eax
cmp byte [eax], 0
je 0x10211a80
cmp byte [eax], 1
jne 0x10211b15
lea ecx, [esp + 0x890]
mov edi, esi
mov edx, ebp
mov dword [esp + 0x10], ebp
mov dword [esp + 0x14], ecx
cmp esi, 4
jb 0x10211ac7
mov ecx, dword [ecx]
cmp ecx, dword [edx]
jne 0x10211b15
mov ecx, dword [esp + 0x14]
sub edi, 4
add ecx, 4
add edx, 4
mov dword [esp + 0x14], ecx
cmp edi, 4
jae 0x10211aa7
mov dword [esp + 0x10], edx
test edi, edi
je 0x10211af3
mov dl, byte [edx]
cmp dl, byte [ecx]
jne 0x10211b15
cmp edi, 1
jbe 0x10211af3
mov edx, dword [esp + 0x10]
mov dl, byte [edx + 1]
cmp dl, byte [ecx + 1]
jne 0x10211b15
cmp edi, 2
jbe 0x10211af3
mov edx, dword [esp + 0x10]
mov dl, byte [edx + 2]
cmp dl, byte [ecx + 2]
jne 0x10211b15
inc eax
mov edi, ebp
sub edi, eax
sub edi, esi
add edi, ebx
push edi
push eax
mov eax, dword [esp + 0x24]
push eax
call fcn.10228b20
push ebp
call fcn.102264a9
add esp, 0x10
mov eax, edi
jmp 0x10211b23
push ebp
call fcn.102264a9
mov eax, 0xfffffffd
add esp, 4
mov ecx, dword [esp + 0x910]
pop edi
pop ebp
pop esi
pop ebx
xor ecx, esp
call fcn.1022649a
add esp, 0x904
ret