Function at 0x1002f9a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003e2ae
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x10051014]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov byte [ebp - 0x2d], 0
cmp esi, edi
je 0x1002fd60
nop dword [eax]
mov ebx, dword [esi]
mov dword [ebp - 0x58], ebx
test ebx, ebx
je 0x1002fd52
mov eax, 0x10624dd3
mov ecx, 0xd78ae8
mul ebx
mov eax, edx
shr eax, 6
mov dword [ebp - 0x3c], eax
imul eax, eax, 0x3e8
push eax
call fcn.10012630
mov ecx, eax
call dword [0x100474fc]
mov dword [ebp - 0x74], eax
test eax, eax
je 0x1002fbe0
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov cl, byte [eax + 4]
mov eax, 0x12e0be83
mul ebx
mov byte [ebp - 0x35], cl
sub ebx, edx
shr ebx, 1
add ebx, edx
shr ebx, 0x1d
cmp ebx, 4
jae 0x1002fab7
cmp cl, 0x2d
jae 0x1002fab7
push 4
push 0xd78af0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002fab7
sub ebx, dword [ebp - 0x3c]
movzx ecx, byte [ebp - 0x35]
imul eax, ebx, 0x3e8
mov ebx, dword [ebp - 0x58]
mov ecx, dword [ecx*4 + 0xd78af0]
add eax, ebx
push eax
call dword [0x10047500]
mov dword [ebp - 0x3c], eax
test eax, eax
je 0x1002fabf
cmp dword [eax + 0x48], 0
je 0x1002fabf
push ebx
push eax
xor edx, edx
lea ecx, [ebp - 0x70]
call fcn.1000e880
add esp, 8
mov ebx, eax
jmp 0x1002fad2
mov ebx, dword [ebp - 0x58]
xor eax, eax
mov dword [ebp - 0x3c], eax
mov edx, dword [ebp - 0x74]
lea ecx, [ebp - 0x70]
push ebx
push 0
call fcn.1000e880
add esp, 8
mov ebx, eax
lea eax, [ebp - 0x2c]
cmp eax, ebx
je 0x1002fb06
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x1002faeb
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.100026c0
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.10005710
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x1002fb1c
inc eax
push eax
push dword [ebp - 0x70]
call fcn.100026c0
mov eax, dword [ebp - 0x34]
movzx ebx, byte [ebp - 0x2d]
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ebx*4]
test ecx, ecx
je 0x1002fbc1
add ecx, 4
lea edx, [ebp - 0x2c]
call fcn.100102d0
mov ecx, dword [ebp - 0x34]
mov edx, dword [ebp - 0x74]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x50], edx
mov eax, dword [ecx + 0xc]
mov ecx, dword [ebp - 0x3c]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x54], ecx
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x58], 0
test ecx, ecx
je 0x1002fb77
movsx ecx, word [ecx + 0x56]
movsx eax, word [edx + 0x66]
add ecx, eax
jmp 0x1002fb7b
movsx ecx, word [edx + 0x66]
mov edx, dword [ebp - 0x34]
mov eax, dword [edx + 0xc]
mov eax, dword [eax + ebx*4]
mov dword [eax + 0x5c], ecx
mov eax, dword [edx + 0xc]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x1002fbc1
lea edx, [ebp - 0x2c]
call fcn.10012280
mov ecx, dword [ebp - 0x34]
mov eax, dword [ecx + 0xc]
mov eax, dword [eax + ebx*4]
mov ebx, dword [eax]
test ebx, ebx
je 0x1002fbc1
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002fbc1
push 1
mov ecx, ebx
call dword [0x10047538]
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x1002fd4f
inc eax
push eax
push dword [ebp - 0x2c]
call fcn.100026c0
jmp 0x1002fd4f
mov eax, dword [ebp - 0x34]
movzx ebx, byte [ebp - 0x2d]
mov eax, dword [eax + 0xc]
cmp dword [eax + ebx*4], 0
je 0x1002fd4f
movaps xmm0, xmmword [str.p_9_]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0x5e041502
mov dword [ebp - 0x40], 0x40814
nop
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x16
jb 0x1002fc10
cmp byte [ebp - 0x53], 0
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jne 0x1002fc3d
xor ecx, ecx
jmp 0x1002fc4c
lea ecx, [ebp - 0x53]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fc43
sub ecx, edx
push ecx
lea eax, [ebp - 0x53]
push eax
lea ecx, [ebp - 0x70]
call fcn.100027c0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 4
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ebx*4]
add ecx, 4
call fcn.100102d0
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x1002fc87
inc eax
push eax
push dword [ebp - 0x70]
call fcn.100026c0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
cmp dword [eax], 0
je 0x1002fd4f
movaps xmm0, xmmword [0x10049220]
xor ecx, ecx
movups xmmword [ebp - 0x54], xmm0
mov dword [ebp - 0x44], 0xd574651
mov dword [ebp - 0x40], 0x575b47
mov al, byte [ebp - 0x54]
xor byte [ebp + ecx - 0x53], al
inc ecx
cmp ecx, 0x16
jb 0x1002fcb4
cmp byte [ebp - 0x53], 0
mov byte [ebp - 0x3d], 0
mov dword [ebp - 0x5c], 0xf
mov dword [ebp - 0x60], 0
mov byte [ebp - 0x70], 0
jne 0x1002fce1
xor ecx, ecx
jmp 0x1002fcf0
lea ecx, [ebp - 0x53]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1002fce7
sub ecx, edx
push ecx
lea eax, [ebp - 0x53]
push eax
lea ecx, [ebp - 0x70]
call fcn.100027c0
mov eax, dword [ebp - 0x34]
lea edx, [ebp - 0x70]
mov byte [ebp - 4], 5
mov eax, dword [eax + 0xc]
mov ecx, dword [eax + ebx*4]
mov ecx, dword [ecx]
call fcn.10012280
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x5c]
cmp eax, 0x10
jb 0x1002fd2a
inc eax
push eax
push dword [ebp - 0x70]
call fcn.100026c0
mov eax, dword [ebp - 0x34]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + ebx*4]
mov ebx, dword [eax]
test ebx, ebx
je 0x1002fd4f
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1002fd4f
push eax
mov ecx, ebx
call dword [0x10047538]
inc byte [ebp - 0x2d]
add esi, 4
cmp esi, edi
jne 0x1002f9f0
mov eax, dword [ebp - 0x34]
mov ecx, eax
call fcn.1002f610
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1002fd7d
mov eax, dword [ebp + 0x10]
sub eax, ecx
sar eax, 2
push eax
push ecx
call fcn.1000f520
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.10038745
mov esp, ebp
pop ebp
ret 0xc