Function at 0x100303d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov ecx, dword [ebp + 8]
movzx ebx, byte [esi + 3]
add ecx, 0xfffffff8
movzx eax, byte [esi + 2]
movzx edx, byte [esi + 6]
shl ebx, 8
or ebx, eax
mov dword [ebp - 8], ecx
movzx eax, byte [esi + 1]
movzx ecx, byte [esi + 5]
shl ebx, 8
or ebx, eax
mov dword [ebp - 0x10], ecx
movzx eax, byte [esi]
movzx ecx, byte [esi + 4]
shl ebx, 8
or ebx, eax
mov dword [ebp - 0x14], ecx
cmp dword [ebp + 0x14], 0
movzx eax, byte [esi + 7]
mov ecx, dword [ebp - 8]
je 0x10030640
shl edx, 8
or edx, dword [ebp - 0x10]
shl edx, 8
or edx, dword [ebp - 0x14]
shl eax, 0x18
or edx, eax
mov dword [ebp + 0x14], edx
test ecx, ecx
js 0x10030554
mov eax, dword [ebp + 8]
shr eax, 3
mov dword [ebp + 8], eax
shl eax, 3
sub ecx, eax
mov dword [ebp - 8], ecx
nop dword [eax + eax]
movzx edx, byte [edi + 3]
movzx eax, byte [edi + 2]
movzx ecx, byte [esi + 3]
mov ebx, dword [ebp + 0x10]
shl edx, 8
or edx, eax
shl ecx, 8
movzx eax, byte [edi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [edi]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
movzx esi, byte [edi + 6]
shl ecx, 8
or ecx, eax
shl esi, 8
movzx eax, byte [edi + 5]
xor edx, ecx
movzx ecx, byte [ebx + 7]
or esi, eax
movzx eax, byte [edi + 4]
shl ecx, 8
shl esi, 8
or esi, eax
mov dword [ebp - 0x1c], edx
movzx eax, byte [ebx + 6]
movzx edx, byte [edi + 7]
or ecx, eax
movzx eax, byte [ebx + 5]
add edi, 8
shl ecx, 8
or ecx, eax
shl edx, 0x18
movzx eax, byte [ebx + 4]
or edx, esi
shl ecx, 8
or ecx, eax
xor ecx, edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
call fcn.1002f8b0
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
mov edx, dword [ebp - 0x18]
shr eax, 8
mov byte [ecx], bl
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [ecx + 3], al
mov eax, edx
mov esi, dword [ebp + 0x10]
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, edx
shr eax, 0x18
mov byte [ecx + 7], al
mov byte [ecx + 4], dl
add ecx, 8
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
mov eax, ecx
dec ecx
mov dword [ebp + 8], ecx
cmp eax, 1
jne 0x10030460
mov ecx, dword [ebp - 8]
mov dword [ebp + 0x14], edx
cmp ecx, 0xfffffff8
je 0x10030619
mov eax, dword [ebp - 8]
add edi, 8
add ecx, edi
add eax, 7
xor edx, edx
xor edi, edi
cmp eax, 7
jbe switch.0x10030577
xor eax, eax
xor ecx, ecx
jmp 0x100305c5
jmp dword [eax*4 + 0x1003093c]
movzx edx, byte [ecx - 1]
dec ecx
shl edx, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edx, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edx, eax
movzx eax, byte [ecx - 1]
dec ecx
or edx, eax
movzx edi, byte [ecx - 1]
dec ecx
shl edi, 0x18
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 0x10
or edi, eax
movzx eax, byte [ecx - 1]
dec ecx
shl eax, 8
or edi, eax
movzx eax, byte [ecx - 1]
mov ecx, edx
or eax, edi
xor ecx, dword [ebp + 0x14]
xor eax, ebx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], eax
call fcn.1002f8b0
mov ecx, dword [ebp - 4]
mov ebx, dword [ebp - 0x1c]
mov eax, ebx
mov edx, dword [ebp - 0x18]
shr eax, 8
mov byte [ecx], bl
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, ebx
shr eax, 0x18
mov byte [ecx + 3], al
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, edx
shr eax, 0x18
mov byte [ecx + 4], dl
mov byte [ecx + 7], al
mov byte [esi], bl
mov eax, ebx
shr eax, 8
mov byte [esi + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [esi + 2], al
mov eax, edx
shr eax, 8
mov byte [esi + 5], al
mov eax, edx
shr eax, 0x18
mov byte [esi + 7], al
jmp 0x10030856
shl eax, 8
or edx, eax
mov dword [ebp - 0xc], ebx
shl edx, 8
or edx, dword [ebp - 0x10]
shl edx, 8
or edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
test ecx, ecx
js 0x1003078e
mov edx, dword [ebp + 8]
shr edx, 3
mov dword [ebp + 0x14], edi
mov dword [ebp + 8], edx
lea eax, [edx*8]
sub ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
nop dword [eax]
movzx ecx, byte [esi + 3]
mov edi, edx
movzx eax, byte [esi + 2]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi + 1]
shl ecx, 8
or ecx, eax
movzx eax, byte [esi]
movzx esi, byte [esi + 7]
shl ecx, 8
or ecx, eax
shl esi, 8
movzx eax, byte [ebx + 6]
or esi, eax
mov dword [ebp - 0x14], ecx
movzx eax, byte [ebx + 5]
movzx ecx, byte [edx + 7]
shl esi, 8
or esi, eax
shl ecx, 8
movzx eax, byte [ebx + 4]
movzx ebx, byte [edx + 3]
shl ebx, 8
shl esi, 8
or esi, eax
movzx eax, byte [edx + 2]
or ebx, eax
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 6]
or ecx, eax
mov dword [ebp - 0x1c], ebx
movzx eax, byte [edx + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 4]
shl ecx, 8
add edx, 8
or ecx, eax
mov dword [ebp + 0x14], edx
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
call fcn.1002fc60
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
xor eax, esi
mov esi, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x1c]
mov ecx, eax
xor ecx, edx
xor dl, al
mov byte [esi], dl
mov eax, ecx
shr eax, 8
mov byte [esi + 1], al
mov eax, ecx
shr eax, 0x10
mov byte [esi + 2], al
shr ecx, 0x18
mov byte [esi + 3], cl
mov ecx, dword [ebp - 0xc]
mov eax, ecx
shr eax, 8
mov byte [esi + 5], al
mov eax, ecx
mov byte [esi + 4], cl
shr eax, 0x10
shr ecx, 0x18
dec dword [ebp + 8]
mov byte [esi + 6], al
mov byte [esi + 7], cl
mov edx, dword [ebp + 8]
lea eax, [esi + 8]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ebx
cmp edi, 1
jne 0x10030680
mov edx, dword [ebp - 0x10]
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp - 8]
cmp ecx, 0xfffffff8
jne 0x1003079b
mov ecx, dword [ebp - 0xc]
jmp 0x10030836
movzx ebx, byte [edi + 3]
movzx eax, byte [edi + 2]
movzx ecx, byte [edi + 7]
mov edx, dword [ebp + 0xc]
shl ebx, 8
or ebx, eax
shl ecx, 8
movzx eax, byte [edi + 1]
shl ebx, 8
or ebx, eax
movzx eax, byte [edi]
shl ebx, 8
or ebx, eax
movzx eax, byte [edi + 6]
or ecx, eax
mov dword [ebp - 0x1c], ebx
movzx eax, byte [edi + 5]
shl ecx, 8
or ecx, eax
movzx eax, byte [edi + 4]
shl ecx, 8
or ecx, eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
lea ecx, [ebp - 0x1c]
call fcn.1002fc60
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0x1c]
xor dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x10]
lea ecx, [edx + 8]
add ecx, dword [ebp - 4]
mov dword [ebp + 0x14], eax
cmp edx, 0xfffffffc
ja 0x100308c7
je 0x1003091f
cmp edx, 0xfffffffa
ja 0x100308aa
je 0x1003092c
test edx, edx
je 0x1003086e
cmp edx, 0xfffffff9
jne 0x10030831
mov edx, dword [ebp - 0xc]
mov byte [ecx - 1], dl
mov edx, dword [ebp - 0x14]
mov ecx, ebx
mov byte [esi], bl
mov eax, ebx
shr eax, 8
shr ecx, 0x10
mov byte [esi + 1], al
mov eax, edx
mov byte [esi + 2], cl
mov ecx, edx
shr eax, 8
shr ecx, 0x18
mov byte [esi + 5], al
mov byte [esi + 7], cl
mov byte [esi + 4], dl
shr ebx, 0x18
shr edx, 0x10
mov byte [esi + 3], bl
mov eax, edx
pop edi
mov byte [esi + 6], dl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 0x14]
dec ecx
mov eax, edx
mov dword [ebp + 0x14], edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov al, byte [ebp + 0x15]
mov byte [ecx], al
dec ecx
mov byte [ecx], dl
dec ecx
mov edx, dword [ebp - 0xc]
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
jmp 0x1003082e
cmp edx, 0xfffffffb
jne 0x10030831
mov edx, dword [ebp - 0xc]
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
jmp 0x1003082e
cmp edx, 0xfffffffd
je 0x10030919
cmp edx, 0xfffffffe
je 0x100308fe
cmp edx, 0xffffffff
jne 0x10030831
mov edx, dword [ebp + 0x14]
mov dword [ebp + 0x14], edx
dec ecx
mov eax, edx
shr eax, 0x10
mov byte [ecx], al
dec ecx
mov al, byte [ebp + 0x15]
mov byte [ecx], al
dec ecx
mov byte [ecx], dl
dec ecx
mov edx, dword [ebp - 0xc]
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
jmp 0x100308b2
mov edx, dword [ebp + 0x14]
mov eax, edx
shr eax, 8
dec ecx
mov byte [ecx], al
dec ecx
mov byte [ecx], dl
dec ecx
mov edx, dword [ebp - 0xc]
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
jmp 0x100308b2
mov edx, dword [ebp + 0x14]
dec ecx
mov byte [ecx], dl
mov edx, dword [ebp - 0xc]
dec ecx
mov eax, edx
shr eax, 0x18
mov byte [ecx], al
jmp 0x100308b2
mov edx, dword [ebp - 0xc]
dec ecx
mov eax, edx
shr eax, 8
mov byte [ecx], al
jmp 0x1003082e