Function at 0x3097404
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
movzx ebx, byte [edx + 3]
movzx ecx, byte [edx + 2]
shl ebx, 8
or ebx, ecx
mov eax, dword [esi + 4]
movzx ecx, byte [edx + 1]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx]
shl ebx, 8
or ebx, ecx
movzx ecx, byte [edx + 7]
shl ecx, 8
mov dword [ebp + 0xc], ecx
movzx ecx, byte [edx + 6]
or dword [ebp + 0xc], ecx
movzx ecx, byte [edx + 5]
shl dword [ebp + 0xc], 8
or dword [ebp + 0xc], ecx
movzx ecx, byte [edx + 4]
shl dword [ebp + 0xc], 8
or dword [ebp + 0xc], ecx
mov ecx, dword [ebp + 0xc]
xor ecx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
movzx ecx, byte [edx + 0xb]
shl ecx, 8
mov dword [ebp + 8], ecx
movzx ecx, byte [edx + 0xa]
or dword [ebp + 8], ecx
movzx ecx, byte [edx + 9]
shl dword [ebp + 8], 8
or dword [ebp + 8], ecx
movzx ecx, byte [edx + 8]
shl dword [ebp + 8], 8
or dword [ebp + 8], ecx
mov ecx, dword [ebp + 8]
xor ecx, dword [eax + 8]
xor ebx, dword [eax]
mov dword [ebp + 8], ecx
movzx ecx, byte [edx + 0xf]
shl ecx, 8
mov dword [ebp - 4], ecx
movzx ecx, byte [edx + 0xe]
or dword [ebp - 4], ecx
movzx ecx, byte [edx + 0xd]
shl dword [ebp - 4], 8
or dword [ebp - 4], ecx
movzx ecx, byte [edx + 0xc]
shl dword [ebp - 4], 8
mov edx, dword [ebp - 4]
or edx, ecx
mov dword [ebp - 8], ebx
mov ecx, dword [esi]
xor edx, dword [eax + 0xc]
add eax, 0x10
sar ecx, 1
dec ecx
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], ecx
test ecx, ecx
jle 0x30976e6
mov ecx, dword [ebp + 0xc]
shr ecx, 8
movzx ecx, cl
shr edx, 0x18
mov edx, dword [edx*4 + 0x309ba04]
xor edx, dword [ecx*4 + 0x309b204]
mov ecx, dword [ebp + 8]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x309b604]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x309ae04]
xor edx, dword [eax]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
mov dword [ebp - 0x10], edx
movzx edx, cl
mov ecx, dword [ebp + 8]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x309b604]
xor edx, dword [ecx*4 + 0x309b204]
mov ecx, ebx
mov ebx, dword [ebp + 0xc]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x309ba04]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x309ae04]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, 0x18
mov ebx, dword [ecx*4 + 0x309b204]
xor ebx, dword [edx*4 + 0x309ba04]
mov edx, dword [ebp - 8]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
shr edx, 8
xor ebx, dword [ecx*4 + 0x309b604]
mov ecx, dword [ebp + 8]
movzx ecx, cl
shr dword [ebp + 8], 0x18
xor ebx, dword [ecx*4 + 0x309ae04]
xor ebx, dword [eax + 8]
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
movzx ecx, cl
mov dword [ebp - 0x14], ebx
mov ebx, dword [ecx*4 + 0x309b604]
mov ecx, dword [ebp + 8]
xor ebx, dword [ecx*4 + 0x309ba04]
movzx ecx, dl
xor ebx, dword [ecx*4 + 0x309b204]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x309ae04]
mov ecx, dword [ebp - 0xc]
xor ebx, dword [eax + 0xc]
shr ecx, 8
movzx edx, cl
mov ecx, dword [ebp - 0x14]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x309b204]
xor edx, dword [ecx*4 + 0x309b604]
mov ecx, ebx
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x309ba04]
mov ecx, dword [ebp - 0x10]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x309ae04]
mov ecx, ebx
xor edx, dword [eax + 0x10]
shr ecx, 0x10
mov dword [ebp - 8], edx
movzx edx, cl
mov ecx, dword [ebp - 0x14]
mov edx, dword [edx*4 + 0x309b604]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x309b204]
mov ecx, dword [ebp - 0x10]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x309ba04]
mov ecx, dword [ebp - 0xc]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x309ae04]
mov ecx, ebx
xor edx, dword [eax + 0x14]
shr ecx, 8
mov dword [ebp + 0xc], edx
movzx edx, cl
mov ecx, dword [ebp - 0x10]
shr ecx, 0x10
movzx ecx, cl
mov edx, dword [edx*4 + 0x309b204]
xor edx, dword [ecx*4 + 0x309b604]
mov ecx, dword [ebp - 0xc]
shr ecx, 0x18
xor edx, dword [ecx*4 + 0x309ba04]
mov dword [ebp + 8], edx
mov edx, dword [ebp - 0x14]
mov edi, dword [ebp + 8]
movzx ecx, dl
shr edx, 0x18
xor edi, dword [ecx*4 + 0x309ae04]
mov edx, dword [edx*4 + 0x309ba04]
mov ecx, edi
xor ecx, dword [eax + 0x18]
mov dword [ebp + 8], edi
mov dword [ebp + 8], ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x309b604]
mov ecx, dword [ebp - 0x10]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x309b204]
movzx ecx, bl
mov ebx, dword [ebp - 8]
xor edx, dword [ecx*4 + 0x309ae04]
mov ecx, dword [ebp - 0x18]
xor edx, dword [eax + 0x1c]
dec ecx
add eax, 0x20
mov dword [ebp - 4], edx
mov dword [ebp - 0x18], ecx
test ecx, ecx
jg 0x30974db
mov ecx, dword [ebp + 0xc]
lea edi, [eax + 0xc]
shr ecx, 8
movzx ecx, cl
shr edx, 0x18
mov edx, dword [edx*4 + 0x309ba04]
xor edx, dword [ecx*4 + 0x309b204]
mov ecx, dword [ebp + 8]
shr ecx, 0x10
movzx ecx, cl
xor edx, dword [ecx*4 + 0x309b604]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x309ae04]
xor edx, dword [eax]
mov ecx, dword [ebp - 4]
shr ecx, 0x10
mov dword [ebp - 0x10], edx
movzx edx, cl
mov ecx, dword [ebp + 8]
shr ecx, 8
movzx ecx, cl
mov edx, dword [edx*4 + 0x309b604]
xor edx, dword [ecx*4 + 0x309b204]
mov ecx, ebx
shr ecx, 0x18
mov ebx, dword [ebp + 0xc]
xor edx, dword [ecx*4 + 0x309ba04]
movzx ecx, bl
xor edx, dword [ecx*4 + 0x309ae04]
xor edx, dword [eax + 4]
mov ecx, dword [ebp - 4]
shr ecx, 8
movzx ecx, cl
mov dword [ebp - 0xc], edx
mov edx, ebx
shr edx, 0x18
mov ebx, dword [ecx*4 + 0x309b204]
mov ecx, dword [ebp - 8]
xor ebx, dword [edx*4 + 0x309ba04]
mov edx, dword [ebp + 8]
shr ecx, 0x10
movzx ecx, cl
xor ebx, dword [ecx*4 + 0x309b604]
movzx ecx, dl
shr edx, 0x18
mov dword [ebp + 8], edx
xor ebx, dword [ecx*4 + 0x309ae04]
mov ecx, dword [ebp + 0xc]
shr ecx, 0x10
movzx ecx, cl
xor ebx, dword [eax + 8]
mov dword [ebp - 0x18], ebx
mov edx, dword [ecx*4 + 0x309b604]
mov ecx, dword [ebp + 8]
xor edx, dword [ecx*4 + 0x309ba04]
mov ecx, dword [ebp - 8]
shr ecx, 8
movzx ecx, cl
xor edx, dword [ecx*4 + 0x309b204]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor edx, dword [ecx*4 + 0x309ae04]
xor edx, dword [eax + 0xc]
mov ecx, edx
mov dword [ebp - 0x14], edx
shr ecx, 0x18
movzx ebx, byte [ecx + 0x309ad04]
mov ecx, dword [ebp - 0x18]
shr ecx, 0x10
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx + 0x309ad04]
xor ebx, ecx
mov ecx, dword [ebp - 0xc]
shr ecx, 8
movzx ecx, cl
shl ebx, 8
movzx ecx, byte [ecx + 0x309ad04]
xor ebx, ecx
mov ecx, dword [ebp - 0x10]
shl ebx, 8
movzx ecx, cl
movzx ecx, byte [ecx + 0x309ad04]
xor ebx, ecx
xor ebx, dword [eax + 0x10]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [ebp + 8], ebx
mov ebx, dword [ebp - 0xc]
movzx ecx, byte [eax + 0x309ad04]
mov eax, dword [ebp - 0x10]
shr eax, 0x18
movzx eax, byte [eax + 0x309ad04]
shl eax, 8
xor ecx, eax
mov eax, dword [ebp - 0x18]
shr eax, 8
movzx eax, al
shl ecx, 8
movzx eax, byte [eax + 0x309ad04]
xor ecx, eax
movzx eax, bl
shl ecx, 8
movzx eax, byte [eax + 0x309ad04]
xor ecx, eax
mov eax, ebx
shr eax, 0x18
xor ecx, dword [edi + 8]
mov dword [ebp + 0xc], ecx
mov ecx, dword [ebp - 0x18]
movzx ebx, byte [eax + 0x309ad04]
mov eax, dword [ebp - 0x10]
shr eax, 0x10
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + 0x309ad04]
xor ebx, eax
mov eax, edx
shr eax, 8
movzx eax, al
shl ebx, 8
movzx eax, byte [eax + 0x309ad04]
xor ebx, eax
movzx eax, cl
shl ebx, 8
shr ecx, 0x18
movzx eax, byte [eax + 0x309ad04]
xor ebx, eax
mov eax, dword [ebp - 0xc]
movzx edx, byte [ecx + 0x309ad04]
shr eax, 0x10
movzx eax, al
mov ecx, dword [ebp + 0x10]
xor ebx, dword [edi + 0xc]
shl edx, 8
movzx eax, byte [eax + 0x309ad04]
xor edx, eax
mov eax, dword [ebp - 0x10]
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x309ad04]
xor edx, eax
mov eax, dword [ebp - 0x14]
movzx eax, al
shl edx, 8
movzx eax, byte [eax + 0x309ad04]
xor edx, eax
mov eax, dword [ebp + 8]
xor edx, dword [edi + 0x10]
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [ebp + 8]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [ebp + 8]
shr eax, 0x18
mov byte [ecx + 3], al
mov eax, dword [ebp + 0xc]
mov byte [ecx + 4], al
shr eax, 8
mov byte [ecx + 5], al
mov eax, dword [ebp + 0xc]
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, dword [ebp + 0xc]
shr eax, 0x18
mov byte [ecx + 7], al
mov eax, ebx
shr eax, 8
mov byte [ecx + 9], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 0xa], al
mov eax, edx
shr eax, 8
mov byte [ecx + 0xd], al
mov eax, edx
mov byte [ecx + 8], bl
shr ebx, 0x18
pop edi
shr eax, 0x10
mov byte [ecx + 0xc], dl
shr edx, 0x18
pop esi
mov byte [ecx + 0xb], bl
mov byte [ecx + 0xe], al
xor eax, eax
mov byte [ecx + 0xf], dl
pop ebx
mov esp, ebp
pop ebp
ret