Function at 0x1000405a
Capabilities:
Encode data using xor

Disassembly:
push 0x8c
mov eax, 0x10034b16
call fcn.100342f3
call fcn.10003e89
mov bl, al
call fcn.10003b6d
mov edi, eax
call fcn.10003b6d
mov esi, eax
cmp bl, 1
je 0x10004096
cmp bl, 2
je 0x10004096
mov edx, dword [0x1007cfb8]
mov ecx, dword [0x1007cfb0]
jmp 0x100040c0
mov edx, dword [0x1007cfb8]
test edx, edx
je 0x100040b3
mov ecx, dword [edx + 0x58]
test ecx, ecx
je 0x100040b3
push esi
call fcn.10028379
mov edx, dword [0x1007cfb8]
mov ecx, dword [0x1007cfb0]
test ecx, ecx
je 0x100040c0
mov dword [ecx + 0x4c], esi
cmp bl, 3
je 0x100040ca
cmp bl, 4
jne 0x100040ea
test edx, edx
je 0x100040e3
cmp dword [edx + 0x58], 0
je 0x100040e3
mov ecx, dword [edx + 0x58]
push esi
call fcn.100283d0
mov ecx, dword [0x1007cfb0]
test ecx, ecx
je 0x100040ea
mov dword [ecx + 0x50], esi
movzx eax, bl
sub eax, 1
je 0x10004284
sub eax, 1
je 0x1000421b
sub eax, 1
je 0x1000419e
sub eax, 1
jne 0x10004307
movaps xmm0, xmmword [0x1003e970]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0x47257163
mov dword [ebp - 0x38], 0x6b646964
mov dword [ebp - 0x34], 0x2b6066
mov al, byte [ebp - 0x4c]
xor byte [ebp + ecx - 0x4b], al
inc ecx
cmp ecx, 0x1a
jb 0x10004134
sub esp, 0x18
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x4b]
mov ecx, esp
push eax
call fcn.10002604
lea eax, [ebp - 0x98]
push eax
call fcn.1000485c
add esp, 0x20
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 0xf
jbe 0x10004171
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x80]
call fcn.10002604
mov edx, 0xffff3b3b
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x80]
call fcn.10004384
lea ecx, [ebp - 0x80]
call fcn.10002410
lea ecx, [ebp - 0x98]
jmp 0x10004302
movaps xmm0, xmmword [0x1003ea90]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
push edi
movaps xmm0, xmmword [str.uyGr_4Vuxuzwq:]
movups xmmword [ebp - 0x40], xmm0
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x1e
jb 0x100041b7
sub esp, 0x18
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.10002604
lea eax, [ebp - 0x68]
push eax
call fcn.1000485c
add esp, 0x20
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 0xf
jbe 0x100041f1
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002604
mov edx, 0xff6565ff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.10004384
lea ecx, [ebp - 0x2c]
call fcn.10002410
lea ecx, [ebp - 0x68]
jmp 0x10004302
movaps xmm0, xmmword [0x1003e510]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x776c7e5c
mov word [ebp - 0x14], 0x31
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x10004236
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10002604
lea eax, [ebp - 0x48]
push eax
call fcn.1000485c
add esp, 0x20
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0xf
jbe 0x10004270
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002604
mov byte [ebp - 4], 3
mov edx, 0xffff3b3b
jmp 0x100042ef
movaps xmm0, xmmword [0x1003e430]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x7e2a3639
mov dword [ebp - 0x18], 0x362d3f1d
mov word [ebp - 0x14], 0x70
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x18
jb 0x100042a6
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.10002604
lea eax, [ebp - 0x48]
push eax
call fcn.1000485c
add esp, 0x20
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 0xf
jbe 0x100042dd
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002604
mov byte [ebp - 4], 1
mov edx, 0xff6565ff
lea ecx, [ebp - 0x68]
call fcn.10004384
lea ecx, [ebp - 0x68]
call fcn.10002410
lea ecx, [ebp - 0x48]
call fcn.10002410
call fcn.100342d0
ret