Function at 0x1004afe0
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 0x100cf2ed
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x68
push esi
push edi
mov eax, dword [0x100f7040]
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.100104c0
test eax, eax
je 0x1004b134
movzx ecx, word [edi + 4]
movzx eax, word [esi]
movaps xmm0, xmmword [0x100ee0e0]
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 0x1004b055
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 0x1004b093
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x3b]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x58]
push eax
call fcn.1000d7c0
add esp, 0x28
mov dword [ebp - 4], 0
mov edx, eax
mov ecx, dword [edi + 0xc]
call fcn.1001e320
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.10089370
mov eax, dword [edi + 0x10]
add esp, 8
movzx esi, word [esi]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004b233
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004b233
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 [0x100ec64c]
mov esi, dword [ebp - 0x1c]
jmp 0x1004b2ca
cmp dword [edi], 1
jne 0x1004b23b
cmp byte [edi + 6], 0
je 0x1004b23b
movzx ecx, word [edi + 4]
mov dl, 0x7e
movzx eax, word [esi]
push ecx
push eax
mov dword [ebp - 0x28], 0x5e1a5b7e
xor ecx, ecx
mov dword [ebp - 0x24], 0x1a5b5e51
mov byte [ebp - 0x20], 0
xor byte [ebp + ecx - 0x27], dl
inc ecx
cmp ecx, 7
jae 0x1004b175
mov dl, byte [ebp - 0x28]
jmp 0x1004b166
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 0x1004b1a2
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x27]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x58]
push eax
call fcn.1000d7c0
add esp, 0x28
mov dword [ebp - 4], 1
mov edx, eax
mov ecx, dword [edi + 0xc]
call fcn.1001e320
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.10089370
mov eax, dword [edi + 0x10]
add esp, 8
movzx esi, word [esi]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1004b233
push 4
push eax
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004b233
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 [0x100ec64c]
mov esi, dword [ebp - 0x1c]
jmp 0x1004b2ca
movzx eax, word [edi + 4]
lea ecx, [ebp - 0x17]
push eax
sub esp, 0x1c
mov word [ebp - 0x18], 0x21
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 0x1004b273
sub ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x17]
push ecx
push eax
mov ecx, edx
call fcn.10003370
lea eax, [ebp - 0x74]
push eax
call fcn.1000d7c0
add esp, 0x24
mov dword [ebp - 4], 2
mov edx, eax
mov ecx, dword [edi + 0xc]
call fcn.1001e320
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.10089370
add esp, 8
mov ax, word [esi]
cmp ax, word [edi + 4]
jb 0x1004b2f7
mov esi, dword [edi + 0xc]
test esi, esi
je 0x1004b2f4
push 4
push esi
call dword [sym.imp.KERNEL32.dll_IsBadReadPtr]
test eax, eax
jne 0x1004b2f4
push 0xff80ff00
mov ecx, esi
call dword [0x100ec668]
mov esi, dword [ebp - 0x1c]
add esi, 2
add edi, 0x18
sub dword [ebp - 0x2c], 1
mov dword [ebp - 0x1c], esi
jne 0x1004b030
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