Function at 0x10212670
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x1070dd84]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 0x14], 0
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, dword [eax + 0x64e28]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x38], ecx
je 0x10212810
test ecx, ecx
je 0x10212810
movaps xmm0, xmmword [0x10556f00]
mov eax, 0x7fffffff
mov dl, byte [edi + 0x15]
xor esi, esi
mov dword [ebp - 0x34], eax
or eax, 0xffffffff
movups xmmword [ebp - 0x14], xmm0
mov byte [ebp - 0x15], dl
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp + 0x1c], esi
jle 0x10212810
xor eax, eax
test dl, dl
push ebx
mov ebx, 4
lea edx, [ebp - 0x14]
cmovg eax, ebx
mov ebx, dword [ebp + 0x18]
add eax, edx
xor edx, edx
lea eax, [eax + ecx*8]
mov ch, byte [ebp - 0x15]
add eax, 0xfffffff8
test ch, ch
mov dword [ebp - 0x44], eax
setg dl
inc edx
add ebx, 0x10
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x20], ebx
xor eax, eax
nop word [eax + eax]
mov cl, byte [ebx + eax - 4]
cmp cl, byte [edi + eax + 0x14]
jne 0x102127a7
inc eax
cmp eax, edx
jl 0x10212710
cmp dword [ebp - 0x38], 1
jne 0x10212745
test ch, ch
jle 0x10212745
mov al, byte [ebx - 2]
cmp al, byte [edi + 0x4f]
jne 0x102127a7
movzx eax, byte [edi + 0xa0]
shr eax, 1
and eax, 1
cmp dword [ebx], eax
jne 0x102127a7
mov eax, dword [ebp - 0x24]
xor edi, edi
add eax, 0xe
mov dword [ebp - 0x30], edx
mov dword [ebp - 0x3c], eax
lea eax, [ebx - 0xa]
mov ebx, dword [ebp - 0x3c]
mov dword [ebp - 0x28], eax
nop dword [eax]
movsx eax, word [eax - 2]
lea ebx, [ebx + 4]
movsx ecx, word [ebx - 6]
sub eax, ecx
movsx ecx, word [ebx - 4]
cdq
mov esi, eax
mov eax, dword [ebp - 0x28]
xor esi, edx
sub esi, edx
movsx eax, word [eax]
sub eax, ecx
cdq
xor eax, edx
sub eax, edx
add edi, eax
mov eax, dword [ebp - 0x28]
add eax, 4
add edi, esi
sub dword [ebp - 0x30], 1
mov dword [ebp - 0x28], eax
jne 0x10212760
mov ebx, dword [ebp - 0x20]
test edi, edi
je 0x102127df
mov edx, dword [ebp - 0x40]
mov esi, dword [ebp - 0x2c]
jmp 0x102127ac
mov edi, 0x7fffffff
cmp edi, dword [ebp - 0x34]
jge 0x102127c2
mov eax, dword [ebp - 0x44]
cmp edi, dword [eax]
jg 0x102127c2
mov ecx, esi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x1c], ecx
jmp 0x102127c5
mov ecx, dword [ebp - 0x1c]
inc esi
add ebx, 0x28
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x20], ebx
cmp esi, dword [ebp + 0x1c]
jge 0x102127e5
mov edi, dword [ebp - 0x24]
mov ch, byte [ebp - 0x15]
jmp 0x10212705
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], ecx
pop ebx
cmp ecx, 0xffffffff
je 0x1021280d
mov eax, dword [ebp + 0x18]
lea ecx, [ecx + ecx*4]
pop edi
pop esi
mov ecx, dword [eax + ecx*8]
mov eax, dword [ebp - 0x24]
mov dword [eax + 0x18], ecx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10398bef
mov esp, ebp
pop ebp
ret
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp + 0x10]
xor edx, edx
cmp eax, 4
movzx ecx, ax
cmove ecx, edx
movzx eax, cx
mov ecx, dword [ebp - 4]
mov word [ebp - 0x1e], ax
xor ecx, ebp
mov word [ebp - 0x20], ax
mov eax, dword [ebp - 0x20]
mov dword [edi + 0x18], eax
or eax, 0xffffffff
pop edi
pop esi
call fcn.10398bef
mov esp, ebp
pop ebp
ret