Function at 0x1000c565
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10082514
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0xf8
push esi
push edi
mov eax, dword [0x100a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
mov edx, dword [esi + 0x18]
sub edx, dword [esi + 0x14]
lea eax, [edi + 1]
cmp eax, edx
jbe 0x1000bdb6
mov byte [ebp - 0x11], 0
jmp 0x1000be0e
mov ecx, edi
cmp edi, edx
jb 0x1000be03
push str.vector_subscript_out_of_range
push 0x10097f88
push 0
push 0x76b
push 0x10098a78
push 2
call fcn.1004d250
add esp, 0x18
cmp eax, 1
jne 0x1000bde2
int3
push 0
push 0x76b
push str.C:Program_FilesMicrosoft_Visual_Studio2022ProfessionalVCToolsMSVC14.41.34120include_vector
push 0x100980c4
push str._vector_subscript_out_of_range_
call fcn.1004c570
mov ecx, dword [esi + 8]
add esp, 0x14
mov eax, dword [esi + 0x14]
mov al, byte [edi + eax]
mov edi, ecx
mov byte [ebp - 0x11], al
inc edi
mov dword [esi + 8], edi
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 4]
cmp eax, ecx
jbe 0x1000be28
mov dword [ebp - 0x40], 0
jmp 0x1000be80
mov edx, edi
cmp edi, ecx
jb 0x1000be75
push str.vector_subscript_out_of_range
push 0x10097f88
push 0
push 0x76b
push 0x10098a78
push 2
call fcn.1004d250
add esp, 0x18
cmp eax, 1
jne 0x1000be54
int3
push 0
push 0x76b
push str.C:Program_FilesMicrosoft_Visual_Studio2022ProfessionalVCToolsMSVC14.41.34120include_vector
push 0x100980c4
push str._vector_subscript_out_of_range_
call fcn.1004c570
mov edx, dword [esi + 8]
add esp, 0x14
mov eax, dword [esi + 0x14]
mov eax, dword [edi + eax]
mov edi, edx
mov dword [ebp - 0x40], eax
add edi, 4
mov dword [esi + 8], edi
mov ecx, dword [esi + 0x18]
sub ecx, dword [esi + 0x14]
lea eax, [edi + 4]
cmp eax, ecx
jbe 0x1000be9c
mov dword [ebp - 0x3c], 0
jmp 0x1000bef4
mov edx, edi
cmp edi, ecx
jb 0x1000bee9
push str.vector_subscript_out_of_range
push 0x10097f88
push 0
push 0x76b
push 0x10098a78
push 2
call fcn.1004d250
add esp, 0x18
cmp eax, 1
jne 0x1000bec8
int3
push 0
push 0x76b
push str.C:Program_FilesMicrosoft_Visual_Studio2022ProfessionalVCToolsMSVC14.41.34120include_vector
push 0x100980c4
push str._vector_subscript_out_of_range_
call fcn.1004c570
mov edx, dword [esi + 8]
add esp, 0x14
mov eax, dword [esi + 0x14]
mov eax, dword [edi + eax]
mov edi, edx
mov dword [ebp - 0x3c], eax
lea eax, [edi + 4]
mov dword [esi + 8], eax
mov eax, dword [0x100a9f50]
test eax, eax
je 0x1000c07d
mov cl, byte [ebp - 0x11]
cmp cl, 1
je 0x1000c092
cmp cl, 2
je 0x1000c092
mov ecx, dword [0x100a9f54]
mov edi, dword [ebp - 0x3c]
mov dl, byte [ebp - 0x11]
cmp dl, 3
je 0x1000bf36
cmp dl, 4
jne 0x1000c07d
mov esi, dword [eax + 0x94]
test esi, esi
je 0x1000c071
push 0x2e
mov edx, edi
lea ecx, [ebp - 0x78]
call fcn.10011c10
add esp, 4
mov dword [ebp - 4], 4
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1000bf65
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000bf86
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.10003350
mov byte [ebp - 4], 5
mov eax, dword [esi + 0x10]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1000c02a
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000c02a
cmp dword [ebp - 0x44], 0xf
lea ecx, [ebp - 0x58]
cmova ecx, dword [ebp - 0x58]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000bfc6
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100460a0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10048c00
add esp, 0xc
lea edx, [ebp - 0x58]
cmp dword [ebp - 0x44], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x58]
push dword [ebp - 0x38]
push edx
push esi
call fcn.10048680
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x1009e0e0]
push edi
call fcn.10046080
add esp, 4
lea ecx, [ebp - 0x5c]
call fcn.10002f50
mov eax, dword [ebp - 0x5c]
push 8
push eax
mov dword [ebp - 0x5c], 0
call fcn.10046080
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x78]
call fcn.10002f50
mov eax, dword [ebp - 0x78]
push 8
push eax
mov dword [ebp - 0x78], 0
call fcn.10046080
mov ecx, dword [0x100a9f54]
add esp, 8
test ecx, ecx
je 0x1000c07d
push dword [ebp - 0x3c]
call fcn.1001e4b0
movzx eax, byte [ebp - 0x11]
dec eax
cmp eax, 3
ja case.default.0x1000c08b
jmp dword [eax*4 + 0x1000c790]
mov esi, dword [eax + 0x94]
test esi, esi
je 0x1000c1d9
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0xcc]
push 0x2e
call fcn.10011c10
add esp, 4
mov dword [ebp - 4], 0
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1000c0c5
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x30], 0
xorps xmm0, xmm0
mov dword [ebp - 0x1c], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x18], 0
lea edi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c0e6
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x30]
call fcn.10003350
mov byte [ebp - 4], 1
mov eax, dword [esi + 0xc]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1000c18a
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000c18a
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, dword [ebp - 0x2c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c126
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100460a0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10048c00
add esp, 0xc
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x2c]
push dword [ebp - 0x38]
push edx
push esi
call fcn.10048680
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x1009e0e0]
push edi
call fcn.10046080
add esp, 4
lea ecx, [ebp - 0x30]
call fcn.10002f50
mov eax, dword [ebp - 0x30]
push 8
push eax
mov dword [ebp - 0x30], 0
call fcn.10046080
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xcc]
call fcn.10002f50
mov eax, dword [ebp - 0xcc]
push 8
push eax
mov dword [ebp - 0xcc], 0
call fcn.10046080
mov eax, dword [0x100a9f50]
add esp, 8
mov esi, dword [eax + 0x58]
test esi, esi
je 0x1000c352
cmp dword [esi + 4], 0
je 0x1000c352
mov edx, dword [ebp - 0x3c]
lea ecx, [ebp - 0xe8]
push 0x2c
call fcn.10011c10
add esp, 4
mov dword [ebp - 4], 2
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1000c213
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x94], 0
xorps xmm0, xmm0
mov dword [ebp - 0x80], 0
movups xmmword [ebp - 0x90], xmm0
mov dword [ebp - 0x7c], 0
lea edi, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c240
sub ecx, edi
push ecx
push edx
lea ecx, [ebp - 0x94]
call fcn.10003350
mov byte [ebp - 4], 3
mov eax, dword [esi + 4]
mov dword [ebp - 0x34], eax
test eax, eax
je 0x1000c2fa
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1000c2fa
cmp dword [ebp - 0x7c], 0xf
lea ecx, [ebp - 0x90]
cmova ecx, dword [ebp - 0x90]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c290
sub ecx, edx
mov dword [ebp - 0x38], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100460a0
add esp, 4
mov edi, eax
push esi
push 0
push edi
call fcn.10048c00
add esp, 0xc
lea edx, [ebp - 0x90]
cmp dword [ebp - 0x7c], 0xf
lea esi, [edi + 0x20]
cmova edx, dword [ebp - 0x90]
push dword [ebp - 0x38]
push edx
push esi
call fcn.10048680
mov eax, dword [ebp - 0x38]
add esp, 0xc
mov ecx, dword [ebp - 0x34]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x1009e0e0]
push edi
call fcn.10046080
add esp, 4
lea ecx, [ebp - 0x94]
call fcn.10002f50
mov eax, dword [ebp - 0x94]
push 8
push eax
mov dword [ebp - 0x94], 0
call fcn.10046080
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe8]
call fcn.10002f50
mov eax, dword [ebp - 0xe8]
push 8
push eax
mov dword [ebp - 0xe8], 0
call fcn.10046080
mov eax, dword [0x100a9f50]
add esp, 8
mov ecx, dword [0x100a9f54]
test ecx, ecx
je 0x1000bf22
mov edi, dword [ebp - 0x3c]
push edi
call fcn.1001e410
mov eax, dword [0x100a9f50]
mov ecx, dword [0x100a9f54]
jmp 0x1000bf25
movaps xmm0, xmmword [0x1009fb30]
xor ecx, ecx
push dword [ebp - 0x40]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x42160a05
mov dword [ebp - 0x1c], 0xa110321
mov word [ebp - 0x18], 0x4c
nop dword [eax]
mov al, byte [ebp + ecx - 0x2f]
xor al, byte [ebp - 0x30]
mov byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x18
jb 0x1000c3a0
sub esp, 0x1c
mov byte [ebp - 0x17], 0
mov edx, esp
lea ecx, [ebp - 0x2f]
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 + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c3e0
sub ecx, esi
lea eax, [ebp - 0x2f]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0x78]
push eax
call fcn.1000d820
add esp, 0x24
mov dword [ebp - 4], 6
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1000c413
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c434
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.10003350
mov byte [ebp - 4], 7
mov edx, 0xff6565ff
lea ecx, [ebp - 0x5c]
call fcn.1000c7a0
lea ecx, [ebp - 0x5c]
call fcn.10002f50
mov eax, dword [ebp - 0x5c]
push 8
push eax
mov dword [ebp - 0x5c], 0
call fcn.10046080
add esp, 8
lea ecx, [ebp - 0x78]
call fcn.10002f50
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x78], 0
jmp 0x1000c76e
movaps xmm0, xmmword [0x1009fe60]
xor ecx, ecx
push dword [ebp - 0x40]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x1a011331
mov word [ebp - 0x18], 0x5c
nop dword [eax]
mov al, byte [ebp + ecx - 0x2b]
xor al, byte [ebp - 0x2c]
mov byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x14
jb 0x1000c4b0
sub esp, 0x1c
mov byte [ebp - 0x17], 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 + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c4f0
sub ecx, esi
lea eax, [ebp - 0x2b]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0x78]
push eax
call fcn.1000d820
add esp, 0x24
mov dword [ebp - 4], 8
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1000c523
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c544
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.10003350
mov byte [ebp - 4], 9
mov edx, 0xffff3b3b
jmp 0x1000c450
movaps xmm0, xmmword [0x1009fd80]
xor ecx, ecx
push dword [ebp - 0x40]
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x737e7350
mov dword [ebp - 0x1c], 0x3c77717c
mov byte [ebp - 0x18], 0
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x2f]
xor al, byte [ebp - 0x30]
mov byte [ebp + ecx - 0x2f], al
inc ecx
cmp ecx, 0x17
jb 0x1000c590
sub esp, 0x1c
mov byte [ebp - 0x18], 0
mov edx, esp
lea ecx, [ebp - 0x2f]
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 + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c5d0
sub ecx, esi
lea eax, [ebp - 0x2f]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0x78]
push eax
call fcn.1000d820
add esp, 0x24
mov dword [ebp - 4], 0xa
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1000c603
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0x5c], 0
xorps xmm0, xmm0
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x58], xmm0
mov dword [ebp - 0x44], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c624
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x5c]
call fcn.10003350
mov byte [ebp - 4], 0xb
jmp 0x1000c44b
movaps xmm0, xmmword [0x1009fcd0]
xor ecx, ecx
push dword [ebp - 0x40]
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x662d2b26
mov byte [ebp - 0x18], 0
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x2b]
xor al, byte [ebp - 0x2c]
mov byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x13
jb 0x1000c660
sub esp, 0x1c
mov byte [ebp - 0x18], 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 + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c6a0
sub ecx, esi
lea eax, [ebp - 0x2b]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0x104]
push eax
call fcn.1000d820
add esp, 0x24
mov dword [ebp - 4], 0xc
lea edx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1000c6d6
mov edx, dword [edx]
mov ecx, edx
mov dword [ebp - 0xb0], 0
xorps xmm0, xmm0
mov dword [ebp - 0x9c], 0
movups xmmword [ebp - 0xac], xmm0
mov dword [ebp - 0x98], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1000c703
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0xb0]
call fcn.10003350
mov edx, 0xffff3b3b
mov byte [ebp - 4], 0xd
lea ecx, [ebp - 0xb0]
call fcn.1000c7a0
lea ecx, [ebp - 0xb0]
call fcn.10002f50
mov eax, dword [ebp - 0xb0]
push 8
push eax
mov dword [ebp - 0xb0], 0
call fcn.10046080
add esp, 8
lea ecx, [ebp - 0x104]
call fcn.10002f50
mov eax, dword [ebp - 0x104]
mov dword [ebp - 0x104], 0
push 8
push eax
call fcn.10046080
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret