Function at 0x10005250
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10060ed6
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x10077604]
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 0x10005292
xor bl, bl
jmp 0x10005298
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 0x100052b2
mov dword [ebp + 8], 0
jmp 0x100052bb
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 0x100052d2
xor esi, esi
jmp 0x100052d8
mov eax, dword [edx + 0x10]
mov esi, dword [edi + eax]
lea eax, [edi + 4]
mov dword [edx + 8], eax
mov eax, dword [0x10077f30]
test eax, eax
je 0x1000535f
cmp bl, 1
je 0x100052f1
cmp bl, 2
jne 0x1000532d
mov ecx, dword [eax + 0x94]
test ecx, ecx
je 0x10005306
push esi
call fcn.10057250
mov eax, dword [0x10077f30]
mov ecx, dword [eax + 0x58]
test ecx, ecx
je 0x10005318
push esi
call fcn.10030430
mov eax, dword [0x10077f30]
mov ecx, dword [0x10077f2c]
test ecx, ecx
je 0x10005333
push esi
call fcn.1001a490
mov eax, dword [0x10077f30]
mov ecx, dword [0x10077f2c]
cmp bl, 3
je 0x1000533d
cmp bl, 4
jne 0x1000535f
mov eax, dword [eax + 0x94]
test eax, eax
je 0x10005355
push esi
mov ecx, eax
call fcn.10057160
mov ecx, dword [0x10077f2c]
test ecx, ecx
je 0x1000535f
push esi
call fcn.1001a2b0
movzx eax, bl
dec eax
cmp eax, 3
ja case.default.0x1000536c
jmp dword [eax*4 + 0x100055bc]
movaps xmm0, xmmword [0x10066570]
xor ecx, ecx
push dword [ebp + 8]
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], 0x50041817
mov dword [ebp - 0x30], 0x18031133
mov word [ebp - 0x2c], 0x5e
mov al, byte [ebp - 0x44]
xor byte [ebp + ecx - 0x43], al
inc ecx
cmp ecx, 0x18
jb 0x10005397
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.100322e0
add esp, 0x20
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 0
jb 0x100053d1
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.10005cc0
add esp, 8
lea ecx, [ebp - 0x28]
call fcn.10001840
lea ecx, [ebp - 0x74]
jmp 0x100055a5
movaps xmm0, xmmword [0x10066590]
xor ecx, ecx
push dword [ebp + 8]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x51e0c2e
mov word [ebp - 0x14], 0x43
nop dword [eax]
mov al, byte [ebp - 0x28]
xor byte [ebp + ecx - 0x27], al
inc ecx
cmp ecx, 0x14
jb 0x10005420
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.100322e0
add esp, 0x20
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 2
jb 0x1000545a
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.10005cc0
add esp, 8
lea ecx, [ebp - 0x74]
call fcn.10001840
lea ecx, [ebp - 0x44]
jmp 0x100055a5
movaps xmm0, xmmword [0x100665a0]
xor ecx, ecx
push dword [ebp + 8]
movups xmmword [ebp - 0x28], xmm0
mov dword [ebp - 0x18], 0x3d303d1e
mov dword [ebp - 0x14], 0x72393f32
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 0x100054b0
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.100322e0
add esp, 0x20
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 4
jb 0x100054ea
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.10005cc0
add esp, 8
lea ecx, [ebp - 0x74]
call fcn.10001840
lea ecx, [ebp - 0x44]
jmp 0x100055a5
movaps xmm0, xmmword [str.fEY_n]
xor ecx, ecx
push dword [ebp + 8]
movups xmmword [ebp - 0x5c], xmm0
mov dword [ebp - 0x4c], 0x44f4944
mov byte [ebp - 0x48], 0
mov al, byte [ebp - 0x5c]
xor byte [ebp + ecx - 0x5b], al
inc ecx
cmp ecx, 0x13
jb 0x10005533
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.100322e0
add esp, 0x20
cmp dword [eax + 0x14], 0x10
mov dword [ebp - 4], 6
jb 0x10005570
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.10005cc0
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