Function at 0x1000405d
Capabilities:
Encode data using xor

Disassembly:
push 0x8c
mov eax, 0x10034b46
call fcn.10034323
call fcn.10003e8c
mov bl, al
call fcn.10003b70
mov edi, eax
call fcn.10003b70
mov esi, eax
cmp bl, 1
je 0x10004099
cmp bl, 2
je 0x10004099
mov edx, dword [0x1007cfb8]
mov ecx, dword [0x1007cfb0]
jmp 0x100040c3
mov edx, dword [0x1007cfb8]
test edx, edx
je 0x100040b6
mov ecx, dword [edx + 0x58]
test ecx, ecx
je 0x100040b6
push esi
call fcn.100283c1
mov edx, dword [0x1007cfb8]
mov ecx, dword [0x1007cfb0]
test ecx, ecx
je 0x100040c3
mov dword [ecx + 0x4c], esi
cmp bl, 3
je 0x100040cd
cmp bl, 4
jne 0x100040ed
test edx, edx
je 0x100040e6
cmp dword [edx + 0x58], 0
je 0x100040e6
mov ecx, dword [edx + 0x58]
push esi
call fcn.10028418
mov ecx, dword [0x1007cfb0]
test ecx, ecx
je 0x100040ed
mov dword [ecx + 0x50], esi
movzx eax, bl
sub eax, 1
je 0x10004287
sub eax, 1
je 0x1000421e
sub eax, 1
je 0x100041a1
sub eax, 1
jne 0x1000430a
movaps xmm0, xmmword [0x1003e680]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0x7b194d5f
mov dword [ebp - 0x38], 0x57585558
mov dword [ebp - 0x34], 0x175c5a
mov al, byte [ebp - 0x4c]
xor byte [ebp + ecx - 0x4b], al
inc ecx
cmp ecx, 0x1a
jb 0x10004137
sub esp, 0x18
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x4b]
mov ecx, esp
push eax
call fcn.10002607
lea eax, [ebp - 0x98]
push eax
call fcn.1000485f
add esp, 0x20
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 0xf
jbe 0x10004174
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x80]
call fcn.10002607
mov edx, 0xffff3b3b
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x80]
call fcn.10004387
lea ecx, [ebp - 0x80]
call fcn.10002413
lea ecx, [ebp - 0x98]
jmp 0x10004305
movaps xmm0, xmmword [0x1003eae0]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
push edi
movaps xmm0, xmmword [str.r_ug3Qr]
movups xmmword [ebp - 0x40], xmm0
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x1e
jb 0x100041ba
sub esp, 0x18
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.10002607
lea eax, [ebp - 0x68]
push eax
call fcn.1000485f
add esp, 0x20
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 0xf
jbe 0x100041f4
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10002607
mov edx, 0xff6565ff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.10004387
lea ecx, [ebp - 0x2c]
call fcn.10002413
lea ecx, [ebp - 0x68]
jmp 0x10004305
movaps xmm0, xmmword [0x1003e6c0]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x100b193b
mov word [ebp - 0x14], 0x56
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x10004239
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10002607
lea eax, [ebp - 0x48]
push eax
call fcn.1000485f
add esp, 0x20
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0xf
jbe 0x10004273
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002607
mov byte [ebp - 4], 3
mov edx, 0xffff3b3b
jmp 0x100042f2
movaps xmm0, xmmword [0x1003df60]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x45110d02
mov dword [ebp - 0x18], 0xd160426
mov word [ebp - 0x14], 0x4b
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x18
jb 0x100042a9
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.10002607
lea eax, [ebp - 0x48]
push eax
call fcn.1000485f
add esp, 0x20
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 0xf
jbe 0x100042e0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002607
mov byte [ebp - 4], 1
mov edx, 0xff6565ff
lea ecx, [ebp - 0x68]
call fcn.10004387
lea ecx, [ebp - 0x68]
call fcn.10002413
lea ecx, [ebp - 0x48]
call fcn.10002413
call fcn.10034300
ret