Function at 0x1002c93a
Capabilities:
Encode data using xor

Disassembly:
push 8
push 0x90
mov eax, 0x10078071
call fcn.100752ba
mov esi, ecx
mov dword [ebp - 0x70], esi
cmp dword [0x1009e6f0], 0
je 0x1002ce08
lea edi, [esi + 0x15c]
mov ecx, edi
call fcn.1002d523
mov eax, dword [esi + 0x154]
sub eax, dword [esi + 0x150]
push 0x68
pop ecx
cdq
idiv ecx
and dword [ebp - 0x3c], 0
mov dword [ebp - 0x6c], ecx
test eax, eax
jle 0x1002cac1
xor edi, edi
mov eax, dword [esi + 0x150]
mov dword [ebp - 0x38], eax
cmp byte [eax + edi + 0x63], 0
je 0x1002ca06
cmp byte [0x1009e768], 0
mov eax, dword [0x1009e6f0]
mov dword [ebp - 0x30], eax
je 0x1002c9f6
mov ecx, 0xd78c9c
call fcn.10010f34
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1002c9f3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002c9f3
mov eax, dword [ebp - 0x34]
add eax, 0xb7c
push 4
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002c9f3
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov al, byte [eax]
mov byte [ecx + 0x3a], al
mov eax, ecx
jmp 0x1002c9f6
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov al, byte [eax + 0x3a]
cmp byte [ecx + edi + 0x63], al
jne 0x1002ca94
mov eax, dword [esi + 0x150]
mov dword [ebp - 0x38], eax
mov al, byte [eax + edi + 0x63]
cmp al, 1
je 0x1002ca1b
cmp al, 2
jne 0x1002ca80
cmp byte [0x1009e768], 0
mov eax, dword [0x1009e6f0]
mov dword [ebp - 0x30], eax
je 0x1002ca74
mov ecx, 0xd78c9c
call fcn.10010f34
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1002ca71
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ca71
mov eax, dword [ebp - 0x34]
add eax, 0x6a0
push 4
push eax
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002ca71
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0x30]
mov al, byte [eax]
mov byte [ecx + 0x34], al
mov eax, ecx
jmp 0x1002ca74
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x38]
mov al, byte [eax + 0x34]
cmp byte [ecx + edi + 0x63], al
jne 0x1002ca94
mov eax, dword [esi + 0x150]
lea ecx, [esi + 0x15c]
add eax, edi
push eax
call fcn.1002d54a
push 0x68
pop eax
add edi, eax
mov ecx, dword [ebp - 0x3c]
mov eax, dword [esi + 0x154]
inc ecx
sub eax, dword [esi + 0x150]
cdq
idiv dword [ebp - 0x6c]
mov dword [ebp - 0x3c], ecx
cmp ecx, eax
jl 0x1002c98d
push 0x68
lea edi, [esi + 0x15c]
pop ecx
mov eax, dword [edi]
cmp eax, dword [edi + 4]
jne 0x1002cb02
push 4
lea edi, [esi + 0xc]
pop esi
mov ecx, dword [edi]
xor dl, dl
call fcn.10010276
lea edi, [edi + 4]
sub esi, 1
jne 0x1002cace
mov esi, dword [ebp - 0x70]
mov edx, dword [esi + 0x148]
mov ecx, dword [esi + 0x134]
call fcn.10010cd6
mov dword [esi + 0x14c], 1
jmp 0x1002ce08
mov eax, dword [edi + 4]
sub eax, dword [edi]
cdq
idiv ecx
push ecx
push ecx
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x1008ee70]
mulsd xmm0, qword [0x1008e178]
movsd qword [ebp - 0x78], xmm0
fld qword [ebp - 0x78]
fstp qword [esp]
call fcn.10073970
fstp qword [ebp - 0x78]
movsd xmm0, qword [ebp - 0x78]
andps xmm0, xmmword [0x1008f460]
cvttsd2si eax, xmm0
pop ecx
pop ecx
mov dword [esi + 0x14c], eax
cmp dword [esi + 0x148], eax
jbe 0x1002cb65
mov dword [esi + 0x148], 1
movzx eax, byte [ebx + 8]
lea edx, [esi + 8]
or dword [ebp - 0x50], 0xffffffff
shl eax, 2
mov dword [ebp - 0x74], eax
lea ecx, [eax - 4]
imul eax, ecx, 0x68
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
lea eax, [esi + 0xc]
mov esi, dword [ebp - 0x38]
inc dword [ebp - 0x50]
add edx, 4
add eax, 0x18
mov dword [ebp - 0x3c], edx
cmp dword [ebp - 0x50], 4
mov dword [ebp - 0x30], eax
jg 0x1002cded
mov eax, dword [edi + 4]
sub eax, dword [edi]
cdq
idiv dword [ebp - 0x6c]
dec eax
cmp ecx, eax
jle 0x1002cbc0
mov ecx, dword [ebp - 0x3c]
xor dl, dl
mov ecx, dword [ecx]
call fcn.10010276
jmp 0x1002cdd2
mov eax, dword [edi]
lea ecx, [ebp - 0x2c]
add eax, esi
mov dword [ebp - 0x38], 0xffc4fc03
push eax
call fcn.10004ca6
xor edx, edx
mov dword [ebp - 4], edx
mov eax, dword [edi]
cmp byte [esi + eax + 0x64], 2
jne 0x1002cc2d
movaps xmm0, xmmword [0x1008e790]
mov ecx, edx
movups xmmword [ebp - 0x68], xmm0
mov dword [ebp - 0x58], 0x14091c0e
mov dword [ebp - 0x54], 0x201312
mov al, byte [ebp - 0x68]
xor byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x16
jb 0x1002cbfd
lea eax, [ebp - 0x67]
mov byte [ebp - 0x51], dl
push eax
call fcn.10001f4d
pop ecx
push eax
lea eax, [ebp - 0x67]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10004a46
mov dword [ebp - 0x38], 0xff5cb9fe
jmp 0x1002cc75
mov cl, 0x52
mov dword [ebp - 0x4c], 0x7097252
mov dword [ebp - 0x48], 0x2037363c
mov eax, edx
mov dword [ebp - 0x44], 0x2b332572
mov word [ebp - 0x40], 0xf
xor byte [ebp + eax - 0x4b], cl
inc eax
cmp eax, 0xc
jae 0x1002cc5b
mov cl, byte [ebp - 0x4c]
jmp 0x1002cc4c
lea eax, [ebp - 0x4b]
mov byte [ebp - 0x3f], dl
push eax
call fcn.10001f4d
pop ecx
push eax
lea eax, [ebp - 0x4b]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10004a46
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
lea ecx, [ebp - 0x68]
cmovae eax, dword [ebp - 0x2c]
push eax
call fcn.10001f6a
mov ecx, dword [ebp - 0x30]
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 1
mov ecx, dword [ecx]
call fcn.10010c45
push 0
push 1
lea ecx, [ebp - 0x68]
mov byte [ebp - 4], 0
call fcn.10001e1f
mov eax, dword [ebp - 0x30]
mov edx, dword [ebp - 0x38]
mov ecx, dword [eax]
call fcn.10010cf9
mov ecx, dword [edi]
movaps xmm0, xmmword [str._bDmmd___l___l]
movzx eax, byte [esi + ecx + 0x62]
push eax
movzx eax, byte [esi + ecx + 0x61]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x88], xmm0
mov al, byte [ebp - 0x88]
xor byte [ebp + ecx - 0x87], al
inc ecx
cmp ecx, 0xe
jb 0x1002ccd5
sub esp, 0x18
mov byte [ebp - 0x79], 0
lea eax, [ebp - 0x87]
mov ecx, esp
push eax
call fcn.10001f6a
lea eax, [ebp - 0xa0]
push eax
call fcn.10007414
add esp, 0x24
mov byte [ebp - 4], 2
cmp dword [eax + 0x14], 0x10
jb 0x1002cd18
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.10001f6a
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 3
mov ecx, dword [eax - 4]
call fcn.10010c45
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.10001e1f
push 0
push 1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0
call fcn.10001e1f
mov eax, dword [edi]
lea ecx, [ebp - 0xa0]
movzx edx, byte [eax + esi + 0x63]
call fcn.10028fec
mov byte [ebp - 4], 4
cmp dword [eax + 0x14], 0x10
jb 0x1002cd70
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.10001f6a
mov eax, dword [ebp - 0x30]
lea edx, [ebp - 0x68]
mov byte [ebp - 4], 5
mov ecx, dword [eax + 8]
call fcn.10010c45
push 0
push 1
lea ecx, [ebp - 0x68]
call fcn.10001e1f
push 0
push 1
lea ecx, [ebp - 0xa0]
mov byte [ebp - 4], 0
call fcn.10001e1f
mov eax, dword [edi]
mov dl, 1
mov ecx, dword [ebp - 0x30]
mov eax, dword [esi + eax + 0x18]
mov dword [ecx - 8], eax
mov ecx, dword [ebp - 0x3c]
mov ecx, dword [ecx]
call fcn.10010276
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
push 0
push 1
call fcn.10001e1f
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x3c]
inc ecx
push 0x68
pop eax
add esi, eax
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp - 0x30]
cmp ecx, dword [ebp - 0x74]
jl 0x1002cb88
mov esi, dword [ebp - 0x70]
mov edx, dword [esi + 0x148]
mov ecx, dword [esi + 0x134]
call fcn.10010cd6
mov ecx, esi
call fcn.1002c339
mov ecx, dword [ebp - 0x14]
call fcn.10075295
ret 4