Function at 0x10030f30
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x21c
push ebx
push ebp
push esi
mov edx, ecx
mov esi, 4
lea eax, [esp + 0x38]
push edi
mov dword [edx + 0xc0], 0
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
xor eax, eax
mov dword [esp + 0x14], 0
mov al, byte [edx + esi + 0x2c9c]
mov ecx, eax
and eax, 1
shr ecx, 1
dec ecx
or al, 2
shl eax, cl
sub esi, eax
lea edi, [edx + eax*2 + 0x239c]
mov dword [esp + 0x1c], edi
mov edi, 1
mov ebp, dword [esp + 0x1c]
xor ebx, ebx
mov eax, esi
mov bx, word [ebp + edi*2]
and eax, 1
mov ebp, ebx
mov ebx, eax
neg ebx
shr ebx, 4
shr ebp, 4
and ebx, 0x7f
lea edi, [eax + edi*2]
xor ebp, ebx
mov ebx, dword [esp + 0x14]
shr esi, 1
add ebx, dword [edx + ebp*4 + 0x748]
dec ecx
mov dword [esp + 0x14], ebx
jne 0x10030f86
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x10]
inc esi
mov dword [eax], ebx
add eax, 4
cmp esi, 0x80
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
jb 0x10030f57
lea ebp, [esp + 0x30]
lea ecx, [edx + 0x121c]
sub ebp, edx
lea eax, [edx + 0x1624]
sub ebp, 0x161c
lea edi, [edx + 0x219c]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], 4
jmp 0x10031018
mov ecx, dword [esp + 0x10]
mov eax, dword [edx + 0xc8]
xor ebx, ebx
test eax, eax
mov dword [esp + 0x24], eax
jbe 0x10031138
mov dword [esp + 0x18], ecx
mov ecx, ebx
xor esi, esi
shr ecx, 1
xor ebp, ebp
add ebx, 2
lea eax, [ecx + 0x20]
mov ecx, eax
mov dword [esp + 0x28], eax
and ecx, 1
shr eax, 1
neg ecx
mov si, word [edi + eax*2]
shr ecx, 4
shr esi, 4
and ecx, 0x7f
xor esi, ecx
mov ecx, dword [edx + esi*4 + 0x748]
mov esi, eax
and esi, 1
shr eax, 1
neg esi
mov bp, word [edi + eax*2]
shr esi, 4
shr ebp, 4
and esi, 0x7f
xor ebp, esi
mov esi, dword [edx + ebp*4 + 0x748]
xor ebp, ebp
add ecx, esi
mov esi, eax
and esi, 1
shr eax, 1
neg esi
mov bp, word [edi + eax*2]
shr esi, 4
shr ebp, 4
and esi, 0x7f
xor ebp, esi
mov esi, dword [edx + ebp*4 + 0x748]
xor ebp, ebp
add ecx, esi
mov esi, eax
and esi, 1
shr eax, 1
neg esi
mov bp, word [edi + eax*2]
shr esi, 4
shr ebp, 4
and esi, 0x7f
xor ebp, esi
mov esi, dword [edx + ebp*4 + 0x748]
xor ebp, ebp
add ecx, esi
mov esi, eax
and eax, 1
shr esi, 1
neg eax
mov bp, word [edi + esi*2]
mov esi, dword [esp + 0x28]
shr eax, 4
shr ebp, 4
and eax, 0x7f
xor ebp, eax
mov eax, dword [edx + ebp*4 + 0x748]
add ecx, eax
xor eax, eax
mov ax, word [edi + esi*2]
mov esi, eax
xor eax, 0x7f0
shr esi, 4
shr eax, 4
mov ebp, dword [edx + esi*4 + 0x748]
mov esi, dword [esp + 0x18]
add ebp, ecx
mov dword [esi], ebp
mov eax, dword [edx + eax*4 + 0x748]
add eax, ecx
mov dword [esi + 4], eax
mov eax, dword [esp + 0x24]
add esi, 8
mov dword [esp + 0x18], esi
cmp ebx, eax
jb 0x10031030
mov ebp, dword [esp + 0x20]
mov ecx, dword [esp + 0x10]
mov esi, 0xe
cmp eax, esi
jbe 0x10031162
add ecx, 0x38
mov ebx, esi
add ecx, 4
and ebx, 0x1ffffffe
lea ebx, [ebx*8 - 0x50]
add dword [ecx - 4], ebx
inc esi
cmp esi, eax
jb 0x10031144
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov esi, dword [ecx]
mov dword [eax - 8], esi
mov esi, dword [ecx + 4]
mov dword [eax - 4], esi
mov esi, dword [ecx + 8]
mov dword [eax], esi
mov esi, dword [ecx + 0xc]
mov dword [eax + 4], esi
mov esi, 4
add eax, 8
jmp 0x1003118a
mov ecx, dword [esp + 0x10]
xor ebx, ebx
add eax, 8
mov bl, byte [edx + esi + 0x2c9c]
add esi, 2
mov ecx, dword [ecx + ebx*4]
mov ebx, dword [eax + ebp - 0xc]
add ebx, ecx
mov dword [eax - 8], ebx
mov ebx, dword [eax + ebp - 8]
add ebx, ecx
cmp esi, 0x80
mov dword [eax - 4], ebx
jb 0x10031186
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
add eax, 0x100
add edi, 0x80
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x1c]
sub ebp, 0x200
add ecx, 0x200
dec eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
jne 0x10031014
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x21c
ret