Function at 0x1002c997
Capabilities:
Encode data using xor

Disassembly:
push 8
push 0x98
mov eax, 0x1003c034
call fcn.100391fe
mov esi, ecx
mov dword [ebp - 0x48], esi
call fcn.1002c6d9
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
xor edx, edx
xor ecx, ecx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor edi, edi
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x18], ecx
and dword [ebp - 4], ecx
mov eax, dword [esi + 0x21c]
sub eax, dword [esi + 0x218]
and dword [ebp - 0x4c], ecx
sar eax, 5
test eax, eax
je 0x1002ca71
and dword [ebp - 0x44], ecx
mov eax, dword [esi + 0x218]
mov esi, dword [ebp - 0x44]
add esi, eax
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
je 0x1002ca49
cmp dword [esi], 0
je 0x1002ca49
cmp esi, edx
jae 0x1002ca25
cmp edi, esi
ja 0x1002ca25
sub esi, edi
cmp edx, ecx
jne 0x1002ca1e
push ecx
lea ecx, [ebp - 0x20]
call fcn.1002d34a
mov edx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
and esi, 0xffffffe0
add esi, edi
jmp 0x1002ca35
cmp edx, ecx
jne 0x1002ca35
push ecx
lea ecx, [ebp - 0x20]
call fcn.1002d34a
mov edx, dword [ebp - 0x1c]
test edx, edx
je 0x1002ca40
push 8
pop ecx
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x18]
add edx, 0x20
mov dword [ebp - 0x1c], edx
mov esi, dword [ebp - 0x48]
mov edi, dword [ebp - 0x4c]
add dword [ebp - 0x44], 0x20
inc edi
mov dword [ebp - 0x4c], edi
mov eax, dword [esi + 0x21c]
sub eax, dword [esi + 0x218]
sar eax, 5
cmp edi, eax
mov edi, dword [ebp - 0x20]
jb 0x1002c9e9
mov eax, edx
sub eax, edi
cmp eax, 0x20
jae 0x1002cab7
push 0xc
lea edi, [esi + 0x1d0]
pop esi
mov ecx, dword [edi]
xor dl, dl
call fcn.1000b043
lea edi, [edi + 4]
sub esi, 1
jne 0x1002ca83
mov esi, dword [ebp - 0x48]
mov edx, dword [esi + 0x188]
mov ecx, dword [esi + 0x204]
call fcn.1000b8c7
mov dword [esi + 0x18c], 1
jmp 0x1002cf4d
lea ecx, [ebp - 0x3c]
sar eax, 5
push ecx
push eax
mov ecx, edi
mov dword [ebp - 0x3c], 0x10026cb5
mov dword [ebp - 0x74], eax
call fcn.1002d7ac
mov eax, dword [ebp - 0x74]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10047e50]
divsd xmm0, qword [0x100472b8]
movsd qword [ebp - 0x70], xmm0
fld qword [ebp - 0x70]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x70]
movsd xmm0, qword [ebp - 0x70]
andps xmm0, xmmword [0x100484b0]
cvttsd2si eax, xmm0
pop ecx
pop ecx
mov dword [esi + 0x18c], eax
imul eax, dword [ebx + 8], 0xc
lea ecx, [eax - 0xc]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x4c], ecx
cmp ecx, eax
jge 0x1002cf3c
mov eax, dword [ebp - 0x3c]
lea edx, [esi + 0x1cc]
shl eax, 5
push 0xffffffffffffffd8
add eax, 0x10
pop ecx
add edi, eax
add ecx, 0x28
add edx, 4
mov dword [ebp - 0x44], edx
mov dword [ebp - 0x40], ecx
cmp ecx, 0x1b8
jg 0x1002cf3c
mov eax, dword [ebp - 0x74]
dec eax
cmp dword [ebp - 0x4c], eax
jle 0x1002cb6b
xor dl, dl
jmp 0x1002cf14
mov ecx, dword [edi - 0x10]
call fcn.100065c9
mov dword [ebp - 0x68], eax
test eax, eax
je 0x1002cb64
and dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
mov byte [ebp - 0x38], 0
mov byte [ebp - 4], 1
mov ecx, eax
mov edx, dword [edi - 0x10]
call fcn.100065e9
mov dword [ebp - 0x48], eax
test eax, eax
je 0x1002cbac
cmp dword [eax + 0x3c], 0
je 0x1002cbac
push dword [edi - 0x10]
xor edx, edx
push eax
jmp 0x1002cbb4
push dword [edi - 0x10]
mov edx, dword [ebp - 0x68]
push 0
lea ecx, [ebp - 0x64]
call fcn.100066ad
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.10006e3f
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.10003f4a
mov ecx, dword [esi + 0x20c]
mov edx, dword [ebp - 0x40]
mov eax, dword [edi + 8]
mov dword [edx + ecx + 0x20], eax
mov eax, dword [edi + 0xc]
mov dword [edx + ecx + 0x24], eax
mov ecx, dword [esi + 0x20c]
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 0x1002cc7c
add ecx, 4
lea edx, [ebp - 0x38]
call fcn.10008ace
mov eax, dword [esi + 0x20c]
mov ecx, dword [ebp - 0x40]
mov edx, dword [ebp - 0x68]
mov eax, dword [ecx + eax + 0x18]
mov dword [eax + 0x60], edx
mov eax, dword [esi + 0x20c]
mov edx, dword [ebp - 0x48]
mov eax, dword [ecx + eax + 0x18]
mov dword [eax + 0x64], edx
mov eax, dword [esi + 0x20c]
mov eax, dword [ecx + eax + 0x18]
and dword [eax + 0x68], 0
mov eax, edx
mov edx, dword [ebp - 0x68]
test eax, eax
je 0x1002cc5c
movsx eax, word [eax + 0x4e]
mov dword [ebp - 0x6c], eax
movsx eax, word [edx + 0x5e]
mov edx, dword [ebp - 0x6c]
add edx, eax
jmp 0x1002cc60
movsx edx, word [edx + 0x5e]
mov eax, dword [esi + 0x20c]
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 - 0x40]
mov ecx, dword [eax + ecx + 0x14]
call fcn.1000b51f
push dword [ebp - 0x48]
mov edx, dword [ebp - 0x68]
lea ecx, [ebp - 0x64]
call fcn.10006912
pop ecx
mov byte [ebp - 4], 2
mov edx, eax
mov ecx, dword [esi + 0x20c]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + ecx]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0x64]
mov byte [ebp - 4], 1
call fcn.10003f4a
mov edx, dword [edi]
lea ecx, [ebp - 0x8c]
call fcn.10006b82
mov byte [ebp - 4], 3
cmp dword [eax + 0x14], 0x10
jb 0x1002cce0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x64]
call fcn.1000409e
mov eax, dword [ebp - 0x40]
lea edx, [ebp - 0x64]
mov byte [ebp - 4], 4
mov ecx, dword [esi + 0x20c]
mov ecx, dword [eax + ecx + 4]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.10003f4a
push 0
push 1
lea ecx, [ebp - 0x8c]
mov byte [ebp - 4], 1
call fcn.10003f4a
cmp dword [edi - 4], 1
jne 0x1002cdc3
mov edx, dword [edi - 8]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.10009513
pop ecx
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0x10
jb 0x1002cd47
mov eax, dword [eax]
movaps xmm0, xmmword [0x10047bc0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x60], xmm0
mov word [ebp - 0x50], 0x7f29
mov byte [ebp - 0x4e], 0
mov al, byte [ebp + ecx - 0x5f]
xor al, byte [ebp - 0x60]
mov byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 0x11
jb 0x1002cd5f
sub esp, 0x18
mov byte [ebp - 0x4e], 0
lea eax, [ebp - 0x5f]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0x8c]
push eax
call fcn.10003b83
add esp, 0x20
mov byte [ebp - 4], 6
mov edx, eax
mov ecx, dword [esi + 0x20c]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + ecx + 8]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0x8c]
call fcn.10003f4a
lea ecx, [ebp - 0xa4]
jmp 0x1002ce60
cmp dword [edi - 4], 2
jne 0x1002ce6d
mov edx, dword [edi - 8]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.10009513
pop ecx
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0x10
jb 0x1002cde9
mov eax, dword [eax]
movaps xmm0, xmmword [0x10048280]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x60], xmm0
mov word [ebp - 0x50], 0x3b6d
mov byte [ebp - 0x4e], 0
mov al, byte [ebp + ecx - 0x5f]
xor al, byte [ebp - 0x60]
mov byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 0x11
jb 0x1002ce01
sub esp, 0x18
mov byte [ebp - 0x4e], 0
lea eax, [ebp - 0x5f]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0xa4]
push eax
call fcn.10003b83
add esp, 0x20
mov byte [ebp - 4], 8
mov edx, eax
mov ecx, dword [esi + 0x20c]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + ecx + 8]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0xa4]
call fcn.10003f4a
lea ecx, [ebp - 0x8c]
push 0
push 1
mov byte [ebp - 4], 1
call fcn.10003f4a
mov edx, dword [edi - 0xc]
push ecx
lea ecx, [ebp - 0x8c]
call fcn.10009513
pop ecx
mov byte [ebp - 4], 9
cmp dword [eax + 0x14], 0x10
jb 0x1002ce89
mov eax, dword [eax]
movaps xmm0, xmmword [0x10048260]
xor edx, edx
push eax
movups xmmword [ebp - 0x60], xmm0
mov dword [ebp - 0x50], 0x2c7a7f
mov cl, byte [ebp - 0x60]
xor byte [ebp + edx - 0x5f], cl
inc edx
cmp edx, 0x12
jb 0x1002ce9e
sub esp, 0x18
mov byte [ebp - 0x4d], 0
lea eax, [ebp - 0x5f]
mov ecx, esp
push eax
call fcn.1000409e
lea eax, [ebp - 0xa4]
push eax
call fcn.10003b83
add esp, 0x20
mov byte [ebp - 4], 0xa
mov edx, eax
mov ecx, dword [esi + 0x20c]
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + ecx + 0xc]
call fcn.1000b8a4
push 0
push 1
lea ecx, [ebp - 0xa4]
call fcn.10003f4a
push 0
push 1
lea ecx, [ebp - 0x8c]
call fcn.10003f4a
push 0
push 1
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 0
call fcn.10003f4a
mov dl, 1
mov ecx, dword [ebp - 0x44]
mov ecx, dword [ecx]
call fcn.1000b043
mov ecx, dword [ebp - 0x4c]
add edi, 0x20
mov eax, dword [ebp - 0x3c]
inc ecx
mov edx, dword [ebp - 0x44]
add eax, 0xc
mov dword [ebp - 0x4c], ecx
cmp ecx, eax
mov ecx, dword [ebp - 0x40]
jl 0x1002cb43
mov edx, dword [esi + 0x188]
mov ecx, dword [esi + 0x204]
call fcn.1000b8c7
lea ecx, [ebp - 0x20]
call fcn.1002e813
mov ecx, dword [ebp - 0x14]
call fcn.100391d9
ret 4