Function at 0x100b7960
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10175117
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x101cfdb0]
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 ecx, dword [0x102710b4]
mov eax, dword [ecx + 0x474]
cmp dword [eax + 0x138], 0
jne 0x100b7d3f
lea eax, [ebp - 0x6d]
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 - 0x68], eax
call fcn.10047940
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x6c], 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 0x101aec64
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
call fcn.10046d30
mov dword [ebp - 4], 1
xor ecx, ecx
movaps xmm0, xmmword [0x101b72b0]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0xa1d1511
mov dword [ebp - 0x18], 0xa011a56
mov dword [ebp - 0x14], 0xb1b19
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x1a
jb 0x100b7a31
sub esp, 0x1c
mov byte [ebp - 0x11], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.100461a0
lea eax, [ebp - 0x64]
push eax
call fcn.100d0c70
mov esi, eax
lea eax, [ebp - 0x48]
cmp eax, esi
je 0x100b7a99
mov ecx, eax
call fcn.100432e0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100b7a7e
inc eax
push eax
push dword [ebp - 0x44]
call fcn.100479d0
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.10046f40
lea ecx, [ebp - 0x64]
call fcn.100432e0
mov eax, dword [ebp - 0x4c]
cmp eax, 0x10
jb 0x100b7ab6
inc eax
push eax
push dword [ebp - 0x60]
call fcn.100479d0
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.100479d0
add esp, 8
cmp dword [ebp - 0x34], 0
jne 0x100b7b21
lea ecx, [ebp - 0x48]
call fcn.100432e0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100b7b00
inc eax
push eax
push dword [ebp - 0x44]
call fcn.100479d0
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 0x100b7e71
push 0x170
call fcn.101166d0
mov esi, eax
add esp, 4
mov dword [ebp - 0x68], esi
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.10086130
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov ecx, dword [0x102710b4]
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 [0x102710b4]
cmovae eax, dword [ebp - 0x44]
mov ecx, eax
mov dword [ebp - 0x68], eax
mov esi, dword [edx + 0x388]
lea eax, [ecx + 1]
mov dword [ebp - 0x74], eax
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100b7c20
sub ecx, dword [ebp - 0x74]
mov eax, 0x7fffffff
sub eax, esi
cmp eax, ecx
jb 0x100b7e97
cmp dword [edx + 0x38c], 0x10
lea eax, [edx + 0x378]
jb 0x100b7c4a
mov eax, dword [eax]
push ecx
push dword [ebp - 0x68]
push esi
push eax
push ecx
push dword [ebp - 0x68]
lea ecx, [ebp - 0x2c]
call fcn.10047c30
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2c]
mov eax, dword [0x102710b4]
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.100432e0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100b7c9d
inc eax
push eax
push dword [ebp - 0x28]
call fcn.100479d0
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.100479d0
mov eax, dword [0x102710b4]
add esp, 4
mov ecx, dword [eax + 0x474]
push dword [ecx + 0x138]
call fcn.100fa620
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push eax
call fcn.10136a40
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.100432e0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x100b7d12
inc eax
push eax
push dword [ebp - 0x44]
call fcn.100479d0
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.100479d0
mov ecx, dword [0x102710b4]
add esp, 8
mov eax, dword [ecx + 0x474]
cmp dword [eax + 0x138], 0
je 0x100b7e7c
mov ecx, edi
call fcn.1004dcd0
movzx eax, al
sub eax, 0
je 0x100b7d8d
sub eax, 1
jne 0x100b7e7c
mov eax, dword [0x102710b4]
mov eax, dword [eax + 0x474]
mov ecx, dword [eax + 0x138]
test ecx, ecx
je 0x100b7e7c
call fcn.10048df0
jmp 0x100b7e7c
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.10047940
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 ecx, edi
mov byte [edi + 4], 0
call fcn.1007fce0
mov dword [ebp - 0x68], eax
mov ecx, edi
lea eax, [ebp - 0x2c]
push eax
call fcn.1007e900
mov esi, eax
mov ecx, esi
call fcn.1004dcd0
mov ecx, esi
call fcn.1007fce0
mov esi, dword [ebp - 0x68]
test esi, esi
je 0x100b7e38
push eax
sub esp, 0x20
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.10046370
mov eax, dword [0x102710b4]
push esi
mov ecx, dword [eax + 0x474]
mov ecx, dword [ecx + 0x138]
call fcn.10048bd0
lea ecx, [ebp - 0x2c]
call fcn.100432e0
mov eax, dword [ebp - 0x14]
cmp eax, 0x10
jb 0x100b7e55
inc eax
push eax
push dword [ebp - 0x28]
call fcn.100479d0
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.100479d0
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.101163c0
mov esp, ebp
pop ebp
ret
call fcn.10043330
int3