Function at 0x101088a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x1029ad64]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x1029a800], 0
push ebx
push esi
push edi
mov edi, dword [0x1029ff74]
je 0x1010892a
cmp byte [0x1029a801], 0
jne 0x10108978
mov byte [0x1029a801], 1
xor esi, esi
nop dword [eax + eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029a81c]
xor ebx, dword [0x1029a818]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0x28], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029a802]
xor al, bl
mov byte [esi + 0x1029a802], al
inc esi
cmp esi, 0x15
jb 0x101088e0
jmp 0x10108978
xor esi, esi
nop dword [eax]
xor edx, edx
mov ebx, esi
xor edx, dword [0x1029a81c]
xor ebx, dword [0x1029a818]
xor edx, 0xd28f2c5
xor ebx, 0x1de26cd5
mov ecx, edx
mov eax, ebx
shld ecx, eax, 0xd
shl eax, 0xd
xor edx, ecx
xor ebx, eax
mov dword [ebp - 0x28], edx
mov eax, ebx
shrd eax, edx, 7
xor al, byte [esi + 0x1029a802]
xor al, bl
mov byte [esi + 0x1029a802], al
inc esi
cmp esi, 0x15
jb 0x10108930
push 0x14
push 0x1029a802
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
call fcn.100464c0
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x1c]
mov eax, dword [0x102a0248]
cmovae ecx, dword [ebp - 0x1c]
push ecx
mov ecx, dword [eax]
call edi
mov edx, dword [ebp - 8]
mov esi, eax
cmp edx, 0x10
jb 0x101089e9
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x101089df
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x101089df
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.10138f1a
add esp, 8
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
test esi, esi
je 0x10108bb6
mov eax, dword [0x102adecc]
test al, 1
jne 0x10108a20
or eax, 1
mov dword [0x102adecc], eax
mov eax, dword [0x102a0304]
mov dword [0x102adec8], eax
jmp 0x10108a25
mov eax, dword [0x102adec8]
cmp byte [0x101cf013], 0
jne 0x10108b9a
cmp byte [0x1028ea3a], 0
je 0x10108b9a
mov eax, dword [0x1029bb34]
movss xmm0, dword [0x102aded4]
mov byte [0x102aded0], 1
movss xmm1, dword [eax]
comiss xmm0, xmm1
ja 0x10108bb6
mov eax, dword [esi + 0x44]
addss xmm1, dword [0x1019e82c]
mov ebx, dword [eax + 4]
mov ecx, ebx
movss dword [0x102aded4], xmm1
mov eax, dword [ebx]
mov eax, dword [eax + 0xc0]
call eax
xor esi, esi
mov dword [ebp - 0x28], eax
test eax, eax
jle 0x10108bb6
nop
mov eax, dword [ebx]
mov ecx, ebx
push esi
mov eax, dword [eax + 0xc4]
call eax
mov edi, eax
test edi, edi
je 0x10108b7f
lea eax, [ebp - 0x1c]
mov ecx, 0x1029a820
push eax
call fcn.1004fcd0
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x1c]
mov eax, dword [edi]
cmovae ecx, dword [ebp - 0x1c]
push ecx
mov ecx, edi
mov eax, dword [eax + 0x22c]
call eax
mov edx, dword [ebp - 8]
mov byte [ebp - 0x1d], al
cmp edx, 0x10
jb 0x10108b07
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10108afa
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101089d9
push edx
push ecx
call fcn.10138f1a
mov al, byte [ebp - 0x1d]
add esp, 8
test al, al
je 0x10108b7f
mov eax, dword [0x1029bb34]
mov ecx, 0x1029a840
movss xmm0, dword [eax + 0x10]
lea eax, [ebp - 0x1c]
push eax
movss dword [ebp - 0x24], xmm0
call fcn.1004f700
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x1c]
mov eax, dword [edi]
cmovae ecx, dword [ebp - 0x1c]
movss xmm0, dword [ebp - 0x24]
push ecx
mov eax, dword [eax + 0x480]
movss dword [esp], xmm0
push ecx
mov ecx, edi
call eax
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x10108b7f
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10108b75
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101089d9
push edx
push ecx
call fcn.10138f1a
add esp, 8
inc esi
cmp esi, dword [ebp - 0x28]
jl 0x10108a90
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10139242
mov esp, ebp
pop ebp
ret
cmp byte [0x102aded0], 0
je 0x10108baf
lea ecx, [esi - 0x14]
call eax
mov byte [0x102aded0], 0
mov byte [0x101cf013], 0
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10139242
mov esp, ebp
pop ebp
ret