Function at 0x1002bb16
Capabilities:
Encode data using xor

Disassembly:
push 0x90
mov eax, 0x1004855b
call fcn.10044ac9
mov edi, ecx
mov dword [ebp - 0x6c], edi
cmp dword [0x1005afc0], 0
je 0x1002bf6b
lea esi, [edi + 0x15c]
mov ecx, esi
call fcn.1002d557
mov eax, dword [edi + 0x154]
sub eax, dword [edi + 0x150]
push 0x68
pop ecx
cdq
idiv ecx
and dword [ebp - 0x30], 0
mov dword [ebp - 0x68], ecx
test eax, eax
jle 0x1002bc0b
xor esi, esi
mov dword [ebp - 0x2c], esi
mov eax, dword [edi + 0x150]
mov dword [ebp - 0x34], eax
cmp byte [eax + esi + 0x63], 0
je 0x1002bb96
mov esi, dword [0x1005afc0]
mov ecx, esi
call fcn.10014197
mov al, byte [esi + 0x3a]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
cmp byte [ecx + esi + 0x63], al
jne 0x1002bbdb
mov eax, dword [edi + 0x150]
mov dword [ebp - 0x34], eax
mov al, byte [eax + esi + 0x63]
cmp al, 1
je 0x1002bbab
cmp al, 2
jne 0x1002bbc7
mov esi, dword [0x1005afc0]
mov ecx, esi
call fcn.1001403c
mov al, byte [esi + 0x34]
mov esi, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x34]
cmp byte [ecx + esi + 0x63], al
jne 0x1002bbdb
mov eax, dword [edi + 0x150]
lea ecx, [edi + 0x15c]
add eax, esi
push eax
call fcn.1002d579
push 0x68
pop eax
add esi, eax
mov ecx, dword [ebp - 0x30]
mov eax, dword [edi + 0x154]
inc ecx
sub eax, dword [edi + 0x150]
cdq
idiv dword [ebp - 0x68]
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x2c], esi
cmp ecx, eax
jl 0x1002bb6a
push 0x68
lea esi, [edi + 0x15c]
pop ecx
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jne 0x1002bc50
push 4
lea esi, [edi + 0xc]
pop edi
push 0
push dword [esi]
call fcn.1000e8b6
lea esi, [esi + 4]
pop ecx
pop ecx
sub edi, 1
jne 0x1002bc18
mov edi, dword [ebp - 0x6c]
push dword [edi + 0x148]
push dword [edi + 0x134]
call fcn.1000f23a
pop ecx
pop ecx
mov dword [edi + 0x14c], 1
jmp 0x1002bf6b
mov eax, dword [esi + 4]
sub eax, dword [esi]
cdq
idiv ecx
push ecx
push ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1004a9d0]
mulsd xmm0, qword [0x1004dcf0]
movsd qword [ebp - 0x74], xmm0
fld qword [ebp - 0x74]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x74]
movsd xmm0, qword [ebp - 0x74]
andps xmm0, xmmword [0x1004df30]
cvttsd2si eax, xmm0
pop ecx
pop ecx
mov dword [edi + 0x14c], eax
cmp dword [edi + 0x148], eax
jbe 0x1002bcb3
mov dword [edi + 0x148], 1
movzx eax, byte [ebp + 8]
lea edx, [edi + 8]
or dword [ebp - 0x4c], 0xffffffff
shl eax, 2
mov dword [ebp - 0x70], eax
lea ecx, [eax - 4]
imul eax, ecx, 0x68
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
lea eax, [edi + 0xc]
mov edi, dword [ebp - 0x38]
inc dword [ebp - 0x4c]
add edx, 4
add eax, 0x18
mov dword [ebp - 0x30], edx
cmp dword [ebp - 0x4c], 4
mov dword [ebp - 0x2c], eax
jg 0x1002bf4e
mov eax, dword [esi + 4]
sub eax, dword [esi]
cdq
idiv dword [ebp - 0x68]
dec eax
cmp ecx, eax
jle 0x1002bd10
mov eax, dword [ebp - 0x30]
push 0
push dword [eax]
call fcn.1000e8b6
pop ecx
pop ecx
jmp 0x1002bf33
mov eax, dword [esi]
lea ecx, [ebp - 0x28]
add eax, edi
mov dword [ebp - 0x38], 0xffc4fc03
push eax
call fcn.1000325c
mov eax, dword [esi]
xor edx, edx
mov dword [ebp - 4], edx
cmp byte [edi + eax + 0x64], 2
jne 0x1002bd7d
movaps xmm0, xmmword [str.iI2_f]
mov ecx, edx
movups xmmword [ebp - 0x64], xmm0
mov dword [ebp - 0x54], 0x1d081a
mov dword [ebp - 0x50], 0x340706
mov al, byte [ebp - 0x64]
xor byte [ebp + ecx - 0x63], al
inc ecx
cmp ecx, 0x16
jb 0x1002bd4d
lea eax, [ebp - 0x63]
mov byte [ebp - 0x4d], dl
push eax
call fcn.10001edd
pop ecx
push eax
lea eax, [ebp - 0x63]
push eax
lea ecx, [ebp - 0x28]
call fcn.10007faa
mov dword [ebp - 0x38], 0xff5cb9fe
jmp 0x1002bdc5
mov cl, 0x66
mov dword [ebp - 0x48], 0x333d4666
mov dword [ebp - 0x44], 0x14030208
mov eax, edx
mov dword [ebp - 0x40], 0x1f071146
mov word [ebp - 0x3c], 0x3b
xor byte [ebp + eax - 0x47], cl
inc eax
cmp eax, 0xc
jae 0x1002bdab
mov cl, byte [ebp - 0x48]
jmp 0x1002bd9c
lea eax, [ebp - 0x47]
mov byte [ebp - 0x3b], dl
push eax
call fcn.10001edd
pop ecx
push eax
lea eax, [ebp - 0x47]
push eax
lea ecx, [ebp - 0x28]
call fcn.10007faa
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
lea ecx, [ebp - 0x64]
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.100012e0
mov ecx, dword [ebp - 0x2c]
lea eax, [ebp - 0x64]
push eax
mov byte [ebp - 4], 1
push dword [ecx]
call fcn.1000f1a6
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 0
call fcn.10001cd4
mov eax, dword [ebp - 0x2c]
push dword [ebp - 0x38]
push dword [eax]
call fcn.1000f180
movaps xmm0, xmmword [0x1004dd50]
pop ecx
pop ecx
mov ecx, dword [esi]
movzx eax, byte [edi + ecx + 0x62]
push eax
movzx eax, byte [edi + ecx + 0x61]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x84], xmm0
mov al, byte [ebp - 0x84]
xor byte [ebp + ecx - 0x83], al
inc ecx
cmp ecx, 0xe
jb 0x1002be2a
sub esp, 0x18
mov byte [ebp - 0x75], 0
lea eax, [ebp - 0x83]
mov ecx, esp
push eax
call fcn.100012e0
lea eax, [ebp - 0x9c]
push eax
call fcn.1001b71b
add esp, 0x24
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 2
jb 0x1002be6d
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x64]
call fcn.100012e0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 3
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax - 4]
call fcn.1000f1a6
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.10001cd4
push 0
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0
call fcn.10001cd4
mov eax, dword [esi]
movzx eax, byte [eax + edi + 0x63]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.100290ff
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
mov byte [ebp - 4], 4
jb 0x1002becc
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x64]
call fcn.100012e0
lea eax, [ebp - 0x64]
mov byte [ebp - 4], 5
push eax
mov eax, dword [ebp - 0x2c]
push dword [eax + 8]
call fcn.1000f1a6
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.10001cd4
push 0
push 1
lea ecx, [ebp - 0x9c]
mov byte [ebp - 4], 0
call fcn.10001cd4
mov eax, dword [esi]
mov ecx, dword [ebp - 0x2c]
push 1
mov eax, dword [edi + eax + 0x18]
mov dword [ecx - 8], eax
mov eax, dword [ebp - 0x30]
push dword [eax]
call fcn.1000e8b6
or dword [ebp - 4], 0xffffffff
pop ecx
pop ecx
push 0
push 1
lea ecx, [ebp - 0x28]
call fcn.10001cd4
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x30]
inc ecx
push 0x68
pop eax
add edi, eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x2c]
cmp ecx, dword [ebp - 0x70]
jl 0x1002bcd6
mov edi, dword [ebp - 0x6c]
push dword [edi + 0x148]
push dword [edi + 0x134]
call fcn.1000f23a
pop ecx
pop ecx
mov ecx, edi
call fcn.1002c50e
call fcn.10044a84
ret 4