Function at 0x100580a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10090b6e
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x100ad040]
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 - 0x80], edi
mov dword [ebp - 0x7c], 0
lea ecx, [ebp - 0x2b]
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x35
mov byte [ebp - 0x2b], 0
lea edx, [ecx + 1]
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10058100
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.100051e0
mov dword [ebp - 4], 0
mov esi, dword [edi + 0x1b4]
test esi, esi
je 0x10058140
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10058140
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call dword [0x100a31a0]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x1005817b
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058171
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058986
push ecx
push edx
call fcn.10069bf1
add esp, 8
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x57
lea ecx, [ebp - 0x2b]
mov byte [ebp - 0x2b], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x34], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100581a0
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.100051e0
mov dword [ebp - 4], 1
mov esi, dword [edi + 0x1b8]
test esi, esi
je 0x100581e0
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100581e0
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call dword [0x100a31a0]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x1005821b
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058211
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005898b
push ecx
push edx
call fcn.10069bf1
add esp, 8
xorps xmm0, xmm0
mov word [ebp - 0x2c], 0x3d
lea ecx, [ebp - 0x2b]
mov byte [ebp - 0x2b], 0
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x38], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x34], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10058240
sub ecx, edx
lea eax, [ebp - 0x2b]
push ecx
push eax
lea ecx, [ebp - 0x48]
call fcn.100051e0
mov dword [ebp - 4], 2
mov esi, dword [edi + 0x1bc]
test esi, esi
je 0x10058280
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10058280
lea eax, [ebp - 0x48]
mov ecx, esi
push eax
call dword [0x100a3170]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x34]
cmp ecx, 0xf
jbe 0x100582bb
mov edx, dword [ebp - 0x48]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100582b1
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058990
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov ecx, dword [edi + 0x198]
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xf
mov byte [ebp - 0x48], 0
test ecx, ecx
jne 0x100582db
xor eax, eax
jmp 0x100582f2
mov eax, 0x10624dd3
mul ecx
shr edx, 6
imul eax, edx, 0x3e8
push eax
call dword [0x100a30f0]
mov dword [ebp - 0x2c], eax
test eax, eax
je 0x1005894a
xorps xmm0, xmm0
mov dword [ebp - 0x18], 0
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov dword [ebp - 4], 3
cmp dword [eax], 0
mov ecx, dword [edi + 0x198]
mov dword [ebp - 0x30], ecx
je 0x10058404
test ecx, ecx
je 0x10058404
mov eax, 0x12e0be83
mov esi, ecx
mul ecx
sub esi, edx
shr esi, 1
add esi, edx
shr esi, 0x1d
cmp esi, 4
jae 0x10058404
mov eax, dword [ebp - 0x2c]
cmp byte [eax + 4], 0x2d
jae 0x10058404
push 4
push 0x10b8050
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10058404
mov eax, 0x10624dd3
mul dword [ebp - 0x30]
shr edx, 6
sub esi, edx
imul eax, esi, 0x3e8
add eax, dword [ebp - 0x30]
push eax
mov eax, dword [ebp - 0x2c]
movzx ecx, byte [eax + 4]
mov ecx, dword [ecx*4 + 0x10b8050]
call dword [0x100a30f4]
mov dword [ebp - 0x30], eax
mov esi, eax
test eax, eax
je 0x10058406
cmp dword [eax + 0x3c], 0
je 0x10058406
push dword [edi + 0x198]
xor edx, edx
lea ecx, [ebp - 0x78]
push eax
call fcn.10010260
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000a520
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x100583ff
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100583f5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10058995
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov esi, dword [ebp - 0x30]
jmp 0x10058459
xor esi, esi
push dword [edi + 0x198]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x78]
push 0
call fcn.10010260
add esp, 8
lea ecx, [ebp - 0x28]
push eax
call fcn.1000a520
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x10058459
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005844f
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005899a
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov eax, dword [edi + 0x1bc]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10058480
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10058480
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x28]
push eax
call dword [0x100a3170]
mov edx, dword [ebp - 0x2c]
lea ecx, [ebp - 0x78]
push esi
call fcn.10010620
add esp, 4
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 4
mov esi, dword [edi + 0x1ac]
test esi, esi
je 0x100584b8
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100584b8
push dword [ebp - 0x30]
mov ecx, esi
call dword [0x100a31a0]
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x100584f0
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100584e6
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1005899f
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov eax, dword [edi + 0x1a4]
cmp eax, 1
jne 0x10058634
mov edx, dword [edi + 0x1a0]
push ecx
lea ecx, [ebp - 0x78]
call fcn.10014340
add esp, 4
mov byte [ebp - 4], 5
cmp dword [eax + 0x14], 0xf
jbe 0x1005851d
mov eax, dword [eax]
movaps xmm0, xmmword [0x100a53a0]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x34], 0x553
mov byte [ebp - 0x32], 0
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x11
jb 0x10058535
sub esp, 0x18
mov byte [ebp - 0x32], 0
mov edx, esp
lea ecx, [ebp - 0x43]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10058565
sub ecx, esi
lea eax, [ebp - 0x43]
push ecx
push eax
mov ecx, edx
call fcn.100051e0
lea eax, [ebp - 0x60]
push eax
call fcn.10004d80
add esp, 0x20
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 6
mov esi, dword [edi + 0x1b4]
test esi, esi
je 0x100585af
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100585af
push dword [ebp - 0x30]
mov ecx, esi
call dword [0x100a31a0]
mov byte [ebp - 4], 5
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x100585e7
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100585dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100589a4
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0xf
jbe 0x10058732
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10058728
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100589a4
jmp 0x10058728
cmp eax, 2
jne 0x10058732
mov edx, dword [edi + 0x1a0]
push ecx
lea ecx, [ebp - 0x78]
call fcn.10014340
add esp, 4
mov byte [ebp - 4], 7
cmp dword [eax + 0x14], 0xf
jbe 0x1005865b
mov eax, dword [eax]
movaps xmm0, xmmword [0x100a5580]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x44], xmm0
mov word [ebp - 0x34], 0x3066
mov byte [ebp - 0x32], 0
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x11
jb 0x10058673
sub esp, 0x18
mov byte [ebp - 0x32], 0
mov edx, esp
lea ecx, [ebp - 0x43]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100586a3
sub ecx, esi
lea eax, [ebp - 0x43]
push ecx
push eax
mov ecx, edx
call fcn.100051e0
lea eax, [ebp - 0x60]
push eax
call fcn.10004d80
add esp, 0x20
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 8
mov esi, dword [edi + 0x1b4]
test esi, esi
je 0x100586ed
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x100586ed
push dword [ebp - 0x30]
mov ecx, esi
call dword [0x100a31a0]
mov byte [ebp - 4], 7
mov ecx, dword [ebp - 0x4c]
cmp ecx, 0xf
jbe 0x100585e7
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100585dd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100589a4
jmp 0x100585dd
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov byte [ebp - 4], 9
lea ecx, [ebp - 0x60]
mov edx, dword [edi + 0x19c]
call fcn.100148b0
mov ecx, dword [ebp - 0x50]
mov eax, 3
mov edi, ecx
mov dword [ebp - 0x7c], 1
mov dword [ebp - 0x2c], eax
cmp edi, eax
jle 0x100587ca
nop dword [eax]
mov edx, edi
sub edx, eax
cmp ecx, edx
jb 0x100589a9
mov esi, dword [ebp - 0x4c]
mov eax, esi
sub eax, ecx
cmp eax, 1
jb 0x100587a1
lea eax, [ecx + 1]
cmp esi, 0xf
mov dword [ebp - 0x50], eax
lea eax, [ebp - 0x60]
cmova eax, dword [ebp - 0x60]
sub ecx, edx
inc ecx
push ecx
lea esi, [eax + edx]
lea eax, [esi + 1]
push esi
push eax
call fcn.1006b7f0
add esp, 0xc
mov byte [esi], 0x2e
jmp 0x100587b7
push 0x2e
push 1
push edx
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x60]
push dword [ebp - 0x30]
push 1
call fcn.1000b480
mov eax, dword [ebp - 0x2c]
inc edi
add eax, 4
mov dword [ebp - 0x2c], eax
cmp edi, eax
jle 0x100587ca
mov ecx, dword [ebp - 0x50]
jmp 0x10058760
cmp dword [ebp - 0x4c], 0xf
lea eax, [ebp - 0x60]
movaps xmm0, xmmword [0x100a4f10]
cmova eax, dword [ebp - 0x60]
xor ecx, ecx
push eax
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0x702623
nop word [eax + eax]
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x12
jb 0x100587f0
sub esp, 0x18
mov byte [ebp - 0x31], 0
mov edx, esp
lea ecx, [ebp - 0x43]
xorps xmm0, xmm0
lea esi, [ecx + 1]
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10058820
sub ecx, esi
lea eax, [ebp - 0x43]
push ecx
push eax
mov ecx, edx
call fcn.100051e0
lea eax, [ebp - 0x78]
push eax
call fcn.10004d80
add esp, 0x20
mov dword [ebp - 0x30], eax
mov edi, dword [ebp - 0x80]
mov byte [ebp - 4], 0xa
mov esi, dword [edi + 0x1b8]
test esi, esi
je 0x1005886d
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005886d
push dword [ebp - 0x30]
mov ecx, esi
call dword [0x100a31a0]
mov byte [ebp - 4], 9
mov ecx, dword [ebp - 0x64]
cmp ecx, 0xf
jbe 0x100588a5
mov edx, dword [ebp - 0x78]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005889b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100589a4
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x4c]
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 0xf
mov byte [ebp - 0x78], 0
cmp ecx, 0xf
jbe 0x100588ef
mov edx, dword [ebp - 0x60]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x100588e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100589a4
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x50], 0
mov dword [ebp - 0x4c], 0xf
mov byte [ebp - 0x60], 0
cmp ecx, 0xf
jbe 0x10058938
mov edx, dword [ebp - 0x28]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005892e
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100589a4
push ecx
push edx
call fcn.10069bf1
add esp, 8
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
mov esi, dword [edi + 0x1a8]
test esi, esi
je 0x1005896b
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005896b
push 1
mov ecx, esi
call dword [0x100a313c]
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.10069b90
mov esp, ebp
pop ebp
ret
call fcn.1006f2c1
call fcn.1006f2c1
call fcn.1006f2c1
call fcn.1006f2c1
call fcn.1006f2c1
call fcn.1006f2c1
call fcn.1006f2c1
call fcn.1000a5a0
int3