Function at 0x10078b80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100d09b8
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x100f7040]
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 dword [ebp - 0x70], edi
mov esi, dword [edi + 0x54]
mov edx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x50], 1
test esi, esi
je 0x10078be2
push 4
push esi
call edx
test eax, eax
jne 0x10078bdc
lea ecx, [esi + 0xd0]
mov dl, 2
call fcn.1001e450
mov edx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [0x100faf5c]
test eax, eax
je 0x10078c22
mov ecx, dword [edi + 0x68]
cmp ecx, 1
jne 0x10078bf8
mov eax, dword [eax + 0x4c]
jmp 0x10078c00
cmp ecx, 2
jne 0x10078c22
mov eax, dword [eax + 0x50]
cmp eax, dword [edi + 0x64]
jae 0x10078c22
mov esi, dword [edi + 0x54]
test esi, esi
je 0x10078c22
push 4
push esi
call edx
test eax, eax
jne 0x10078c22
mov dl, 7
lea ecx, [esi + 0xd0]
call fcn.1001e450
mov ecx, dword [edi + 0x60]
test ecx, ecx
jne 0x10078c30
xor esi, esi
mov dword [ebp - 0x54], esi
jmp 0x10078c5a
mov esi, dword [0x100ec5b0]
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.1001e520
mov ecx, eax
call esi
mov esi, eax
mov dword [ebp - 0x54], eax
test esi, esi
je 0x1007921a
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push 8
mov dword [ebp - 0x48], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call fcn.100892d0
lea ecx, [ebp - 0x48]
add esp, 4
mov dword [eax + 4], 0
mov dword [ebp - 0x48], eax
mov dword [eax], ecx
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 4], 1
mov ecx, dword [edi + 0x60]
mov al, byte [esi + 4]
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 0x49], al
test ecx, ecx
je 0x10078d8d
mov eax, 0x12e0be83
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
mov dword [ebp - 0x50], eax
cmp eax, 4
jae 0x10078d8d
cmp byte [ebp - 0x49], 0x2d
jae 0x10078d8d
push 4
push 0xd78af0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10078d8d
movzx ecx, byte [ebp - 0x49]
mov eax, 0x10624dd3
mul dword [ebp - 0x6c]
mov eax, dword [ebp - 0x50]
mov ecx, dword [ecx*4 + 0xd78af0]
mov esi, dword [0x100ec5b4]
shr edx, 6
sub eax, edx
imul eax, eax, 0x3e8
add eax, dword [ebp - 0x6c]
push eax
call esi
mov dword [ebp - 0x50], eax
mov esi, eax
test eax, eax
je 0x10078d8f
cmp dword [eax + 0x48], 0
je 0x10078d8f
push dword [edi + 0x60]
xor edx, edx
lea ecx, [ebp - 0x2c]
push eax
call fcn.1000fab0
mov esi, eax
add esp, 8
lea eax, [ebp - 0x48]
cmp eax, esi
je 0x10078d6e
mov ecx, eax
call fcn.10002f50
push esi
lea ecx, [ebp - 0x48]
call fcn.10008460
lea ecx, [ebp - 0x2c]
call fcn.10002f50
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.10089370
mov esi, dword [ebp - 0x50]
jmp 0x10078dd6
xor esi, esi
push dword [edi + 0x60]
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x2c]
push 0
call fcn.1000fab0
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], eax
add esp, 8
cmp ecx, eax
je 0x10078dbc
call fcn.10002f50
push dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
call fcn.10008460
lea ecx, [ebp - 0x2c]
call fcn.10002f50
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.10089370
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x2c]
add esp, 8
push esi
call fcn.1000ffc0
add esp, 4
mov byte [ebp - 4], 2
mov edx, eax
mov ecx, dword [edi + 0x40]
call fcn.1001e320
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.10002f50
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.10089370
mov eax, dword [edi + 0x68]
add esp, 8
cmp eax, 1
jne 0x10078f11
mov edx, dword [edi + 0x64]
lea ecx, [ebp - 0x8c]
push 0x2e
call fcn.10019780
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x10078e45
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x100eef60]
push ecx
movups xmmword [ebp - 0x68], xmm0
mov byte [ebp - 0x58], 0
xor ecx, ecx
nop word [eax + eax]
mov al, byte [ebp + ecx - 0x67]
xor al, byte [ebp - 0x68]
mov byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0xf
jb 0x10078e60
sub esp, 0x1c
mov byte [ebp - 0x58], 0
mov edx, esp
lea ecx, [ebp - 0x67]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x50], eax
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10078ea0
sub ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x2c]
push eax
call fcn.1000d7c0
add esp, 0x24
mov byte [ebp - 4], 4
mov edx, eax
mov ecx, dword [edi + 0x44]
call fcn.1001e320
lea ecx, [ebp - 0x2c]
call fcn.10002f50
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.10089370
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x8c]
call fcn.10002f50
mov eax, dword [ebp - 0x8c]
mov dword [ebp - 0x8c], 0
jmp 0x10078fff
cmp eax, 2
jne 0x1007900a
mov edx, dword [edi + 0x64]
lea ecx, [ebp - 0x2c]
push 0x2e
call fcn.10019780
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x10078f39
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x100ef050]
push ecx
movups xmmword [ebp - 0x68], xmm0
mov byte [ebp - 0x58], 0
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x67]
xor al, byte [ebp - 0x68]
mov byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0xf
jb 0x10078f50
sub esp, 0x1c
mov byte [ebp - 0x58], 0
mov edx, esp
lea ecx, [ebp - 0x67]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x50], eax
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10078f90
sub ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x8c]
push eax
call fcn.1000d7c0
add esp, 0x24
mov byte [ebp - 4], 6
mov edx, eax
mov ecx, dword [edi + 0x44]
call fcn.1001e320
lea ecx, [ebp - 0x8c]
call fcn.10002f50
mov eax, dword [ebp - 0x8c]
push 8
push eax
mov dword [ebp - 0x8c], 0
call fcn.10089370
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10002f50
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push 8
push eax
call fcn.10089370
add esp, 8
mov edx, dword [edi + 0x6c]
lea ecx, [ebp - 0x2c]
push 0x2e
call fcn.10019780
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x10079029
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x100ee7b0]
push ecx
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x58], 0x70
xor ecx, ecx
nop dword [eax]
mov al, byte [ebp + ecx - 0x67]
xor al, byte [ebp - 0x68]
mov byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x10
jb 0x10079040
sub esp, 0x1c
mov byte [ebp - 0x57], 0
mov edx, esp
lea ecx, [ebp - 0x67]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x50], eax
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10079080
sub ecx, dword [ebp - 0x50]
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x8c]
push eax
call fcn.1000d7c0
add esp, 0x24
mov byte [ebp - 4], 8
mov edx, eax
mov ecx, dword [edi + 0x48]
call fcn.1001e320
lea ecx, [ebp - 0x8c]
call fcn.10002f50
mov eax, dword [ebp - 0x8c]
push 8
push eax
mov dword [ebp - 0x8c], 0
call fcn.10089370
add esp, 8
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.10002f50
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.10089370
mov ecx, dword [edi + 0x50]
add esp, 8
test ecx, ecx
je 0x100791f1
add ecx, 4
lea edx, [ebp - 0x48]
call fcn.100183a0
mov eax, dword [edi + 0x50]
mov ecx, dword [ebp - 0x54]
mov dword [eax + 0x50], ecx
mov eax, dword [edi + 0x50]
mov dword [eax + 0x54], esi
mov eax, dword [edi + 0x50]
mov dword [eax + 0x58], 1
test esi, esi
je 0x10079139
movsx edx, word [esi + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x1007913d
movsx edx, word [ecx + 0x66]
mov eax, dword [edi + 0x50]
mov dword [eax + 0x5c], edx
mov eax, dword [edi + 0x50]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
test eax, eax
je 0x100791f1
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100791d1
cmp dword [ebp - 0x30], 0xf
lea ecx, [ebp - 0x44]
cmova ecx, dword [ebp - 0x44]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10079170
sub ecx, edx
mov dword [ebp - 0x54], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.10089390
push esi
mov edi, eax
push 0
push edi
call fcn.1008c3c0
cmp dword [ebp - 0x30], 0xf
lea edx, [ebp - 0x44]
push dword [ebp - 0x54]
cmova edx, dword [ebp - 0x44]
lea esi, [edi + 0x20]
push edx
push esi
call fcn.1008be40
mov eax, dword [ebp - 0x54]
add esp, 0x1c
mov ecx, dword [ebp - 0x50]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x100ec638]
push edi
call fcn.10089370
mov edi, dword [ebp - 0x70]
add esp, 4
mov eax, dword [edi + 0x50]
mov esi, dword [eax]
test esi, esi
je 0x100791f1
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100791f1
push 1
mov ecx, esi
call dword [0x100ec604]
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x48]
push 8
push eax
mov dword [ebp - 0x48], 0
call fcn.10089370
add esp, 8
jmp 0x10079639
mov eax, dword [edi + 0x60]
test eax, eax
je 0x10079639
cmp eax, 0x5f5e100
jae 0x10079639
mov edx, dword [edi + 0x78]
sub edx, dword [edi + 0x74]
sar edx, 2
call fcn.10018e10
mov ecx, dword [edi + 0x78]
sub ecx, dword [edi + 0x74]
sar ecx, 2
lea esi, [eax - 1]
cmp esi, ecx
jb 0x10079292
push str.vector_subscript_out_of_range
push 0x100e64a8
push 0
push 0x761
push 0x100e6f98
push 2
call fcn.10090a10
add esp, 0x18
cmp eax, 1
jne 0x10079274
int3
push 0
push 0x761
push str.C:Program_FilesMicrosoft_Visual_Studio2022ProfessionalVCToolsMSVC14.41.34120include_vector
push 0x100e65e4
push str._vector_subscript_out_of_range_
call fcn.1008fd30
add esp, 0x14
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10079639
mov eax, dword [edi + 0x68]
cmp eax, 1
jne 0x1007931d
mov edx, dword [edi + 0x64]
lea ecx, [ebp - 0x8c]
push 0x2e
call fcn.10019780
add esp, 4
mov dword [ebp - 4], 9
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x100792d0
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x100ee880]
push ecx
movups xmmword [ebp - 0x68], xmm0
mov byte [ebp - 0x58], 0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x67]
xor al, byte [ebp - 0x68]
mov byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0xf
jb 0x100792e2
sub esp, 0x1c
mov byte [ebp - 0x58], 0
lea eax, [ebp - 0x67]
mov ecx, esp
push eax
call fcn.10003470
lea eax, [ebp - 0xa8]
push eax
call fcn.1000d7c0
add esp, 0x24
mov byte [ebp - 4], 0xa
jmp 0x100793b3
cmp eax, 2
jne 0x100793da
mov edx, dword [edi + 0x64]
lea ecx, [ebp - 0x8c]
push 0x2e
call fcn.10019780
add esp, 4
mov ecx, eax
mov dword [ebp - 4], 0xb
call fcn.10003950
movaps xmm0, xmmword [0x100ef030]
xor esi, esi
push eax
movups xmmword [ebp - 0x68], xmm0
mov byte [ebp - 0x58], 0
nop dword [eax]
push esi
lea ecx, [ebp - 0x67]
call fcn.10003a80
mov cl, byte [ebp - 0x68]
push esi
xor cl, byte [eax]
mov byte [ebp - 0x49], cl
lea ecx, [ebp - 0x67]
call fcn.10003a80
mov cl, byte [ebp - 0x49]
inc esi
mov byte [eax], cl
cmp esi, 0xf
jb 0x10079360
push 0xf
lea ecx, [ebp - 0x67]
call fcn.10003a80
sub esp, 0x1c
mov ecx, esp
mov byte [eax], 0
lea eax, [ebp - 0x67]
push eax
call fcn.10003470
lea eax, [ebp - 0xa8]
push eax
call fcn.1000d7c0
add esp, 0x24
mov byte [ebp - 4], 0xc
mov ecx, dword [edi + 0x44]
mov edx, eax
call fcn.1001e320
lea ecx, [ebp - 0xa8]
call fcn.10003020
lea ecx, [ebp - 0x8c]
mov dword [ebp - 4], 0xffffffff
call fcn.10003020
mov edx, dword [edi + 0x6c]
lea ecx, [ebp - 0xa8]
push 0x2e
call fcn.10019780
add esp, 4
mov dword [ebp - 4], 0xd
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x100793ff
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x100ee5c0]
push ecx
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x58], 0x46
xor ecx, ecx
mov al, byte [ebp + ecx - 0x67]
xor al, byte [ebp - 0x68]
mov byte [ebp + ecx - 0x67], al
inc ecx
cmp ecx, 0x10
jb 0x10079413
sub esp, 0x1c
mov byte [ebp - 0x57], 0
mov edx, esp
lea ecx, [ebp - 0x67]
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
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10079450
sub ecx, esi
lea eax, [ebp - 0x67]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x8c]
push eax
call fcn.1000d7c0
add esp, 0x24
mov byte [ebp - 4], 0xe
mov edx, eax
mov ecx, dword [edi + 0x48]
call fcn.1001e320
lea ecx, [ebp - 0x8c]
call fcn.10002f50
mov eax, dword [ebp - 0x8c]
push 8
push eax
mov dword [ebp - 0x8c], 0
call fcn.10089370
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xa8]
call fcn.10002f50
mov eax, dword [ebp - 0xa8]
push 8
push eax
mov dword [ebp - 0xa8], 0
call fcn.10089370
mov esi, dword [0x100ec5b0]
mov eax, 0x10624dd3
mul dword [ebp - 0x54]
add esp, 8
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.1001e520
mov ecx, eax
call esi
mov esi, eax
mov dword [ebp - 0x6c], esi
test esi, esi
je 0x10079639
mov dword [ebp - 4], 0xf
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.100892d0
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], 0x10
call fcn.1000ba30
mov edx, dword [ebp - 0x54]
mov cl, byte [esi + 4]
call fcn.1000f810
mov esi, eax
test esi, esi
je 0x1007959e
cmp dword [esi + 0x48], 0
je 0x1007959e
push dword [ebp - 0x54]
xor edx, edx
lea ecx, [ebp - 0xa8]
push esi
call fcn.1000fab0
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
call fcn.10006930
lea ecx, [ebp - 0xa8]
jmp 0x100795c3
push dword [ebp - 0x54]
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp - 0xc4]
push 0
call fcn.1000fab0
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
call fcn.10006930
lea ecx, [ebp - 0xc4]
call fcn.10003020
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x1007962a
add ecx, 4
lea edx, [ebp - 0x2c]
call fcn.100183a0
mov eax, dword [edi + 0x50]
mov edx, dword [ebp - 0x6c]
mov dword [eax + 0x50], edx
mov eax, dword [edi + 0x50]
mov dword [eax + 0x54], esi
mov eax, dword [edi + 0x50]
mov dword [eax + 0x58], 1
test esi, esi
je 0x10079603
movsx ecx, word [esi + 0x56]
movsx eax, word [edx + 0x66]
add ecx, eax
jmp 0x10079607
movsx ecx, word [edx + 0x66]
mov eax, dword [edi + 0x50]
mov dword [eax + 0x5c], ecx
mov eax, dword [edi + 0x50]
mov ecx, dword [eax]
test ecx, ecx
je 0x1007962a
lea edx, [ebp - 0x2c]
call fcn.1001df80
mov ecx, dword [edi + 0x50]
mov dl, 1
mov ecx, dword [ecx]
call fcn.1001dce0
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10003020
mov ecx, edi
call fcn.10078150
mov ecx, edi
call fcn.10079680
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x10079665
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10079665
push 1
mov ecx, esi
call dword [0x100ec604]
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.100892c0
mov esp, ebp
pop ebp
ret