Function at 0x1006cd10
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cb935
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x48
push esi
push edi
mov eax, dword [0x100f2040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov edi, dword [esi]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x1006cd72
push 4
push edi
call eax
test eax, eax
jne 0x1006cd6d
push eax
mov ecx, edi
call dword [0x100e6d54]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x1006cf4f
push 4
push edi
call eax
test eax, eax
jne 0x1006cf4f
mov ecx, 0xbe20a0
call fcn.1001e350
cmp edi, eax
jne 0x1006cf4f
xorps xmm0, xmm0
mov word [ebp - 0x14], 0x59
lea ecx, [ebp - 0x13]
mov byte [ebp - 0x13], 0
mov dword [ebp - 0x34], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006cdc8
sub ecx, edx
lea eax, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x34]
call fcn.10003370
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x38], eax
test eax, eax
je 0x1006ce7d
push 4
push eax
call edi
test eax, eax
jne 0x1006ce7d
cmp dword [ebp - 0x1c], 0xf
lea ecx, [ebp - 0x30]
cmova ecx, dword [ebp - 0x30]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006ce10
sub ecx, edx
mov dword [ebp - 0x14], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100891d0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.1008c200
add esp, 0xc
lea ecx, [ebp - 0x30]
cmp dword [ebp - 0x1c], 0xf
lea esi, [edi + 0x20]
cmova ecx, dword [ebp - 0x30]
push dword [ebp - 0x14]
push ecx
push esi
call fcn.1008bc80
mov eax, dword [ebp - 0x14]
add esp, 0xc
mov ecx, dword [ebp - 0x38]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100e6d74]
push edi
call fcn.100891b0
mov esi, dword [ebp - 0x18]
add esp, 4
mov edi, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x34]
push 8
push eax
mov dword [ebp - 0x34], 0
call fcn.100891b0
movaps xmm0, xmmword [str.xSIXO]
add esp, 8
movups xmmword [ebp - 0x28], xmm0
xor ecx, ecx
nop
mov al, byte [ebp + ecx - 0x27]
xor al, byte [ebp - 0x28]
mov byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0xe
jb 0x1006ceb0
xorps xmm0, xmm0
mov byte [ebp - 0x19], 0
lea ecx, [ebp - 0x27]
mov dword [ebp - 0x54], 0
movups xmmword [ebp - 0x50], xmm0
mov dword [ebp - 0x40], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x3c], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1006cee7
sub ecx, edx
lea eax, [ebp - 0x27]
push ecx
push eax
lea ecx, [ebp - 0x54]
call fcn.10003370
mov dword [ebp - 4], 1
lea edx, [ebp - 0x54]
mov ecx, dword [esi + 0x10]
call fcn.1001e0a0
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x54]
push 8
push eax
mov dword [ebp - 0x54], 0
call fcn.100891b0
mov eax, dword [esi + 0x10]
add esp, 8
mov dword [ebp - 0x18], eax
test eax, eax
je 0x1006cf4f
push 4
push eax
call edi
test eax, eax
jne 0x1006cf4f
mov ecx, dword [ebp - 0x18]
call dword [0x100e6d7c]
push 1
push dword [esi + 8]
mov ecx, esi
call fcn.1006ba70
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret