Function at 0x10211df0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x8d4
mov eax, dword [0x102a8930]
xor eax, esp
mov dword [esp + 0x8d0], eax
mov eax, dword [esp + 0x8d8]
mov ecx, dword [esp + 0x8e0]
mov edx, dword [esp + 0x8e8]
push ebp
mov ebp, dword [esp + 0x8e8]
push esi
push edi
push eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], edx
call fcn.101ec180
dec eax
mov dword [esp + 0x20], eax
add eax, 7
cdq
and edx, 7
add eax, edx
mov esi, eax
push 0x3f
lea eax, [esp + 0x865]
push 0
push eax
sar esi, 3
mov byte [esp + 0x86c], 0
call fcn.10228aa0
push 0x3f
lea ecx, [esp + 0x8b1]
push 0
push ecx
mov byte [esp + 0x8b8], 0
call fcn.10228aa0
mov edi, dword [esp + 0x918]
lea edx, [edi + ebp + 2]
add esp, 0x1c
cmp esi, edx
jge 0x10211ea7
pop edi
pop esi
or eax, 0xffffffff
pop ebp
mov ecx, dword [esp + 0x8d0]
xor ecx, esp
call fcn.1022649a
add esp, 0x8d4
ret
lea eax, [esi + esi*2]
lea ecx, [eax + edi*2]
sub ecx, ebp
add ecx, 0xb
push 1
push ecx
call fcn.10227692
add esp, 8
mov dword [esp + 0x14], eax
test eax, eax
jne 0x10211ee2
pop edi
pop esi
mov eax, 0xfffffffe
pop ebp
mov ecx, dword [esp + 0x8d0]
xor ecx, esp
call fcn.1022649a
add esp, 0x8d4
ret
mov edx, dword [esp + 0x8f8]
lea eax, [eax + edi + 1]
push ebx
lea ebx, [eax + ebp]
lea ebx, [ebx + edi + 9]
mov edi, ebx
sub edi, ebp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x14]
add edi, esi
push edx
mov dword [esp + 0x28], edi
push eax
lea ecx, [esp + 0x450]
sub edi, ebp
push ecx
add edi, esi
call fcn.101ebf30
mov eax, dword [esp + 0x1c]
push eax
add eax, 0x418
push eax
lea edx, [esp + 0x45c]
push edx
lea eax, [esp + 0x48]
push eax
call fcn.101f0790
push esi
lea ecx, [esp + 0x50]
push ecx
push edi
call fcn.101ecb60
add esp, 0x28
cmp byte [edi + esi - 1], 0xbc
je 0x10211f57
mov esi, 0xfffffffe
jmp 0x10212119
mov eax, esi
sub eax, ebp
mov dword [esp + 0x10], eax
dec eax
push eax
push edi
push ebx
call fcn.10228b20
sub edi, ebp
push ebp
lea edx, [edi + esi - 1]
push edx
lea eax, [esp + 0x874]
push eax
call fcn.10228b20
mov ecx, dword [esp + 0x38]
mov al, byte [ebx]
add esi, esi
add esi, esi
add esi, esi
sub ecx, esi
add ecx, 8
mov edx, 0xff
shl edx, cl
add esp, 0x18
mov dword [esp + 0x14], esi
test al, dl
je 0x10211faa
mov esi, 0xfffffffd
jmp 0x10212119
mov edx, dword [esp + 0x8ec]
mov esi, dword [esp + 0x10]
push ebp
lea ecx, [esp + 0x864]
push ecx
mov ecx, dword [esp + 0x2c]
lea edi, [esi - 1]
push edx
call fcn.10211380
add esp, 0xc
test esi, esi
jle 0x10211feb
mov edi, dword [esp + 0x24]
mov eax, ebx
sub edi, ebx
mov ecx, esi
lea esp, [esp]
mov dl, byte [edi + eax]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x10211fe0
mov ecx, dword [esp + 0x14]
sub ecx, dword [esp + 0x20]
mov eax, 0xff
sar eax, cl
xor ecx, ecx
and byte [ebx], al
mov eax, ebx
cmp byte [ebx], cl
jne 0x1021200b
inc eax
inc ecx
cmp byte [eax], 0
je 0x10212004
mov edi, dword [esp + 0x900]
sub esi, edi
sub esi, 2
cmp ecx, esi
jne 0x10212114
cmp byte [eax], 1
jne 0x10212114
mov esi, dword [esp + 0x18]
push edi
inc eax
push eax
push esi
call fcn.10228b20
mov ecx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
push ebp
push ecx
lea edx, [ebx + 8]
push edx
call fcn.10228b20
push edi
lea eax, [ebx + ebp + 8]
push esi
push eax
call fcn.10228b20
mov eax, dword [esp + 0x910]
add esp, 0x24
cmp eax, 4
je 0x10212080
cmp eax, 6
je 0x10212080
lea ecx, [edi + ebp + 8]
push ecx
lea edx, [esp + 0x8a4]
push ebx
push edx
call fcn.101fc890
add esp, 0xc
jmp 0x1021209e
lea eax, [edi + ebp + 8]
push eax
push ebx
lea ecx, [ebp*8]
push ecx
lea edx, [esp + 0x8ac]
push edx
call fcn.101fb430
add esp, 0x10
lea ecx, [esp + 0x8a0]
lea edx, [esp + 0x860]
cmp ebp, 4
jb 0x102120c5
mov eax, dword [edx]
cmp eax, dword [ecx]
jne 0x102120c9
sub ebp, 4
add ecx, 4
add edx, 4
cmp ebp, 4
jae 0x102120b1
test ebp, ebp
je 0x1021210e
movzx eax, byte [edx]
movzx esi, byte [ecx]
sub eax, esi
jne 0x10212104
cmp ebp, 1
jbe 0x1021210e
movzx eax, byte [edx + 1]
movzx esi, byte [ecx + 1]
sub eax, esi
jne 0x10212104
cmp ebp, 2
jbe 0x1021210e
movzx eax, byte [edx + 2]
movzx esi, byte [ecx + 2]
sub eax, esi
jne 0x10212104
cmp ebp, 3
jbe 0x1021210e
movzx eax, byte [edx + 3]
movzx ecx, byte [ecx + 3]
sub eax, ecx
sar eax, 0x1f
or eax, 1
mov esi, eax
jmp 0x10212119
xor eax, eax
mov esi, eax
jmp 0x10212119
mov esi, 0xfffffffc
mov edx, dword [esp + 0x18]
push edx
call fcn.102264a9
mov ecx, dword [esp + 0x8e4]
add esp, 4
pop ebx
mov eax, esi
neg eax
pop edi
sbb eax, eax
pop esi
and eax, 0xfffffffa
pop ebp
xor ecx, esp
inc eax
call fcn.1022649a
add esp, 0x8d4
ret