Function at 0x1005a0d0
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 0x10081405
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x58
push esi
push edi
mov eax, dword [0x10091040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x20], edi
movzx ecx, word [edi + 0xfa]
movzx eax, word [edi + 0xf8]
movaps xmm0, xmmword [0x1008a220]
push ecx
push eax
movups xmmword [ebp - 0x34], xmm0
mov dword [ebp - 0x24], 0x7e3f35
xor ecx, ecx
mov al, byte [ebp - 0x34]
xor byte [ebp + ecx - 0x33], al
inc ecx
cmp ecx, 0x12
jb 0x1005a134
sub esp, 0x18
mov byte [ebp - 0x21], 0
mov edx, esp
lea ecx, [ebp - 0x33]
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 0x1005a164
sub ecx, esi
lea eax, [ebp - 0x33]
push ecx
push eax
mov ecx, edx
call fcn.100024a0
lea eax, [ebp - 0x50]
push eax
call fcn.10006910
add esp, 0x24
mov dword [ebp - 4], 0
mov edx, eax
mov ecx, dword [edi + 0x50]
call fcn.10014db0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x1005a1d3
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005a1c9
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005a1c9
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
movzx eax, word [edi + 0xfc]
xorps xmm0, xmm0
mov ecx, eax
test ax, ax
jne 0x1005a2f9
mov cl, 0x35
mov byte [ebp - 0x1a], 0
mov al, 0x18
mov byte [ebp - 0x1c], cl
xor al, cl
mov byte [ebp - 0x1a], 0
lea ecx, [ebp - 0x1b]
mov byte [ebp - 0x1b], al
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 0x1005a214
sub ecx, edx
lea eax, [ebp - 0x1b]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.100024a0
mov dword [ebp - 4], 1
mov eax, dword [edi + 0x54]
mov esi, dword [ebp - 0x38]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1005a2bc
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1005a2bc
cmp dword [ebp - 0x24], 0xf
lea ecx, [ebp - 0x38]
cmova ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005a258
sub ecx, edx
mov dword [ebp - 0x1c], 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 - 0x24], 0xf
lea edx, [ebp - 0x38]
push dword [ebp - 0x1c]
cmova edx, dword [ebp - 0x38]
lea esi, [edi + 0x20]
push edx
push esi
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [ebp - 0x1c]
add esp, 0x1c
mov ecx, dword [ebp - 0x14]
mov dword [edi + 4], esi
mov dword [edi + 0x14], eax
push edi
mov dword [edi + 0x18], 0x1f
call dword [0x10088b78]
push edi
call fcn.1007d11c
mov esi, dword [ebp - 0x38]
add esp, 4
mov edi, dword [ebp - 0x20]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x24]
cmp eax, 0xf
jbe 0x1005a3a7
lea ecx, [eax + 1]
mov eax, esi
cmp ecx, 0x1000
jb 0x1005a2f2
mov esi, dword [eax - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005a2f2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push esi
jmp 0x1005a39f
push ecx
mov ah, 0x4d
mov byte [ebp - 0x14], 0
mov cl, 0x68
mov byte [ebp - 0x18], ah
mov dl, 0x29
mov byte [ebp - 0x14], 0
mov al, 0x6e
xor cl, ah
xor dl, ah
mov byte [ebp - 0x16], cl
xor al, ah
mov byte [ebp - 0x15], dl
sub esp, 0x18
mov byte [ebp - 0x17], al
mov edx, esp
lea ecx, [ebp - 0x17]
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 0x1005a338
sub ecx, esi
lea eax, [ebp - 0x17]
push ecx
push eax
mov ecx, edx
call fcn.100024a0
lea eax, [ebp - 0x50]
push eax
call fcn.10006910
add esp, 0x20
mov dword [ebp - 4], 2
mov edx, eax
mov ecx, dword [edi + 0x54]
call fcn.10014db0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x3c]
cmp ecx, 0xf
jbe 0x1005a3a7
mov edx, dword [ebp - 0x50]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005a39d
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005a39d
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
movzx eax, word [edi + 0xf8]
mov cl, 0x46
movss xmm1, dword [0x10088f5c]
mov dl, 0x5a
mov byte [ebp - 0x18], 0x68
sub esp, 0x20
mov byte [ebp - 0x11], 0
movd xmm0, eax
mov al, 0x4d
cvtdq2ps xmm0, xmm0
mov ch, al
mov byte [ebp - 0x11], 0
xor al, byte [ebp - 0x18]
mov dh, ch
mov byte [ebp - 0x17], al
mov ah, 0xe
mov al, byte [ebp - 0x18]
xor cl, al
xor dl, al
divss xmm1, xmm0
xor ch, al
mov byte [ebp - 0x15], dl
xor ah, al
mov byte [ebp - 0x16], cl
xor dh, al
mov byte [ebp - 0x13], ch
mov byte [ebp - 0x12], dh
lea ecx, [ebp - 0x17]
mov edx, esp
mov byte [ebp - 0x14], ah
lea esi, [ecx + 1]
cvtps2pd xmm0, xmm1
movsd qword [esp + 0x18], xmm0
xorps xmm0, xmm0
movups xmmword [edx], xmm0
mov dword [edx + 0x10], 0
mov dword [edx + 0x14], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x1005a423
sub ecx, esi
lea eax, [ebp - 0x17]
push ecx
push eax
mov ecx, edx
call fcn.100024a0
lea eax, [ebp - 0x68]
push eax
call fcn.10006910
add esp, 0x24
mov dword [ebp - 4], 3
mov edx, eax
mov ecx, dword [edi + 0x58]
call fcn.10014db0
mov ecx, dword [ebp - 0x54]
cmp ecx, 0xf
jbe 0x1005a48b
mov edx, dword [ebp - 0x68]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1005a481
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005a481
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 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