Function at 0x100bedd0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1017f417
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 0x100bf1af
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.10048f80
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.10048350
mov dword [ebp - 4], 1
xor ecx, ecx
movaps xmm0, xmmword [0x101c28d0]
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 0x100beea1
sub esp, 0x1c
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.10047780
lea eax, [ebp - 0x64]
push eax
call fcn.100da7e0
mov esi, eax
lea eax, [ebp - 0x48]
cmp eax, esi
je 0x100bef09
mov ecx, eax
call fcn.100448c0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100beeee
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10049010
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.10048560
lea ecx, [ebp - 0x64]
call fcn.100448c0
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x100bef26
inc eax
push eax
push dword [ebp - 0x60]
call fcn.10049010
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.10049010
add esp, 8
cmp dword [ebp - 0x34], 0
jne 0x100bef91
lea ecx, [ebp - 0x48]
call fcn.100448c0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100bef70
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10049010
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 0x100bf360
push 0x170
call fcn.101207d0
mov esi, eax
add esp, 4
mov dword [ebp - 0x70], esi
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.10088080
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 0x100bf090
sub ecx, dword [ebp - 0x68]
mov eax, 0x7fffffff
sub eax, esi
cmp eax, ecx
jb 0x100bf386
cmp dword [edx + 0x38c], 0x10
lea eax, [edx + 0x378]
jb 0x100bf0ba
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.10049270
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.100448c0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100bf10d
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10049010
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.10049010
mov eax, dword [0x1027c0b4]
add esp, 4
mov ecx, dword [eax + 0x474]
push dword [ecx + 0x138]
call fcn.10104480
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.10140b60
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100448c0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100bf182
inc eax
push eax
push dword [ebp - 0x44]
call fcn.10049010
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.10049010
mov edx, dword [0x1027c0b4]
add esp, 8
mov eax, dword [edx + 0x474]
cmp dword [eax + 0x138], 0
je 0x100bf36b
mov esi, dword [edi + 8]
mov ecx, dword [edi + 0x18]
sub ecx, dword [edi + 0x14]
lea eax, [esi + 1]
cmp eax, ecx
jbe 0x100bf1d6
xor cl, cl
jmp 0x100bf1ea
push esi
lea ecx, [edi + 0x10]
call fcn.1004f5c0
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 0x100bf21f
sub eax, 1
jne 0x100bf36b
mov eax, dword [edx + 0x474]
mov ecx, dword [eax + 0x138]
test ecx, ecx
je 0x100bf36b
call fcn.1004a430
jmp 0x100bf36b
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.10048f80
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 0x100bf291
mov dword [ebp - 0x68], 0
jmp 0x100bf2a2
push edx
lea ecx, [edi + 0x10]
call fcn.1004f5c0
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.100800e0
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 0x100bf2d1
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bf2e6
xor ecx, ecx
jmp 0x100bf2f4
push edx
lea ecx, [esi + 0x10]
call fcn.1004f5c0
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 0x100bf327
push ecx
sub esp, 0x20
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.10047950
mov eax, dword [0x1027c0b4]
push esi
mov ecx, dword [eax + 0x474]
mov ecx, dword [ecx + 0x138]
call fcn.1004a210
lea ecx, [ebp - 0x2c]
call fcn.100448c0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100bf344
inc eax
push eax
push dword [ebp - 0x28]
call fcn.10049010
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.10049010
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.101204c0
mov esp, ebp
pop ebp
ret
call fcn.10044910
int3