Function at 0x1002cf67
Capabilities:
Encode data using xor

Disassembly:
push 0xfc
mov eax, 0x10074838
call fcn.1003bfa0
mov edi, ecx
cmp dword [ebp + 8], 0
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x44], esi
jbe 0x1002d2d3
test esi, esi
je 0x1002d2d3
call fcn.1002cf46
xor ebx, ebx
test al, al
jne 0x1002d046
movaps xmm0, xmmword [0x1008a1d0]
mov edx, ebx
movups xmmword [ebp - 0x3c], xmm0
mov cl, byte [ebp - 0x3c]
xor byte [ebp + edx - 0x3b], cl
inc edx
cmp edx, 0xe
jb 0x1002cfac
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2d], bl
push eax
lea ecx, [ebp - 0x74]
call fcn.10004179
mov dword [ebp - 4], ebx
mov edx, ebx
movaps xmm0, xmmword [0x1008a690]
movups xmmword [ebp - 0xf0], xmm0
mov byte [ebp - 0xd0], bl
movaps xmm0, xmmword [0x1008aed0]
movups xmmword [ebp - 0xe0], xmm0
mov cl, byte [ebp - 0xf0]
xor byte [ebp + edx - 0xef], cl
inc edx
cmp edx, 0x1f
jb 0x1002cfef
lea eax, [ebp - 0xef]
mov byte [ebp - 0xd0], bl
push eax
lea ecx, [ebp - 0x5c]
call fcn.10004179
mov byte [ebp - 4], 1
push ebx
push ecx
and dword [esp], 0
lea eax, [ebp - 0x74]
push ebx
push ebx
push ebx
push eax
lea eax, [ebp - 0x5c]
push eax
push eax
call dword [0x10088fc4]
push ebx
push 1
lea ecx, [ebp - 0x5c]
call fcn.1000402e
lea ecx, [ebp - 0x74]
jmp 0x1002d2cb
mov edx, dword [ebp + 0x14]
mov cl, bl
cmp edx, 1
jne 0x1002d05f
movzx eax, cl
add eax, 0xe
imul eax, eax, 0x14
cmp dword [eax + edi], 2
je 0x1002d0ae
cmp edx, 2
jne 0x1002d077
movzx eax, cl
add eax, 0xe
imul eax, eax, 0x14
cmp dword [eax + edi], 1
je 0x1002d15e
inc cl
cmp cl, 6
jb 0x1002d04b
mov cl, bl
mov byte [ebp - 0x29], cl
movzx eax, cl
imul eax, eax, 0x14
cmp dword [eax + edi + 0x10c], ebx
ja 0x1002d09f
cmp dword [eax + edi + 0x110], ebx
jbe 0x1002d20b
inc cl
mov byte [ebp - 0x29], cl
cmp cl, 6
jb 0x1002d083
jmp 0x1002d2d3
movaps xmm0, xmmword [str._uJR_W_bpU]
mov edx, ebx
movups xmmword [ebp - 0x3c], xmm0
mov cl, byte [ebp - 0x3c]
xor byte [ebp + edx - 0x3b], cl
inc edx
cmp edx, 0xe
jb 0x1002d0bb
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2d], bl
push eax
lea ecx, [ebp - 0x74]
call fcn.10004179
mov dword [ebp - 4], 2
mov edx, ebx
movaps xmm0, xmmword [0x1008abb0]
movups xmmword [ebp - 0xcc], xmm0
mov dword [ebp - 0x7c], 0x3f306a6c
movaps xmm0, xmmword [0x1008abc0]
movups xmmword [ebp - 0xbc], xmm0
mov byte [ebp - 0x78], bl
movaps xmm0, xmmword [0x1008b190]
movups xmmword [ebp - 0xac], xmm0
movaps xmm0, xmmword [0x1008afa0]
movups xmmword [ebp - 0x9c], xmm0
movaps xmm0, xmmword [0x1008b2a0]
movups xmmword [ebp - 0x8c], xmm0
mov cl, byte [ebp - 0xcc]
xor byte [ebp + edx - 0xcb], cl
inc edx
cmp edx, 0x53
jb 0x1002d130
lea eax, [ebp - 0xcb]
mov byte [ebp - 0x78], bl
push eax
lea ecx, [ebp - 0x5c]
call fcn.10004179
mov byte [ebp - 4], 3
jmp 0x1002d01b
movaps xmm0, xmmword [str.vIQCT_vsV]
mov edx, ebx
movups xmmword [ebp - 0x3c], xmm0
mov cl, byte [ebp - 0x3c]
xor byte [ebp + edx - 0x3b], cl
inc edx
cmp edx, 0xe
jb 0x1002d16b
lea eax, [ebp - 0x3b]
mov byte [ebp - 0x2d], bl
push eax
lea ecx, [ebp - 0x74]
call fcn.10004179
mov dword [ebp - 4], 4
mov edx, ebx
movaps xmm0, xmmword [0x1008ad40]
movups xmmword [ebp - 0xcc], xmm0
mov dword [ebp - 0x7c], 0x464913
movaps xmm0, xmmword [0x1008a500]
movups xmmword [ebp - 0xbc], xmm0
movaps xmm0, xmmword [0x1008a630]
movups xmmword [ebp - 0xac], xmm0
movaps xmm0, xmmword [0x1008a540]
movups xmmword [ebp - 0x9c], xmm0
movaps xmm0, xmmword [0x1008a6a0]
movups xmmword [ebp - 0x8c], xmm0
mov cl, byte [ebp - 0xcc]
xor byte [ebp + edx - 0xcb], cl
inc edx
cmp edx, 0x52
jb 0x1002d1dd
lea eax, [ebp - 0xcb]
mov byte [ebp - 0x79], bl
push eax
lea ecx, [ebp - 0x5c]
call fcn.10004179
mov byte [ebp - 4], 5
jmp 0x1002d01b
mov ecx, esi
call fcn.10008e31
mov dword [ebp - 0x40], eax
test eax, eax
je 0x1002d2d3
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x28], bl
mov edx, esi
mov dword [ebp - 4], 6
mov ecx, eax
call fcn.10008e51
test eax, eax
je 0x1002d25f
cmp dword [eax + 0x3c], ebx
je 0x1002d25f
push esi
push eax
xor edx, edx
lea ecx, [ebp - 0x74]
call fcn.10008f15
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10005f9c
lea ecx, [ebp - 0x74]
jmp 0x1002d280
mov edx, dword [ebp - 0x40]
lea ecx, [ebp - 0x108]
push esi
push ebx
call fcn.10008f15
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x28]
call fcn.10005f9c
lea ecx, [ebp - 0x108]
push ebx
push 1
call fcn.1000402e
movzx ecx, byte [ebp - 0x29]
lea edx, [ebp - 0x28]
mov eax, dword [ebp + 8]
imul esi, ecx, 0x14
mov dword [esi + edi + 0x10c], eax
mov eax, dword [ebp - 0x44]
mov dword [esi + edi + 0x110], eax
mov eax, dword [ebp + 0x10]
mov dword [esi + edi + 0x114], eax
lea eax, [ecx + 0xe]
mov ecx, dword [ebp + 0x14]
imul eax, eax, 0x14
mov dword [eax + edi], ecx
mov ecx, dword [esi + edi + 0x11c]
call fcn.1000daea
lea ecx, [ebp - 0x28]
push ebx
push 1
call fcn.1000402e
call fcn.1003bf4a
ret 0x10