Function at 0x100be280
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017e787
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x101dadb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov edx, dword [0x1027c0b4]
mov eax, dword [edx + 0x474]
cmp dword [eax + 0x138], 0
jne 0x100be65f
lea eax, [ebp - 0x69]
mov dword [ebp - 0x48], 0
push 8
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x70], eax
call fcn.100484a0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x74], eax
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x48], eax
mov dword [ebp - 4], 0
push 0
push 0x101b8c74
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.10047890
mov dword [ebp - 4], 1
xor ecx, ecx
movaps xmm0, xmmword [0x101c2120]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x293e3632
mov dword [ebp - 0x18], 0x29223975
mov dword [ebp - 0x14], 0x28383a
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x1a
jb 0x100be351
sub esp, 0x1c
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.10046d00
lea eax, [ebp - 0x64]
push eax
call fcn.100d9cb0
mov esi, eax
lea eax, [ebp - 0x48]
cmp eax, esi
je 0x100be3b9
mov ecx, eax
call fcn.10043e40
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100be39e
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10048530
add esp, 8
push esi
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.10047aa0
lea ecx, [ebp - 0x64]
call fcn.10043e40
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x100be3d6
inc eax
push eax
push dword [ebp - 0x60]
call fcn.10048530
add esp, 8
mov eax, dword [ebp - 0x64]
push 8
push eax
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
mov dword [ebp - 0x64], 0
call fcn.10048530
add esp, 8
cmp dword [ebp - 0x34], 0
jne 0x100be441
lea ecx, [ebp - 0x48]
call fcn.10043e40
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100be420
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10048530
add esp, 8
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
jmp 0x100be810
push 0x170
call fcn.1011fb90
mov esi, eax
add esp, 4
mov dword [ebp - 0x70], esi
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.100875c0
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov ecx, dword [0x1027c0b4]
mov dword [esi], vtable.CUICastleSiegeWar.0
mov dword [esi + 0x120], 0
mov dword [esi + 0x124], 0
mov dword [esi + 0x128], 0
mov dword [esi + 0x168], 0
mov byte [esi + 0x164], 0
mov byte [esi + 0x150], 0
mov dword [esi + 0x148], 0
mov dword [esi + 0x14c], 0
mov dword [esi + 0x12c], 0
mov dword [esi + 0x134], 0
mov dword [esi + 0x13c], 0
mov dword [esi + 0x138], 0
mov dword [esi + 0x130], 0
mov dword [esi + 0x140], 0
movups xmmword [esi + 0x154], xmm0
mov eax, dword [ecx + 0x474]
mov dword [eax + 0x138], esi
mov eax, dword [ecx + 0x474]
push eax
mov ecx, dword [eax + 0x138]
mov edx, dword [ecx]
call dword [edx + 0x58]
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
mov edx, dword [0x1027c0b4]
cmovae eax, dword [ebp - 0x44]
mov ecx, eax
mov dword [ebp - 0x70], eax
mov esi, dword [edx + 0x388]
lea eax, [ecx + 1]
mov dword [ebp - 0x68], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100be540
sub ecx, dword [ebp - 0x68]
mov eax, 0x7fffffff
sub eax, esi
cmp eax, ecx
jb 0x100be836
cmp dword [edx + 0x38c], 0x10
lea eax, [edx + 0x378]
jb 0x100be56a
mov eax, dword [eax]
push ecx
push dword [ebp - 0x70]
push esi
push eax
push ecx
push dword [ebp - 0x70]
lea ecx, [ebp - 0x2c]
call fcn.10048790
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2c]
mov eax, dword [0x1027c0b4]
push 1
push edx
mov eax, dword [eax + 0x474]
mov ecx, dword [eax + 0x138]
mov eax, dword [ecx]
call dword [eax + 8]
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10043e40
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100be5bd
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10048530
add esp, 8
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
call fcn.10048530
mov eax, dword [0x1027c0b4]
add esp, 4
mov ecx, dword [eax + 0x474]
push dword [ecx + 0x138]
call fcn.10103820
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.1013ff10
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.10043e40
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100be632
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10048530
add esp, 8
mov eax, dword [ebp - 0x48]
push 8
push eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x48], 0
call fcn.10048530
mov edx, dword [0x1027c0b4]
add esp, 8
mov eax, dword [edx + 0x474]
cmp dword [eax + 0x138], 0
je 0x100be81b
mov esi, dword [edi + 8]
mov ecx, dword [edi + 0x18]
sub ecx, dword [edi + 0x14]
lea eax, [esi + 1]
cmp eax, ecx
jbe 0x100be686
xor cl, cl
jmp 0x100be69a
push esi
lea ecx, [edi + 0x10]
call fcn.1004ead0
mov esi, dword [edi + 8]
mov edx, dword [0x1027c0b4]
mov cl, byte [eax]
lea eax, [esi + 1]
mov dword [edi + 8], eax
movzx eax, cl
sub eax, 0
je 0x100be6cf
sub eax, 1
jne 0x100be81b
mov eax, dword [edx + 0x474]
mov ecx, dword [eax + 0x138]
test ecx, ecx
je 0x100be81b
call fcn.10049950
jmp 0x100be81b
mov dword [ebp - 4], 4
push 8
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.100484a0
lea ecx, [ebp - 0x2c]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x2c], eax
mov dword [eax], ecx
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 5
mov edx, dword [edi + 8]
mov byte [edi + 4], 0
mov ecx, dword [edi + 0x18]
sub ecx, dword [edi + 0x14]
lea eax, [edx + 4]
cmp eax, ecx
jbe 0x100be741
mov dword [ebp - 0x68], 0
jmp 0x100be752
push edx
lea ecx, [edi + 0x10]
call fcn.1004ead0
mov edx, dword [edi + 8]
mov eax, dword [eax]
mov dword [ebp - 0x68], eax
lea eax, [edx + 4]
mov ecx, edi
mov dword [edi + 8], eax
lea eax, [ebp - 0x2c]
push eax
call fcn.1007f620
mov esi, eax
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 1]
cmp eax, ecx
ja 0x100be781
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edx, dword [esi + 8]
inc edx
mov dword [esi + 8], edx
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 4]
cmp eax, ecx
jbe 0x100be796
xor ecx, ecx
jmp 0x100be7a4
push edx
lea ecx, [esi + 0x10]
call fcn.1004ead0
mov edx, dword [esi + 8]
mov ecx, dword [eax]
lea eax, [edx + 4]
mov dword [esi + 8], eax
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x100be7d7
push ecx
sub esp, 0x20
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.10046ed0
mov eax, dword [0x1027c0b4]
push esi
mov ecx, dword [eax + 0x474]
mov ecx, dword [ecx + 0x138]
call fcn.10049730
lea ecx, [ebp - 0x2c]
call fcn.10043e40
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100be7f4
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10048530
add esp, 8
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x2c], 0
push 8
push eax
call fcn.10048530
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1011f880
mov esp, ebp
pop ebp
ret
call fcn.10043e90
int3