Function at 0x10023990
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 0x1008359d
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
push esi
push edi
mov eax, dword [0x100a6040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea esi, [ecx + 0x138]
mov dword [ebp - 0x2c], 3
mov dword [ebp - 0x1c], esi
lea edi, [ecx + 0x44]
nop
push dword [edi]
call fcn.10010050
test eax, eax
je 0x10023ae4
movzx ecx, word [edi + 4]
movzx eax, word [esi]
movaps xmm0, xmmword [0x1009f980]
push ecx
push eax
movups xmmword [ebp - 0x3c], xmm0
xor ecx, ecx
mov al, byte [ebp + ecx - 0x3b]
xor al, byte [ebp - 0x3c]
mov byte [ebp + ecx - 0x3b], al
inc ecx
cmp ecx, 0xe
jb 0x10023a05
sub esp, 0x1c
mov byte [ebp - 0x2d], 0
mov edx, esp
lea ecx, [ebp - 0x3b]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10023a43
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x3b]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0x58]
push eax
call fcn.1000d820
add esp, 0x28
mov dword [ebp - 4], 0
mov edx, eax
mov ecx, dword [edi + 0xc]
call fcn.100141e0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x58]
push 8
push eax
mov dword [ebp - 0x58], 0
call fcn.10046080
mov eax, dword [edi + 0x10]
add esp, 8
movzx esi, word [esi]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10023be3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10023be3
mov ecx, dword [ebp - 0x14]
sub esp, 0xc
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
movss dword [esp], xmm0
call dword [0x1009e0d4]
mov esi, dword [ebp - 0x1c]
jmp 0x10023c7a
cmp dword [edi], 1
jne 0x10023beb
cmp byte [edi + 6], 0
je 0x10023beb
movzx ecx, word [edi + 4]
mov dl, 0x2f
movzx eax, word [esi]
push ecx
push eax
mov dword [ebp - 0x28], 0xf4b0a2f
xor ecx, ecx
mov dword [ebp - 0x24], 0x4b0a0f00
mov byte [ebp - 0x20], 0
xor byte [ebp + ecx - 0x27], dl
inc ecx
cmp ecx, 7
jae 0x10023b25
mov dl, byte [ebp - 0x28]
jmp 0x10023b16
sub esp, 0x1c
mov byte [ebp - 0x20], 0
mov edx, esp
lea ecx, [ebp - 0x27]
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10023b52
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x27]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0x58]
push eax
call fcn.1000d820
add esp, 0x28
mov dword [ebp - 4], 1
mov edx, eax
mov ecx, dword [edi + 0xc]
call fcn.100141e0
lea ecx, [ebp - 0x58]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x58]
push 8
push eax
mov dword [ebp - 0x58], 0
call fcn.10046080
mov eax, dword [edi + 0x10]
add esp, 8
movzx esi, word [esi]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10023be3
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10023be3
mov ecx, dword [ebp - 0x14]
sub esp, 0xc
movd xmm0, esi
cvtdq2ps xmm0, xmm0
mov dword [esp + 8], eax
mov dword [esp + 4], eax
movss dword [esp], xmm0
call dword [0x1009e0d4]
mov esi, dword [ebp - 0x1c]
jmp 0x10023c7a
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x17]
push eax
sub esp, 0x1c
mov word [ebp - 0x18], 0x70
mov edx, esp
mov byte [ebp - 0x17], 0
xorps xmm0, xmm0
lea eax, [ecx + 1]
mov dword [ebp - 0x14], eax
mov dword [edx], 0
movups xmmword [edx + 4], xmm0
mov dword [edx + 0x14], 0
mov dword [edx + 0x18], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10023c23
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x17]
push ecx
push eax
mov ecx, edx
call fcn.10003350
lea eax, [ebp - 0x74]
push eax
call fcn.1000d820
add esp, 0x24
mov dword [ebp - 4], 2
mov edx, eax
mov ecx, dword [edi + 0xc]
call fcn.100141e0
lea ecx, [ebp - 0x74]
mov dword [ebp - 4], 0xffffffff
call fcn.10002f50
mov eax, dword [ebp - 0x74]
push 8
push eax
mov dword [ebp - 0x74], 0
call fcn.10046080
add esp, 8
mov ax, word [esi]
cmp ax, word [edi + 4]
jb 0x10023ca7
mov esi, dword [edi + 0xc]
test esi, esi
je 0x10023ca4
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x10023ca4
push 0xff80ff00
mov ecx, esi
call dword [0x1009e0e8]
mov esi, dword [ebp - 0x1c]
add esi, 2
add edi, 0x18
sub dword [ebp - 0x2c], 1
mov dword [ebp - 0x1c], esi
jne 0x100239e0
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