Function at 0x100bec50
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f177
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 0x100bf02f
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.10048e10
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.10048200
mov dword [ebp - 4], 1
xor ecx, ecx
movaps xmm0, xmmword [0x101c2850]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x41565e5a
mov dword [ebp - 0x18], 0x414a511d
mov dword [ebp - 0x14], 0x405052
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x1a
jb 0x100bed21
sub esp, 0x1c
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.10047670
lea eax, [ebp - 0x64]
push eax
call fcn.100da650
mov esi, eax
lea eax, [ebp - 0x48]
cmp eax, esi
je 0x100bed89
mov ecx, eax
call fcn.100447b0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100bed6e
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10048ea0
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.10048410
lea ecx, [ebp - 0x64]
call fcn.100447b0
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x100beda6
inc eax
push eax
push dword [ebp - 0x60]
call fcn.10048ea0
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.10048ea0
add esp, 8
cmp dword [ebp - 0x34], 0
jne 0x100bee11
lea ecx, [ebp - 0x48]
call fcn.100447b0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100bedf0
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10048ea0
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 0x100bf1e0
push 0x170
call fcn.10120560
mov esi, eax
add esp, 4
mov dword [ebp - 0x70], esi
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.10087f10
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 0x100bef10
sub ecx, dword [ebp - 0x68]
mov eax, 0x7fffffff
sub eax, esi
cmp eax, ecx
jb 0x100bf206
cmp dword [edx + 0x38c], 0x10
lea eax, [edx + 0x378]
jb 0x100bef3a
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.10049100
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.100447b0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100bef8d
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10048ea0
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.10048ea0
mov eax, dword [0x1027c0b4]
add esp, 4
mov ecx, dword [eax + 0x474]
push dword [ecx + 0x138]
call fcn.101041f0
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.101408f0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100447b0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100bf002
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10048ea0
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.10048ea0
mov edx, dword [0x1027c0b4]
add esp, 8
mov eax, dword [edx + 0x474]
cmp dword [eax + 0x138], 0
je 0x100bf1eb
mov esi, dword [edi + 8]
mov ecx, dword [edi + 0x18]
sub ecx, dword [edi + 0x14]
lea eax, [esi + 1]
cmp eax, ecx
jbe 0x100bf056
xor cl, cl
jmp 0x100bf06a
push esi
lea ecx, [edi + 0x10]
call fcn.1004f440
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 0x100bf09f
sub eax, 1
jne 0x100bf1eb
mov eax, dword [edx + 0x474]
mov ecx, dword [eax + 0x138]
test ecx, ecx
je 0x100bf1eb
call fcn.1004a2c0
jmp 0x100bf1eb
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.10048e10
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 0x100bf111
mov dword [ebp - 0x68], 0
jmp 0x100bf122
push edx
lea ecx, [edi + 0x10]
call fcn.1004f440
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.1007ff60
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 0x100bf151
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bf166
xor ecx, ecx
jmp 0x100bf174
push edx
lea ecx, [esi + 0x10]
call fcn.1004f440
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 0x100bf1a7
push ecx
sub esp, 0x20
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.10047840
mov eax, dword [0x1027c0b4]
push esi
mov ecx, dword [eax + 0x474]
mov ecx, dword [ecx + 0x138]
call fcn.1004a0a0
lea ecx, [ebp - 0x2c]
call fcn.100447b0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100bf1c4
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10048ea0
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.10048ea0
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.10120250
mov esp, ebp
pop ebp
ret
call fcn.10044800
int3