Function at 0x10030b10
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.100bdff0
push ebx
push ebp
push esi
push edi
mov eax, dword [esp + 0x44]
movzx edx, byte [eax + 1]
movzx ecx, byte [eax]
shl edx, 8
or ecx, edx
movzx edx, byte [eax + 2]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 3]
shl edx, 0x18
or ecx, edx
movzx edx, byte [eax + 5]
shl edx, 8
mov dword [esp + 0x14], ecx
movzx ecx, byte [eax + 4]
or ecx, edx
movzx edx, byte [eax + 7]
movzx eax, byte [eax + 6]
shl edx, 8
or edx, eax
mov eax, dword [esp + 0x48]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 1]
shl edx, 8
mov dword [esp + 0x18], ecx
movzx ecx, byte [eax]
or ecx, edx
movzx edx, byte [eax + 2]
shl edx, 0x10
or ecx, edx
movzx edx, byte [eax + 3]
shl edx, 0x18
movzx esi, byte [eax + 5]
or ecx, edx
movzx edx, byte [eax + 4]
shl esi, 8
or edx, esi
movzx esi, byte [eax + 7]
movzx eax, byte [eax + 6]
shl esi, 8
or esi, eax
shl esi, 0x10
or edx, esi
cmp dword [esp + 0x4c], 0
mov dword [esp + 0x48], ecx
mov dword [esp + 0x10], edx
je 0x10030e00
mov ecx, dword [esp + 0x40]
movzx eax, byte [ecx]
lea edx, [ecx + 1]
movzx ecx, byte [edx]
movzx esi, byte [edx + 4]
shl ecx, 8
or eax, ecx
movzx ecx, byte [edx + 1]
mov ebp, dword [esp + 0x38]
shl ecx, 0x10
mov edi, dword [esp + 0x30]
or eax, ecx
movzx ecx, byte [edx + 2]
shl ecx, 0x18
or eax, ecx
movzx ecx, byte [edx + 3]
shl esi, 8
or ecx, esi
movzx esi, byte [edx + 6]
mov dword [esp + 0x1c], edx
movzx edx, byte [edx + 5]
shl esi, 8
or esi, edx
shl esi, 0x10
or ecx, esi
add ebp, 0xfffffff8
mov esi, dword [esp + 0x34]
js 0x10030cee
lea edx, [ebp + 8]
shr edx, 3
mov dword [esp + 0x44], edx
neg edx
lea edx, [ebp + edx*8]
mov dword [esp + 0x38], edx
jmp 0x10030c30
movzx ebx, byte [edi + 1]
movzx edx, byte [edi]
movzx ebp, byte [edi + 5]
shl ebx, 8
or edx, ebx
movzx ebx, byte [edi + 2]
shl ebx, 0x10
or edx, ebx
movzx ebx, byte [edi + 3]
shl ebx, 0x18
or edx, ebx
movzx ebx, byte [edi + 4]
shl ebp, 8
or ebx, ebp
movzx ebp, byte [edi + 6]
shl ebp, 0x10
or ebx, ebp
movzx ebp, byte [edi + 7]
shl ebp, 0x18
or ebx, ebp
xor edx, eax
mov eax, dword [esp + 0x3c]
xor edx, dword [esp + 0x14]
xor ebx, ecx
xor ebx, dword [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x2c]
push ecx
add edi, 8
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
call fcn.10006e80
mov eax, dword [esp + 0x30]
xor eax, dword [esp + 0x54]
add esp, 0xc
mov byte [esi], al
mov edx, eax
shr edx, 8
mov byte [esi + 1], dl
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 2], cl
mov ecx, dword [esp + 0x28]
xor ecx, dword [esp + 0x10]
mov edx, eax
shr edx, 0x18
mov byte [esi + 3], dl
mov byte [esi + 4], cl
mov edx, ecx
shr edx, 8
mov byte [esi + 5], dl
mov edx, ecx
shr edx, 0x10
mov byte [esi + 6], dl
mov edx, ecx
shr edx, 0x18
mov byte [esi + 7], dl
add esi, 8
dec dword [esp + 0x44]
jne 0x10030c30
mov ebp, dword [esp + 0x38]
cmp ebp, 0xfffffff8
je 0x10030dc0
lea edi, [edi + ebp + 8]
add ebp, 7
xor ebx, ebx
xor edx, edx
cmp ebp, 7
ja case.default.0x10030d07
jmp dword [ebp*4 + 0x1003106c]
movzx ebx, byte [edi - 1]
dec edi
shl ebx, 0x18
movzx edx, byte [edi - 1]
dec edi
shl edx, 0x10
or ebx, edx
movzx edx, byte [edi - 1]
dec edi
shl edx, 8
or ebx, edx
movzx edx, byte [edi - 1]
dec edi
or ebx, edx
movzx edx, byte [edi - 1]
dec edi
shl edx, 0x18
movzx ebp, byte [edi - 1]
dec edi
shl ebp, 0x10
or edx, ebp
movzx ebp, byte [edi - 1]
dec edi
shl ebp, 8
or edx, ebp
movzx edi, byte [edi - 1]
or edx, edi
xor edx, eax
mov eax, dword [esp + 0x3c]
xor edx, dword [esp + 0x14]
xor ebx, ecx
xor ebx, dword [esp + 0x18]
push 1
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ebx
call fcn.10006e80
mov eax, dword [esp + 0x30]
xor eax, dword [esp + 0x54]
add esp, 0xc
mov byte [esi], al
mov edx, eax
shr edx, 8
mov byte [esi + 1], dl
mov ecx, eax
shr ecx, 0x10
mov byte [esi + 2], cl
mov ecx, dword [esp + 0x28]
xor ecx, dword [esp + 0x10]
mov edx, eax
shr edx, 0x18
mov byte [esi + 3], dl
mov edx, ecx
shr edx, 8
mov byte [esi + 4], cl
mov byte [esi + 5], dl
mov edx, ecx
shr edx, 0x10
mov byte [esi + 6], dl
mov edx, ecx
shr edx, 0x18
mov byte [esi + 7], dl
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x40]
mov byte [edx], al
mov edx, eax
shr edx, 8
mov byte [esi], dl
mov edx, eax
shr edx, 0x10
mov byte [esi + 1], dl
shr eax, 0x18
mov byte [esi + 2], al
mov byte [esi + 3], cl
mov eax, ecx
mov edx, ecx
shr eax, 8
mov byte [esi + 4], al
shr edx, 0x10
pop edi
mov byte [esi + 5], dl
shr ecx, 0x18
mov byte [esi + 6], cl
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
mov eax, dword [esp + 0x40]
movzx ebx, byte [eax]
movzx edx, byte [eax + 1]
movzx esi, byte [eax + 5]
inc eax
shl edx, 8
or ebx, edx
movzx edx, byte [eax + 1]
shl edx, 0x10
mov edi, dword [esp + 0x34]
or ebx, edx
movzx edx, byte [eax + 2]
shl edx, 0x18
or ebx, edx
movzx edx, byte [eax + 3]
shl esi, 8
or edx, esi
movzx esi, byte [eax + 6]
mov dword [esp + 0x1c], eax
movzx eax, byte [eax + 5]
shl esi, 8
or esi, eax
mov eax, dword [esp + 0x38]
shl esi, 0x10
or edx, esi
mov esi, dword [esp + 0x30]
add eax, 0xfffffff8
mov dword [esp + 0x44], edx
mov dword [esp + 0x38], eax
test eax, eax
jle 0x10030f50
lea edx, [eax - 1]
shr edx, 3
inc edx
mov dword [esp + 0x20], edx
neg edx
lea edx, [eax + edx*8]
mov dword [esp + 0x38], edx
lea esp, [esp]
movzx eax, byte [esi + 1]
movzx ebp, byte [esi]
movzx edx, byte [esi + 2]
shl eax, 8
or ebp, eax
movzx eax, byte [esi + 3]
shl edx, 0x10
shl eax, 0x18
or ebp, edx
or ebp, eax
movzx eax, byte [esi + 4]
mov edx, ebp
xor edx, ecx
movzx ecx, byte [esi + 5]
mov dword [esp + 0x24], edx
movzx edx, byte [esi + 6]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 7]
shl edx, 0x10
or eax, edx
mov edx, dword [esp + 0x3c]
shl ecx, 0x18
or eax, ecx
mov dword [esp + 0x4c], eax
xor eax, dword [esp + 0x10]
push 0
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x2c]
push eax
add esi, 8
call fcn.10006e80
mov ecx, dword [esp + 0x50]
xor ecx, dword [esp + 0x34]
mov eax, ebx
xor eax, dword [esp + 0x30]
xor ecx, dword [esp + 0x24]
xor eax, dword [esp + 0x20]
add esp, 0xc
mov byte [edi], al
mov edx, eax
shr edx, 8
mov byte [edi + 1], dl
mov edx, eax
shr edx, 0x10
mov byte [edi + 2], dl
shr eax, 0x18
mov byte [edi + 3], al
mov byte [edi + 4], cl
mov eax, ecx
mov edx, ecx
shr eax, 8
mov byte [edi + 5], al
mov eax, dword [esp + 0x4c]
shr edx, 0x10
shr ecx, 0x18
mov byte [edi + 6], dl
mov byte [edi + 7], cl
mov ecx, dword [esp + 0x48]
add edi, 8
dec dword [esp + 0x20]
mov ebx, ebp
mov dword [esp + 0x44], eax
jne 0x10030e80
mov edx, eax
mov eax, dword [esp + 0x38]
cmp eax, 0xfffffff8
je 0x10031029
movzx edx, byte [esi + 1]
movzx ebp, byte [esi]
movzx eax, byte [esi + 2]
shl edx, 8
or ebp, edx
movzx edx, byte [esi + 3]
shl eax, 0x10
or ebp, eax
shl edx, 0x18
or ebp, edx
movzx edx, byte [esi + 7]
mov eax, ebp
xor eax, ecx
movzx ecx, byte [esi + 5]
mov dword [esp + 0x24], eax
movzx eax, byte [esi + 4]
shl ecx, 8
or eax, ecx
movzx ecx, byte [esi + 6]
shl edx, 8
or edx, ecx
shl edx, 0x10
or eax, edx
mov edx, dword [esp + 0x3c]
mov dword [esp + 0x4c], eax
xor eax, dword [esp + 0x10]
push 0
mov dword [esp + 0x2c], eax
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.10006e80
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x44]
xor ebx, dword [esp + 0x30]
xor eax, dword [esp + 0x34]
xor ebx, dword [esp + 0x20]
xor eax, dword [esp + 0x24]
lea edi, [edi + ecx + 8]
add ecx, 7
add esp, 0xc
cmp ecx, 7
ja case.default.0x10030fe2
jmp dword [ecx*4 + 0x1003108c]
dec edi
mov ecx, eax
shr ecx, 0x18
mov byte [edi], cl
dec edi
mov edx, eax
shr edx, 0x10
mov byte [edi], dl
dec edi
mov ecx, eax
shr ecx, 8
mov byte [edi], cl
dec edi
mov byte [edi], al
dec edi
mov edx, ebx
shr edx, 0x18
mov byte [edi], dl
dec edi
mov eax, ebx
shr eax, 0x10
mov byte [edi], al
dec edi
mov ecx, ebx
shr ecx, 8
mov byte [edi], cl
mov byte [edi - 1], bl
mov edx, dword [esp + 0x4c]
mov ebx, ebp
mov dword [esp + 0x44], edx
mov eax, dword [esp + 0x40]
mov byte [eax], bl
mov eax, dword [esp + 0x1c]
mov ecx, ebx
shr ecx, 8
mov byte [eax], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [eax + 1], cl
shr ebx, 0x18
mov byte [eax + 2], bl
mov ecx, edx
shr ecx, 8
mov byte [eax + 3], dl
mov byte [eax + 4], cl
pop edi
mov ecx, edx
pop esi
shr ecx, 0x10
shr edx, 0x18
pop ebp
mov byte [eax + 5], cl
mov byte [eax + 6], dl
pop ebx
add esp, 0x1c
ret