Function at 0x1002d76f
Capabilities:
Encode data using xor

Disassembly:
push 8
push 0x98
mov eax, 0x100405a2
call fcn.1003d45f
mov esi, ecx
mov dword [ebp - 0x44], esi
call fcn.1002d4c6
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
mov edi, eax
mov dword [ebp - 0x18], eax
mov edx, eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], eax
mov ecx, dword [esi + 0x218]
mov dword [ebp - 0x40], eax
mov eax, dword [esi + 0x21c]
sub eax, ecx
sar eax, 5
test eax, eax
je 0x1002d819
mov dword [ebp - 0x48], edi
add edi, ecx
mov eax, dword [edi + 0x18]
or eax, dword [edi + 0x1c]
je 0x1002d7f4
cmp dword [edi], 0
je 0x1002d7f4
cmp edx, dword [ebp - 0x18]
je 0x1002d7e7
push 8
mov esi, edi
mov edi, edx
pop ecx
rep movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 0x44]
add edx, 0x20
mov dword [ebp - 0x1c], edx
jmp 0x1002d7f4
push edi
push edx
lea ecx, [ebp - 0x20]
call fcn.1002e3cd
mov edx, dword [ebp - 0x1c]
mov eax, dword [esi + 0x21c]
mov ecx, dword [esi + 0x218]
sub eax, ecx
mov edi, dword [ebp - 0x48]
inc dword [ebp - 0x40]
add edi, 0x20
sar eax, 5
mov dword [ebp - 0x48], edi
cmp dword [ebp - 0x40], eax
jb 0x1002d7bf
mov edi, dword [ebp - 0x20]
mov eax, edx
sub eax, edi
sar eax, 5
mov dword [ebp - 0x6c], eax
test eax, eax
jne 0x1002d864
push 0xc
lea edi, [esi + 0x1d0]
pop esi
mov ecx, dword [edi]
xor dl, dl
call fcn.1000c87f
lea edi, [edi + 4]
sub esi, 1
jne 0x1002d830
mov esi, dword [ebp - 0x44]
mov edx, dword [esi + 0x188]
mov ecx, dword [esi + 0x204]
call fcn.1000d103
mov dword [esi + 0x18c], 1
jmp 0x1002dcdc
push 0x10027ad7
push eax
mov ecx, edi
call fcn.1002e24a
mov eax, dword [ebp - 0x6c]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1004c2c0]
divsd xmm0, qword [0x1004b748]
movsd qword [ebp - 0x78], xmm0
fld qword [ebp - 0x78]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x78]
movsd xmm0, qword [ebp - 0x78]
andps xmm0, xmmword [0x1004c960]
cvttsd2si eax, xmm0
pop ecx
pop ecx
mov dword [esi + 0x18c], eax
imul eax, dword [ebx + 8], 0xc
mov dword [ebp - 0x74], eax
lea edx, [eax - 0xc]
mov dword [ebp - 0x70], edx
cmp edx, eax
jge 0x1002dccb
mov eax, 0x1cc
mov dword [ebp - 0x48], eax
mov eax, edx
shl eax, 5
add eax, 0x10
push 0xffffffffffffffd8
add edi, eax
pop ecx
mov dword [ebp - 0x40], edi
mov eax, dword [ebp - 0x48]
add ecx, 0x28
add eax, 4
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x48], eax
cmp eax, 0x1fc
jg 0x1002dccb
mov eax, dword [ebp - 0x6c]
dec eax
cmp edx, eax
jle 0x1002d911
xor dl, dl
jmp 0x1002dca7
mov ecx, dword [edi - 0x10]
call fcn.100083e6
mov ecx, eax
mov dword [ebp - 0x44], ecx
test ecx, ecx
je 0x1002d90a
xor eax, eax
lea edi, [ebp - 0x38]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
and dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov edi, dword [ebp - 0x40]
mov byte [ebp - 4], 1
mov edx, dword [edi - 0x10]
call fcn.10008406
mov dword [ebp - 0x68], eax
test eax, eax
je 0x1002d95e
cmp dword [eax + 0x3c], 0
je 0x1002d95e
push dword [edi - 0x10]
xor edx, edx
push eax
jmp 0x1002d966
push dword [edi - 0x10]
mov edx, dword [ebp - 0x44]
push 0
lea ecx, [ebp - 0x60]
call fcn.100084ca
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.10008af4
lea ecx, [ebp - 0x60]
call fcn.10003b9e
mov ecx, dword [edi + 8]
mov edx, dword [edi + 0xc]
mov eax, dword [esi + 0x20c]
mov edi, dword [ebp - 0x3c]
mov dword [edi + eax + 0x20], ecx
mov ecx, edi
mov edi, dword [ebp - 0x40]
mov dword [ecx + eax + 0x24], edx
mov ecx, dword [esi + 0x20c]
mov edx, dword [ebp - 0x3c]
mov eax, dword [edi - 0x10]
mov dword [edx + ecx + 0x1c], eax
mov eax, dword [esi + 0x20c]
mov ecx, dword [edx + eax + 0x18]
test ecx, ecx
je 0x1002da32
add ecx, 4
lea edx, [ebp - 0x38]
call fcn.1000a587
mov eax, dword [esi + 0x20c]
mov ecx, dword [ebp - 0x3c]
mov edx, dword [ebp - 0x44]
mov edi, dword [ebp - 0x68]
mov eax, dword [ecx + eax + 0x18]
mov dword [eax + 0x60], edx
mov eax, dword [esi + 0x20c]
mov eax, dword [ecx + eax + 0x18]
mov dword [eax + 0x64], edi
mov eax, dword [esi + 0x20c]
mov eax, dword [eax + ecx + 0x18]
and dword [eax + 0x68], 0
mov eax, edi
test eax, eax
je 0x1002da0f
movsx eax, word [eax + 0x4e]
mov dword [ebp - 0x64], eax
movsx eax, word [edx + 0x5e]
mov edx, dword [ebp - 0x64]
add edx, eax
jmp 0x1002da13
movsx edx, word [edx + 0x5e]
mov eax, dword [esi + 0x20c]
mov edi, dword [ebp - 0x40]
mov eax, dword [ecx + eax + 0x18]
mov dword [eax + 0x6c], edx
mov eax, dword [esi + 0x20c]
mov ecx, dword [ecx + eax + 0x18]
mov eax, dword [edi]
mov dword [ecx + 0x44], eax
mov ecx, dword [esi + 0x20c]
lea edx, [ebp - 0x38]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + ecx + 0x14]
call fcn.1000cd56
push dword [ebp - 0x68]
mov edx, dword [ebp - 0x44]
lea ecx, [ebp - 0x60]
call fcn.100086eb
pop ecx
mov byte [ebp - 4], 2
mov edx, eax
mov ecx, dword [esi + 0x20c]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + ecx]
call fcn.1000d0e0
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 1
call fcn.10003b9e
mov edx, dword [edi]
lea ecx, [ebp - 0x90]
call fcn.100088da
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0xf
jbe 0x1002da92
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x60]
call fcn.10003da0
mov eax, dword [ebp - 0x3c]
lea edx, [ebp - 0x60]
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x20c]
mov ecx, dword [eax + ecx + 4]
call fcn.1000d0e0
lea ecx, [ebp - 0x60]
call fcn.10003b9e
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.10003b9e
cmp dword [edi - 4], 1
jne 0x1002db65
mov edx, dword [edi - 8]
push ecx
lea ecx, [ebp - 0xa8]
call fcn.1000aeba
pop ecx
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
jbe 0x1002daf1
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004c450]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x4c], 0x751
mov byte [ebp - 0x4a], 0
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x11
jb 0x1002db09
sub esp, 0x18
mov byte [ebp - 0x4a], 0
lea eax, [ebp - 0x5b]
mov ecx, esp
push eax
call fcn.10003da0
lea eax, [ebp - 0x90]
push eax
call fcn.100039e5
add esp, 0x20
mov byte [ebp - 4], 6
mov edx, eax
mov ecx, dword [esi + 0x20c]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + ecx + 8]
call fcn.1000d0e0
lea ecx, [ebp - 0x90]
call fcn.10003b9e
lea ecx, [ebp - 0xa8]
jmp 0x1002dbfa
cmp dword [edi - 4], 2
jne 0x1002dc03
mov edx, dword [edi - 8]
push ecx
lea ecx, [ebp - 0x90]
call fcn.1000aeba
pop ecx
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0xf
jbe 0x1002db8b
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004be10]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov word [ebp - 0x4c], 0x491f
mov byte [ebp - 0x4a], 0
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x11
jb 0x1002dba3
sub esp, 0x18
mov byte [ebp - 0x4a], 0
lea eax, [ebp - 0x5b]
mov ecx, esp
push eax
call fcn.10003da0
lea eax, [ebp - 0xa8]
push eax
call fcn.100039e5
add esp, 0x20
mov byte [ebp - 4], 8
mov edx, eax
mov ecx, dword [esi + 0x20c]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ecx + eax + 8]
call fcn.1000d0e0
lea ecx, [ebp - 0xa8]
call fcn.10003b9e
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 1
call fcn.10003b9e
mov edx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x90]
call fcn.1000aeba
pop ecx
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0xf
jbe 0x1002dc1f
mov eax, dword [eax]
movaps xmm0, xmmword [0x1004c100]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0x782e2b
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x12
jb 0x1002dc34
sub esp, 0x18
mov byte [ebp - 0x49], 0
lea eax, [ebp - 0x5b]
mov ecx, esp
push eax
call fcn.10003da0
lea eax, [ebp - 0xa8]
push eax
call fcn.100039e5
add esp, 0x20
mov byte [ebp - 4], 0xa
mov edx, eax
mov ecx, dword [esi + 0x20c]
mov eax, dword [ebp - 0x3c]
mov ecx, dword [eax + ecx + 0xc]
call fcn.1000d0e0
lea ecx, [ebp - 0xa8]
call fcn.10003b9e
lea ecx, [ebp - 0x90]
call fcn.10003b9e
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x24]
cmp edx, 0xf
jbe 0x1002dca5
mov ecx, dword [ebp - 0x38]
inc edx
call fcn.10003b71
mov dl, 1
mov eax, dword [ebp - 0x48]
mov ecx, dword [esi + eax]
call fcn.1000c87f
mov edx, dword [ebp - 0x70]
add edi, 0x20
mov ecx, dword [ebp - 0x3c]
inc edx
mov dword [ebp - 0x70], edx
mov dword [ebp - 0x40], edi
cmp edx, dword [ebp - 0x74]
jl 0x1002d8e8
mov edx, dword [esi + 0x188]
mov ecx, dword [esi + 0x204]
call fcn.1000d103
lea ecx, [ebp - 0x20]
call fcn.1002f560
mov ecx, dword [ebp - 0x14]
call fcn.1003d43d
ret 4