Function at 0x10030050
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x103c4120]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov esi, dword [eax + 8]
mov edi, dword [eax + 0xc]
mov edx, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [ecx + 0x2000]
mov dword [ebp - 0x3c], eax
xor eax, edx
mov dword [ebp - 0x20], eax
mov eax, dword [ecx + 0x2004]
mov dword [ebp - 0x4c], eax
xor eax, ebx
mov dword [ebp - 0x18], eax
mov eax, dword [ecx + 0x2008]
mov dword [ebp - 0x48], eax
xor eax, esi
mov dword [ebp - 0x1c], eax
mov eax, dword [ecx + 0x200c]
mov dword [ebp - 0x40], eax
xor eax, edi
mov dword [ebp - 0x34], esi
lea esi, [ebp - 0x1b]
mov dword [ebp - 0x38], edi
mov edi, 4
mov dword [ebp - 0x2c], eax
mov eax, esi
mov dword [ebp - 0x30], ecx
sub edi, eax
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], ebx
lea ecx, [ecx]
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 0x100300d0
lea esi, [ebp - 0x2b]
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 0x10030101
lea esi, [ebp - 0x1f]
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 0x10030132
lea eax, [ebp - 0x17]
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 0x10030163
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x1c]
mov edi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 8], eax
or eax, 0xffffffff
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp - 0x2c]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], 0x20
mov dword [ebp - 0x20], ecx
jmp 0x100301c4
mov ecx, dword [ebp - 0x20]
mov esi, dword [ebp - 0x30]
and eax, 3
rol ecx, 0xb
add ecx, dword [ebp - 0x1c]
mov edx, dword [esi + eax*4 + 0x2000]
xor ecx, edx
mov eax, ecx
shr eax, 0x10
and eax, 0xff
movzx eax, byte [eax + esi + 0x2010]
mov dword [ebp - 0x18], eax
mov eax, ecx
shr eax, 0x18
movzx eax, byte [eax + esi + 0x2010]
shl eax, 8
or dword [ebp - 0x18], eax
mov eax, ecx
shl dword [ebp - 0x18], 8
shr eax, 8
and eax, 0xff
movzx eax, byte [eax + esi + 0x2010]
or dword [ebp - 0x18], eax
shl dword [ebp - 0x18], 8
movzx eax, cl
mov ecx, dword [ebp - 0x18]
movzx eax, byte [eax + esi + 0x2010]
or ecx, eax
xor ecx, edi
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], ecx
mov ecx, edi
ror ecx, 0xf
xor ecx, dword [ebp - 0x20]
add ecx, edx
mov edx, dword [ebp - 0x30]
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 + edx + 0x2010]
shl eax, 8
or esi, eax
mov eax, ecx
shr eax, 8
and eax, 0xff
shl esi, 8
movzx eax, byte [eax + edx + 0x2010]
or esi, eax
movzx eax, cl
mov ecx, dword [ebp - 0x18]
shl esi, 8
mov dword [ebp - 0x1c], ecx
movzx eax, byte [eax + edx + 0x2010]
or esi, eax
mov eax, dword [ebp - 0x24]
xor esi, ebx
dec eax
dec dword [ebp - 0x28]
mov ebx, dword [ebp - 0x20]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x24], eax
jne 0x100301c1
mov eax, dword [edx + 0x2110]
not ebx
add ecx, eax
sub esi, eax
xor edi, eax
mov dword [ebp - 0x18], ecx
movzx eax, byte [edx + 0x2114]
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10030364
mov ecx, dword [edx + 0x2004]
mov dword [ebp - 0x38], ecx
mov ecx, dword [edx + 0x221d]
mov dword [ebp - 0x28], ecx
mov ecx, dword [edx + 0x200c]
mov dword [ebp - 0x34], ecx
mov ecx, dword [edx + 0x2008]
mov dword [ebp - 0x1c], ecx
mov edx, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x18]
rol esi, 2
and ecx, 0x1f
add esi, dword [ebp - 0x38]
mov edx, dword [edx + eax*8 + 4]
not esi
sub esi, edx
mov dword [ebp - 0x2c], edx
mov edx, dword [ebp - 0x18]
ror esi, cl
mov ecx, dword [ebp - 0x28]
xor esi, dword [ebp - 0x18]
rol edx, 1
add edx, dword [ebp - 0x3c]
mov eax, dword [ecx + eax*8]
not edx
rol ebx, 4
mov ecx, esi
add ebx, dword [ebp - 0x34]
and ecx, 0x1f
sub edx, eax
not ebx
sub ebx, dword [ebp - 0x2c]
ror edx, cl
mov ecx, edi
and ecx, 0x1f
mov dword [ebp - 0x18], edx
xor dword [ebp - 0x18], esi
ror ebx, cl
xor ebx, edi
rol edi, 3
add edi, dword [ebp - 0x1c]
mov ecx, ebx
not edi
and ecx, 0x1f
sub edi, eax
mov eax, dword [ebp - 0x24]
ror edi, cl
xor edi, ebx
dec eax
mov dword [ebp - 0x24], eax
jne 0x100302f3
mov edx, dword [ebp - 0x30]
mov eax, dword [edx + 0x221d]
mov edx, dword [ebp - 0x18]
mov ecx, dword [eax]
sub edx, ecx
mov eax, dword [eax + 4]
sub edi, ecx
xor edx, dword [ebp - 0x3c]
sub esi, eax
xor esi, dword [ebp - 0x4c]
sub ebx, eax
mov eax, dword [ebp - 0x44]
xor edi, dword [ebp - 0x48]
xor ebx, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x30]
mov dword [eax], edx
mov dword [eax + 4], esi
mov dword [eax + 8], edi
mov dword [eax + 0xc], ebx
lea eax, [ebp - 0x14]
push ecx
push eax
call fcn.1002ff40
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.101c6a5b
mov esp, ebp
pop ebp
ret