Function at 0x100789c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cc138
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
mov eax, dword [0x100f2040]
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 0x10078a22
push 4
push esi
call edx
test eax, eax
jne 0x10078a1c
lea ecx, [esi + 0xd0]
mov dl, 2
call fcn.1001e280
mov edx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov eax, dword [0x100f5f54]
test eax, eax
je 0x10078a62
mov ecx, dword [edi + 0x68]
cmp ecx, 1
jne 0x10078a38
mov eax, dword [eax + 0x4c]
jmp 0x10078a40
cmp ecx, 2
jne 0x10078a62
mov eax, dword [eax + 0x50]
cmp eax, dword [edi + 0x64]
jae 0x10078a62
mov esi, dword [edi + 0x54]
test esi, esi
je 0x10078a62
push 4
push esi
call edx
test eax, eax
jne 0x10078a62
mov dl, 7
lea ecx, [esi + 0xd0]
call fcn.1001e280
mov ecx, dword [edi + 0x60]
test ecx, ecx
jne 0x10078a70
xor esi, esi
mov dword [ebp - 0x54], esi
jmp 0x10078a9a
mov esi, dword [0x100e6d00]
mov eax, 0x10624dd3
mul ecx
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.1001e350
mov ecx, eax
call esi
mov esi, eax
mov dword [ebp - 0x54], eax
test esi, esi
je 0x1007905a
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.10089110
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 0x10078bcd
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 0x10078bcd
cmp byte [ebp - 0x49], 0x2d
jae 0x10078bcd
push 4
push 0xd78af0
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10078bcd
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 [0x100e6d04]
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 0x10078bcf
cmp dword [eax + 0x48], 0
je 0x10078bcf
push dword [edi + 0x60]
xor edx, edx
lea ecx, [ebp - 0x2c]
push eax
call fcn.1000f930
mov esi, eax
add esp, 8
lea eax, [ebp - 0x48]
cmp eax, esi
je 0x10078bae
mov ecx, eax
call fcn.10002f50
push esi
lea ecx, [ebp - 0x48]
call fcn.100082f0
lea ecx, [ebp - 0x2c]
call fcn.10002f50
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.100891b0
mov esi, dword [ebp - 0x50]
jmp 0x10078c16
xor esi, esi
push dword [edi + 0x60]
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x2c]
push 0
call fcn.1000f930
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x50], eax
add esp, 8
cmp ecx, eax
je 0x10078bfc
call fcn.10002f50
push dword [ebp - 0x50]
lea ecx, [ebp - 0x48]
call fcn.100082f0
lea ecx, [ebp - 0x2c]
call fcn.10002f50
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.100891b0
mov edx, dword [ebp - 0x54]
lea ecx, [ebp - 0x2c]
add esp, 8
push esi
call fcn.1000fe40
add esp, 4
mov byte [ebp - 4], 2
mov edx, eax
mov ecx, dword [edi + 0x40]
call fcn.1001e150
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.100891b0
mov eax, dword [edi + 0x68]
add esp, 8
cmp eax, 1
jne 0x10078d51
mov edx, dword [edi + 0x64]
lea ecx, [ebp - 0x8c]
push 0x2e
call fcn.10019600
add esp, 4
mov byte [ebp - 4], 3
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x10078c85
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x100e94d0]
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 0x10078ca0
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 0x10078ce0
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.1000d650
add esp, 0x24
mov byte [ebp - 4], 4
mov edx, eax
mov ecx, dword [edi + 0x44]
call fcn.1001e150
lea ecx, [ebp - 0x2c]
call fcn.10002f50
mov eax, dword [ebp - 0x2c]
push 8
push eax
mov dword [ebp - 0x2c], 0
call fcn.100891b0
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 0x10078e3f
cmp eax, 2
jne 0x10078e4a
mov edx, dword [edi + 0x64]
lea ecx, [ebp - 0x2c]
push 0x2e
call fcn.10019600
add esp, 4
mov byte [ebp - 4], 5
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x10078d79
mov ecx, dword [ecx]
movaps xmm0, xmmword [str.dDID0_D4]
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 0x10078d90
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 0x10078dd0
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.1000d650
add esp, 0x24
mov byte [ebp - 4], 6
mov edx, eax
mov ecx, dword [edi + 0x44]
call fcn.1001e150
lea ecx, [ebp - 0x8c]
call fcn.10002f50
mov eax, dword [ebp - 0x8c]
push 8
push eax
mov dword [ebp - 0x8c], 0
call fcn.100891b0
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.100891b0
add esp, 8
mov edx, dword [edi + 0x6c]
lea ecx, [ebp - 0x2c]
push 0x2e
call fcn.10019600
add esp, 4
mov byte [ebp - 4], 7
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x10078e69
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x100e8860]
push ecx
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x58], 0x56
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 0x10078e80
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 0x10078ec0
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.1000d650
add esp, 0x24
mov byte [ebp - 4], 8
mov edx, eax
mov ecx, dword [edi + 0x48]
call fcn.1001e150
lea ecx, [ebp - 0x8c]
call fcn.10002f50
mov eax, dword [ebp - 0x8c]
push 8
push eax
mov dword [ebp - 0x8c], 0
call fcn.100891b0
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.100891b0
mov ecx, dword [edi + 0x50]
add esp, 8
test ecx, ecx
je 0x10079031
add ecx, 4
lea edx, [ebp - 0x48]
call fcn.10018220
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 0x10078f79
movsx edx, word [esi + 0x56]
movsx eax, word [ecx + 0x66]
add edx, eax
jmp 0x10078f7d
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 0x10079031
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10079011
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 0x10078fb0
sub ecx, edx
mov dword [ebp - 0x54], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.100891d0
push esi
mov edi, eax
push 0
push edi
call fcn.1008c200
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.1008bc80
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 [0x100e6d88]
push edi
call fcn.100891b0
mov edi, dword [ebp - 0x70]
add esp, 4
mov eax, dword [edi + 0x50]
mov esi, dword [eax]
test esi, esi
je 0x10079031
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10079031
push 1
mov ecx, esi
call dword [0x100e6d54]
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.100891b0
add esp, 8
jmp 0x10079479
mov eax, dword [edi + 0x60]
test eax, eax
je 0x10079479
cmp eax, 0x5f5e100
jae 0x10079479
mov edx, dword [edi + 0x78]
sub edx, dword [edi + 0x74]
sar edx, 2
call fcn.10018c90
mov ecx, dword [edi + 0x78]
sub ecx, dword [edi + 0x74]
sar ecx, 2
lea esi, [eax - 1]
cmp esi, ecx
jb 0x100790d2
push str.vector_subscript_out_of_range
push 0x100e0bf8
push 0
push 0x761
push 0x100e16e8
push 2
call fcn.10090860
add esp, 0x18
cmp eax, 1
jne 0x100790b4
int3
push 0
push 0x761
push str.C:Program_FilesMicrosoft_Visual_Studio2022ProfessionalVCToolsMSVC14.41.34120include_vector
push 0x100e0d34
push str._vector_subscript_out_of_range_
call fcn.1008fb80
add esp, 0x14
mov eax, dword [edi + 0x74]
mov eax, dword [eax + esi*4]
mov dword [ebp - 0x54], eax
test eax, eax
je 0x10079479
mov eax, dword [edi + 0x68]
cmp eax, 1
jne 0x1007915d
mov edx, dword [edi + 0x64]
lea ecx, [ebp - 0x8c]
push 0x2e
call fcn.10019600
add esp, 4
mov dword [ebp - 4], 9
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x10079110
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x100e9470]
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 0x10079122
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.1000d650
add esp, 0x24
mov byte [ebp - 4], 0xa
jmp 0x100791f3
cmp eax, 2
jne 0x1007921a
mov edx, dword [edi + 0x64]
lea ecx, [ebp - 0x8c]
push 0x2e
call fcn.10019600
add esp, 4
mov ecx, eax
mov dword [ebp - 4], 0xb
call fcn.10003950
movaps xmm0, xmmword [0x100e9a20]
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 0x100791a0
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.1000d650
add esp, 0x24
mov byte [ebp - 4], 0xc
mov ecx, dword [edi + 0x44]
mov edx, eax
call fcn.1001e150
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.10019600
add esp, 4
mov dword [ebp - 4], 0xd
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x1007923f
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x100e8c90]
push ecx
movups xmmword [ebp - 0x68], xmm0
mov word [ebp - 0x58], 0x47
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 0x10079253
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 0x10079290
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.1000d650
add esp, 0x24
mov byte [ebp - 4], 0xe
mov edx, eax
mov ecx, dword [edi + 0x48]
call fcn.1001e150
lea ecx, [ebp - 0x8c]
call fcn.10002f50
mov eax, dword [ebp - 0x8c]
push 8
push eax
mov dword [ebp - 0x8c], 0
call fcn.100891b0
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.100891b0
mov esi, dword [0x100e6d00]
mov eax, 0x10624dd3
mul dword [ebp - 0x54]
add esp, 8
mov ecx, 0xd78ae8
shr edx, 6
imul eax, edx, 0x3e8
push eax
call fcn.1001e350
mov ecx, eax
call esi
mov esi, eax
mov dword [ebp - 0x6c], esi
test esi, esi
je 0x10079479
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.10089110
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.1000b8c0
mov edx, dword [ebp - 0x54]
mov cl, byte [esi + 4]
call fcn.1000f690
mov esi, eax
test esi, esi
je 0x100793de
cmp dword [esi + 0x48], 0
je 0x100793de
push dword [ebp - 0x54]
xor edx, edx
lea ecx, [ebp - 0xa8]
push esi
call fcn.1000f930
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
call fcn.100067c0
lea ecx, [ebp - 0xa8]
jmp 0x10079403
push dword [ebp - 0x54]
mov edx, dword [ebp - 0x6c]
lea ecx, [ebp - 0xc4]
push 0
call fcn.1000f930
add esp, 8
lea ecx, [ebp - 0x2c]
push eax
call fcn.100067c0
lea ecx, [ebp - 0xc4]
call fcn.10003020
mov ecx, dword [edi + 0x50]
test ecx, ecx
je 0x1007946a
add ecx, 4
lea edx, [ebp - 0x2c]
call fcn.10018220
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 0x10079443
movsx ecx, word [esi + 0x56]
movsx eax, word [edx + 0x66]
add ecx, eax
jmp 0x10079447
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 0x1007946a
lea edx, [ebp - 0x2c]
call fcn.1001ddb0
mov ecx, dword [edi + 0x50]
mov dl, 1
mov ecx, dword [ecx]
call fcn.1001db20
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
call fcn.10003020
mov ecx, edi
call fcn.10077f90
mov ecx, edi
call fcn.100794c0
mov esi, dword [edi + 0x1c]
test esi, esi
je 0x100794a5
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100794a5
push 1
mov ecx, esi
call dword [0x100e6d54]
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.10089100
mov esp, ebp
pop ebp
ret