Function at 0x10009f40
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100f4e5d
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
push esi
push edi
mov eax, dword [0x1014c200]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov dword [ebp - 0x3c], edi
mov esi, ecx
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x18], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x1c], eax
cmp byte [eax + 0x31], 0
je 0x1000a108
movaps xmm5, xmmword [0x10120990]
lea ecx, [eax + 8]
movaps xmm6, xmmword [str.__AB]
mov edi, 0x43
movaps xmm4, xmmword [0x10120a00]
sub edi, eax
mov dword [ebp - 0x20], ecx
mov edx, 0x46
mov ecx, 0x44
mov dword [ebp - 0x30], edi
sub ecx, eax
sub edx, eax
mov dword [ebp - 0x2c], ecx
mov esi, 0x45
mov ecx, 0x3b
mov dword [ebp - 0x34], edx
sub ecx, eax
sub esi, eax
mov dword [ebp - 0x24], ecx
mov ecx, 0x3f
sub ecx, eax
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x28], ecx
mov ecx, 0xfffffff8
sub ecx, eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], ecx
nop dword [eax + eax]
add ecx, eax
add edi, eax
movd xmm0, ecx
mov ecx, dword [ebp - 0x24]
pshufd xmm1, xmm0, 0
add ecx, eax
movd xmm0, dword [eax - 8]
paddd xmm1, xmm6
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
movd xmm3, edi
xorps xmm1, xmm0
mov edi, dword [ebp - 0x30]
andps xmm1, xmm4
movd xmm0, ecx
mov ecx, dword [ebp - 0x28]
packuswb xmm1, xmm1
add ecx, eax
packuswb xmm1, xmm1
movd dword [eax - 8], xmm1
pshufd xmm1, xmm0, 0
movd xmm0, dword [eax - 4]
paddd xmm1, xmm5
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
xorps xmm1, xmm0
movd xmm0, ecx
andps xmm1, xmm4
lea ecx, [edx + eax]
packuswb xmm1, xmm1
lea edx, [eax + esi]
mov esi, dword [ebp - 0x2c]
packuswb xmm1, xmm1
add esi, eax
movd dword [eax - 4], xmm1
pshufd xmm1, xmm0, 0
movd xmm0, dword [eax]
paddd xmm1, xmm5
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
psrad xmm0, 0x18
movd xmm2, ecx
xorps xmm1, xmm0
mov ecx, dword [ebp - 0x14]
andps xmm1, xmm4
movd xmm0, edx
punpckldq xmm3, xmm0
mov edx, dword [ebp - 0x34]
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd dword [eax], xmm1
movd xmm0, dword [eax + 4]
punpcklbw xmm0, xmm0
movd xmm1, esi
mov esi, dword [ebp - 0x18]
punpcklwd xmm0, xmm0
punpckldq xmm1, xmm2
punpckldq xmm3, xmm1
psrad xmm0, 0x18
xorps xmm3, xmm0
andps xmm3, xmm4
packuswb xmm3, xmm3
packuswb xmm3, xmm3
movd dword [eax + 4], xmm3
add eax, 0x10
add ecx, eax
cmp ecx, 0x30
mov ecx, dword [ebp - 0x14]
jb 0x10009ff0
mov eax, dword [ebp - 0x1c]
mov esi, dword [ebp - 0x38]
mov edi, dword [ebp - 0x3c]
mov byte [eax + 0x31], 0
lea ecx, [ebp - 0xd]
push ecx
lea ecx, [eax + 0x30]
push ecx
push eax
lea ecx, [ebp - 0x58]
call fcn.1000cd50
mov dword [ebp - 4], 0
cmp dword [edi + 0x14], 0x10
mov eax, dword [edi + 0x10]
jb 0x1000a12b
mov edi, dword [edi]
push eax
push edi
push 0
lea ecx, [ebp - 0x58]
call fcn.1000f110
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmm0, xmmword [eax]
movups xmmword [esi], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [esi + 0x10], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
mov ecx, dword [ebp - 0x44]
cmp ecx, 0x10
jb 0x1000a1a2
mov edx, dword [ebp - 0x58]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x1000a198
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1000a198
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push ecx
push edx
call fcn.100a9e4b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret