Function at 0x10051690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, edx
mov dword [ebp - 0x28], ecx
and eax, 7
mov dword [ebp - 0x34], 0
sub ecx, eax
mov dword [ebp - 8], 0
mov al, dl
mov dword [ebp - 0x30], 0
and al, 7
add ecx, edx
mov byte [ebp - 1], al
mov eax, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x24], ecx
mov ecx, dword [eax + 8]
mov ebx, dword [eax + 0xc]
mov esi, dword [eax]
push edi
mov edi, dword [eax + 4]
mov eax, esi
xor eax, 0x6e657261
shl edx, 0x18
mov dword [ebp - 0x10], eax
xor esi, 0x70736575
mov eax, edi
mov dword [ebp - 0xc], edx
xor eax, 0x6c796765
mov dword [ebp - 0x2c], ecx
xor dword [ebp - 0x2c], 0x6e646f6d
mov edx, ecx
mov dword [ebp + 8], eax
mov ecx, ebx
mov eax, dword [ebp - 0x24]
xor edx, 0x79746573
mov dword [ebp - 0x1c], eax
xor edi, 0x736f6d65
mov eax, dword [ebp - 0x28]
xor ecx, 0x74656462
sub dword [ebp - 0x1c], eax
xor ebx, 0x646f7261
add dword [ebp - 0x1c], 7
shr dword [ebp - 0x1c], 3
cmp eax, dword [ebp - 0x24]
mov eax, dword [ebp - 0x1c]
cmova eax, dword [ebp - 0x34]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x10051885
mov eax, ebx
mov ebx, dword [ebp - 0x28]
nop dword [eax]
mov edi, dword [ebx]
xor edx, edi
mov ebx, dword [ebx + 4]
xor ecx, ebx
mov dword [ebp - 0x34], edi
mov edi, dword [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x38], ebx
mov ebx, dword [ebp - 0x2c]
add esi, ebx
mov edx, ebx
adc edi, eax
shld edx, eax, 0xd
shld eax, ebx, 0xd
mov ebx, dword [ebp - 0x20]
xor edx, esi
xor eax, edi
add dword [ebp - 0x10], ebx
mov dword [ebp - 0x18], eax
mov eax, ebx
adc dword [ebp + 8], ecx
shld eax, ecx, 0x10
shld ecx, ebx, 0x10
xor eax, dword [ebp - 0x10]
xor ecx, dword [ebp + 8]
add edi, eax
mov dword [ebp - 0x14], edi
adc esi, ecx
mov dword [ebp - 0x20], esi
mov esi, eax
shld esi, ecx, 0x15
shld ecx, eax, 0x15
mov eax, dword [ebp + 8]
xor esi, edi
xor ecx, dword [ebp - 0x20]
add dword [ebp - 0x10], edx
mov edi, dword [ebp - 0x18]
adc eax, dword [ebp - 0x18]
mov dword [ebp + 8], eax
mov eax, edx
mov ebx, dword [ebp + 8]
shld eax, edi, 0x11
shld edi, edx, 0x11
mov dword [ebp + 8], ebx
mov dword [ebp - 0x18], edi
mov edi, dword [ebp - 0x10]
xor eax, edi
mov edx, dword [ebp - 0x18]
xor edx, ebx
mov dword [ebp - 0x10], edi
add dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
adc dword [ebp - 0x20], edx
mov edx, eax
mov edi, dword [ebp - 0x18]
shld edx, edi, 0xd
shld edi, eax, 0xd
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x18], edi
xor dword [ebp - 0x18], eax
mov eax, esi
mov edi, dword [ebp - 0x14]
xor edx, edi
add dword [ebp + 8], esi
adc dword [ebp - 0x10], ecx
shld eax, ecx, 0x10
shld ecx, esi, 0x10
xor eax, dword [ebp + 8]
xor ecx, dword [ebp - 0x10]
mov ebx, eax
mov esi, dword [ebp - 0x20]
add esi, eax
adc edi, ecx
shld ebx, ecx, 0x15
shld ecx, eax, 0x15
mov eax, dword [ebp - 0x18]
xor ebx, esi
xor ecx, edi
mov dword [ebp - 0x14], edi
add dword [ebp + 8], edx
mov dword [ebp - 0x20], ebx
mov edi, dword [ebp - 0x10]
mov ebx, edx
adc edi, eax
xor esi, dword [ebp - 0x34]
shld ebx, eax, 0x11
shld eax, edx, 0x11
mov edx, dword [ebp + 8]
xor ebx, edx
xor eax, edi
mov dword [ebp + 8], edx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x10], edi
inc edx
mov edi, dword [ebp - 0x14]
xor edi, dword [ebp - 0x38]
mov dword [ebp - 0x2c], ebx
mov ebx, dword [ebp - 0x28]
add ebx, 8
mov dword [ebp - 0x30], edx
cmp edx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x28], ebx
jne 0x10051750
mov ebx, eax
movzx eax, byte [ebp - 1]
dec eax
cmp eax, 6
ja case.default.0x1005188f
jmp dword [eax*4 + 0x10051b60]
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax + 6]
cdq
shl eax, 0x10
or dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax + 5]
cdq
shl eax, 8
or dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax + 4]
cdq
or dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 8]
or edx, dword [eax]
mov dword [ebp - 8], edx
jmp 0x100518f7
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax + 2]
cdq
shld edx, eax, 0x10
shl eax, 0x10
or dword [ebp - 8], eax
or dword [ebp - 0xc], edx
mov eax, dword [ebp - 0x28]
movzx eax, word [eax]
jmp 0x100518ed
mov eax, dword [ebp - 0x24]
movzx eax, byte [eax]
cdq
or dword [ebp - 8], eax
or dword [ebp - 0xc], edx
mov edx, dword [ebp - 8]
xor dword [ebp - 0x20], edx
xor ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 0x2c]
add esi, edx
mov eax, dword [ebp - 0x2c]
adc edi, ebx
shld edx, ebx, 0xd
shld ebx, eax, 0xd
mov eax, dword [ebp - 0x20]
xor edx, esi
xor ebx, edi
mov dword [ebp - 0x38], edx
add dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x20]
adc dword [ebp + 8], ecx
shld eax, ecx, 0x10
shld ecx, edx, 0x10
xor eax, dword [ebp - 0x10]
xor ecx, dword [ebp + 8]
add edi, eax
mov edx, dword [ebp - 0x38]
adc esi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x20], esi
mov esi, eax
shld esi, ecx, 0x15
shld ecx, eax, 0x15
xor esi, edi
mov eax, edx
xor ecx, dword [ebp - 0x20]
add dword [ebp - 0x10], edx
mov edi, dword [ebp - 0x20]
adc dword [ebp + 8], ebx
shld eax, ebx, 0x11
shld ebx, edx, 0x11
mov edx, dword [ebp - 0x10]
xor eax, edx
xor ebx, dword [ebp + 8]
add dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
mov edx, eax
adc edi, ebx
shld edx, ebx, 0xd
shld ebx, eax, 0xd
mov eax, dword [ebp - 0x14]
xor edx, eax
xor ebx, edi
mov dword [ebp - 0x14], eax
add dword [ebp + 8], esi
mov eax, esi
adc dword [ebp - 0x10], ecx
shld eax, ecx, 0x10
shld ecx, esi, 0x10
xor eax, dword [ebp + 8]
xor ecx, dword [ebp - 0x10]
mov esi, eax
add edi, eax
adc dword [ebp - 0x14], ecx
shld esi, ecx, 0x15
shld ecx, eax, 0x15
xor esi, edi
mov eax, edx
xor ecx, dword [ebp - 0x14]
add dword [ebp + 8], edx
adc dword [ebp - 0x10], ebx
shld eax, ebx, 0x11
shld ebx, edx, 0x11
xor eax, dword [ebp + 8]
mov edx, dword [ebp + 8]
xor ebx, dword [ebp - 0x10]
xor dword [ebp - 0x10], 0xff
mov dword [ebp + 8], edx
mov edx, dword [ebp - 8]
xor dword [ebp + 8], 0
xor edx, edi
mov edi, dword [ebp - 0xc]
xor edi, dword [ebp - 0x14]
add edx, eax
mov dword [ebp - 8], edx
adc edi, ebx
mov dword [ebp - 0xc], edi
mov edx, eax
shld edx, ebx, 0xd
shld ebx, eax, 0xd
mov eax, dword [ebp - 8]
xor edx, eax
xor ebx, edi
mov dword [ebp - 8], eax
mov edi, dword [ebp - 0x10]
mov eax, esi
add edi, esi
adc dword [ebp + 8], ecx
shld eax, ecx, 0x10
shld ecx, esi, 0x10
xor eax, edi
xor ecx, dword [ebp + 8]
mov esi, eax
add dword [ebp - 0xc], eax
adc dword [ebp - 8], ecx
shld esi, ecx, 0x15
shld ecx, eax, 0x15
xor esi, dword [ebp - 0xc]
mov eax, edx
xor ecx, dword [ebp - 8]
add edi, edx
adc dword [ebp + 8], ebx
shld eax, ebx, 0x11
shld ebx, edx, 0x11
xor eax, edi
xor ebx, dword [ebp + 8]
mov edx, eax
add dword [ebp - 0xc], eax
adc dword [ebp - 8], ebx
shld edx, ebx, 0xd
shld ebx, eax, 0xd
mov eax, dword [ebp - 0xc]
xor edx, eax
xor ebx, dword [ebp - 8]
add dword [ebp + 8], esi
mov dword [ebp - 0xc], eax
mov eax, esi
adc edi, ecx
shld eax, ecx, 0x10
shld ecx, esi, 0x10
xor eax, dword [ebp + 8]
xor ecx, edi
mov esi, eax
add dword [ebp - 8], eax
adc dword [ebp - 0xc], ecx
shld esi, ecx, 0x15
shld ecx, eax, 0x15
xor esi, dword [ebp - 8]
mov eax, edx
xor ecx, dword [ebp - 0xc]
add dword [ebp + 8], edx
adc edi, ebx
shld eax, ebx, 0x11
shld ebx, edx, 0x11
mov edx, dword [ebp + 8]
xor eax, edx
xor ebx, edi
mov dword [ebp + 8], edx
add dword [ebp - 8], eax
mov edx, eax
adc dword [ebp - 0xc], ebx
shld edx, ebx, 0xd
shld ebx, eax, 0xd
mov eax, dword [ebp - 8]
xor edx, eax
xor ebx, dword [ebp - 0xc]
add edi, esi
mov dword [ebp - 8], eax
mov eax, esi
adc dword [ebp + 8], ecx
shld eax, ecx, 0x10
shld ecx, esi, 0x10
xor eax, edi
xor ecx, dword [ebp + 8]
mov esi, eax
add dword [ebp - 0xc], eax
adc dword [ebp - 8], ecx
shld esi, ecx, 0x15
xor esi, dword [ebp - 0xc]
shld ecx, eax, 0x15
mov eax, edx
xor ecx, dword [ebp - 8]
add edi, edx
adc dword [ebp + 8], ebx
shld eax, ebx, 0x11
shld ebx, edx, 0x11
xor eax, edi
xor ebx, dword [ebp + 8]
mov edx, eax
add dword [ebp - 0xc], eax
adc dword [ebp - 8], ebx
shld edx, ebx, 0xd
shld ebx, eax, 0xd
xor edx, dword [ebp - 0xc]
mov eax, esi
xor ebx, dword [ebp - 8]
add dword [ebp + 8], esi
adc edi, ecx
shld eax, ecx, 0x10
shld ecx, esi, 0x10
mov esi, dword [ebp + 8]
xor eax, esi
xor ecx, edi
mov dword [ebp - 0x10], edi
mov edi, eax
shld edi, ecx, 0x15
shld ecx, eax, 0x15
mov eax, dword [ebp - 0x10]
add esi, edx
mov dword [ebp + 8], esi
mov esi, edx
adc eax, ebx
shld esi, ebx, 0x11
shld ebx, edx, 0x11
mov edx, dword [ebp + 8]
mov dword [ebp - 0x10], eax
xor edx, ecx
xor eax, edi
xor edx, ebx
xor eax, esi
xor eax, dword [ebp + 8]
xor edx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret