Function at 0x10003560
Capabilities:
Encode data using xor

Disassembly:
push 0x8c
mov eax, 0x10030166
call fcn.1002fbe3
call fcn.1000338f
mov bl, al
call fcn.10002ff2
mov edi, eax
call fcn.10002ff2
mov esi, eax
cmp bl, 1
je 0x1000359c
cmp bl, 2
je 0x1000359c
mov edx, dword [0x1003fc20]
mov ecx, dword [0x1003fc24]
jmp 0x100035c6
mov edx, dword [0x1003fc20]
test edx, edx
je 0x100035b9
mov ecx, dword [edx + 0x58]
test ecx, ecx
je 0x100035b9
push esi
call fcn.1002760b
mov edx, dword [0x1003fc20]
mov ecx, dword [0x1003fc24]
test ecx, ecx
je 0x100035c6
mov dword [ecx + 0x4c], esi
cmp bl, 3
je 0x100035d0
cmp bl, 4
jne 0x100035f0
test edx, edx
je 0x100035e9
cmp dword [edx + 0x58], 0
je 0x100035e9
mov ecx, dword [edx + 0x58]
push esi
call fcn.10027662
mov ecx, dword [0x1003fc24]
test ecx, ecx
je 0x100035f0
mov dword [ecx + 0x50], esi
movzx eax, bl
sub eax, 1
je 0x1000378a
sub eax, 1
je 0x10003721
sub eax, 1
je 0x100036a4
sub eax, 1
jne 0x1000380d
movaps xmm0, xmmword [0x10038460]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x4c], xmm0
mov dword [ebp - 0x3c], 0x66045042
mov dword [ebp - 0x38], 0x4a454845
mov dword [ebp - 0x34], 0xa4147
mov al, byte [ebp - 0x4c]
xor byte [ebp + ecx - 0x4b], al
inc ecx
cmp ecx, 0x1a
jb 0x1000363a
sub esp, 0x18
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x4b]
mov ecx, esp
push eax
call fcn.10003ec3
lea eax, [ebp - 0x98]
push eax
call fcn.10003d99
add esp, 0x20
mov dword [ebp - 4], 6
cmp dword [eax + 0x14], 0xf
jbe 0x10003677
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x80]
call fcn.10003ec3
mov edx, 0xffff3b3b
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x80]
call fcn.1000388a
lea ecx, [ebp - 0x80]
call fcn.100026bd
lea ecx, [ebp - 0x98]
jmp 0x10003808
movaps xmm0, xmmword [0x10038890]
xor ecx, ecx
movups xmmword [ebp - 0x50], xmm0
push edi
movaps xmm0, xmmword [str.pBwe1Spp]
movups xmmword [ebp - 0x40], xmm0
mov al, byte [ebp - 0x50]
xor byte [ebp + ecx - 0x4f], al
inc ecx
cmp ecx, 0x1e
jb 0x100036bd
sub esp, 0x18
mov byte [ebp - 0x31], 0
lea eax, [ebp - 0x4f]
mov ecx, esp
push eax
call fcn.10003ec3
lea eax, [ebp - 0x68]
push eax
call fcn.10003d99
add esp, 0x20
mov dword [ebp - 4], 4
cmp dword [eax + 0x14], 0xf
jbe 0x100036f7
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x2c]
call fcn.10003ec3
mov edx, 0xff6565ff
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x2c]
call fcn.1000388a
lea ecx, [ebp - 0x2c]
call fcn.100026bd
lea ecx, [ebp - 0x68]
jmp 0x10003808
movaps xmm0, xmmword [0x10038230]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x7e657755
mov word [ebp - 0x14], 0x38
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x1000373c
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.10003ec3
lea eax, [ebp - 0x48]
push eax
call fcn.10003d99
add esp, 0x20
mov dword [ebp - 4], 2
cmp dword [eax + 0x14], 0xf
jbe 0x10003776
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.10003ec3
mov byte [ebp - 4], 3
mov edx, 0xffff3b3b
jmp 0x100037f5
movaps xmm0, xmmword [0x10038550]
xor ecx, ecx
push edi
movups xmmword [ebp - 0x2c], xmm0
mov dword [ebp - 0x1c], 0x1c48545b
mov dword [ebp - 0x18], 0x544f5d7f
mov word [ebp - 0x14], 0x12
mov al, byte [ebp - 0x2c]
xor byte [ebp + ecx - 0x2b], al
inc ecx
cmp ecx, 0x18
jb 0x100037ac
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x2b]
mov ecx, esp
push eax
call fcn.10003ec3
lea eax, [ebp - 0x48]
push eax
call fcn.10003d99
add esp, 0x20
and dword [ebp - 4], 0
cmp dword [eax + 0x14], 0xf
jbe 0x100037e3
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x68]
call fcn.10003ec3
mov byte [ebp - 4], 1
mov edx, 0xff6565ff
lea ecx, [ebp - 0x68]
call fcn.1000388a
lea ecx, [ebp - 0x68]
call fcn.100026bd
lea ecx, [ebp - 0x48]
call fcn.100026bd
call fcn.1002fbc0
ret