Function at 0x10005568
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1005ff66
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x10075604]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 8]
mov edi, dword [edx + 8]
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0x10]
lea eax, [edi + 1]
cmp eax, ecx
jbe 0x100052e2
xor bl, bl
jmp 0x100052e8
mov eax, dword [edx + 0x10]
mov bl, byte [edi + eax]
inc edi
mov dword [edx + 8], edi
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0x10]
lea eax, [edi + 4]
cmp eax, ecx
jbe 0x10005302
mov dword [ebp + 8], 0
jmp 0x1000530b
mov eax, dword [edx + 0x10]
mov eax, dword [edi + eax]
mov dword [ebp + 8], eax
add edi, 4
mov dword [edx + 8], edi
mov ecx, dword [edx + 0x14]
sub ecx, dword [edx + 0x10]
lea eax, [edi + 4]
cmp eax, ecx
jbe 0x10005322
xor esi, esi
jmp 0x10005328
mov eax, dword [edx + 0x10]
mov esi, dword [edi + eax]
lea eax, [edi + 4]
mov dword [edx + 8], eax
mov eax, dword [0x10075f30]
test eax, eax
je 0x100053af
cmp bl, 1
je 0x10005341
cmp bl, 2
jne 0x1000537d
mov ecx, dword [eax + 0x94]
test ecx, ecx
je 0x10005356
push esi
call fcn.10056330
mov eax, dword [0x10075f30]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x10005368
push esi
call fcn.1002f3d0
mov eax, dword [0x10075f30]
mov ecx, dword [0x10075f2c]
test ecx, ecx
je 0x10005383
push esi
call fcn.1001a430
mov eax, dword [0x10075f30]
mov ecx, dword [0x10075f2c]
cmp bl, 3
je 0x1000538d
cmp bl, 4
jne 0x100053af
mov eax, dword [eax + 0x94]
test eax, eax
je 0x100053a5
push esi
mov ecx, eax
call fcn.10056240
mov ecx, dword [0x10075f2c]
test ecx, ecx
je 0x100053af
push esi
call fcn.1001a250
movzx eax, bl
dec eax
cmp eax, 3
ja case.default.0x100053bc
jmp dword [eax*4 + 0x1000560c]
movaps xmm0, xmmword [0x10065590]
xor ecx, ecx
push dword [ebp + 8]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0x13475b54
mov dword [ebp - 0x30], 0x5b405270
mov word [ebp - 0x2c], 0x1d
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x18
jb 0x100053e7
sub esp, 0x18
mov byte [ebp - 0x2b], 0
lea eax, [ebp - 0x43]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0x74]
push eax
call fcn.10031980
add esp, 0x20
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x10005421
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x28]
call fcn.100017e0
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
push 0xff6565ff
push eax
call fcn.10005d10
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.10001840
lea ecx, [ebp - 0x74]
jmp 0x100055f5
movaps xmm0, xmmword [0x100655a0]
xor ecx, ecx
push dword [ebp + 8]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x23382a08
mov word [ebp - 0x14], 0x65
nop dword [eax]
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x10005470
sub esp, 0x18
mov byte [ebp - 0x13], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0x44]
push eax
call fcn.10031980
add esp, 0x20
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 2
jb 0x100054aa
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x74]
call fcn.100017e0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push 0xffff3b3b
push eax
call fcn.10005d10
add esp, 8
lea ecx, [ebp - 0x74]
call fcn.10001840
lea ecx, [ebp - 0x44]
jmp 0x100055f5
movaps xmm0, xmmword [str._zMKMAML_b_rL_bd_bS]
xor ecx, ecx
push dword [ebp + 8]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x4944496a
mov dword [ebp - 0x14], 0x64d4b46
mov byte [ebp - 0x10], 0
nop word [eax + eax]
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x17
jb 0x10005500
sub esp, 0x18
mov byte [ebp - 0x10], 0
lea eax, [ebp - 0x27]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0x44]
push eax
call fcn.10031980
add esp, 0x20
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 4
jb 0x1000553a
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x74]
call fcn.100017e0
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 5
push 0xff6565ff
push eax
call fcn.10005d10
add esp, 8
lea ecx, [ebp - 0x74]
call fcn.10001840
lea ecx, [ebp - 0x44]
jmp 0x100055f5
movaps xmm0, xmmword [0x10065580]
xor ecx, ecx
push dword [ebp + 8]
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0x7d36303d
mov byte [ebp - 0x48], 0
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x13
jb 0x10005583
sub esp, 0x18
mov byte [ebp - 0x48], 0
lea eax, [ebp - 0x5b]
mov ecx, esp
push eax
call fcn.100017e0
lea eax, [ebp - 0xa4]
push eax
call fcn.10031980
add esp, 0x20
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 6
jb 0x100055c0
mov eax, dword [eax]
push eax
lea ecx, [ebp - 0x8c]
call fcn.100017e0
lea eax, [ebp - 0x8c]
mov byte [ebp - 4], 7
push 0xffff3b3b
push eax
call fcn.10005d10
add esp, 8
lea ecx, [ebp - 0x8c]
call fcn.10001840
lea ecx, [ebp - 0xa4]
call fcn.10001840
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret