Function at 0x10059bb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100cf970
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
push esi
push edi
mov eax, dword [0x100f7040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 8]
mov eax, dword [edi]
mov dword [0x100fb24c], eax
test ecx, ecx
jne 0x10059bff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
cmp eax, 1
jne 0x10059c1c
cmp ecx, dword [edi + 4]
jne 0x1005a0a2
mov ecx, edi
call fcn.1005a560
jmp 0x1005a0a2
and eax, 0xf0000
cmp eax, 0x10000
je 0x1005a073
cmp eax, 0x40000
je 0x10059c6b
cmp eax, 0x80000
jne 0x1005a0a2
mov esi, dword [edi]
test esi, esi
je 0x1005a0a2
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005a0a2
lea ecx, [esi + 0xd0]
xor dl, dl
call fcn.1001e450
jmp 0x1005a0a2
mov esi, dword [edi]
test esi, esi
je 0x10059c8b
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10059c8b
lea ecx, [esi + 0xd0]
xor dl, dl
call fcn.1001e450
mov ecx, dword [edi + 0x2c]
mov eax, ecx
mov edx, dword [edi + 0x28]
sub eax, edx
sar eax, 3
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x10059e04
mov esi, ecx
nop dword [eax]
sub esi, edx
sar esi, 3
cmp dword [ebp - 0x1c], esi
jb 0x10059d01
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 0x10059ce0
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
mov ecx, dword [edi + 0x2c]
add esp, 0x14
mov edx, dword [edi + 0x28]
mov esi, dword [ebp - 0x1c]
cmp dword [edx + esi*8 + 4], 0
je 0x10059de8
mov eax, ecx
sub eax, edx
sar eax, 3
cmp esi, eax
jb 0x10059d64
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 0x10059d43
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
mov ecx, dword [edi + 0x2c]
add esp, 0x14
mov edx, dword [edi + 0x28]
mov eax, dword [edx + esi*8 + 4]
cmp dword [eax], 0
je 0x10059de8
sub ecx, edx
sar ecx, 3
cmp esi, ecx
jb 0x10059dbd
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 0x10059d9f
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 + 0x28]
mov eax, dword [eax + esi*8 + 4]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10059de8
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10059de8
mov ecx, dword [ebp - 0x1c]
push 0x110
call dword [0x100ec610]
mov ecx, dword [edi + 0x2c]
inc esi
mov edx, dword [edi + 0x28]
mov eax, ecx
sub eax, edx
mov dword [ebp - 0x1c], esi
sar eax, 3
mov esi, ecx
cmp dword [ebp - 0x1c], eax
jb 0x10059cb0
cmp edx, ecx
je 0x1005a0a2
nop dword [eax]
mov esi, dword [edx + 4]
mov dword [ebp - 0x14], esi
test esi, esi
je 0x10059e21
mov eax, dword [ebp + 8]
cmp dword [esi], eax
je 0x10059e2d
add edx, 8
cmp edx, ecx
jne 0x10059e10
jmp 0x1005a0a2
mov eax, dword [esi + 0x50]
test eax, eax
je 0x1005a0a2
cmp dword [esi + 0x54], 0
je 0x1005a0a2
mov ecx, dword [eax]
test ecx, ecx
je 0x1005a0a2
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 dword [ebp - 0x1c], eax
test eax, eax
je 0x1005a0a2
mov esi, dword [ebp - 0x14]
mov ecx, edi
push esi
call fcn.1005a1c0
cmp dword [edi + 0x18], eax
jne 0x1005a0a2
mov eax, dword [esi + 0x54]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
add eax, dword [ecx]
mov dword [edi + 0x14], eax
mov edi, dword [esi]
test edi, edi
je 0x10059ebd
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10059ebd
push 0x4000
mov ecx, edi
call dword [0x100ec610]
mov ecx, 0xd78d38
call fcn.1001e520
test eax, eax
je 0x10059ee3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10059ee3
push 0xffffffffffffffff
call dword [0x100ec6a0]
add esp, 4
mov edi, dword [ebp - 0x1c]
mov dl, 0x17
mov dword [ebp - 0x18], 0x746f5217
xor ecx, ecx
mov dword [ebp - 0x14], 0x7079767f
mov word [ebp - 0x10], 0x72
nop
xor byte [ebp + ecx - 0x17], dl
inc ecx
cmp ecx, 8
jae 0x10059f0f
mov dl, byte [ebp - 0x18]
jmp 0x10059f00
xorps xmm0, xmm0
mov byte [ebp - 0xf], 0
lea ecx, [ebp - 0x17]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x28], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x24], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059f35
sub ecx, edx
lea eax, [ebp - 0x17]
push ecx
push eax
lea ecx, [ebp - 0x3c]
call fcn.10003370
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x98]
push dword [esi + 0x54]
mov edx, edi
call fcn.1000ffc0
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [eax + 4]
cmp dword [eax + 0x18], 0xf
jbe 0x10059f74
mov ecx, dword [ecx]
movaps xmm0, xmmword [0x100eea50]
lea edi, [ebp - 0x3c]
push 0x64
push 4
movups xmmword [ebp - 0x60], xmm0
push ecx
movaps xmm0, xmmword [0x100ef150]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
mov byte [ebp - 0x40], 0
nop dword [eax + eax]
mov al, byte [ebp + ecx - 0x5f]
xor al, byte [ebp - 0x60]
mov byte [ebp + ecx - 0x5f], al
inc ecx
cmp ecx, 0x1f
jb 0x10059fa0
sub esp, 0x1c
mov byte [ebp - 0x40], 0
mov esi, esp
lea ecx, [ebp - 0x5f]
xorps xmm0, xmm0
lea edx, [ecx + 1]
mov dword [esi], 0
movups xmmword [esi + 4], xmm0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10059fe0
sub ecx, edx
lea eax, [ebp - 0x5f]
push ecx
push eax
mov ecx, esi
call fcn.10003370
lea eax, [ebp - 0x7c]
push eax
call fcn.1000d7c0
add esp, 0x24
mov edx, edi
mov byte [ebp - 4], 2
mov ecx, eax
call fcn.1002b190
add esp, 8
lea ecx, [ebp - 0x7c]
call fcn.10002f50
mov eax, dword [ebp - 0x7c]
push 8
push eax
mov dword [ebp - 0x7c], 0
call fcn.10089370
add esp, 8
lea ecx, [ebp - 0x98]
call fcn.10002f50
mov eax, dword [ebp - 0x98]
push 8
push eax
mov dword [ebp - 0x98], 0
call fcn.10089370
add esp, 8
lea ecx, [ebp - 0x3c]
call fcn.10002f50
mov eax, dword [ebp - 0x3c]
push 8
push eax
mov dword [ebp - 0x3c], 0
call fcn.10089370
add esp, 8
jmp 0x1005a0a2
mov ecx, dword [edi + 0x28]
mov esi, dword [edi + 0x2c]
cmp ecx, esi
je 0x1005a0a2
nop dword [eax]
mov edx, dword [ecx + 4]
test edx, edx
je 0x1005a08e
mov eax, dword [ebp + 8]
cmp dword [edx], eax
je 0x1005a097
add ecx, 8
cmp ecx, esi
jne 0x1005a080
jmp 0x1005a0a2
push edx
mov ecx, edi
call fcn.1005a1c0
mov dword [edi + 0x18], eax
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8