Function at 0x10011940
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10032780
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x1003f6ec]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push esi
push edi
mov eax, dword [0x1003f6ec]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
push esi
call fcn.10004680
cmp dword [esi + 0x10], 7
jb 0x10011ba7
mov edx, dword [esi + 0x14]
xor ecx, ecx
cmp edx, 0x10
jb 0x1001199a
mov eax, dword [esi]
jmp 0x1001199c
mov eax, esi
mov al, byte [eax + ecx]
cmp al, byte [ecx + str.MONSC:]
jne 0x10011ba7
inc ecx
cmp ecx, 7
jl 0x10011991
mov dword [esp + 0x18], vtable.CMemoryWriter.0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
mov dword [esp + 0x24], 0
mov word [esp + 0x28], 1
mov dword [esp + 0x2c], 0x80
mov dword [esp + 0x70], 0
xorps xmm0, xmm0
movq qword [esp + 0x50], xmm0
movq qword [esp + 0x58], xmm0
mov dword [esp + 0x4c], 1
call fcn.1000baf0
mov dword [esp + 0x50], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x5c], eax
push 0x14
lea eax, [esp + 0x50]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
mov dword [esp + 0x5c], edx
mov dword [esp + 0x60], 0
call dword [eax]
cmp dword [esi + 0x14], 0x10
mov eax, dword [esi + 0x10]
jb 0x10011a37
mov esi, dword [esi]
push eax
mov eax, dword [esp + 0x1c]
push esi
lea ecx, [esp + 0x20]
call dword [eax]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 8]
mov esi, eax
xor edx, edx
mov ecx, 0xffff
test esi, esi
je 0x10011a7f
mov edi, dword [esp + 0x1c]
nop
movzx eax, byte [edi + edx]
xor eax, ecx
and eax, 0xff
shr cx, 8
xor cx, word [eax*4 + 0x100379a0]
inc edx
movzx ecx, cx
cmp edx, esi
jb 0x10011a60
not ecx
movzx eax, cx
mov dword [esp + 0x48], eax
push 2
lea eax, [esp + 0x4c]
push eax
mov eax, dword [esp + 0x20]
lea ecx, [esp + 0x20]
call dword [eax]
mov dword [esp + 0x30], vtable.CMemoryWriter.0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
mov word [esp + 0x40], 1
mov dword [esp + 0x44], 0x80
push 1
lea eax, [esp + 0x18]
mov byte [esp + 0x74], 1
push eax
lea ecx, [esp + 0x38]
mov byte [esp + 0x1c], 0x7e
call dword [vtable.CMemoryWriter.0]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x18]
call dword [eax + 8]
lea ecx, [esp + 0x30]
push ecx
mov ecx, dword [esp + 0x20]
mov edx, eax
call fcn.1000b340
add esp, 4
lea eax, [esp + 0x14]
push 1
push eax
mov eax, dword [esp + 0x38]
lea ecx, [esp + 0x38]
mov byte [esp + 0x1c], 0x7e
call dword [eax]
mov eax, dword [esp + 0x30]
lea ecx, [esp + 0x30]
call dword [eax + 8]
push 0
push ecx
mov ecx, dword [ebx + 0x40]
push eax
push dword [esp + 0x40]
push dword [esp + 0x64]
push dword [esp + 0x64]
call fcn.100081d0
cmp byte [esp + 0x40], 0
mov dword [esp + 0x30], vtable.CMemoryWriter.0
mov dword [esp + 0x3c], 0
je 0x10011b62
mov eax, dword [esp + 0x34]
test eax, eax
je 0x10011b62
push eax
call fcn.1001606b
add esp, 4
cmp byte [esp + 0x28], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0
mov byte [esp + 0x40], 0
mov dword [esp + 0x30], vtable.ISerializationWriter.0
mov dword [esp + 0x18], vtable.CMemoryWriter.0
mov dword [esp + 0x24], 0
je 0x10011ba7
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10011ba7
push eax
call fcn.1001606b
add esp, 4
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.100152c3
mov esp, ebp
pop ebp
ret 4