Function at 0x1000405f
Capabilities:
Encode data using xor

Disassembly:
push 0x8c
mov eax, 0x10034de6
call fcn.10034553
call fcn.10003e8e
mov bl, al
call fcn.10003b72
mov edi, eax
call fcn.10003b72
mov esi, eax
cmp bl, 1
je 0x1000409b
cmp bl, 2
je 0x1000409b
mov edx, dword [0x1007cfc8]
mov ecx, dword [0x1007cfc0]
jmp 0x100040c5
mov edx, dword [0x1007cfc8]
test edx, edx
je 0x100040b8
mov ecx, dword [edx + 0x58]
test ecx, ecx
je 0x100040b8
push esi
call fcn.100285d6
mov edx, dword [0x1007cfc8]
mov ecx, dword [0x1007cfc0]
test ecx, ecx
je 0x100040c5
mov dword [ecx + 0x4c], esi
cmp bl, 3
je 0x100040cf
cmp bl, 4
jne 0x100040ef
test edx, edx
je 0x100040e8
cmp dword [edx + 0x58], 0
je 0x100040e8
mov ecx, dword [edx + 0x58]
push esi
call fcn.1002862d
mov ecx, dword [0x1007cfc0]
test ecx, ecx
je 0x100040ef
mov dword [ecx + 0x50], esi
movzx eax, bl
sub eax, 1
je 0x1000428c
sub eax, 1
je 0x10004222
sub eax, 1
je 0x100041a4
sub eax, 1
jne 0x1000430f
movaps xmm0, xmmword [0x1003df90]
xor ebx, ebx
push edi
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0x21431705
mov ecx, ebx
mov dword [ebp - 0x38], 0xd020f02
mov dword [ebp - 0x34], 0x4d0600
mov al, byte [ebp - 0x4c]
xor byte [ebp + ecx - 0x4b], al
inc ecx
cmp ecx, 0x1a
jb 0x1000413b
sub esp, 0x18
mov byte [ebp - 0x31], bl
lea eax, [ebp - 0x4b]
mov ecx, esp
push eax
call fcn.10002604
lea eax, [ebp - 0x98]
push eax
call fcn.10004864
add esp, 0x20
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 0xf
jbe 0x10004177
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.1000438c
lea ecx, [ebp - 0x80]
call fcn.10002410
lea ecx, [ebp - 0x98]
jmp 0x1000430a
movaps xmm0, xmmword [0x1003e8f0]
xor ebx, ebx
movups xmmword [ebp - 0x50], xmm0
mov ecx, ebx
movaps xmm0, xmmword [str.ma_cjx_Nm_mboi_]
push edi
movups xmmword [ebp - 0x40], xmm0
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x1e
jb 0x100041bf
sub esp, 0x18
mov byte [ebp - 0x31], bl
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.10002604
lea eax, [ebp - 0x68]
push eax
call fcn.10004864
add esp, 0x20
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 0xf
jbe 0x100041f8
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.1000438c
lea ecx, [ebp - 0x2c]
call fcn.10002410
lea ecx, [ebp - 0x68]
jmp 0x1000430a
movaps xmm0, xmmword [0x1003e500]
xor ebx, ebx
push edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x1b092b
mov ecx, ebx
mov word [ebp - 0x14], 0x46
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x1000423f
sub esp, 0x18
mov byte [ebp - 0x13], bl
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10002604
lea eax, [ebp - 0x48]
push eax
call fcn.10004864
add esp, 0x20
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0xf
jbe 0x10004278
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.10002604
mov byte [ebp - 4], 3
mov edx, 0xffff3b3b
jmp 0x100042f7
movaps xmm0, xmmword [0x1003e570]
xor ebx, ebx
push edi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x5514d42
mov ecx, ebx
mov dword [ebp - 0x18], 0x4d564466
mov word [ebp - 0x14], 0xb
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x18
jb 0x100042b0
sub esp, 0x18
mov byte [ebp - 0x13], bl
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.10002604
lea eax, [ebp - 0x48]
push eax
call fcn.10004864
add esp, 0x20
mov dword [ebp - 4], ebx
cmp dword [eax + 0x14], 0xf
jbe 0x100042e5
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.1000438c
lea ecx, [ebp - 0x68]
call fcn.10002410
lea ecx, [ebp - 0x48]
call fcn.10002410
call fcn.10034530
ret