Function at 0x100102d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
mov eax, dword [ecx + 0x83c]
mov edi, dword [ecx + 0xc]
mov dword [ebp - 4], edi
cmp dword [eax + 0x54], 2
jne 0x100108b1
mov edx, dword [edi + 0x48]
xor esi, esi
mov ebx, dword [ebp + 0xc]
test edx, edx
jle 0x1001032b
nop
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0
push eax
push esi
push ecx
call fcn.10026dd0
add esp, 0xc
test eax, eax
jne 0x100108b3
add ebx, dword [ebp + 0xc]
inc esi
mov edx, dword [edi + 0x48]
mov ecx, dword [ebp + 8]
cmp esi, edx
jl 0x10010300
add ebx, 2
xor ecx, ecx
mov dword [ebp - 0x2c], ebx
xor ebx, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x1c], ebx
test edx, edx
jle 0x1001044c
mov dword [ebp - 0x20], ecx
mov eax, dword [edi + 0x280]
xor edx, edx
add eax, ecx
mov dword [ebp - 0x10], edx
xor esi, esi
mov dword [ebp - 0x24], eax
cmp si, word [edi + 0x24]
jae 0x10010431
movzx ebx, word [eax + 0xa]
mov ecx, dword [eax + 0x80]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 8], ecx
test ebx, ebx
je 0x10010412
mov dword [ebp - 0x14], ebx
nop dword [eax]
xor edi, edi
mov edx, 0xc
mov dword [ebp - 0x18], edi
nop word [eax + eax]
mov esi, dword [ecx + 0x440]
xor ebx, ebx
mov eax, dword [edx + esi - 4]
imul eax, dword [edx + esi]
test eax, eax
je 0x100103ed
xor edi, edi
nop word [eax + eax]
mov eax, dword [edx + esi + 0x80]
mov ecx, esi
cmp dword [eax + edi + 0x10], 0
jne 0x100103d5
mov eax, dword [ebp - 0x24]
inc dword [eax + 0x84]
mov eax, dword [ebp - 8]
inc dword [ebp - 0xc]
mov ecx, dword [eax + 0x440]
mov eax, dword [edx + ecx - 4]
inc ebx
imul eax, dword [edx + ecx]
add edi, 0x24
mov esi, ecx
cmp ebx, eax
jb 0x100103b0
mov ecx, dword [ebp - 8]
mov edi, dword [ebp - 0x18]
movzx eax, byte [ecx + 0xe]
inc edi
add edx, 0xa0
mov dword [ebp - 0x18], edi
cmp edi, eax
jle 0x10010390
sub dword [ebp - 0x14], 1
jne 0x10010380
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x28]
movzx eax, word [edi + 0x24]
inc edx
add ecx, 0x470
mov dword [ebp - 0x10], edx
mov dword [ebp - 8], ecx
cmp edx, eax
jl 0x10010372
mov ebx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [edi + 0x48]
inc ebx
add ecx, 0xc8
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ecx
cmp ebx, edx
jl 0x10010346
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
mov esi, dword [ebp - 0x2c]
mov eax, dword [eax + 0x83c]
mov dword [ebp - 8], eax
mov ebx, dword [eax + 0x4c]
lea eax, [ecx + esi]
cmp ebx, eax
jae 0x10010471
pop edi
pop esi
mov eax, 0xffffffdf
pop ebx
mov esp, ebp
pop ebp
ret
sub ebx, ecx
sub ebx, esi
mov dword [ebp - 0x1c], ebx
cmp edx, 1
je 0x100107bf
mov eax, dword [edi + 0x4c]
mov dword [ebp - 0xc], eax
test eax, eax
je 0x100107bf
movzx edi, word [edi + 0x24]
xor esi, esi
xor edx, edx
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x20], edi
test edi, edi
je 0x100105a0
cmp edi, 8
jb 0x100105a0
cmp dword [0x1008ed68], 2
jl 0x100105a0
mov eax, dword [ebp + 8]
mov esi, edi
mov ecx, dword [ebp - 8]
and esi, 0xfffffff8
movaps xmm6, xmmword [str._a_a_a_a]
xorps xmm5, xmm5
mov dword [ebp - 0x2c], esi
xorps xmm3, xmm3
mov eax, dword [eax + 0xc]
mov esi, 3
mov edi, dword [ecx + 0x30]
mov eax, dword [eax + 0x28]
movd xmm4, esi
mov esi, dword [ecx + 0x34]
nop dword [eax]
nop dword [eax + eax]
movd xmm0, dword [eax + edx]
movups xmm1, xmmword [esi + edx*4]
pabsb xmm0, xmm0
pmovzxbd xmm2, xmm0
movups xmm0, xmmword [edi + edx*4]
paddd xmm2, xmm6
pmulld xmm1, xmm0
movd xmm0, dword [eax + edx + 4]
psrad xmm2, xmm4
pabsb xmm0, xmm0
pmulld xmm1, xmm2
psrld xmm1, xmm4
pmovzxbd xmm2, xmm0
movups xmm0, xmmword [edi + edx*4 + 0x10]
paddd xmm5, xmm1
paddd xmm2, xmm6
movups xmm1, xmmword [esi + edx*4 + 0x10]
add edx, 8
psrad xmm2, xmm4
pmulld xmm1, xmm0
pmulld xmm1, xmm2
psrld xmm1, xmm4
paddd xmm3, xmm1
cmp edx, dword [ebp - 0x2c]
jl 0x10010510
mov edi, dword [ebp - 0x20]
paddd xmm3, xmm5
movaps xmm0, xmm3
psrldq xmm0, 8
paddd xmm3, xmm0
movups xmm0, xmm3
psrldq xmm0, 4
paddd xmm3, xmm0
movd esi, xmm3
cmp edx, edi
jge 0x100105e1
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0xc]
add eax, 0x28
mov ebx, dword [eax]
nop
mov al, byte [ebx + edx]
mov edi, dword [ebp - 8]
cbw
xor al, ah
mov ecx, dword [edi + 0x34]
sub al, ah
movzx eax, al
add eax, 7
shr eax, 3
imul eax, dword [ecx + edx*4]
mov ecx, dword [edi + 0x30]
imul eax, dword [ecx + edx*4]
inc edx
shr eax, 3
add esi, eax
cmp edx, dword [ebp - 0x20]
jl 0x100105b0
mov ebx, dword [ebp - 0x1c]
cmp ebx, esi
mov eax, ebx
cmovae eax, esi
xor ecx, ecx
mov dword [ebp - 0x28], eax
mov eax, ebx
sub eax, esi
cmp ebx, esi
cmovae ecx, eax
xor esi, esi
mov dword [ebp - 8], ecx
mov dword [ebp + 8], esi
cmp dword [ebp - 0xc], esi
jbe 0x100106ce
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
lea edi, [edx + 0xd4]
mov ebx, dword [edx + 0xc]
sub eax, ebx
mov ecx, dword [edx + 8]
sub ecx, dword [edx + 0x10]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], ecx
jmp 0x10010633
mov ebx, dword [ebp - 0x2c]
mov ecx, dword [edi - 0x80]
lea edi, [edi + 4]
imul ecx, eax
mov eax, 0x10624dd3
mov esi, dword [ebp + 8]
mul ecx
mov ecx, dword [edi - 4]
add ecx, dword [edi - 0x84]
mov eax, edx
imul ecx, dword [ebp - 0x1c]
shr eax, 6
add eax, ebx
mov dword [ebp - 0x18], eax
mov eax, 0x10624dd3
mul ecx
mov ecx, dword [edi - 0x44]
imul ecx, dword [ebp - 0x20]
mov eax, edx
shr eax, 6
add eax, ebx
mov dword [ebp - 0x14], eax
mov eax, 0x10624dd3
mul ecx
mov ecx, dword [edi + 0x3c]
add ecx, dword [edi - 0x44]
mov ebx, edx
imul ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 4]
shr ebx, 6
add ebx, dword [eax + 0x10]
mov eax, 0x10624dd3
mul ecx
mov ecx, dword [ebp - 4]
mov eax, edx
mov dword [ebp - 0x24], ebx
mov edx, dword [ebp - 0x18]
shr eax, 6
add eax, dword [ecx + 0x10]
mov ecx, eax
mov dword [ebp - 0x10], eax
sub ecx, ebx
mov ebx, dword [ebp - 0x14]
mov eax, ebx
sub eax, edx
imul ecx, eax
mov eax, dword [ebp - 0x1c]
add esi, ecx
sub dword [ebp - 0xc], 1
mov dword [ebp + 8], esi
jne 0x10010630
jmp 0x100106d2
xor ebx, ebx
xor edx, edx
mov edi, dword [ebp - 4]
mov dword [ebp - 0x1c], 0
mov ecx, dword [edi + 8]
sub ecx, dword [edi + 0x10]
mov eax, dword [edi + 4]
sub eax, dword [edi + 0xc]
imul ecx, eax
sub ecx, esi
cmp dword [edi + 0x48], 0
mov dword [ebp - 0x2c], ecx
jle 0x100108b1
xor ecx, ecx
mov dword [ebp - 0xc], ecx
nop
mov edi, dword [edi + 0x280]
add edi, ecx
mov eax, dword [edi + 0x20]
cmp eax, edx
mov ecx, dword [edi + 0x24]
mov esi, dword [edi + 0x2c]
cmovbe eax, edx
mov edx, dword [edi + 0x28]
cmp edx, ebx
mov dword [ebp - 0x20], eax
mov eax, edx
cmovae eax, ebx
cmp ecx, dword [ebp - 0x24]
mov ebx, ecx
mov ecx, esi
cmovbe ebx, dword [ebp - 0x24]
cmp esi, dword [ebp - 0x10]
cmovae ecx, dword [ebp - 0x10]
cmp dword [ebp - 0x20], eax
jae 0x10010748
cmp ebx, ecx
jae 0x10010748
sub eax, dword [ebp - 0x20]
sub ecx, ebx
imul ecx, eax
jmp 0x1001074a
xor ecx, ecx
sub esi, dword [edi + 0x24]
sub edx, dword [edi + 0x20]
imul esi, edx
sub esi, ecx
test ecx, ecx
je 0x1001076e
mov ebx, dword [ebp + 8]
test ebx, ebx
je 0x1001076e
mov eax, dword [ebp - 0x28]
xor edx, edx
imul eax, ecx
div ebx
mov ebx, eax
jmp 0x10010770
xor ebx, ebx
test esi, esi
je 0x10010787
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x10010787
mov eax, dword [ebp - 8]
xor edx, edx
imul eax, esi
div ecx
jmp 0x10010789
xor eax, eax
mov ecx, dword [ebp - 0xc]
add eax, ebx
add dword [edi + 0x84], eax
add ecx, 0xc8
mov eax, dword [ebp - 0x1c]
mov edi, dword [ebp - 4]
inc eax
mov ebx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0xc], ecx
cmp eax, dword [edi + 0x48]
jl 0x10010700
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
xor edi, edi
test edx, edx
jle 0x100108b1
mov eax, dword [ebp - 4]
xor ebx, ebx
nop
mov esi, dword [eax + 0x280]
add esi, ebx
mov dword [ebp + 8], esi
mov ecx, dword [esi + 0x28]
sub ecx, dword [esi + 0x20]
mov edx, dword [esi + 0x2c]
mov eax, ecx
sub edx, dword [esi + 0x24]
imul eax, edx
test eax, eax
je 0x1001089e
mov eax, dword [ebp - 4]
mov esi, dword [ebp - 4]
movd xmm2, ecx
cvtdq2pd xmm2, xmm2
mov eax, dword [eax + 4]
sub eax, dword [esi + 0xc]
mov esi, 1
cmp eax, 1
cmovb eax, esi
shr ecx, 0x1f
addsd xmm2, qword [ecx*8 + 0x1007eee0]
mov ecx, dword [ebp - 4]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1007eee0]
mov eax, dword [ecx + 8]
sub eax, dword [ecx + 0x10]
cmp eax, esi
cmovb eax, esi
divsd xmm2, xmm0
movd xmm1, eax
movd xmm0, edx
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
shr edx, 0x1f
cvtdq2pd xmm1, xmm1
addsd xmm0, qword [edx*8 + 0x1007eee0]
addsd xmm1, qword [eax*8 + 0x1007eee0]
mov eax, dword [ebp - 0x1c]
divsd xmm0, xmm1
movd xmm1, eax
cvtdq2pd xmm1, xmm1
shr eax, 0x1f
mulsd xmm0, xmm2
addsd xmm1, qword [eax*8 + 0x1007eee0]
mulsd xmm0, xmm1
call fcn.10005021
mov esi, dword [ebp + 8]
add dword [esi + 0x84], eax
mov eax, dword [ebp - 4]
inc edi
add ebx, 0xc8
cmp edi, dword [eax + 0x48]
jl 0x100107d0
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret