Function at 0x100ca240
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1019ac37
mov eax, dword fs:[0]
push eax
sub esp, 0x68
mov eax, dword [0x101f6e00]
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 [0x10297f7c]
mov eax, dword [edx + 0x474]
cmp dword [eax + 0x138], 0
jne 0x100ca6ce
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
lea eax, [ebp - 0x71]
mov dword [ebp - 0x34], 0
push 8
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x6c], eax
call fcn.1013ca30
lea ecx, [ebp - 0x48]
add esp, 4
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x70], 0
mov dword [ebp - 4], 1
xor ecx, ecx
movaps xmm0, xmmword [str.n_7___2]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x1c0b0307
mov dword [ebp - 0x18], 0x1c170c40
mov dword [ebp - 0x14], 0x1d0d0f
mov al, byte [ebp + ecx - 0x2b]
xor al, byte [ebp - 0x2c]
mov byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x1a
jb 0x100ca302
sub esp, 0x1c
mov byte [ebp - 0x11], 0
mov edx, esp
lea ecx, [ebp - 0x2b]
xorps xmm0, xmm0
lea esi, [ecx + 1]
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ca340
sub ecx, esi
lea eax, [ebp - 0x2b]
push ecx
push eax
mov ecx, edx
call fcn.100484d0
lea eax, [ebp - 0x64]
push eax
call fcn.100e7b60
mov esi, eax
lea eax, [ebp - 0x48]
cmp eax, esi
je 0x100ca377
mov ecx, eax
call fcn.100477d0
push esi
lea ecx, [ebp - 0x48]
call fcn.10047a50
lea ecx, [ebp - 0x64]
call fcn.100477d0
mov eax, dword [ebp - 0x64]
push 8
push eax
mov dword [ebp - 0x64], 0
call fcn.1013c8d0
add esp, 8
cmp dword [ebp - 0x34], 0
jne 0x100ca459
push 3
lea ecx, [ebp - 0x6c]
call fcn.10139310
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x100ca3cd
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x100ca3cd
nop dword [eax]
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x100ca3c0
lea ecx, [ebp - 0x6c]
call fcn.101393c0
mov eax, dword [ebp - 0x30]
cmp eax, 0xf
jbe 0x100ca438
mov edi, dword [ebp - 0x44]
lea esi, [eax + 1]
test edi, edi
jne 0x100ca42e
test esi, esi
je 0x100ca42e
push str.null_pointer_cannot_point_to_a_block_of_non_zero_size
push 0x101d467c
push edi
push 0x3b4
push 0x101d4680
push 2
call fcn.10143d00
add esp, 0x18
cmp eax, 1
jne 0x100ca410
int3
push 0
push 0x3b4
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
push 0x101d47ac
push str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.10152640
add esp, 0x14
push esi
push edi
call fcn.10048760
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 0x100ca8e8
push 0x170
call fcn.1013ca30
mov esi, eax
add esp, 4
mov dword [ebp - 0x68], esi
mov ecx, esi
mov byte [ebp - 4], 2
call fcn.1008f7f0
mov byte [ebp - 4], 1
xorps xmm0, xmm0
mov ecx, dword [0x10297f7c]
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], 0xf
lea eax, [ebp - 0x44]
mov edx, dword [0x10297f7c]
cmova eax, dword [ebp - 0x44]
mov ecx, eax
mov dword [ebp - 0x68], eax
mov esi, dword [edx + 0x388]
lea eax, [ecx + 1]
mov dword [ebp - 0x6c], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100ca556
sub ecx, dword [ebp - 0x6c]
mov eax, 0x7fffffff
sub eax, esi
cmp eax, ecx
jb 0x100ca90e
cmp dword [edx + 0x38c], 0xf
lea eax, [edx + 0x378]
jbe 0x100ca580
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.10048bc0
mov byte [ebp - 4], 3
lea edx, [ebp - 0x2c]
mov eax, dword [0x10297f7c]
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.100477d0
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.1013c8d0
mov eax, dword [0x10297f7c]
add esp, 4
mov ecx, dword [eax + 0x474]
push dword [ecx + 0x138]
call fcn.10118090
cmp dword [ebp - 0x30], 0xf
lea eax, [ebp - 0x44]
cmova eax, dword [ebp - 0x44]
push eax
call fcn.1015cdd0
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x68]
push 3
call fcn.10139310
mov ecx, dword [ebp - 0x48]
test ecx, ecx
je 0x100ca630
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x100ca630
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x100ca623
lea ecx, [ebp - 0x68]
call fcn.101393c0
mov eax, dword [ebp - 0x30]
cmp eax, 0xf
jbe 0x100ca6a1
mov ecx, dword [ebp - 0x44]
lea esi, [eax + 1]
mov dword [ebp - 0x68], ecx
test ecx, ecx
jne 0x100ca697
test esi, esi
je 0x100ca697
push str.null_pointer_cannot_point_to_a_block_of_non_zero_size
push 0x101d467c
push ecx
push 0x3b4
push 0x101d4680
push 2
call fcn.10143d00
add esp, 0x18
cmp eax, 1
jne 0x100ca676
int3
push 0
push 0x3b4
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
push 0x101d47ac
push str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.10152640
mov ecx, dword [ebp - 0x68]
add esp, 0x14
push esi
push ecx
call fcn.10048760
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.1013c8d0
mov edx, dword [0x10297f7c]
add esp, 8
mov eax, dword [edx + 0x474]
cmp dword [eax + 0x138], 0
je 0x100ca8f3
mov eax, dword [edi + 8]
mov ecx, dword [edi + 0x18]
inc eax
sub ecx, dword [edi + 0x14]
cmp eax, ecx
jbe 0x100ca6f3
xor al, al
jmp 0x100ca706
push dword [edi + 8]
lea ecx, [edi + 0x10]
call fcn.1004f3b0
mov edx, dword [0x10297f7c]
mov al, byte [eax]
inc dword [edi + 8]
movzx eax, al
sub eax, 0
je 0x100ca738
sub eax, 1
jne 0x100ca8f3
mov eax, dword [edx + 0x474]
mov ecx, dword [eax + 0x138]
test ecx, ecx
je 0x100ca8f3
call fcn.1004be50
jmp 0x100ca8f3
mov dword [ebp - 4], 4
xorps xmm0, xmm0
push 8
mov dword [ebp - 0x2c], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
call fcn.1013ca30
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 0x100ca7aa
mov dword [ebp - 0x6c], 0
jmp 0x100ca7b8
push edx
lea ecx, [edi + 0x10]
call fcn.1004f3b0
mov eax, dword [eax]
mov dword [ebp - 0x6c], eax
add dword [edi + 8], 4
lea eax, [ebp - 0x2c]
push eax
mov ecx, edi
call fcn.10084df0
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 0x100ca7e2
push edx
lea ecx, [esi + 0x10]
call fcn.1004f3b0
inc dword [esi + 8]
mov edx, dword [esi + 8]
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edx + 4]
cmp eax, ecx
jbe 0x100ca7f9
xor eax, eax
jmp 0x100ca804
push edx
lea ecx, [esi + 0x10]
call fcn.1004f3b0
mov eax, dword [eax]
add dword [esi + 8], 4
mov esi, dword [ebp - 0x6c]
test esi, esi
je 0x100ca835
push eax
sub esp, 0x20
lea eax, [ebp - 0x2c]
mov ecx, esp
push eax
call fcn.10046cb0
mov eax, dword [0x10297f7c]
push esi
mov ecx, dword [eax + 0x474]
mov ecx, dword [ecx + 0x138]
call fcn.1004bc60
push 3
lea ecx, [ebp - 0x68]
call fcn.10139310
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x100ca861
mov eax, dword [ecx + 4]
mov dword [ecx + 4], 0
test eax, eax
je 0x100ca861
mov dword [eax], 0
mov eax, dword [eax + 4]
test eax, eax
jne 0x100ca854
lea ecx, [ebp - 0x68]
call fcn.101393c0
mov eax, dword [ebp - 0x14]
cmp eax, 0xf
jbe 0x100ca8cc
mov edi, dword [ebp - 0x28]
lea esi, [eax + 1]
test edi, edi
jne 0x100ca8c2
test esi, esi
je 0x100ca8c2
push str.null_pointer_cannot_point_to_a_block_of_non_zero_size
push 0x101d467c
push edi
push 0x3b4
push 0x101d4680
push 2
call fcn.10143d00
add esp, 0x18
cmp eax, 1
jne 0x100ca8a4
int3
push 0
push 0x3b4
push str.C:Program_FilesMicrosoft_Visual_Studio2022CommunityVCToolsMSVC14.40.33807includexmemory
push 0x101d47ac
push str._null_pointer_cannot_point_to_a_block_of_non_zero_size_
call fcn.10152640
add esp, 0x14
push esi
push edi
call fcn.10048760
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.1013c8d0
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.1013c8c0
mov esp, ebp
pop ebp
ret
call fcn.10043b90
int3