Function at 0x100303c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov edx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [edx]
push edi
mov ebx, dword [esi + 0x221d]
mov edi, dword [esi + 0x2000]
xor eax, edi
mov dword [ebp - 0x1c], edi
mov edi, dword [esi + 0x2004]
mov ecx, dword [ebx]
add eax, ecx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], eax
mov eax, dword [ebx + 4]
mov ebx, dword [edx + 4]
xor ebx, edi
mov edi, dword [esi + 0x2008]
mov dword [ebp - 0x28], edi
add ebx, eax
mov edi, dword [edx + 8]
xor edi, dword [esi + 0x2008]
add edi, ecx
mov ecx, dword [esi + 0x200c]
mov dword [ebp + 0xc], edi
mov edi, dword [edx + 0xc]
xor edx, edx
xor edi, ecx
mov dword [ebp - 0x2c], ecx
add edi, eax
mov dword [ebp - 0xc], edx
movzx eax, byte [esi + 0x2114]
mov dword [ebp - 0x20], eax
test eax, eax
je 0x100304c6
mov eax, dword [esi + 0x2004]
mov dword [ebp - 0x18], eax
mov eax, dword [esi + 0x2008]
mov dword [ebp - 0x14], eax
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 0x10]
mov ecx, ebx
and ecx, 0x1f
mov esi, dword [eax + edx*8 + 8]
mov eax, ebx
xor eax, dword [ebp - 4]
rol eax, cl
mov ecx, dword [ebp - 0x10]
add eax, esi
not eax
sub eax, dword [ebp - 0x1c]
ror eax, 1
mov edx, dword [ecx + edx*8 + 0xc]
xor ebx, eax
mov ecx, eax
mov dword [ebp - 4], eax
and ecx, 0x1f
mov eax, edi
xor eax, dword [ebp + 0xc]
rol ebx, cl
mov ecx, edi
and ecx, 0x1f
add ebx, edx
rol eax, cl
not ebx
sub ebx, dword [ebp - 0x18]
add eax, esi
not eax
ror ebx, 2
sub eax, dword [ebp - 0x14]
ror eax, 3
xor edi, eax
mov dword [ebp + 0xc], eax
mov ecx, eax
and ecx, 0x1f
rol edi, cl
add edi, edx
mov edx, dword [ebp - 0xc]
not edi
inc edx
sub edi, dword [ebp - 8]
ror edi, 4
mov dword [ebp - 0xc], edx
cmp edx, dword [ebp - 0x20]
jb 0x10030452
mov esi, dword [ebp + 0x10]
mov eax, dword [esi + 0x2110]
not edi
sub dword [ebp - 4], eax
add ebx, eax
xor dword [ebp + 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
jmp 0x100304e2
mov esi, ecx
and eax, 3
mov ebx, dword [ebp + 0x10]
mov ecx, edi
rol ecx, 0xb
add ecx, dword [ebp + 0xc]
mov edx, dword [esi + eax*4 + 0x2000]
xor ecx, edx
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx esi, byte [eax + esi + 0x2010]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + ebx + 0x2010]
shl eax, 8
or esi, eax
mov eax, ecx
shr eax, 8
and eax, 0xff
shl esi, 8
movzx eax, byte [eax + ebx + 0x2010]
or esi, eax
movzx eax, cl
mov ecx, ebx
shl esi, 8
movzx eax, byte [eax + ecx + 0x2010]
mov ecx, dword [ebp + 0xc]
or esi, eax
ror ecx, 0xf
xor ecx, edi
xor esi, dword [ebp - 4]
add ecx, edx
mov edx, ebx
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx edx, byte [eax + edx + 0x2010]
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + ebx + 0x2010]
shl eax, 8
or edx, eax
mov eax, ecx
shr eax, 8
and eax, 0xff
shl edx, 8
movzx eax, byte [eax + ebx + 0x2010]
or edx, eax
movzx eax, cl
mov ecx, ebx
shl edx, 8
mov ebx, edi
mov dword [ebp - 0x10], ebx
movzx eax, byte [eax + ecx + 0x2010]
or edx, eax
mov eax, dword [ebp + 0xc]
xor edx, dword [ebp - 0x14]
mov dword [ebp - 4], eax
mov edi, edx
mov dword [ebp - 0xc], eax
mov eax, esi
mov dword [ebp + 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
inc eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], eax
cmp eax, 0x20
jb 0x100304e0
mov dword [ebp + 0xc], edi
lea esi, [ebp - 7]
mov edi, 4
mov eax, esi
sub edi, eax
nop
movzx eax, byte [esi + 2]
lea esi, [esi + 4]
mov dl, byte [esi - 5]
mov cl, byte [esi - 4]
mov byte [esi - 5], al
movzx eax, byte [esi - 3]
mov byte [esi - 4], al
lea eax, [edi + esi]
mov byte [esi - 3], cl
mov byte [esi - 2], dl
cmp eax, 4
jbe 0x100305e0
lea esi, [ebp + 0xd]
mov edi, 4
mov eax, esi
sub edi, eax
movzx eax, byte [esi + 2]
lea esi, [esi + 4]
mov dl, byte [esi - 5]
mov cl, byte [esi - 4]
mov byte [esi - 5], al
movzx eax, byte [esi - 3]
mov byte [esi - 4], al
lea eax, [edi + esi]
mov byte [esi - 3], cl
mov byte [esi - 2], dl
cmp eax, 4
jbe 0x10030611
lea esi, [ebp - 0xb]
mov edi, 4
mov eax, esi
sub edi, eax
movzx eax, byte [esi + 2]
lea esi, [esi + 4]
mov dl, byte [esi - 5]
mov cl, byte [esi - 4]
mov byte [esi - 5], al
movzx eax, byte [esi - 3]
mov byte [esi - 4], al
lea eax, [edi + esi]
mov byte [esi - 3], cl
mov byte [esi - 2], dl
cmp eax, 4
jbe 0x10030642
lea eax, [ebp - 0xf]
mov esi, 4
mov ecx, eax
sub esi, ecx
movzx ecx, byte [eax + 2]
lea eax, [eax + 4]
mov bl, byte [eax - 5]
mov dl, byte [eax - 4]
mov byte [eax - 5], cl
movzx ecx, byte [eax - 3]
mov byte [eax - 4], cl
lea ecx, [esi + eax]
mov byte [eax - 3], dl
mov byte [eax - 2], bl
cmp ecx, 4
jbe 0x10030673
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 8]
mov esi, dword [ebp + 0xc]
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
push dword [ebp + 0x10]
xor edx, dword [ebp - 0x28]
xor eax, dword [ebp - 0x2c]
xor edi, dword [ebp - 0x1c]
xor esi, dword [ebp - 0x24]
push ecx
mov dword [ecx], edi
mov dword [ecx + 4], esi
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.1002ff40
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret