Function at 0x10064c00
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100818d5
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x40
push esi
push edi
mov eax, dword [0x10091040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x34], esi
mov edi, dword [esi]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test edi, edi
je 0x10064c62
push 4
push edi
call eax
test eax, eax
jne 0x10064c5d
push eax
mov ecx, edi
call dword [0x10088b1c]
mov eax, dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
mov edi, dword [esi + 0x10]
test edi, edi
je 0x10064e61
push 4
push edi
call eax
test eax, eax
jne 0x10064e61
mov ecx, 0xbe20a0
call fcn.10014f70
cmp edi, eax
jne 0x10064e61
xorps xmm0, xmm0
mov word [ebp - 0x14], 0x51
lea ecx, [ebp - 0x13]
mov byte [ebp - 0x13], 0
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0
lea edx, [ecx + 1]
mov dword [ebp - 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10064cb1
sub ecx, edx
lea eax, [ebp - 0x13]
push ecx
push eax
lea ecx, [ebp - 0x2c]
call fcn.100024a0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x10]
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x10064d64
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10064d64
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
cmova ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10064d00
sub ecx, edx
mov dword [ebp - 0x14], ecx
lea esi, [ecx + 0x21]
push esi
call fcn.1007d113
push esi
mov edi, eax
push 0
push edi
call sub.VCRUNTIME140.dll_memset
cmp dword [ebp - 0x18], 0xf
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x14]
cmova ecx, dword [ebp - 0x2c]
lea esi, [edi + 0x20]
push ecx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x14]
add esp, 0x1c
mov ecx, dword [ebp - 0x30]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x10088b3c]
push edi
call fcn.1007d11c
mov esi, dword [ebp - 0x34]
add esp, 4
mov edi, dword [ebp - 0x2c]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
cmp eax, 0xf
jbe 0x10064d9e
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x10064d94
mov edi, dword [eax - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10064e35
push ecx
push edi
call fcn.1007d105
add esp, 8
movaps xmm0, xmmword [0x100891e0]
xor ecx, ecx
movups xmmword [ebp - 0x24], xmm0
nop dword [eax + eax]
mov al, byte [ebp - 0x24]
xor byte [ebp + ecx - 0x23], al
inc ecx
cmp ecx, 0xe
jb 0x10064db0
xorps xmm0, xmm0
mov byte [ebp - 0x15], 0
lea ecx, [ebp - 0x23]
mov dword [ebp - 0x3c], 0
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x38], 0
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10064de0
sub ecx, edx
lea eax, [ebp - 0x23]
push ecx
push eax
lea ecx, [ebp - 0x4c]
call fcn.100024a0
mov dword [ebp - 4], 1
lea edx, [ebp - 0x4c]
mov ecx, dword [esi + 0x10]
call fcn.10014d10
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x38]
cmp ecx, 0xf
jbe 0x10064e45
mov edx, dword [ebp - 0x4c]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x10064e3b
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x10064e3b
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.1007d105
add esp, 8
mov edi, dword [esi + 0x10]
test edi, edi
je 0x10064e61
push 4
push edi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10064e61
mov ecx, edi
call dword [0x10088b44]
push 1
push dword [esi + 8]
mov ecx, esi
call fcn.10063900
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret