Function at 0x10056470
Capabilities:
Encode data using xor

Disassembly:
push ebp
lea ebp, [esp - 0x6c]
sub esp, 0x6c
push 0xffffffffffffffff
push 0x1017b22d
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x101dadb0]
xor eax, ebp
mov dword [ebp + 0x68], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 0x7c]
mov eax, dword [ebp + 0x74]
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov dword [ebp - 0x58], ecx
xor ecx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x18], ecx
nop dword [eax]
mov eax, dword [eax + ecx*4]
lea esi, [ecx + ecx*4]
shl esi, 3
lea edi, [edx + esi]
mov dword [edi + 0xe8], eax
mov eax, dword [ebp - 0x30]
mov ecx, dword [eax + ecx*4]
test ecx, ecx
jne 0x100566e1
lea eax, [edx + esi]
mov dword [eax + 0xec], 0
lea ecx, [ebp + 0x48]
mov dword [eax + 0xe8], 0
lea eax, [ebp + 5]
mov word [ebp + 4], 0x44
push eax
mov dword [edi + 0xf4], 0
mov byte [ebp + 5], 0
call fcn.10047780
mov esi, dword [edi + 0xf8]
mov dword [ebp - 4], 9
test esi, esi
je 0x1005653d
push 4
push esi
call ebx
test eax, eax
jne 0x1005653d
lea eax, [ebp + 0x48]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp + 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.100448c0
mov eax, dword [ebp + 0x60]
cmp eax, 0x10
jb 0x10056561
inc eax
push eax
push dword [ebp + 0x4c]
call fcn.10049010
add esp, 8
mov eax, dword [ebp + 0x48]
push 8
push eax
mov dword [ebp + 0x5c], 0
mov dword [ebp + 0x60], 0xf
mov byte [ebp + 0x4c], 0
mov dword [ebp + 0x48], 0
call fcn.10049010
add esp, 8
mov word [ebp], 0x55
lea eax, [ebp + 1]
mov byte [ebp + 1], 0
lea ecx, [ebp + 0x48]
push eax
call fcn.10047780
mov esi, dword [edi + 0xfc]
mov dword [ebp - 4], 0xa
test esi, esi
je 0x100565c4
push 4
push esi
call ebx
test eax, eax
jne 0x100565c4
lea eax, [ebp + 0x48]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp + 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.100448c0
mov eax, dword [ebp + 0x60]
cmp eax, 0x10
jb 0x100565e8
inc eax
push eax
push dword [ebp + 0x4c]
call fcn.10049010
add esp, 8
mov eax, dword [ebp + 0x48]
push 8
push eax
mov dword [ebp + 0x5c], 0
mov dword [ebp + 0x60], 0xf
mov byte [ebp + 0x4c], 0
mov dword [ebp + 0x48], 0
call fcn.10049010
add esp, 8
mov word [ebp - 0x10], 0x3e
lea eax, [ebp - 0xf]
mov byte [ebp - 0xf], 0
lea ecx, [ebp - 0x4c]
push eax
call fcn.10047780
mov esi, dword [edi + 0x100]
mov dword [ebp - 4], 0xb
test esi, esi
je 0x1005664b
push 4
push esi
call ebx
test eax, eax
jne 0x1005664b
lea eax, [ebp - 0x4c]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp - 0x4c]
mov dword [ebp - 4], 0xffffffff
call fcn.100448c0
mov eax, dword [ebp - 0x34]
cmp eax, 0x10
jb 0x1005666f
inc eax
push eax
push dword [ebp - 0x48]
call fcn.10049010
add esp, 8
mov eax, dword [ebp - 0x4c]
push 8
push eax
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
mov dword [ebp - 0x4c], 0
call fcn.10049010
mov ecx, dword [ebp - 0x18]
add esp, 8
mov edx, dword [ebp - 0x14]
mov ecx, dword [edx + ecx*4 + 0x58]
test ecx, ecx
je 0x100566af
push 0
call dword [0x101ba7a0]
mov edx, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x30]
inc ecx
mov dword [ebp - 0x18], ecx
cmp ecx, 3
jl 0x100564c0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.101204c0
lea esp, [ebp + 0x6c]
pop ebp
ret 0xc
mov eax, 0x10624dd3
mul ecx
mov ecx, dword [0xf3e688]
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x101ba7a4]
mov ecx, eax
mov eax, dword [ebp - 0x14]
add eax, esi
mov dword [ebp - 0x50], ecx
test ecx, ecx
je 0x100564e3
lea eax, [ecx + 8]
mov dword [edi + 0xf4], ecx
push eax
lea ecx, [ebp + 0x48]
call fcn.10047950
mov esi, dword [edi + 0xf8]
mov dword [ebp - 4], 0
test esi, esi
je 0x10056748
push 4
push esi
call ebx
test eax, eax
jne 0x10056748
lea eax, [ebp + 0x48]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp + 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.100448c0
mov eax, dword [ebp + 0x60]
cmp eax, 0x10
jb 0x1005676c
inc eax
push eax
push dword [ebp + 0x4c]
call fcn.10049010
add esp, 8
mov eax, dword [ebp + 0x48]
push 8
push eax
mov dword [ebp + 0x5c], 0
mov dword [ebp + 0x60], 0xf
mov byte [ebp + 0x4c], 0
mov dword [ebp + 0x48], 0
call fcn.10049010
mov ecx, dword [ebp - 0x18]
lea esi, [ebp + 0x3d]
mov eax, dword [ebp + 0x78]
add esp, 8
mov ecx, dword [eax + ecx*4]
nop
mov eax, 0xcccccccd
dec esi
mul ecx
shr edx, 3
mov al, dl
shl al, 2
lea ebx, [eax + edx]
add bl, bl
sub cl, bl
add cl, 0x30
mov byte [esi], cl
mov ecx, edx
test ecx, ecx
jne 0x100567a0
push ecx
lea eax, [ebp + 0x3d]
push eax
push esi
lea ecx, [ebp + 0x48]
call fcn.1004fa40
mov esi, dword [edi + 0xfc]
mov dword [ebp - 4], 1
test esi, esi
je 0x100567fa
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100567fa
lea eax, [ebp + 0x48]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp + 0x48]
mov dword [ebp - 4], 0xffffffff
call fcn.100448c0
mov eax, dword [ebp + 0x60]
cmp eax, 0x10
jb 0x1005681e
inc eax
push eax
push dword [ebp + 0x4c]
call fcn.10049010
add esp, 8
mov eax, dword [ebp + 0x48]
push 8
push eax
mov dword [ebp + 0x5c], 0
mov dword [ebp + 0x60], 0xf
mov byte [ebp + 0x4c], 0
mov dword [ebp + 0x48], 0
call fcn.10049010
mov eax, dword [ebp - 0x58]
lea ecx, [ebp + 0x48]
mov ebx, dword [ebp - 0x18]
add esp, 8
movzx edx, byte [eax + ebx]
call fcn.1004a870
push 1
lea ecx, [ebp + 0x24]
mov dword [ebp - 4], 2
push 0x101ba23c
push ecx
mov ecx, eax
call fcn.10056fc0
mov esi, eax
mov byte [ebp - 4], 3
push 8
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0
call fcn.10048f80
add esp, 4
lea ecx, [ebp + 0x24]
mov dword [eax + 4], 0
mov dword [ebp + 0x24], eax
push esi
mov dword [eax], ecx
call fcn.10048560
mov esi, dword [edi + 0x100]
mov byte [ebp - 4], 4
test esi, esi
je 0x100568d8
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100568d8
lea eax, [ebp + 0x24]
mov ecx, esi
push eax
call dword [0x101ba78c]
lea ecx, [ebp + 0x24]
call fcn.100448c0
mov eax, dword [ebp + 0x3c]
cmp eax, 0x10
jb 0x100568f5
inc eax
push eax
push dword [ebp + 0x28]
call fcn.10049010
add esp, 8
mov eax, dword [ebp + 0x24]
push 8
push eax
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0xf
mov byte [ebp + 0x28], 0
mov dword [ebp + 0x24], 0
call fcn.10049010
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x48]
call fcn.100448c0
mov eax, dword [ebp + 0x60]
cmp eax, 0x10
jb 0x10056940
inc eax
push eax
push dword [ebp + 0x4c]
call fcn.10049010
add esp, 8
mov eax, dword [ebp + 0x48]
push 8
push eax
mov dword [ebp + 0x5c], 0
mov dword [ebp + 0x60], 0xf
mov byte [ebp + 0x4c], 0
mov dword [ebp + 0x48], 0
call fcn.10049010
mov eax, dword [ebp - 0x30]
add esp, 8
mov esi, dword [eax + ebx*4]
mov ebx, dword [ebp - 0x50]
movzx ecx, byte [ebx + 4]
test esi, esi
je 0x100569c7
mov eax, 0x12e0be83
mul esi
mov eax, esi
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 0x1d
cmp eax, 4
jae 0x100569c7
cmp ecx, 0x2c
ja 0x100569c7
mov ecx, dword [ecx*4 + 0xf3e690]
mov eax, 0x10624dd3
mul esi
shr edx, 6
imul eax, edx, 0x3e8
mov edx, esi
sub edx, eax
cmp esi, 0x3b9aca00
lea eax, [edx + 0x3e8]
cmovb eax, edx
push eax
call dword [0x101ba7a8]
jmp 0x100569c9
xor eax, eax
test eax, eax
je 0x10056add
mov esi, dword [eax + 0x44]
test esi, esi
mov eax, 0xcccccccd
movaps xmm0, xmmword [0x101c1d00]
cmove esi, dword [ebx + 0x4c]
mul esi
movups xmmword [ebp + 0x40], xmm0
movaps xmm0, xmmword [0x101c2bc0]
movups xmmword [ebp + 0x50], xmm0
mov ecx, esi
mov dword [ebp + 0x60], 0x4f435f15
mov eax, edx
mov byte [ebp + 0x64], 0
shr eax, 3
lea edx, [eax + eax*4]
add edx, edx
sub ecx, edx
xor edx, edx
push ecx
mov ecx, 0x64
div ecx
mov eax, 0x10624dd3
mov ecx, 0x2710
push edx
mul esi
shr edx, 6
mov eax, edx
xor edx, edx
div ecx
mov eax, 0x6b5fca6b
push edx
mul esi
shr edx, 0x16
xor ecx, ecx
push edx
nop
mov al, byte [ebp + 0x40]
xor byte [ebp + ecx + 0x41], al
inc ecx
cmp ecx, 0x23
jb 0x10056a40
sub esp, 0x1c
mov byte [ebp + 0x64], 0
lea eax, [ebp + 0x41]
mov ecx, esp
push eax
call fcn.10047780
lea eax, [ebp + 0x24]
push eax
call fcn.1004a910
add esp, 0x30
mov dword [ebp - 4], 5
cmp dword [ebp + 0x38], 0
mov eax, dword [edi + 0x104]
jne 0x10056a8b
push eax
push str._d__n
call fcn.10082e50
jmp 0x10056a95
lea ecx, [ebp + 0x24]
push ecx
push eax
call fcn.100ba7c0
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x24]
call fcn.100448c0
mov eax, dword [ebp + 0x3c]
cmp eax, 0x10
jb 0x10056abc
inc eax
push eax
push dword [ebp + 0x28]
call fcn.10049010
add esp, 8
mov eax, dword [ebp + 0x24]
mov dword [ebp + 0x38], 0
mov dword [ebp + 0x3c], 0xf
mov byte [ebp + 0x28], 0
mov dword [ebp + 0x24], 0
jmp 0x10056ce4
xorps xmm0, xmm0
lea eax, [ebp - 0x29]
push 8
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x5c], eax
call fcn.10048f80
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x60], eax
mov dword [eax], ecx
mov dword [eax + 4], 0
mov dword [ebp - 0x28], eax
push 0x100
mov dword [ebp - 4], 6
call fcn.10048f80
push 0x100
push 0
push eax
lea esi, [eax + 0x100]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], esi
call fcn.101234b0
add esp, 0x14
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x60], 0
mov dword [ebp - 4], 7
mov ebx, dword [ebp - 0x24]
sub esi, ebx
jne 0x10056b8e
push str.vector_subscript_out_of_range
push 0x101b8af8
push esi
push 0x611
push 0x101b9560
push 2
call fcn.10127830
add esp, 0x18
cmp eax, 1
jne 0x10056b6d
int3
push 0
push 0x611
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133include_vector
push 0x101b8c38
push str._vector_subscript_out_of_range_
call fcn.10136180
mov ebx, dword [ebp - 0x24]
add esp, 0x14
mov ecx, dword [ebp - 0x50]
xor edx, edx
mov esi, 0xa
mov ecx, dword [ecx + 0x4c]
mov eax, ecx
div esi
mov esi, 0x64
push edx
xor edx, edx
div esi
mov eax, 0x10624dd3
mov esi, 0x2710
push edx
mul ecx
shr edx, 6
mov eax, edx
xor edx, edx
div esi
mov eax, 0x6b5fca6b
push edx
mul ecx
shr edx, 0x16
push edx
push str.uiitemicon__.1d__.4d__.2d__.1d.dxt
push ebx
call fcn.10052fe0
mov eax, dword [ebp - 0x20]
add esp, 0x18
mov ecx, dword [ebp - 0x24]
sub eax, ecx
jne 0x10056c29
push str.vector_subscript_out_of_range
push 0x101b8af8
push eax
push 0x611
push 0x101b9560
push 2
call fcn.10127830
add esp, 0x18
cmp eax, 1
jne 0x10056c08
int3
push 0
push 0x611
push str.C:Program_Files__x86_Microsoft_Visual_Studio2019CommunityVCToolsMSVC14.29.30133include_vector
push 0x101b8c38
push str._vector_subscript_out_of_range_
call fcn.10136180
mov ecx, dword [ebp - 0x24]
add esp, 0x14
push ecx
lea ecx, [ebp + 8]
call fcn.10047780
mov byte [ebp - 4], 8
cmp dword [ebp + 0x1c], 0
mov eax, dword [edi + 0x104]
jne 0x10056c4f
push eax
push str._d__n
call fcn.10082e50
jmp 0x10056c59
lea ecx, [ebp + 8]
push ecx
push eax
call fcn.100ba7c0
add esp, 8
lea ecx, [ebp + 8]
call fcn.100448c0
mov eax, dword [ebp + 0x20]
cmp eax, 0x10
jb 0x10056c79
inc eax
push eax
push dword [ebp + 0xc]
call fcn.10049010
add esp, 8
mov eax, dword [ebp + 8]
push 8
push eax
mov dword [ebp + 0x1c], 0
mov dword [ebp + 0x20], 0xf
mov byte [ebp + 0xc], 0
mov dword [ebp + 8], 0
call fcn.10049010
add esp, 8
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.100448c0
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x10056cda
mov eax, dword [ebp - 0x1c]
sub eax, ecx
push eax
push ecx
call fcn.10049010
add esp, 8
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x28], 0
push 8
push eax
call fcn.10049010
mov esi, dword [edi + 0x108]
add esp, 8
mov ebx, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test esi, esi
je 0x100566ac
push 4
push esi
call ebx
test eax, eax
jne 0x100566ac
mov dword [0x1027c054], esi
mov dword [0x1027bfe8], 6
call fcn.100d7f80
jmp 0x100566ac