Function at 0x10021480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10066b3d
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x102b7040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
cmp dword [0x102ba080], 0
jne 0x100214ce
cmp dword [0x102b8ea8], 0
je 0x100216e7
lea eax, [ebp - 0xbc]
push eax
call fcn.100213d0
lea eax, [ebp - 0x8c]
push eax
call fcn.10021270
push dword [ebp - 0x90]
lea ecx, [ebp - 0x5c]
push dword [ebp - 0x94]
call fcn.10020e80
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x44]
push dword [ebp - 0xa0]
push dword [ebp - 0xa4]
call fcn.10020e80
add esp, 8
mov byte [ebp - 4], 2
movsd xmm0, qword [ebp - 0x84]
call fcn.10065730
push edx
push eax
lea ecx, [ebp - 0x2c]
call fcn.10020e80
add esp, 8
mov byte [ebp - 4], 3
call fcn.10050709
cmp dword [ebp - 0x18], 0xf
lea esi, [ebp - 0x2c]
mov edi, eax
lea eax, [ebp - 0x60]
cmova esi, dword [ebp - 0x2c]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.1004d53b
add esp, 0xc
mov ebx, eax
cmp esi, dword [ebp - 0x60]
je 0x1002174e
cmp dword [edi], 0x22
je 0x10021758
call fcn.10050709
cmp dword [ebp - 0x30], 0xf
lea esi, [ebp - 0x44]
mov edi, eax
lea eax, [ebp - 0x60]
cmova esi, dword [ebp - 0x44]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.1004d53b
add esp, 0xc
mov dword [ebp - 0x68], eax
cmp esi, dword [ebp - 0x60]
je 0x10021762
cmp dword [edi], 0x22
je 0x1002176c
call fcn.10050709
cmp dword [ebp - 0x48], 0xf
lea esi, [ebp - 0x5c]
mov edi, eax
lea eax, [ebp - 0x64]
cmova esi, dword [ebp - 0x5c]
push 0xa
push eax
push esi
mov dword [edi], 0
call fcn.1004d53b
add esp, 0xc
mov ecx, eax
cmp esi, dword [ebp - 0x64]
je 0x10021776
cmp dword [edi], 0x22
je 0x10021780
imul eax, dword [ebp - 0x68], 0x64
cdq
idiv ecx
cmp ebx, 0x64
jg 0x10021607
movd xmm0, ebx
cvtdq2ps xmm0, xmm0
movss dword [0x102b8e50], xmm0
cmp eax, 0x64
jg 0x1002161b
movd xmm0, eax
cvtdq2ps xmm0, xmm0
movss dword [0x102b8e90], xmm0
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x18]
cmp ecx, 0xf
jbe 0x10021653
mov edx, dword [ebp - 0x2c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10021649
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002178a
push ecx
push edx
call fcn.10044d66
add esp, 8
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp ecx, 0xf
jbe 0x1002169d
mov edx, dword [ebp - 0x44]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10021693
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002178a
push ecx
push edx
call fcn.10044d66
add esp, 8
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
cmp ecx, 0xf
jbe 0x100216e7
mov edx, dword [ebp - 0x5c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100216dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002178a
push ecx
push edx
call fcn.10044d66
add esp, 8
cmp dword [0x102ba0b4], 0
je 0x1002172c
movaps xmm0, xmmword [str._t_t_tP]
xor ecx, ecx
movups xmmword [ebp - 0x7c], xmm0
mov word [ebp - 0x6c], 0xa1b
mov byte [ebp - 0x6a], 0
mov al, byte [ebp - 0x7c]
xor byte [ebp + ecx - 0x7b], al
inc ecx
cmp ecx, 0x11
jb 0x10021707
lea ecx, [ebp - 0x7b]
mov byte [ebp - 0x6a], 0
call fcn.10015040
cmp eax, 0x10070069
je 0x1002172c
mov dword [0x102b8e30], eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10044642
mov esp, ebp
pop ebp
ret
push str.invalid_stoi_argument
call fcn.10043b2e
push str.stoi_argument_out_of_range
call fcn.10043b6e
push str.invalid_stoi_argument
call fcn.10043b2e
push str.stoi_argument_out_of_range
call fcn.10043b6e
push str.invalid_stoi_argument
call fcn.10043b2e
push str.stoi_argument_out_of_range
call fcn.10043b6e
call fcn.10052808
int3